diff --git a/Assets/Editor/SpineSettings.asset b/Assets/Editor/SpineSettings.asset index 07b53ddea..e25ee7b48 100644 --- a/Assets/Editor/SpineSettings.asset +++ b/Assets/Editor/SpineSettings.asset @@ -17,6 +17,8 @@ MonoBehaviour: defaultShader: Spine/Skeleton defaultZSpacing: 0 defaultInstantiateLoop: 1 + defaultPhysicsPositionInheritance: {x: 1, y: 1} + defaultPhysicsRotationInheritance: 1 showHierarchyIcons: 1 reloadAfterPlayMode: 1 setTextureImporterSettings: 1 @@ -33,4 +35,5 @@ MonoBehaviour: autoReloadSceneSkeletons: 1 handleScale: 1 mecanimEventIncludeFolderName: 1 + timelineDefaultMixDuration: 0 timelineUseBlendDuration: 1 diff --git a/Assets/ThirdParty/Spine Examples/Other Examples/Animation Tester/SpineAnimationTesterTool.cs b/Assets/ThirdParty/Spine Examples/Other Examples/Animation Tester/SpineAnimationTesterTool.cs index e95956c5a..f4116fe4f 100644 --- a/Assets/ThirdParty/Spine Examples/Other Examples/Animation Tester/SpineAnimationTesterTool.cs +++ b/Assets/ThirdParty/Spine Examples/Other Examples/Animation Tester/SpineAnimationTesterTool.cs @@ -141,13 +141,13 @@ namespace Spine.Unity.Examples { if (trackEntry != null) { if (control.useCustomMixDuration) - trackEntry.MixDuration = control.mixDuration; + trackEntry.SetMixDuration(control.mixDuration, 0f); // use SetMixDuration(mixDuration, delay) to update delay correctly if (useOverrideAttachmentThreshold) - trackEntry.AttachmentThreshold = attachmentThreshold; + trackEntry.MixAttachmentThreshold = attachmentThreshold; if (useOverrideDrawOrderThreshold) - trackEntry.DrawOrderThreshold = drawOrderThreshold; + trackEntry.MixDrawOrderThreshold = drawOrderThreshold; } // Don't parse more than one animation per track. diff --git a/Assets/ThirdParty/Spine Examples/Other Examples/Instantiate from Script.unity b/Assets/ThirdParty/Spine Examples/Other Examples/Instantiate from Script.unity index 5432a019a..08816535e 100644 --- a/Assets/ThirdParty/Spine Examples/Other Examples/Instantiate from Script.unity +++ b/Assets/ThirdParty/Spine Examples/Other Examples/Instantiate from Script.unity @@ -13,7 +13,7 @@ OcclusionCullingSettings: --- !u!104 &2 RenderSettings: m_ObjectHideFlags: 0 - serializedVersion: 8 + serializedVersion: 10 m_Fog: 0 m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1} m_FogMode: 3 @@ -39,37 +39,33 @@ RenderSettings: m_CustomReflection: {fileID: 0} m_Sun: {fileID: 0} m_IndirectSpecularColor: {r: 0, g: 0, b: 0, a: 1} + m_UseRadianceAmbientProbe: 0 --- !u!157 &3 LightmapSettings: m_ObjectHideFlags: 0 - serializedVersion: 11 - m_GIWorkflowMode: 1 + serializedVersion: 12 m_GISettings: serializedVersion: 2 m_BounceScale: 1 m_IndirectOutputScale: 1 m_AlbedoBoost: 1 - m_TemporalCoherenceThreshold: 1 m_EnvironmentLightingMode: 0 m_EnableBakedLightmaps: 0 m_EnableRealtimeLightmaps: 0 m_LightmapEditorSettings: - serializedVersion: 9 + serializedVersion: 12 m_Resolution: 2 m_BakeResolution: 40 - m_TextureWidth: 1024 - m_TextureHeight: 1024 + m_AtlasSize: 1024 m_AO: 0 m_AOMaxDistance: 1 m_CompAOExponent: 1 m_CompAOExponentDirect: 0 + m_ExtractAmbientOcclusion: 0 m_Padding: 2 m_LightmapParameters: {fileID: 0} m_LightmapsBakeMode: 1 m_TextureCompression: 1 - m_FinalGather: 0 - m_FinalGatherFiltering: 1 - m_FinalGatherRayCount: 256 m_ReflectionCompression: 2 m_MixedBakeMode: 2 m_BakeBackend: 0 @@ -77,23 +73,34 @@ LightmapSettings: m_PVRDirectSampleCount: 32 m_PVRSampleCount: 500 m_PVRBounces: 2 - m_PVRFiltering: 0 - m_PVRFilteringMode: 1 + m_PVREnvironmentSampleCount: 500 + m_PVREnvironmentReferencePointCount: 2048 + m_PVRFilteringMode: 2 + m_PVRDenoiserTypeDirect: 0 + m_PVRDenoiserTypeIndirect: 0 + m_PVRDenoiserTypeAO: 0 + m_PVRFilterTypeDirect: 0 + m_PVRFilterTypeIndirect: 0 + m_PVRFilterTypeAO: 0 + m_PVREnvironmentMIS: 0 m_PVRCulling: 1 m_PVRFilteringGaussRadiusDirect: 1 m_PVRFilteringGaussRadiusIndirect: 5 m_PVRFilteringGaussRadiusAO: 2 - m_PVRFilteringAtrousColorSigma: 1 - m_PVRFilteringAtrousNormalSigma: 1 - m_PVRFilteringAtrousPositionSigma: 1 + m_PVRFilteringAtrousPositionSigmaDirect: 0.5 + m_PVRFilteringAtrousPositionSigmaIndirect: 2 + m_PVRFilteringAtrousPositionSigmaAO: 1 + m_ExportTrainingData: 0 + m_TrainingDataDestination: TrainingData + m_LightProbeSampleCountMultiplier: 4 m_LightingDataAsset: {fileID: 0} - m_UseShadowmask: 1 + m_LightingSettings: {fileID: 1506007501} --- !u!196 &4 NavMeshSettings: serializedVersion: 2 m_ObjectHideFlags: 0 m_BuildSettings: - serializedVersion: 2 + serializedVersion: 3 agentTypeID: 0 agentRadius: 0.5 agentHeight: 2 @@ -106,20 +113,25 @@ NavMeshSettings: cellSize: 0.16666667 manualTileSize: 0 tileSize: 256 - accuratePlacement: 0 + buildHeightMesh: 0 + maxJobWorkers: 0 + preserveTilesOutsideBounds: 0 + debug: + m_Flags: 0 m_NavMeshData: {fileID: 0} --- !u!1 &92207858 GameObject: m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 5 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 m_Component: - component: {fileID: 92207862} - component: {fileID: 92207861} - component: {fileID: 92207860} m_Layer: 5 - m_Name: 3 Canvas - Spawn SkeletonGraphic Sample + m_Name: 2 Canvas - Spawn SkeletonGraphic Sample m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 @@ -128,12 +140,13 @@ GameObject: --- !u!114 &92207860 MonoBehaviour: m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 92207858} m_Enabled: 1 m_EditorHideFlags: 0 - m_Script: {fileID: 1980459831, guid: f70555f144d8491a825f0804e09c671c, type: 3} + m_Script: {fileID: 11500000, guid: 0cd44c1031e13a943bb63640046fad76, type: 3} m_Name: m_EditorClassIdentifier: m_UiScaleMode: 1 @@ -146,11 +159,13 @@ MonoBehaviour: m_FallbackScreenDPI: 96 m_DefaultSpriteDPI: 96 m_DynamicPixelsPerUnit: 1 + m_PresetInfoIsWorld: 0 --- !u!223 &92207861 Canvas: m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 92207858} m_Enabled: 1 serializedVersion: 3 @@ -162,35 +177,122 @@ Canvas: m_OverrideSorting: 0 m_OverridePixelPerfect: 0 m_SortingBucketNormalizedSize: 0 + m_VertexColorAlwaysGammaSpace: 0 m_AdditionalShaderChannelsFlag: 0 + m_UpdateRectTransformForStandalone: 0 m_SortingLayerID: 0 m_SortingOrder: 0 m_TargetDisplay: 0 --- !u!224 &92207862 RectTransform: m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 92207858} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 0, y: 0, z: 0} + m_ConstrainProportionsScale: 0 m_Children: - {fileID: 1691562007} m_Father: {fileID: 0} - m_RootOrder: 3 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 0} m_AnchorMax: {x: 0, y: 0} m_AnchoredPosition: {x: 0, y: 0} m_SizeDelta: {x: 0, y: 0} m_Pivot: {x: 0, y: 0} +--- !u!1 &191860306 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 191860307} + - component: {fileID: 191860309} + - component: {fileID: 191860308} + m_Layer: 0 + m_Name: Canvas + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &191860307 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 191860306} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 0, y: 0, z: 0} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 1200587070} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 0} + m_AnchorMax: {x: 0, y: 0} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: 0, y: 0} + m_Pivot: {x: 0, y: 0} +--- !u!114 &191860308 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 191860306} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 0cd44c1031e13a943bb63640046fad76, type: 3} + m_Name: + m_EditorClassIdentifier: + m_UiScaleMode: 1 + m_ReferencePixelsPerUnit: 100 + m_ScaleFactor: 1 + m_ReferenceResolution: {x: 1920, y: 1080} + m_ScreenMatchMode: 0 + m_MatchWidthOrHeight: 0 + m_PhysicalUnit: 3 + m_FallbackScreenDPI: 96 + m_DefaultSpriteDPI: 96 + m_DynamicPixelsPerUnit: 1 + m_PresetInfoIsWorld: 0 +--- !u!223 &191860309 +Canvas: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 191860306} + m_Enabled: 1 + serializedVersion: 3 + m_RenderMode: 0 + m_Camera: {fileID: 0} + m_PlaneDistance: 100 + m_PixelPerfect: 0 + m_ReceivesEvents: 1 + m_OverrideSorting: 0 + m_OverridePixelPerfect: 0 + m_SortingBucketNormalizedSize: 0 + m_VertexColorAlwaysGammaSpace: 0 + m_AdditionalShaderChannelsFlag: 0 + m_UpdateRectTransformForStandalone: 0 + m_SortingLayerID: 0 + m_SortingOrder: 0 + m_TargetDisplay: 0 --- !u!1 &433620963 GameObject: m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 5 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 m_Component: - component: {fileID: 433620968} - component: {fileID: 433620967} @@ -206,27 +308,44 @@ GameObject: --- !u!81 &433620964 AudioListener: m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 433620963} m_Enabled: 1 --- !u!124 &433620965 Behaviour: m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 433620963} m_Enabled: 1 --- !u!20 &433620967 Camera: m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 433620963} m_Enabled: 1 serializedVersion: 2 m_ClearFlags: 1 m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0} + m_projectionMatrixMode: 1 + m_GateFitMode: 2 + m_FOVAxisMode: 0 + m_Iso: 200 + m_ShutterSpeed: 0.005 + m_Aperture: 16 + m_FocusDistance: 10 + m_FocalLength: 50 + m_BladeCount: 5 + m_Curvature: {x: 2, y: 11} + m_BarrelClipping: 0.25 + m_Anamorphism: 0 + m_SensorSize: {x: 36, y: 24} + m_LensShift: {x: 0, y: 0} m_NormalizedViewPortRect: serializedVersion: 2 x: 0 @@ -248,35 +367,38 @@ Camera: m_TargetEye: 3 m_HDR: 1 m_AllowMSAA: 1 + m_AllowDynamicResolution: 0 m_ForceIntoRT: 0 m_OcclusionCulling: 1 m_StereoConvergence: 10 m_StereoSeparation: 0.022 - m_StereoMirrorMode: 0 --- !u!4 &433620968 Transform: m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 433620963} + serializedVersion: 2 m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: 0, y: 0, z: -10} m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 0} - m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!1 &651278528 GameObject: m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 5 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 m_Component: - component: {fileID: 651278530} - component: {fileID: 651278529} m_Layer: 0 - m_Name: 2 RuntimeLoadFromExports + m_Name: 3 RuntimeLoadFromExports m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 @@ -285,8 +407,9 @@ GameObject: --- !u!114 &651278529 MonoBehaviour: m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 651278528} m_Enabled: 1 m_EditorHideFlags: 0 @@ -297,27 +420,251 @@ MonoBehaviour: atlasText: {fileID: 4900000, guid: 5c0a5c36970a46e4d8378760ab4a4cfc, type: 3} textures: - {fileID: 2800000, guid: 49bb65eefe08e424bbf7a38bc98ec638, type: 3} - materialPropertySource: {fileID: 2100000, guid: 1455e88fdb81ccc45bdeaedd657bad4d, - type: 2} + materialPropertySource: {fileID: 2100000, guid: 1455e88fdb81ccc45bdeaedd657bad4d, type: 2} + delay: 0 + skinName: + animationName: + blendModeMaterials: 0 + applyAdditiveMaterial: 0 + blendModeTemplateMaterials: + additiveTemplate: {fileID: 0} + multiplyTemplate: {fileID: 0} + screenTemplate: {fileID: 0} + graphicBlendModeMaterials: + additiveTemplate: {fileID: 0} + multiplyTemplate: {fileID: 0} + screenTemplate: {fileID: 0} + skeletonGraphicMaterial: {fileID: 2100000, guid: b66cf7a186d13054989b33a5c90044e4, type: 2} --- !u!4 &651278530 Transform: m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 651278528} + serializedVersion: 2 m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] + m_ConstrainProportionsScale: 0 + m_Children: + - {fileID: 1025308469} m_Father: {fileID: 0} - m_RootOrder: 2 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!1 &1025308468 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1025308469} + - component: {fileID: 1025308472} + - component: {fileID: 1025308471} + m_Layer: 0 + m_Name: Canvas + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &1025308469 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1025308468} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 0, y: 0, z: 0} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 651278530} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 0} + m_AnchorMax: {x: 0, y: 0} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: 0, y: 0} + m_Pivot: {x: 0, y: 0} +--- !u!114 &1025308471 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1025308468} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 0cd44c1031e13a943bb63640046fad76, type: 3} + m_Name: + m_EditorClassIdentifier: + m_UiScaleMode: 1 + m_ReferencePixelsPerUnit: 100 + m_ScaleFactor: 1 + m_ReferenceResolution: {x: 1920, y: 1080} + m_ScreenMatchMode: 0 + m_MatchWidthOrHeight: 0 + m_PhysicalUnit: 3 + m_FallbackScreenDPI: 96 + m_DefaultSpriteDPI: 96 + m_DynamicPixelsPerUnit: 1 + m_PresetInfoIsWorld: 0 +--- !u!223 &1025308472 +Canvas: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1025308468} + m_Enabled: 1 + serializedVersion: 3 + m_RenderMode: 0 + m_Camera: {fileID: 0} + m_PlaneDistance: 100 + m_PixelPerfect: 0 + m_ReceivesEvents: 1 + m_OverrideSorting: 0 + m_OverridePixelPerfect: 0 + m_SortingBucketNormalizedSize: 0 + m_VertexColorAlwaysGammaSpace: 0 + m_AdditionalShaderChannelsFlag: 0 + m_UpdateRectTransformForStandalone: 0 + m_SortingLayerID: 0 + m_SortingOrder: 0 + m_TargetDisplay: 0 +--- !u!1 &1200587068 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1200587070} + - component: {fileID: 1200587069} + m_Layer: 0 + m_Name: 4 Runtime BlendModes from Exports + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!114 &1200587069 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1200587068} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: bb0837af7345d504db63d0c662fd12dc, type: 3} + m_Name: + m_EditorClassIdentifier: + skeletonJson: {fileID: 4900000, guid: 1a6f51aad0fef5a40aeedfeec5c0b8b2, type: 3} + atlasText: {fileID: 4900000, guid: 188756a89517d7649a67fb53606220f5, type: 3} + textures: + - {fileID: 2800000, guid: dc1b9f9665c8aa74799404a1d2038e3d, type: 3} + materialPropertySource: {fileID: 2100000, guid: 1455e88fdb81ccc45bdeaedd657bad4d, type: 2} + delay: 0 + skinName: + animationName: + blendModeMaterials: 1 + applyAdditiveMaterial: 0 + blendModeTemplateMaterials: + additiveTemplate: {fileID: 2100000, guid: 4deba332d47209e4780b3c5fcf0e3745, type: 2} + multiplyTemplate: {fileID: 2100000, guid: 53bf0ab317d032d418cf1252d68f51df, type: 2} + screenTemplate: {fileID: 2100000, guid: 73f0f46d3177c614baf0fa48d646a9be, type: 2} + graphicBlendModeMaterials: + additiveTemplate: {fileID: 2100000, guid: 2e8245019faeb8c43b75f9ca3ac8ee34, type: 2} + multiplyTemplate: {fileID: 2100000, guid: e74a1f8978a7da348a721508d0d58834, type: 2} + screenTemplate: {fileID: 2100000, guid: bab24c479f34eec45be6ea8595891569, type: 2} + skeletonGraphicMaterial: {fileID: 2100000, guid: b66cf7a186d13054989b33a5c90044e4, type: 2} +--- !u!4 &1200587070 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1200587068} + serializedVersion: 2 + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: + - {fileID: 191860307} + m_Father: {fileID: 0} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!850595691 &1506007501 +LightingSettings: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: Settings.lighting + serializedVersion: 8 + m_EnableBakedLightmaps: 0 + m_EnableRealtimeLightmaps: 0 + m_RealtimeEnvironmentLighting: 1 + m_BounceScale: 1 + m_AlbedoBoost: 1 + m_IndirectOutputScale: 1 + m_UsingShadowmask: 1 + m_BakeBackend: 1 + m_LightmapMaxSize: 1024 + m_LightmapSizeFixed: 0 + m_UseMipmapLimits: 1 + m_BakeResolution: 40 + m_Padding: 2 + m_LightmapCompression: 3 + m_AO: 0 + m_AOMaxDistance: 1 + m_CompAOExponent: 1 + m_CompAOExponentDirect: 0 + m_ExtractAO: 0 + m_MixedBakeMode: 2 + m_LightmapsBakeMode: 1 + m_FilterMode: 1 + m_LightmapParameters: {fileID: 15204, guid: 0000000000000000f000000000000000, type: 0} + m_ExportTrainingData: 0 + m_TrainingDataDestination: TrainingData + m_RealtimeResolution: 2 + m_ForceWhiteAlbedo: 0 + m_ForceUpdates: 0 + m_PVRCulling: 1 + m_PVRSampling: 1 + m_PVRDirectSampleCount: 32 + m_PVRSampleCount: 512 + m_PVREnvironmentSampleCount: 512 + m_PVREnvironmentReferencePointCount: 2048 + m_LightProbeSampleCountMultiplier: 4 + m_PVRBounces: 2 + m_PVRMinBounces: 2 + m_PVREnvironmentImportanceSampling: 0 + m_PVRFilteringMode: 2 + m_PVRDenoiserTypeDirect: 0 + m_PVRDenoiserTypeIndirect: 0 + m_PVRDenoiserTypeAO: 0 + m_PVRFilterTypeDirect: 0 + m_PVRFilterTypeIndirect: 0 + m_PVRFilterTypeAO: 0 + m_PVRFilteringGaussRadiusDirect: 1 + m_PVRFilteringGaussRadiusIndirect: 5 + m_PVRFilteringGaussRadiusAO: 2 + m_PVRFilteringAtrousPositionSigmaDirect: 0.5 + m_PVRFilteringAtrousPositionSigmaIndirect: 2 + m_PVRFilteringAtrousPositionSigmaAO: 1 + m_RespectSceneVisibilityWhenBakingGI: 0 --- !u!1 &1691562006 GameObject: m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 5 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 m_Component: - component: {fileID: 1691562007} - component: {fileID: 1691562008} @@ -331,15 +678,16 @@ GameObject: --- !u!224 &1691562007 RectTransform: m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 1691562006} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 92207862} - m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0.5, y: 0.5} m_AnchorMax: {x: 0.5, y: 0.5} @@ -349,8 +697,9 @@ RectTransform: --- !u!114 &1691562008 MonoBehaviour: m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 1691562006} m_Enabled: 1 m_EditorHideFlags: 0 @@ -360,14 +709,14 @@ MonoBehaviour: skeletonDataAsset: {fileID: 11400000, guid: a467507a4ffb1d542a558739b2fede77, type: 2} startingAnimation: run startingSkin: base - skeletonGraphicMaterial: {fileID: 2100000, guid: 1455e88fdb81ccc45bdeaedd657bad4d, - type: 2} + skeletonGraphicMaterial: {fileID: 2100000, guid: b66cf7a186d13054989b33a5c90044e4, type: 2} --- !u!1 &1807176298 GameObject: m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 5 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 m_Component: - component: {fileID: 1807176300} - component: {fileID: 1807176299} @@ -381,8 +730,9 @@ GameObject: --- !u!114 &1807176299 MonoBehaviour: m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 1807176298} m_Enabled: 1 m_EditorHideFlags: 0 @@ -395,13 +745,93 @@ MonoBehaviour: --- !u!4 &1807176300 Transform: m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 1807176298} + serializedVersion: 2 m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 0} - m_RootOrder: 1 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!1 &1924218899 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1924218902} + - component: {fileID: 1924218901} + - component: {fileID: 1924218900} + m_Layer: 0 + m_Name: EventSystem + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!114 &1924218900 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1924218899} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 4f231c4fb786f3946a6b90b886c48677, type: 3} + m_Name: + m_EditorClassIdentifier: + m_SendPointerHoverToParent: 1 + m_HorizontalAxis: Horizontal + m_VerticalAxis: Vertical + m_SubmitButton: Submit + m_CancelButton: Cancel + m_InputActionsPerSecond: 10 + m_RepeatDelay: 0.5 + m_ForceModuleActive: 0 +--- !u!114 &1924218901 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1924218899} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 76c392e42b5098c458856cdf6ecaaaa1, type: 3} + m_Name: + m_EditorClassIdentifier: + m_FirstSelected: {fileID: 0} + m_sendNavigationEvents: 1 + m_DragThreshold: 10 +--- !u!4 &1924218902 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1924218899} + serializedVersion: 2 + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 0} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!1660057539 &9223372036854775807 +SceneRoots: + m_ObjectHideFlags: 0 + m_Roots: + - {fileID: 433620968} + - {fileID: 1807176300} + - {fileID: 92207862} + - {fileID: 651278530} + - {fileID: 1200587070} + - {fileID: 1924218902} diff --git a/Assets/ThirdParty/Spine Examples/Other Examples/Physics Constraints.unity b/Assets/ThirdParty/Spine Examples/Other Examples/Physics Constraints.unity new file mode 100644 index 000000000..f46efa72a --- /dev/null +++ b/Assets/ThirdParty/Spine Examples/Other Examples/Physics Constraints.unity @@ -0,0 +1,15770 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!29 &1 +OcclusionCullingSettings: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_OcclusionBakeSettings: + smallestOccluder: 5 + smallestHole: 0.25 + backfaceThreshold: 100 + m_SceneGUID: 00000000000000000000000000000000 + m_OcclusionCullingData: {fileID: 0} +--- !u!104 &2 +RenderSettings: + m_ObjectHideFlags: 0 + serializedVersion: 9 + m_Fog: 0 + m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1} + m_FogMode: 3 + m_FogDensity: 0.01 + m_LinearFogStart: 0 + m_LinearFogEnd: 300 + m_AmbientSkyColor: {r: 0.2, g: 0.2, b: 0.2, a: 1} + m_AmbientEquatorColor: {r: 0.2, g: 0.2, b: 0.2, a: 1} + m_AmbientGroundColor: {r: 0.2, g: 0.2, b: 0.2, a: 1} + m_AmbientIntensity: 1 + m_AmbientMode: 3 + m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1} + m_SkyboxMaterial: {fileID: 0} + m_HaloStrength: 0.5 + m_FlareStrength: 1 + m_FlareFadeSpeed: 3 + m_HaloTexture: {fileID: 0} + m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0} + m_DefaultReflectionMode: 0 + m_DefaultReflectionResolution: 128 + m_ReflectionBounces: 1 + m_ReflectionIntensity: 1 + m_CustomReflection: {fileID: 0} + m_Sun: {fileID: 0} + m_IndirectSpecularColor: {r: 0, g: 0, b: 0, a: 1} + m_UseRadianceAmbientProbe: 0 +--- !u!157 &4 +LightmapSettings: + m_ObjectHideFlags: 0 + serializedVersion: 12 + m_GIWorkflowMode: 1 + m_GISettings: + serializedVersion: 2 + m_BounceScale: 1 + m_IndirectOutputScale: 1 + m_AlbedoBoost: 1 + m_EnvironmentLightingMode: 0 + m_EnableBakedLightmaps: 1 + m_EnableRealtimeLightmaps: 0 + m_LightmapEditorSettings: + serializedVersion: 12 + m_Resolution: 1 + m_BakeResolution: 50 + m_AtlasSize: 1024 + m_AO: 0 + m_AOMaxDistance: 1 + m_CompAOExponent: 0 + m_CompAOExponentDirect: 0 + m_ExtractAmbientOcclusion: 0 + m_Padding: 2 + m_LightmapParameters: {fileID: 0} + m_LightmapsBakeMode: 1 + m_TextureCompression: 0 + m_FinalGather: 0 + m_FinalGatherFiltering: 1 + m_FinalGatherRayCount: 1024 + m_ReflectionCompression: 2 + m_MixedBakeMode: 1 + m_BakeBackend: 0 + m_PVRSampling: 1 + m_PVRDirectSampleCount: 32 + m_PVRSampleCount: 500 + m_PVRBounces: 2 + m_PVREnvironmentSampleCount: 500 + m_PVREnvironmentReferencePointCount: 2048 + m_PVRFilteringMode: 2 + m_PVRDenoiserTypeDirect: 0 + m_PVRDenoiserTypeIndirect: 0 + m_PVRDenoiserTypeAO: 0 + m_PVRFilterTypeDirect: 0 + m_PVRFilterTypeIndirect: 0 + m_PVRFilterTypeAO: 0 + m_PVREnvironmentMIS: 0 + m_PVRCulling: 1 + m_PVRFilteringGaussRadiusDirect: 1 + m_PVRFilteringGaussRadiusIndirect: 5 + m_PVRFilteringGaussRadiusAO: 2 + m_PVRFilteringAtrousPositionSigmaDirect: 0.5 + m_PVRFilteringAtrousPositionSigmaIndirect: 2 + m_PVRFilteringAtrousPositionSigmaAO: 1 + m_ExportTrainingData: 0 + m_TrainingDataDestination: TrainingData + m_LightProbeSampleCountMultiplier: 4 + m_LightingDataAsset: {fileID: 0} + m_LightingSettings: {fileID: 431001701} +--- !u!196 &5 +NavMeshSettings: + serializedVersion: 2 + m_ObjectHideFlags: 0 + m_BuildSettings: + serializedVersion: 2 + agentTypeID: 0 + agentRadius: 0.5 + agentHeight: 2 + agentSlope: 45 + agentClimb: 0.4 + ledgeDropHeight: 0 + maxJumpAcrossDistance: 0 + minRegionArea: 2 + manualCellSize: 0 + cellSize: 0.16666666 + manualTileSize: 0 + tileSize: 256 + accuratePlacement: 0 + maxJobWorkers: 0 + preserveTilesOutsideBounds: 0 + debug: + m_Flags: 0 + m_NavMeshData: {fileID: 0} +--- !u!1 &122140872 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 122140873} + - component: {fileID: 122140875} + - component: {fileID: 122140874} + m_Layer: 0 + m_Name: Description + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &122140873 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 122140872} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: -3.1, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 693495377} + m_RootOrder: 0 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!102 &122140874 +TextMesh: + serializedVersion: 3 + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 122140872} + m_Text: 'This is a demonstration of Physics Constraints and how Transform + Movement can affect them. + + Enter PLAY MODE in the Unity Editor and drag + the cloud, snowglobe and flower-pot around to see it in action.' + m_OffsetZ: 0 + m_CharacterSize: 0.12 + m_LineSpacing: 1 + m_Anchor: 4 + m_Alignment: 1 + m_TabSize: 4 + m_FontSize: 24 + m_FontStyle: 0 + m_RichText: 1 + m_Font: {fileID: 0} + m_Color: + serializedVersion: 2 + rgba: 4294967295 +--- !u!23 &122140875 +MeshRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 122140872} + m_Enabled: 1 + m_CastShadows: 1 + m_ReceiveShadows: 1 + m_DynamicOccludee: 1 + m_StaticShadowCaster: 0 + m_MotionVectors: 1 + m_LightProbeUsage: 1 + m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 + m_RayTraceProcedural: 0 + m_RenderingLayerMask: 1 + m_RendererPriority: 0 + m_Materials: + - {fileID: 10100, guid: 0000000000000000e000000000000000, type: 0} + m_StaticBatchInfo: + firstSubMesh: 0 + subMeshCount: 0 + m_StaticBatchRoot: {fileID: 0} + m_ProbeAnchor: {fileID: 0} + m_LightProbeVolumeOverride: {fileID: 0} + m_ScaleInLightmap: 1 + m_ReceiveGI: 1 + m_PreserveUVs: 0 + m_IgnoreNormalsForChartDetection: 0 + m_ImportantGI: 0 + m_StitchLightmapSeams: 1 + m_SelectedEditorRenderState: 3 + m_MinimumChartSize: 4 + m_AutoUVMaxDistance: 0.5 + m_AutoUVMaxAngle: 89 + m_LightmapParameters: {fileID: 0} + m_SortingLayerID: 0 + m_SortingLayer: 0 + m_SortingOrder: 0 + m_AdditionalVertexStreams: {fileID: 0} +--- !u!1 &148233141 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 148233142} + - component: {fileID: 148233144} + - component: {fileID: 148233143} + m_Layer: 0 + m_Name: Particle System + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &148233142 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 148233141} + m_LocalRotation: {x: -0, y: -0, z: 0.0042760437, w: 0.9999909} + m_LocalPosition: {x: 0.03794685, y: 0.24033308, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 153039240} + m_RootOrder: -1 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!199 &148233143 +ParticleSystemRenderer: + serializedVersion: 6 + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 148233141} + m_Enabled: 1 + m_CastShadows: 0 + m_ReceiveShadows: 0 + m_DynamicOccludee: 1 + m_StaticShadowCaster: 0 + m_MotionVectors: 1 + m_LightProbeUsage: 1 + m_ReflectionProbeUsage: 0 + m_RayTracingMode: 0 + m_RayTraceProcedural: 0 + m_RenderingLayerMask: 1 + m_RendererPriority: 0 + m_Materials: + - {fileID: 10754, guid: 0000000000000000f000000000000000, type: 0} + m_StaticBatchInfo: + firstSubMesh: 0 + subMeshCount: 0 + m_StaticBatchRoot: {fileID: 0} + m_ProbeAnchor: {fileID: 0} + m_LightProbeVolumeOverride: {fileID: 0} + m_ScaleInLightmap: 1 + m_ReceiveGI: 1 + m_PreserveUVs: 0 + m_IgnoreNormalsForChartDetection: 0 + m_ImportantGI: 0 + m_StitchLightmapSeams: 1 + m_SelectedEditorRenderState: 0 + m_MinimumChartSize: 4 + m_AutoUVMaxDistance: 0.5 + m_AutoUVMaxAngle: 89 + m_LightmapParameters: {fileID: 0} + m_SortingLayerID: 0 + m_SortingLayer: 0 + m_SortingOrder: 14 + m_RenderMode: 0 + m_MeshDistribution: 0 + m_SortMode: 0 + m_MinParticleSize: 0 + m_MaxParticleSize: 0.5 + m_CameraVelocityScale: 0 + m_VelocityScale: 0 + m_LengthScale: 2 + m_SortingFudge: 0 + m_NormalDirection: 1 + m_ShadowBias: 0 + m_RenderAlignment: 0 + m_Pivot: {x: 0, y: 0, z: 0} + m_Flip: {x: 0, y: 0, z: 0} + m_UseCustomVertexStreams: 0 + m_EnableGPUInstancing: 0 + m_ApplyActiveColorSpace: 0 + m_AllowRoll: 1 + m_FreeformStretching: 0 + m_RotateWithStretchDirection: 1 + m_VertexStreams: 0001030405 + m_Mesh: {fileID: 0} + m_Mesh1: {fileID: 0} + m_Mesh2: {fileID: 0} + m_Mesh3: {fileID: 0} + m_MeshWeighting: 1 + m_MeshWeighting1: 1 + m_MeshWeighting2: 1 + m_MeshWeighting3: 1 + m_MaskInteraction: 0 +--- !u!198 &148233144 +ParticleSystem: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 148233141} + serializedVersion: 8 + lengthInSec: 5 + simulationSpeed: 1 + stopAction: 0 + cullingMode: 3 + ringBufferMode: 0 + ringBufferLoopRange: {x: 0, y: 1} + emitterVelocityMode: 1 + looping: 1 + prewarm: 1 + playOnAwake: 1 + useUnscaledTime: 0 + autoRandomSeed: 1 + startDelay: + serializedVersion: 2 + minMaxState: 0 + scalar: 0 + minScalar: 0 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + moveWithTransform: 1 + moveWithCustomTransform: {fileID: 0} + scalingMode: 1 + randomSeed: 0 + InitialModule: + serializedVersion: 3 + enabled: 1 + startLifetime: + serializedVersion: 2 + minMaxState: 0 + scalar: 0.5 + minScalar: 5 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + startSpeed: + serializedVersion: 2 + minMaxState: 0 + scalar: 5 + minScalar: 5 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + startColor: + serializedVersion: 2 + minMaxState: 0 + minColor: {r: 1, g: 1, b: 1, a: 1} + maxColor: {r: 1, g: 1, b: 1, a: 1} + maxGradient: + serializedVersion: 2 + key0: {r: 1, g: 1, b: 1, a: 1} + key1: {r: 1, g: 1, b: 1, a: 1} + key2: {r: 0, g: 0, b: 0, a: 0} + key3: {r: 0, g: 0, b: 0, a: 0} + key4: {r: 0, g: 0, b: 0, a: 0} + key5: {r: 0, g: 0, b: 0, a: 0} + key6: {r: 0, g: 0, b: 0, a: 0} + key7: {r: 0, g: 0, b: 0, a: 0} + ctime0: 0 + ctime1: 65535 + ctime2: 0 + ctime3: 0 + ctime4: 0 + ctime5: 0 + ctime6: 0 + ctime7: 0 + atime0: 0 + atime1: 65535 + atime2: 0 + atime3: 0 + atime4: 0 + atime5: 0 + atime6: 0 + atime7: 0 + m_Mode: 0 + m_NumColorKeys: 2 + m_NumAlphaKeys: 2 + minGradient: + serializedVersion: 2 + key0: {r: 1, g: 1, b: 1, a: 1} + key1: {r: 1, g: 1, b: 1, a: 1} + key2: {r: 0, g: 0, b: 0, a: 0} + key3: {r: 0, g: 0, b: 0, a: 0} + key4: {r: 0, g: 0, b: 0, a: 0} + key5: {r: 0, g: 0, b: 0, a: 0} + key6: {r: 0, g: 0, b: 0, a: 0} + key7: {r: 0, g: 0, b: 0, a: 0} + ctime0: 0 + ctime1: 65535 + ctime2: 0 + ctime3: 0 + ctime4: 0 + ctime5: 0 + ctime6: 0 + ctime7: 0 + atime0: 0 + atime1: 65535 + atime2: 0 + atime3: 0 + atime4: 0 + atime5: 0 + atime6: 0 + atime7: 0 + m_Mode: 0 + m_NumColorKeys: 2 + m_NumAlphaKeys: 2 + startSize: + serializedVersion: 2 + minMaxState: 3 + scalar: 0.1 + minScalar: 0.05 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 0 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0.5 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 0 + startSizeY: + serializedVersion: 2 + minMaxState: 3 + scalar: 1 + minScalar: 0 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 0 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 0 + startSizeZ: + serializedVersion: 2 + minMaxState: 3 + scalar: 1 + minScalar: 0 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 0 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 0 + startRotationX: + serializedVersion: 2 + minMaxState: 3 + scalar: 0 + minScalar: 0 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 0 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 0 + startRotationY: + serializedVersion: 2 + minMaxState: 3 + scalar: 0 + minScalar: 0 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 0 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 0 + startRotation: + serializedVersion: 2 + minMaxState: 3 + scalar: 0.87266463 + minScalar: -0.87266463 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 0 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: -1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 0 + randomizeRotationDirection: 0 + gravitySource: 0 + maxNumParticles: 1000 + customEmitterVelocity: {x: 0, y: 0, z: 0} + size3D: 0 + rotation3D: 0 + gravityModifier: + serializedVersion: 2 + minMaxState: 0 + scalar: 0 + minScalar: 0 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + ShapeModule: + serializedVersion: 6 + enabled: 1 + type: 10 + angle: 25 + length: 5 + boxThickness: {x: 0, y: 0, z: 0} + radiusThickness: 0 + donutRadius: 0.2 + m_Position: {x: 0, y: 0, z: 0} + m_Rotation: {x: 0, y: 0, z: 0} + m_Scale: {x: 1, y: 1, z: 1} + placementMode: 0 + m_MeshMaterialIndex: 0 + m_MeshNormalOffset: 0 + m_MeshSpawn: + mode: 0 + spread: 0 + speed: + serializedVersion: 2 + minMaxState: 0 + scalar: 1 + minScalar: 1 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + m_Mesh: {fileID: 0} + m_MeshRenderer: {fileID: 0} + m_SkinnedMeshRenderer: {fileID: 0} + m_Sprite: {fileID: 0} + m_SpriteRenderer: {fileID: 0} + m_UseMeshMaterialIndex: 0 + m_UseMeshColors: 1 + alignToDirection: 0 + m_Texture: {fileID: 0} + m_TextureClipChannel: 3 + m_TextureClipThreshold: 0 + m_TextureUVChannel: 0 + m_TextureColorAffectsParticles: 1 + m_TextureAlphaAffectsParticles: 1 + m_TextureBilinearFiltering: 0 + randomDirectionAmount: 0 + sphericalDirectionAmount: 0 + randomPositionAmount: 0 + radius: + value: 0.444762 + mode: 0 + spread: 0 + speed: + serializedVersion: 2 + minMaxState: 0 + scalar: 1 + minScalar: 1 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + arc: + value: 360 + mode: 0 + spread: 0 + speed: + serializedVersion: 2 + minMaxState: 0 + scalar: 1 + minScalar: 1 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + EmissionModule: + enabled: 1 + serializedVersion: 4 + rateOverTime: + serializedVersion: 2 + minMaxState: 0 + scalar: 20 + minScalar: 10 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + rateOverDistance: + serializedVersion: 2 + minMaxState: 0 + scalar: 0 + minScalar: 0 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + m_BurstCount: 0 + m_Bursts: [] + SizeModule: + enabled: 0 + curve: + serializedVersion: 2 + minMaxState: 1 + scalar: 1 + minScalar: 1 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + y: + serializedVersion: 2 + minMaxState: 1 + scalar: 1 + minScalar: 1 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + z: + serializedVersion: 2 + minMaxState: 1 + scalar: 1 + minScalar: 1 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + separateAxes: 0 + RotationModule: + enabled: 1 + x: + serializedVersion: 2 + minMaxState: 3 + scalar: 0 + minScalar: 0 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 0 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 0 + y: + serializedVersion: 2 + minMaxState: 3 + scalar: 0 + minScalar: 0 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 0 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 0 + curve: + serializedVersion: 2 + minMaxState: 3 + scalar: 5.2359877 + minScalar: -5.2359877 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 0 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: -1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 0 + separateAxes: 0 + ColorModule: + enabled: 1 + gradient: + serializedVersion: 2 + minMaxState: 1 + minColor: {r: 1, g: 1, b: 1, a: 1} + maxColor: {r: 1, g: 1, b: 1, a: 1} + maxGradient: + serializedVersion: 2 + key0: {r: 1, g: 1, b: 1, a: 1} + key1: {r: 1, g: 1, b: 1, a: 0} + key2: {r: 0, g: 0, b: 0, a: 0} + key3: {r: 0, g: 0, b: 0, a: 0} + key4: {r: 0, g: 0, b: 0, a: 0} + key5: {r: 0, g: 0, b: 0, a: 0} + key6: {r: 0, g: 0, b: 0, a: 0} + key7: {r: 0, g: 0, b: 0, a: 0} + ctime0: 0 + ctime1: 65535 + ctime2: 0 + ctime3: 0 + ctime4: 0 + ctime5: 0 + ctime6: 0 + ctime7: 0 + atime0: 0 + atime1: 65535 + atime2: 0 + atime3: 0 + atime4: 0 + atime5: 0 + atime6: 0 + atime7: 0 + m_Mode: 0 + m_NumColorKeys: 2 + m_NumAlphaKeys: 2 + minGradient: + serializedVersion: 2 + key0: {r: 1, g: 1, b: 1, a: 1} + key1: {r: 1, g: 1, b: 1, a: 1} + key2: {r: 0, g: 0, b: 0, a: 0} + key3: {r: 0, g: 0, b: 0, a: 0} + key4: {r: 0, g: 0, b: 0, a: 0} + key5: {r: 0, g: 0, b: 0, a: 0} + key6: {r: 0, g: 0, b: 0, a: 0} + key7: {r: 0, g: 0, b: 0, a: 0} + ctime0: 0 + ctime1: 65535 + ctime2: 0 + ctime3: 0 + ctime4: 0 + ctime5: 0 + ctime6: 0 + ctime7: 0 + atime0: 0 + atime1: 65535 + atime2: 0 + atime3: 0 + atime4: 0 + atime5: 0 + atime6: 0 + atime7: 0 + m_Mode: 0 + m_NumColorKeys: 2 + m_NumAlphaKeys: 2 + UVModule: + serializedVersion: 2 + enabled: 0 + mode: 0 + timeMode: 0 + fps: 30 + frameOverTime: + serializedVersion: 2 + minMaxState: 1 + scalar: 0.9999 + minScalar: 0.9999 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 1 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 1 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 1 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 1 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + startFrame: + serializedVersion: 2 + minMaxState: 0 + scalar: 0 + minScalar: 0 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + speedRange: {x: 0, y: 1} + tilesX: 1 + tilesY: 1 + animationType: 0 + rowIndex: 0 + cycles: 1 + uvChannelMask: -1 + rowMode: 1 + sprites: + - sprite: {fileID: 0} + flipU: 0 + flipV: 0 + VelocityModule: + enabled: 0 + x: + serializedVersion: 2 + minMaxState: 0 + scalar: 0 + minScalar: 0 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + y: + serializedVersion: 2 + minMaxState: 0 + scalar: 0 + minScalar: 0 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + z: + serializedVersion: 2 + minMaxState: 0 + scalar: 0 + minScalar: 0 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + orbitalX: + serializedVersion: 2 + minMaxState: 0 + scalar: 0 + minScalar: 0 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + orbitalY: + serializedVersion: 2 + minMaxState: 0 + scalar: 0 + minScalar: 0 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + orbitalZ: + serializedVersion: 2 + minMaxState: 0 + scalar: 0 + minScalar: 0 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + orbitalOffsetX: + serializedVersion: 2 + minMaxState: 0 + scalar: 0 + minScalar: 0 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + orbitalOffsetY: + serializedVersion: 2 + minMaxState: 0 + scalar: 0 + minScalar: 0 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + orbitalOffsetZ: + serializedVersion: 2 + minMaxState: 0 + scalar: 0 + minScalar: 0 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + radial: + serializedVersion: 2 + minMaxState: 0 + scalar: 0 + minScalar: 0 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + speedModifier: + serializedVersion: 2 + minMaxState: 0 + scalar: 1 + minScalar: 1 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + inWorldSpace: 0 + InheritVelocityModule: + enabled: 0 + m_Mode: 0 + m_Curve: + serializedVersion: 2 + minMaxState: 0 + scalar: 0 + minScalar: 0 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + LifetimeByEmitterSpeedModule: + enabled: 0 + m_Curve: + serializedVersion: 2 + minMaxState: 1 + scalar: 1 + minScalar: 1 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: -0.8 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0.2 + inSlope: -0.8 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + m_Range: {x: 0, y: 1} + ForceModule: + enabled: 0 + x: + serializedVersion: 2 + minMaxState: 0 + scalar: 0 + minScalar: 0 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + y: + serializedVersion: 2 + minMaxState: 0 + scalar: 0 + minScalar: 0 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + z: + serializedVersion: 2 + minMaxState: 0 + scalar: 0 + minScalar: 0 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + inWorldSpace: 0 + randomizePerFrame: 0 + ExternalForcesModule: + serializedVersion: 2 + enabled: 0 + multiplierCurve: + serializedVersion: 2 + minMaxState: 0 + scalar: 1 + minScalar: 1 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + influenceFilter: 0 + influenceMask: + serializedVersion: 2 + m_Bits: 4294967295 + influenceList: [] + ClampVelocityModule: + enabled: 1 + x: + serializedVersion: 2 + minMaxState: 0 + scalar: 1 + minScalar: 1 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + y: + serializedVersion: 2 + minMaxState: 0 + scalar: 1 + minScalar: 1 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + z: + serializedVersion: 2 + minMaxState: 0 + scalar: 1 + minScalar: 1 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + magnitude: + serializedVersion: 2 + minMaxState: 0 + scalar: 1 + minScalar: 1 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + separateAxis: 0 + inWorldSpace: 0 + multiplyDragByParticleSize: 1 + multiplyDragByParticleVelocity: 1 + dampen: 1 + drag: + serializedVersion: 2 + minMaxState: 0 + scalar: 0 + minScalar: 0 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + NoiseModule: + enabled: 0 + strength: + serializedVersion: 2 + minMaxState: 0 + scalar: 1 + minScalar: 1 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + strengthY: + serializedVersion: 2 + minMaxState: 0 + scalar: 1 + minScalar: 1 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + strengthZ: + serializedVersion: 2 + minMaxState: 0 + scalar: 1 + minScalar: 1 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + separateAxes: 0 + frequency: 0.5 + damping: 1 + octaves: 1 + octaveMultiplier: 0.5 + octaveScale: 2 + quality: 2 + scrollSpeed: + serializedVersion: 2 + minMaxState: 0 + scalar: 0 + minScalar: 0 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + remap: + serializedVersion: 2 + minMaxState: 1 + scalar: 1 + minScalar: 1 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: -1 + inSlope: 0 + outSlope: 2 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 2 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + remapY: + serializedVersion: 2 + minMaxState: 1 + scalar: 1 + minScalar: 1 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: -1 + inSlope: 0 + outSlope: 2 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 2 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + remapZ: + serializedVersion: 2 + minMaxState: 1 + scalar: 1 + minScalar: 1 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: -1 + inSlope: 0 + outSlope: 2 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 2 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + remapEnabled: 0 + positionAmount: + serializedVersion: 2 + minMaxState: 0 + scalar: 1 + minScalar: 1 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + rotationAmount: + serializedVersion: 2 + minMaxState: 0 + scalar: 0 + minScalar: 0 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + sizeAmount: + serializedVersion: 2 + minMaxState: 0 + scalar: 0 + minScalar: 0 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + SizeBySpeedModule: + enabled: 0 + curve: + serializedVersion: 2 + minMaxState: 1 + scalar: 1 + minScalar: 1 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + y: + serializedVersion: 2 + minMaxState: 1 + scalar: 1 + minScalar: 1 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + z: + serializedVersion: 2 + minMaxState: 1 + scalar: 1 + minScalar: 1 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + range: {x: 0, y: 1} + separateAxes: 0 + RotationBySpeedModule: + enabled: 0 + x: + serializedVersion: 2 + minMaxState: 0 + scalar: 0 + minScalar: 0 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + y: + serializedVersion: 2 + minMaxState: 0 + scalar: 0 + minScalar: 0 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + curve: + serializedVersion: 2 + minMaxState: 0 + scalar: 0.7853981 + minScalar: 0.7853982 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + separateAxes: 0 + range: {x: 0, y: 1} + ColorBySpeedModule: + enabled: 0 + gradient: + serializedVersion: 2 + minMaxState: 1 + minColor: {r: 1, g: 1, b: 1, a: 1} + maxColor: {r: 1, g: 1, b: 1, a: 1} + maxGradient: + serializedVersion: 2 + key0: {r: 1, g: 1, b: 1, a: 1} + key1: {r: 1, g: 1, b: 1, a: 1} + key2: {r: 0, g: 0, b: 0, a: 0} + key3: {r: 0, g: 0, b: 0, a: 0} + key4: {r: 0, g: 0, b: 0, a: 0} + key5: {r: 0, g: 0, b: 0, a: 0} + key6: {r: 0, g: 0, b: 0, a: 0} + key7: {r: 0, g: 0, b: 0, a: 0} + ctime0: 0 + ctime1: 65535 + ctime2: 0 + ctime3: 0 + ctime4: 0 + ctime5: 0 + ctime6: 0 + ctime7: 0 + atime0: 0 + atime1: 65535 + atime2: 0 + atime3: 0 + atime4: 0 + atime5: 0 + atime6: 0 + atime7: 0 + m_Mode: 0 + m_NumColorKeys: 2 + m_NumAlphaKeys: 2 + minGradient: + serializedVersion: 2 + key0: {r: 1, g: 1, b: 1, a: 1} + key1: {r: 1, g: 1, b: 1, a: 1} + key2: {r: 0, g: 0, b: 0, a: 0} + key3: {r: 0, g: 0, b: 0, a: 0} + key4: {r: 0, g: 0, b: 0, a: 0} + key5: {r: 0, g: 0, b: 0, a: 0} + key6: {r: 0, g: 0, b: 0, a: 0} + key7: {r: 0, g: 0, b: 0, a: 0} + ctime0: 0 + ctime1: 65535 + ctime2: 0 + ctime3: 0 + ctime4: 0 + ctime5: 0 + ctime6: 0 + ctime7: 0 + atime0: 0 + atime1: 65535 + atime2: 0 + atime3: 0 + atime4: 0 + atime5: 0 + atime6: 0 + atime7: 0 + m_Mode: 0 + m_NumColorKeys: 2 + m_NumAlphaKeys: 2 + range: {x: 0, y: 1} + CollisionModule: + enabled: 0 + serializedVersion: 4 + type: 0 + collisionMode: 0 + colliderForce: 0 + multiplyColliderForceByParticleSize: 0 + multiplyColliderForceByParticleSpeed: 0 + multiplyColliderForceByCollisionAngle: 1 + m_Planes: + - {fileID: 0} + - {fileID: 0} + - {fileID: 0} + - {fileID: 0} + - {fileID: 0} + - {fileID: 0} + m_Dampen: + serializedVersion: 2 + minMaxState: 0 + scalar: 0 + minScalar: 0 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + m_Bounce: + serializedVersion: 2 + minMaxState: 0 + scalar: 1 + minScalar: 1 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + m_EnergyLossOnCollision: + serializedVersion: 2 + minMaxState: 0 + scalar: 0 + minScalar: 0 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minKillSpeed: 0 + maxKillSpeed: 10000 + radiusScale: 1 + collidesWith: + serializedVersion: 2 + m_Bits: 4294967295 + maxCollisionShapes: 256 + quality: 0 + voxelSize: 0.5 + collisionMessages: 0 + collidesWithDynamic: 1 + interiorCollisions: 1 + TriggerModule: + enabled: 0 + serializedVersion: 2 + inside: 1 + outside: 0 + enter: 0 + exit: 0 + colliderQueryMode: 0 + radiusScale: 1 + primitives: + - {fileID: 0} + - {fileID: 0} + - {fileID: 0} + - {fileID: 0} + - {fileID: 0} + - {fileID: 0} + SubModule: + serializedVersion: 2 + enabled: 0 + subEmitters: + - serializedVersion: 3 + emitter: {fileID: 0} + type: 0 + properties: 0 + emitProbability: 1 + LightsModule: + enabled: 0 + ratio: 0 + light: {fileID: 0} + randomDistribution: 1 + color: 1 + range: 1 + intensity: 1 + rangeCurve: + serializedVersion: 2 + minMaxState: 0 + scalar: 1 + minScalar: 1 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + intensityCurve: + serializedVersion: 2 + minMaxState: 0 + scalar: 1 + minScalar: 1 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + maxLights: 20 + TrailModule: + enabled: 0 + mode: 0 + ratio: 1 + lifetime: + serializedVersion: 2 + minMaxState: 0 + scalar: 1 + minScalar: 1 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minVertexDistance: 0.2 + textureMode: 0 + textureScale: {x: 1, y: 1} + ribbonCount: 1 + shadowBias: 0.5 + worldSpace: 0 + dieWithParticles: 1 + sizeAffectsWidth: 1 + sizeAffectsLifetime: 0 + inheritParticleColor: 1 + generateLightingData: 0 + splitSubEmitterRibbons: 0 + attachRibbonsToTransform: 0 + colorOverLifetime: + serializedVersion: 2 + minMaxState: 0 + minColor: {r: 1, g: 1, b: 1, a: 1} + maxColor: {r: 1, g: 1, b: 1, a: 1} + maxGradient: + serializedVersion: 2 + key0: {r: 1, g: 1, b: 1, a: 1} + key1: {r: 1, g: 1, b: 1, a: 1} + key2: {r: 0, g: 0, b: 0, a: 0} + key3: {r: 0, g: 0, b: 0, a: 0} + key4: {r: 0, g: 0, b: 0, a: 0} + key5: {r: 0, g: 0, b: 0, a: 0} + key6: {r: 0, g: 0, b: 0, a: 0} + key7: {r: 0, g: 0, b: 0, a: 0} + ctime0: 0 + ctime1: 65535 + ctime2: 0 + ctime3: 0 + ctime4: 0 + ctime5: 0 + ctime6: 0 + ctime7: 0 + atime0: 0 + atime1: 65535 + atime2: 0 + atime3: 0 + atime4: 0 + atime5: 0 + atime6: 0 + atime7: 0 + m_Mode: 0 + m_NumColorKeys: 2 + m_NumAlphaKeys: 2 + minGradient: + serializedVersion: 2 + key0: {r: 1, g: 1, b: 1, a: 1} + key1: {r: 1, g: 1, b: 1, a: 1} + key2: {r: 0, g: 0, b: 0, a: 0} + key3: {r: 0, g: 0, b: 0, a: 0} + key4: {r: 0, g: 0, b: 0, a: 0} + key5: {r: 0, g: 0, b: 0, a: 0} + key6: {r: 0, g: 0, b: 0, a: 0} + key7: {r: 0, g: 0, b: 0, a: 0} + ctime0: 0 + ctime1: 65535 + ctime2: 0 + ctime3: 0 + ctime4: 0 + ctime5: 0 + ctime6: 0 + ctime7: 0 + atime0: 0 + atime1: 65535 + atime2: 0 + atime3: 0 + atime4: 0 + atime5: 0 + atime6: 0 + atime7: 0 + m_Mode: 0 + m_NumColorKeys: 2 + m_NumAlphaKeys: 2 + widthOverTrail: + serializedVersion: 2 + minMaxState: 0 + scalar: 1 + minScalar: 1 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + colorOverTrail: + serializedVersion: 2 + minMaxState: 0 + minColor: {r: 1, g: 1, b: 1, a: 1} + maxColor: {r: 1, g: 1, b: 1, a: 1} + maxGradient: + serializedVersion: 2 + key0: {r: 1, g: 1, b: 1, a: 1} + key1: {r: 1, g: 1, b: 1, a: 1} + key2: {r: 0, g: 0, b: 0, a: 0} + key3: {r: 0, g: 0, b: 0, a: 0} + key4: {r: 0, g: 0, b: 0, a: 0} + key5: {r: 0, g: 0, b: 0, a: 0} + key6: {r: 0, g: 0, b: 0, a: 0} + key7: {r: 0, g: 0, b: 0, a: 0} + ctime0: 0 + ctime1: 65535 + ctime2: 0 + ctime3: 0 + ctime4: 0 + ctime5: 0 + ctime6: 0 + ctime7: 0 + atime0: 0 + atime1: 65535 + atime2: 0 + atime3: 0 + atime4: 0 + atime5: 0 + atime6: 0 + atime7: 0 + m_Mode: 0 + m_NumColorKeys: 2 + m_NumAlphaKeys: 2 + minGradient: + serializedVersion: 2 + key0: {r: 1, g: 1, b: 1, a: 1} + key1: {r: 1, g: 1, b: 1, a: 1} + key2: {r: 0, g: 0, b: 0, a: 0} + key3: {r: 0, g: 0, b: 0, a: 0} + key4: {r: 0, g: 0, b: 0, a: 0} + key5: {r: 0, g: 0, b: 0, a: 0} + key6: {r: 0, g: 0, b: 0, a: 0} + key7: {r: 0, g: 0, b: 0, a: 0} + ctime0: 0 + ctime1: 65535 + ctime2: 0 + ctime3: 0 + ctime4: 0 + ctime5: 0 + ctime6: 0 + ctime7: 0 + atime0: 0 + atime1: 65535 + atime2: 0 + atime3: 0 + atime4: 0 + atime5: 0 + atime6: 0 + atime7: 0 + m_Mode: 0 + m_NumColorKeys: 2 + m_NumAlphaKeys: 2 + CustomDataModule: + enabled: 0 + mode0: 0 + vectorComponentCount0: 4 + color0: + serializedVersion: 2 + minMaxState: 0 + minColor: {r: 1, g: 1, b: 1, a: 1} + maxColor: {r: 1, g: 1, b: 1, a: 1} + maxGradient: + serializedVersion: 2 + key0: {r: 1, g: 1, b: 1, a: 1} + key1: {r: 1, g: 1, b: 1, a: 1} + key2: {r: 0, g: 0, b: 0, a: 0} + key3: {r: 0, g: 0, b: 0, a: 0} + key4: {r: 0, g: 0, b: 0, a: 0} + key5: {r: 0, g: 0, b: 0, a: 0} + key6: {r: 0, g: 0, b: 0, a: 0} + key7: {r: 0, g: 0, b: 0, a: 0} + ctime0: 0 + ctime1: 65535 + ctime2: 0 + ctime3: 0 + ctime4: 0 + ctime5: 0 + ctime6: 0 + ctime7: 0 + atime0: 0 + atime1: 65535 + atime2: 0 + atime3: 0 + atime4: 0 + atime5: 0 + atime6: 0 + atime7: 0 + m_Mode: 0 + m_NumColorKeys: 2 + m_NumAlphaKeys: 2 + minGradient: + serializedVersion: 2 + key0: {r: 1, g: 1, b: 1, a: 1} + key1: {r: 1, g: 1, b: 1, a: 1} + key2: {r: 0, g: 0, b: 0, a: 0} + key3: {r: 0, g: 0, b: 0, a: 0} + key4: {r: 0, g: 0, b: 0, a: 0} + key5: {r: 0, g: 0, b: 0, a: 0} + key6: {r: 0, g: 0, b: 0, a: 0} + key7: {r: 0, g: 0, b: 0, a: 0} + ctime0: 0 + ctime1: 65535 + ctime2: 0 + ctime3: 0 + ctime4: 0 + ctime5: 0 + ctime6: 0 + ctime7: 0 + atime0: 0 + atime1: 65535 + atime2: 0 + atime3: 0 + atime4: 0 + atime5: 0 + atime6: 0 + atime7: 0 + m_Mode: 0 + m_NumColorKeys: 2 + m_NumAlphaKeys: 2 + colorLabel0: Color + vector0_0: + serializedVersion: 2 + minMaxState: 0 + scalar: 0 + minScalar: 0 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + vectorLabel0_0: X + vector0_1: + serializedVersion: 2 + minMaxState: 0 + scalar: 0 + minScalar: 0 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + vectorLabel0_1: Y + vector0_2: + serializedVersion: 2 + minMaxState: 0 + scalar: 0 + minScalar: 0 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + vectorLabel0_2: Z + vector0_3: + serializedVersion: 2 + minMaxState: 0 + scalar: 0 + minScalar: 0 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + vectorLabel0_3: W + mode1: 0 + vectorComponentCount1: 4 + color1: + serializedVersion: 2 + minMaxState: 0 + minColor: {r: 1, g: 1, b: 1, a: 1} + maxColor: {r: 1, g: 1, b: 1, a: 1} + maxGradient: + serializedVersion: 2 + key0: {r: 1, g: 1, b: 1, a: 1} + key1: {r: 1, g: 1, b: 1, a: 1} + key2: {r: 0, g: 0, b: 0, a: 0} + key3: {r: 0, g: 0, b: 0, a: 0} + key4: {r: 0, g: 0, b: 0, a: 0} + key5: {r: 0, g: 0, b: 0, a: 0} + key6: {r: 0, g: 0, b: 0, a: 0} + key7: {r: 0, g: 0, b: 0, a: 0} + ctime0: 0 + ctime1: 65535 + ctime2: 0 + ctime3: 0 + ctime4: 0 + ctime5: 0 + ctime6: 0 + ctime7: 0 + atime0: 0 + atime1: 65535 + atime2: 0 + atime3: 0 + atime4: 0 + atime5: 0 + atime6: 0 + atime7: 0 + m_Mode: 0 + m_NumColorKeys: 2 + m_NumAlphaKeys: 2 + minGradient: + serializedVersion: 2 + key0: {r: 1, g: 1, b: 1, a: 1} + key1: {r: 1, g: 1, b: 1, a: 1} + key2: {r: 0, g: 0, b: 0, a: 0} + key3: {r: 0, g: 0, b: 0, a: 0} + key4: {r: 0, g: 0, b: 0, a: 0} + key5: {r: 0, g: 0, b: 0, a: 0} + key6: {r: 0, g: 0, b: 0, a: 0} + key7: {r: 0, g: 0, b: 0, a: 0} + ctime0: 0 + ctime1: 65535 + ctime2: 0 + ctime3: 0 + ctime4: 0 + ctime5: 0 + ctime6: 0 + ctime7: 0 + atime0: 0 + atime1: 65535 + atime2: 0 + atime3: 0 + atime4: 0 + atime5: 0 + atime6: 0 + atime7: 0 + m_Mode: 0 + m_NumColorKeys: 2 + m_NumAlphaKeys: 2 + colorLabel1: Color + vector1_0: + serializedVersion: 2 + minMaxState: 0 + scalar: 0 + minScalar: 0 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + vectorLabel1_0: X + vector1_1: + serializedVersion: 2 + minMaxState: 0 + scalar: 0 + minScalar: 0 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + vectorLabel1_1: Y + vector1_2: + serializedVersion: 2 + minMaxState: 0 + scalar: 0 + minScalar: 0 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + vectorLabel1_2: Z + vector1_3: + serializedVersion: 2 + minMaxState: 0 + scalar: 0 + minScalar: 0 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + vectorLabel1_3: W +--- !u!1 &153039239 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 153039240} + - component: {fileID: 153039241} + m_Layer: 0 + m_Name: CloudFollower + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &153039240 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 153039239} + m_LocalRotation: {x: 0, y: 0, z: -0.0042760437, w: 0.9999909} + m_LocalPosition: {x: -1.5000007, y: 15.799999, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: + - {fileID: 1003754206} + - {fileID: 148233142} + m_Father: {fileID: 820332295} + m_RootOrder: -1 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!114 &153039241 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 153039239} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: a1fd8daaed7b64148a34acb96ba14ce1, type: 3} + m_Name: + m_EditorClassIdentifier: + skeletonRenderer: {fileID: 820332292} + boneName: cloud + followXYPosition: 1 + followZPosition: 1 + followBoneRotation: 1 + followSkeletonFlip: 1 + followLocalScale: 0 + followParentWorldScale: 0 + maintainedAxisOrientation: 1 + initializeOnAwake: 1 +--- !u!1 &315096847 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 315096848} + - component: {fileID: 315096849} + m_Layer: 0 + m_Name: Follower + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &315096848 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 315096847} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: -0.22983651, y: 1.8793011, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: + - {fileID: 445823889} + - {fileID: 1158336907} + m_Father: {fileID: 536281182} + m_RootOrder: -1 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!114 &315096849 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 315096847} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: a1fd8daaed7b64148a34acb96ba14ce1, type: 3} + m_Name: + m_EditorClassIdentifier: + skeletonRenderer: {fileID: 536281179} + boneName: globe-holder + followXYPosition: 1 + followZPosition: 1 + followBoneRotation: 1 + followSkeletonFlip: 1 + followLocalScale: 0 + followParentWorldScale: 0 + maintainedAxisOrientation: 1 + initializeOnAwake: 1 +--- !u!850595691 &431001701 +LightingSettings: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: Settings.lighting + serializedVersion: 5 + m_GIWorkflowMode: 1 + m_EnableBakedLightmaps: 1 + m_EnableRealtimeLightmaps: 0 + m_RealtimeEnvironmentLighting: 1 + m_BounceScale: 1 + m_AlbedoBoost: 1 + m_IndirectOutputScale: 1 + m_UsingShadowmask: 0 + m_BakeBackend: 0 + m_LightmapMaxSize: 1024 + m_BakeResolution: 50 + m_Padding: 2 + m_LightmapCompression: 0 + m_AO: 0 + m_AOMaxDistance: 1 + m_CompAOExponent: 0 + m_CompAOExponentDirect: 0 + m_ExtractAO: 0 + m_MixedBakeMode: 1 + m_LightmapsBakeMode: 1 + m_FilterMode: 1 + m_LightmapParameters: {fileID: 15204, guid: 0000000000000000f000000000000000, type: 0} + m_ExportTrainingData: 0 + m_TrainingDataDestination: TrainingData + m_RealtimeResolution: 1 + m_ForceWhiteAlbedo: 0 + m_ForceUpdates: 0 + m_FinalGather: 0 + m_FinalGatherRayCount: 1024 + m_FinalGatherFiltering: 1 + m_PVRCulling: 1 + m_PVRSampling: 1 + m_PVRDirectSampleCount: 32 + m_PVRSampleCount: 512 + m_PVREnvironmentSampleCount: 512 + m_PVREnvironmentReferencePointCount: 2048 + m_LightProbeSampleCountMultiplier: 4 + m_PVRBounces: 2 + m_PVRMinBounces: 2 + m_PVREnvironmentImportanceSampling: 0 + m_PVRFilteringMode: 2 + m_PVRDenoiserTypeDirect: 0 + m_PVRDenoiserTypeIndirect: 0 + m_PVRDenoiserTypeAO: 0 + m_PVRFilterTypeDirect: 0 + m_PVRFilterTypeIndirect: 0 + m_PVRFilterTypeAO: 0 + m_PVRFilteringGaussRadiusDirect: 1 + m_PVRFilteringGaussRadiusIndirect: 5 + m_PVRFilteringGaussRadiusAO: 2 + m_PVRFilteringAtrousPositionSigmaDirect: 0.5 + m_PVRFilteringAtrousPositionSigmaIndirect: 2 + m_PVRFilteringAtrousPositionSigmaAO: 1 + m_PVRTiledBaking: 0 + m_NumRaysToShootPerTexel: -1 +--- !u!1 &445823888 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 445823889} + - component: {fileID: 445823891} + - component: {fileID: 445823890} + m_Layer: 0 + m_Name: Drag Me Label + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &445823889 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 445823888} + m_LocalRotation: {x: -0, y: -0, z: 0.0042760437, w: 0.9999909} + m_LocalPosition: {x: 0.3, y: -5.42, z: -2.41} + m_LocalScale: {x: 4, y: 4, z: 4} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 315096848} + m_RootOrder: -1 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!102 &445823890 +TextMesh: + serializedVersion: 3 + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 445823888} + m_Text: Drag me! + m_OffsetZ: 0 + m_CharacterSize: 0.1 + m_LineSpacing: 1 + m_Anchor: 4 + m_Alignment: 1 + m_TabSize: 4 + m_FontSize: 40 + m_FontStyle: 1 + m_RichText: 1 + m_Font: {fileID: 0} + m_Color: + serializedVersion: 2 + rgba: 4280156415 +--- !u!23 &445823891 +MeshRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 445823888} + m_Enabled: 1 + m_CastShadows: 1 + m_ReceiveShadows: 1 + m_DynamicOccludee: 1 + m_StaticShadowCaster: 0 + m_MotionVectors: 1 + m_LightProbeUsage: 1 + m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 + m_RayTraceProcedural: 0 + m_RenderingLayerMask: 1 + m_RendererPriority: 0 + m_Materials: + - {fileID: 10100, guid: 0000000000000000e000000000000000, type: 0} + m_StaticBatchInfo: + firstSubMesh: 0 + subMeshCount: 0 + m_StaticBatchRoot: {fileID: 0} + m_ProbeAnchor: {fileID: 0} + m_LightProbeVolumeOverride: {fileID: 0} + m_ScaleInLightmap: 1 + m_ReceiveGI: 1 + m_PreserveUVs: 0 + m_IgnoreNormalsForChartDetection: 0 + m_ImportantGI: 0 + m_StitchLightmapSeams: 1 + m_SelectedEditorRenderState: 3 + m_MinimumChartSize: 4 + m_AutoUVMaxDistance: 0.5 + m_AutoUVMaxAngle: 89 + m_LightmapParameters: {fileID: 0} + m_SortingLayerID: 0 + m_SortingLayer: 0 + m_SortingOrder: 0 + m_AdditionalVertexStreams: {fileID: 0} +--- !u!1 &536281176 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 536281182} + - component: {fileID: 536281181} + - component: {fileID: 536281180} + - component: {fileID: 536281179} + - component: {fileID: 536281178} + - component: {fileID: 536281177} + m_Layer: 0 + m_Name: snowglobe draggable - Skeleton with PhysicsConstraints + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!61 &536281177 +BoxCollider2D: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 536281176} + m_Enabled: 1 + m_Density: 1 + m_Material: {fileID: 0} + m_IsTrigger: 1 + m_UsedByEffector: 0 + m_UsedByComposite: 0 + m_Offset: {x: -0.34642315, y: 6.917263} + m_SpriteTilingProperty: + border: {x: 0, y: 0, z: 0, w: 0} + pivot: {x: 0, y: 0} + oldSize: {x: 0, y: 0} + newSize: {x: 0, y: 0} + adaptiveTilingThreshold: 0 + drawMode: 0 + adaptiveTiling: 0 + m_AutoTiling: 0 + serializedVersion: 2 + m_Size: {x: 22.059233, y: 28.126602} + m_EdgeRadius: 0 +--- !u!114 &536281178 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 536281176} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: ac0a69923492d1b4aa7ca656033ec6a3, type: 3} + m_Name: + m_EditorClassIdentifier: +--- !u!114 &536281179 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 536281176} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: d247ba06193faa74d9335f5481b2b56c, type: 3} + m_Name: + m_EditorClassIdentifier: + skeletonDataAsset: {fileID: 11400000, guid: 9f9df402d4f49864aa437e785eb16524, type: 2} + initialSkinName: + fixPrefabOverrideViaMeshFilter: 2 + initialFlipX: 0 + initialFlipY: 0 + updateWhenInvisible: 3 + separatorSlotNames: [] + zSpacing: 0 + useClipping: 1 + immutableTriangles: 0 + pmaVertexColors: 1 + clearStateOnDisable: 0 + tintBlack: 0 + singleSubmesh: 0 + fixDrawOrder: 0 + addNormals: 0 + calculateTangents: 0 + maskInteraction: 0 + maskMaterials: + materialsMaskDisabled: [] + materialsInsideMask: [] + materialsOutsideMask: [] + disableRenderingOnOverride: 1 + physicsPositionInheritanceFactor: {x: 1, y: 1} + physicsRotationInheritanceFactor: 1 + physicsMovementRelativeTo: {fileID: 0} + updateTiming: 1 + unscaledTime: 0 + _animationName: eyeblink + loop: 1 + timeScale: 1 +--- !u!23 &536281180 +MeshRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 536281176} + m_Enabled: 1 + m_CastShadows: 1 + m_ReceiveShadows: 1 + m_DynamicOccludee: 1 + m_StaticShadowCaster: 0 + m_MotionVectors: 1 + m_LightProbeUsage: 1 + m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 + m_RayTraceProcedural: 0 + m_RenderingLayerMask: 1 + m_RendererPriority: 0 + m_Materials: + - {fileID: 2100000, guid: 457f3020c684d35468371a3d1f701bf5, type: 2} + - {fileID: 2100000, guid: 30c7a85032064f0468da374e72de22b0, type: 2} + - {fileID: 2100000, guid: 2944e525a4bfee14b8c5067246eb3e39, type: 2} + - {fileID: 2100000, guid: decd34b04cd07554a9bcd2e85dde7b03, type: 2} + - {fileID: 2100000, guid: bc273223b04e8cb4dbbc77a27f38cc65, type: 2} + - {fileID: 2100000, guid: c0f19210b249a30418ba777c6dbdd1f3, type: 2} + - {fileID: 2100000, guid: bc273223b04e8cb4dbbc77a27f38cc65, type: 2} + - {fileID: 2100000, guid: c0f19210b249a30418ba777c6dbdd1f3, type: 2} + - {fileID: 2100000, guid: bc273223b04e8cb4dbbc77a27f38cc65, type: 2} + - {fileID: 2100000, guid: c0f19210b249a30418ba777c6dbdd1f3, type: 2} + - {fileID: 2100000, guid: bc273223b04e8cb4dbbc77a27f38cc65, type: 2} + - {fileID: 2100000, guid: c0f19210b249a30418ba777c6dbdd1f3, type: 2} + - {fileID: 2100000, guid: bc273223b04e8cb4dbbc77a27f38cc65, type: 2} + - {fileID: 2100000, guid: 30c7a85032064f0468da374e72de22b0, type: 2} + - {fileID: 2100000, guid: bc273223b04e8cb4dbbc77a27f38cc65, type: 2} + - {fileID: 2100000, guid: c0f19210b249a30418ba777c6dbdd1f3, type: 2} + - {fileID: 2100000, guid: bc273223b04e8cb4dbbc77a27f38cc65, type: 2} + - {fileID: 2100000, guid: c0f19210b249a30418ba777c6dbdd1f3, type: 2} + - {fileID: 2100000, guid: bc273223b04e8cb4dbbc77a27f38cc65, type: 2} + - {fileID: 2100000, guid: 2944e525a4bfee14b8c5067246eb3e39, type: 2} + - {fileID: 2100000, guid: c0f19210b249a30418ba777c6dbdd1f3, type: 2} + - {fileID: 2100000, guid: bc273223b04e8cb4dbbc77a27f38cc65, type: 2} + - {fileID: 2100000, guid: c0f19210b249a30418ba777c6dbdd1f3, type: 2} + - {fileID: 2100000, guid: bc273223b04e8cb4dbbc77a27f38cc65, type: 2} + - {fileID: 2100000, guid: c0f19210b249a30418ba777c6dbdd1f3, type: 2} + - {fileID: 2100000, guid: bc273223b04e8cb4dbbc77a27f38cc65, type: 2} + - {fileID: 2100000, guid: c0f19210b249a30418ba777c6dbdd1f3, type: 2} + - {fileID: 2100000, guid: bc273223b04e8cb4dbbc77a27f38cc65, type: 2} + - {fileID: 2100000, guid: c0f19210b249a30418ba777c6dbdd1f3, type: 2} + - {fileID: 2100000, guid: bc273223b04e8cb4dbbc77a27f38cc65, type: 2} + - {fileID: 2100000, guid: c0f19210b249a30418ba777c6dbdd1f3, type: 2} + - {fileID: 2100000, guid: bc273223b04e8cb4dbbc77a27f38cc65, type: 2} + - {fileID: 2100000, guid: c0f19210b249a30418ba777c6dbdd1f3, type: 2} + - {fileID: 2100000, guid: bc273223b04e8cb4dbbc77a27f38cc65, type: 2} + - {fileID: 2100000, guid: c0f19210b249a30418ba777c6dbdd1f3, type: 2} + - {fileID: 2100000, guid: bc273223b04e8cb4dbbc77a27f38cc65, type: 2} + - {fileID: 2100000, guid: c0f19210b249a30418ba777c6dbdd1f3, type: 2} + - {fileID: 2100000, guid: bc273223b04e8cb4dbbc77a27f38cc65, type: 2} + - {fileID: 2100000, guid: c0f19210b249a30418ba777c6dbdd1f3, type: 2} + - {fileID: 2100000, guid: bc273223b04e8cb4dbbc77a27f38cc65, type: 2} + - {fileID: 2100000, guid: 2944e525a4bfee14b8c5067246eb3e39, type: 2} + - {fileID: 2100000, guid: 30c7a85032064f0468da374e72de22b0, type: 2} + m_StaticBatchInfo: + firstSubMesh: 0 + subMeshCount: 0 + m_StaticBatchRoot: {fileID: 0} + m_ProbeAnchor: {fileID: 0} + m_LightProbeVolumeOverride: {fileID: 0} + m_ScaleInLightmap: 1 + m_ReceiveGI: 1 + m_PreserveUVs: 0 + m_IgnoreNormalsForChartDetection: 0 + m_ImportantGI: 0 + m_StitchLightmapSeams: 1 + m_SelectedEditorRenderState: 3 + m_MinimumChartSize: 4 + m_AutoUVMaxDistance: 0.5 + m_AutoUVMaxAngle: 89 + m_LightmapParameters: {fileID: 0} + m_SortingLayerID: 0 + m_SortingLayer: 0 + m_SortingOrder: 0 + m_AdditionalVertexStreams: {fileID: 0} +--- !u!33 &536281181 +MeshFilter: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 536281176} + m_Mesh: {fileID: 0} +--- !u!4 &536281182 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 536281176} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0.5100001, y: -0.26999998, z: 0} + m_LocalScale: {x: 0.14, y: 0.14, z: 0.14} + m_ConstrainProportionsScale: 0 + m_Children: + - {fileID: 315096848} + m_Father: {fileID: 0} + m_RootOrder: 3 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!1 &693495376 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 693495377} + m_Layer: 0 + m_Name: LABELS + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &693495377 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 693495376} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: + - {fileID: 122140873} + m_Father: {fileID: 0} + m_RootOrder: 6 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!1 &817246337 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 817246341} + - component: {fileID: 817246340} + - component: {fileID: 817246339} + - component: {fileID: 817246338} + m_Layer: 0 + m_Name: sack-pro - Skeleton with PhysicsConstraints + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!114 &817246338 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 817246337} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: d247ba06193faa74d9335f5481b2b56c, type: 3} + m_Name: + m_EditorClassIdentifier: + skeletonDataAsset: {fileID: 11400000, guid: 4f6372c21601bf94c9d0190a95e561c2, type: 2} + initialSkinName: + fixPrefabOverrideViaMeshFilter: 2 + initialFlipX: 0 + initialFlipY: 0 + updateWhenInvisible: 3 + separatorSlotNames: [] + zSpacing: 0 + useClipping: 1 + immutableTriangles: 0 + pmaVertexColors: 1 + clearStateOnDisable: 0 + tintBlack: 0 + singleSubmesh: 0 + fixDrawOrder: 0 + addNormals: 0 + calculateTangents: 0 + maskInteraction: 0 + maskMaterials: + materialsMaskDisabled: [] + materialsInsideMask: [] + materialsOutsideMask: [] + disableRenderingOnOverride: 1 + physicsPositionInheritanceFactor: {x: 1, y: 1} + physicsRotationInheritanceFactor: 1 + physicsMovementRelativeTo: {fileID: 0} + updateTiming: 1 + unscaledTime: 0 + _animationName: cape-follow-example + loop: 1 + timeScale: 1 +--- !u!23 &817246339 +MeshRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 817246337} + m_Enabled: 1 + m_CastShadows: 1 + m_ReceiveShadows: 1 + m_DynamicOccludee: 1 + m_StaticShadowCaster: 0 + m_MotionVectors: 1 + m_LightProbeUsage: 1 + m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 + m_RayTraceProcedural: 0 + m_RenderingLayerMask: 1 + m_RendererPriority: 0 + m_Materials: + - {fileID: 2100000, guid: 31fdf99bddb097348b5d1c4fd7166630, type: 2} + m_StaticBatchInfo: + firstSubMesh: 0 + subMeshCount: 0 + m_StaticBatchRoot: {fileID: 0} + m_ProbeAnchor: {fileID: 0} + m_LightProbeVolumeOverride: {fileID: 0} + m_ScaleInLightmap: 1 + m_ReceiveGI: 1 + m_PreserveUVs: 0 + m_IgnoreNormalsForChartDetection: 0 + m_ImportantGI: 0 + m_StitchLightmapSeams: 1 + m_SelectedEditorRenderState: 3 + m_MinimumChartSize: 4 + m_AutoUVMaxDistance: 0.5 + m_AutoUVMaxAngle: 89 + m_LightmapParameters: {fileID: 0} + m_SortingLayerID: 0 + m_SortingLayer: 0 + m_SortingOrder: 0 + m_AdditionalVertexStreams: {fileID: 0} +--- !u!33 &817246340 +MeshFilter: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 817246337} + m_Mesh: {fileID: 0} +--- !u!4 &817246341 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 817246337} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 3.02, y: -0.71, z: 0.14} + m_LocalScale: {x: 0.2, y: 0.2, z: 0.2} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 4 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!1 &820332288 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 820332295} + - component: {fileID: 820332294} + - component: {fileID: 820332293} + - component: {fileID: 820332292} + - component: {fileID: 820332291} + - component: {fileID: 820332290} + m_Layer: 0 + m_Name: celestial-circus - Skeleton with PhysicsConstraints + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!61 &820332290 +BoxCollider2D: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 820332288} + m_Enabled: 1 + m_Density: 1 + m_Material: {fileID: 0} + m_IsTrigger: 1 + m_UsedByEffector: 0 + m_UsedByComposite: 0 + m_Offset: {x: -1.5849767, y: 16.209738} + m_SpriteTilingProperty: + border: {x: 0, y: 0, z: 0, w: 0} + pivot: {x: 0, y: 0} + oldSize: {x: 0, y: 0} + newSize: {x: 0, y: 0} + adaptiveTilingThreshold: 0 + drawMode: 0 + adaptiveTiling: 0 + m_AutoTiling: 0 + serializedVersion: 2 + m_Size: {x: 12.370994, y: 9.541652} + m_EdgeRadius: 0 +--- !u!114 &820332291 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 820332288} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: ac0a69923492d1b4aa7ca656033ec6a3, type: 3} + m_Name: + m_EditorClassIdentifier: +--- !u!114 &820332292 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 820332288} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: d247ba06193faa74d9335f5481b2b56c, type: 3} + m_Name: + m_EditorClassIdentifier: + skeletonDataAsset: {fileID: 11400000, guid: 76d3b704a29fb5a45afe9a0060e0a994, type: 2} + initialSkinName: + fixPrefabOverrideViaMeshFilter: 2 + initialFlipX: 0 + initialFlipY: 0 + updateWhenInvisible: 3 + separatorSlotNames: [] + zSpacing: 0 + useClipping: 1 + immutableTriangles: 0 + pmaVertexColors: 1 + clearStateOnDisable: 0 + tintBlack: 0 + singleSubmesh: 0 + fixDrawOrder: 0 + addNormals: 0 + calculateTangents: 0 + maskInteraction: 0 + maskMaterials: + materialsMaskDisabled: [] + materialsInsideMask: [] + materialsOutsideMask: [] + disableRenderingOnOverride: 1 + physicsPositionInheritanceFactor: {x: 1, y: 1} + physicsRotationInheritanceFactor: 1 + physicsMovementRelativeTo: {fileID: 0} + updateTiming: 1 + unscaledTime: 0 + _animationName: swing + loop: 1 + timeScale: 1 +--- !u!23 &820332293 +MeshRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 820332288} + m_Enabled: 1 + m_CastShadows: 1 + m_ReceiveShadows: 1 + m_DynamicOccludee: 1 + m_StaticShadowCaster: 0 + m_MotionVectors: 1 + m_LightProbeUsage: 1 + m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 + m_RayTraceProcedural: 0 + m_RenderingLayerMask: 1 + m_RendererPriority: 0 + m_Materials: + - {fileID: 2100000, guid: 00053f6ecd9bd9f4fb767f7d020291c2, type: 2} + - {fileID: 2100000, guid: 81604c53618e19448a03d9a36f922a88, type: 2} + - {fileID: 2100000, guid: 00053f6ecd9bd9f4fb767f7d020291c2, type: 2} + - {fileID: 2100000, guid: 81604c53618e19448a03d9a36f922a88, type: 2} + - {fileID: 2100000, guid: 00053f6ecd9bd9f4fb767f7d020291c2, type: 2} + - {fileID: 2100000, guid: 81604c53618e19448a03d9a36f922a88, type: 2} + - {fileID: 2100000, guid: 00053f6ecd9bd9f4fb767f7d020291c2, type: 2} + - {fileID: 2100000, guid: 81604c53618e19448a03d9a36f922a88, type: 2} + - {fileID: 2100000, guid: 00053f6ecd9bd9f4fb767f7d020291c2, type: 2} + - {fileID: 2100000, guid: 81604c53618e19448a03d9a36f922a88, type: 2} + - {fileID: 2100000, guid: 00053f6ecd9bd9f4fb767f7d020291c2, type: 2} + - {fileID: 2100000, guid: 81604c53618e19448a03d9a36f922a88, type: 2} + - {fileID: 2100000, guid: 00053f6ecd9bd9f4fb767f7d020291c2, type: 2} + - {fileID: 2100000, guid: 81604c53618e19448a03d9a36f922a88, type: 2} + - {fileID: 2100000, guid: 00053f6ecd9bd9f4fb767f7d020291c2, type: 2} + - {fileID: 2100000, guid: 81604c53618e19448a03d9a36f922a88, type: 2} + - {fileID: 2100000, guid: 00053f6ecd9bd9f4fb767f7d020291c2, type: 2} + - {fileID: 2100000, guid: 81604c53618e19448a03d9a36f922a88, type: 2} + - {fileID: 2100000, guid: 00053f6ecd9bd9f4fb767f7d020291c2, type: 2} + - {fileID: 2100000, guid: 81604c53618e19448a03d9a36f922a88, type: 2} + - {fileID: 2100000, guid: 00053f6ecd9bd9f4fb767f7d020291c2, type: 2} + - {fileID: 2100000, guid: 51ea24e83c232c34994854424cd89413, type: 2} + - {fileID: 2100000, guid: 00053f6ecd9bd9f4fb767f7d020291c2, type: 2} + - {fileID: 2100000, guid: 51ea24e83c232c34994854424cd89413, type: 2} + - {fileID: 2100000, guid: 00053f6ecd9bd9f4fb767f7d020291c2, type: 2} + - {fileID: 2100000, guid: 51ea24e83c232c34994854424cd89413, type: 2} + - {fileID: 2100000, guid: 00053f6ecd9bd9f4fb767f7d020291c2, type: 2} + - {fileID: 2100000, guid: 81604c53618e19448a03d9a36f922a88, type: 2} + - {fileID: 2100000, guid: 00053f6ecd9bd9f4fb767f7d020291c2, type: 2} + - {fileID: 2100000, guid: 51ea24e83c232c34994854424cd89413, type: 2} + - {fileID: 2100000, guid: 00053f6ecd9bd9f4fb767f7d020291c2, type: 2} + - {fileID: 2100000, guid: 81604c53618e19448a03d9a36f922a88, type: 2} + m_StaticBatchInfo: + firstSubMesh: 0 + subMeshCount: 0 + m_StaticBatchRoot: {fileID: 0} + m_ProbeAnchor: {fileID: 0} + m_LightProbeVolumeOverride: {fileID: 0} + m_ScaleInLightmap: 1 + m_ReceiveGI: 1 + m_PreserveUVs: 0 + m_IgnoreNormalsForChartDetection: 0 + m_ImportantGI: 0 + m_StitchLightmapSeams: 1 + m_SelectedEditorRenderState: 3 + m_MinimumChartSize: 4 + m_AutoUVMaxDistance: 0.5 + m_AutoUVMaxAngle: 89 + m_LightmapParameters: {fileID: 0} + m_SortingLayerID: 0 + m_SortingLayer: 0 + m_SortingOrder: 0 + m_AdditionalVertexStreams: {fileID: 0} +--- !u!33 &820332294 +MeshFilter: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 820332288} + m_Mesh: {fileID: 0} +--- !u!4 &820332295 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 820332288} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: -5.16, y: -0.78, z: 0} + m_LocalScale: {x: 0.2, y: 0.2, z: 0.2} + m_ConstrainProportionsScale: 0 + m_Children: + - {fileID: 153039240} + m_Father: {fileID: 0} + m_RootOrder: 1 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!1 &1003754205 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1003754206} + - component: {fileID: 1003754208} + - component: {fileID: 1003754207} + m_Layer: 0 + m_Name: Drag Me Label + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &1003754206 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1003754205} + m_LocalRotation: {x: -0, y: -0, z: 0.0042760437, w: 0.9999909} + m_LocalPosition: {x: 0.02, y: 2.53, z: -0.65} + m_LocalScale: {x: 3.3333328, y: 3.3333328, z: 3.3333328} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 153039240} + m_RootOrder: -1 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!102 &1003754207 +TextMesh: + serializedVersion: 3 + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1003754205} + m_Text: Drag me! + m_OffsetZ: 0 + m_CharacterSize: 0.1 + m_LineSpacing: 1 + m_Anchor: 4 + m_Alignment: 1 + m_TabSize: 4 + m_FontSize: 40 + m_FontStyle: 1 + m_RichText: 1 + m_Font: {fileID: 0} + m_Color: + serializedVersion: 2 + rgba: 4280156415 +--- !u!23 &1003754208 +MeshRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1003754205} + m_Enabled: 1 + m_CastShadows: 1 + m_ReceiveShadows: 1 + m_DynamicOccludee: 1 + m_StaticShadowCaster: 0 + m_MotionVectors: 1 + m_LightProbeUsage: 1 + m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 + m_RayTraceProcedural: 0 + m_RenderingLayerMask: 1 + m_RendererPriority: 0 + m_Materials: + - {fileID: 10100, guid: 0000000000000000e000000000000000, type: 0} + m_StaticBatchInfo: + firstSubMesh: 0 + subMeshCount: 0 + m_StaticBatchRoot: {fileID: 0} + m_ProbeAnchor: {fileID: 0} + m_LightProbeVolumeOverride: {fileID: 0} + m_ScaleInLightmap: 1 + m_ReceiveGI: 1 + m_PreserveUVs: 0 + m_IgnoreNormalsForChartDetection: 0 + m_ImportantGI: 0 + m_StitchLightmapSeams: 1 + m_SelectedEditorRenderState: 3 + m_MinimumChartSize: 4 + m_AutoUVMaxDistance: 0.5 + m_AutoUVMaxAngle: 89 + m_LightmapParameters: {fileID: 0} + m_SortingLayerID: 0 + m_SortingLayer: 0 + m_SortingOrder: 0 + m_AdditionalVertexStreams: {fileID: 0} +--- !u!1 &1158336906 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1158336907} + - component: {fileID: 1158336909} + - component: {fileID: 1158336908} + m_Layer: 0 + m_Name: Particle System + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &1158336907 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1158336906} + m_LocalRotation: {x: -0, y: -0, z: 0.0042760437, w: 0.9999909} + m_LocalPosition: {x: 0.04, y: -6.08, z: 0} + m_LocalScale: {x: 0.7, y: 0.7, z: 0.7} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 315096848} + m_RootOrder: -1 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!199 &1158336908 +ParticleSystemRenderer: + serializedVersion: 6 + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1158336906} + m_Enabled: 1 + m_CastShadows: 0 + m_ReceiveShadows: 0 + m_DynamicOccludee: 1 + m_StaticShadowCaster: 0 + m_MotionVectors: 1 + m_LightProbeUsage: 1 + m_ReflectionProbeUsage: 0 + m_RayTracingMode: 0 + m_RayTraceProcedural: 0 + m_RenderingLayerMask: 1 + m_RendererPriority: 0 + m_Materials: + - {fileID: 10754, guid: 0000000000000000f000000000000000, type: 0} + m_StaticBatchInfo: + firstSubMesh: 0 + subMeshCount: 0 + m_StaticBatchRoot: {fileID: 0} + m_ProbeAnchor: {fileID: 0} + m_LightProbeVolumeOverride: {fileID: 0} + m_ScaleInLightmap: 1 + m_ReceiveGI: 1 + m_PreserveUVs: 0 + m_IgnoreNormalsForChartDetection: 0 + m_ImportantGI: 0 + m_StitchLightmapSeams: 1 + m_SelectedEditorRenderState: 0 + m_MinimumChartSize: 4 + m_AutoUVMaxDistance: 0.5 + m_AutoUVMaxAngle: 89 + m_LightmapParameters: {fileID: 0} + m_SortingLayerID: 0 + m_SortingLayer: 0 + m_SortingOrder: 14 + m_RenderMode: 0 + m_MeshDistribution: 0 + m_SortMode: 0 + m_MinParticleSize: 0 + m_MaxParticleSize: 0.5 + m_CameraVelocityScale: 0 + m_VelocityScale: 0 + m_LengthScale: 2 + m_SortingFudge: 0 + m_NormalDirection: 1 + m_ShadowBias: 0 + m_RenderAlignment: 0 + m_Pivot: {x: 0, y: 0, z: 0} + m_Flip: {x: 0, y: 0, z: 0} + m_UseCustomVertexStreams: 0 + m_EnableGPUInstancing: 0 + m_ApplyActiveColorSpace: 0 + m_AllowRoll: 1 + m_FreeformStretching: 0 + m_RotateWithStretchDirection: 1 + m_VertexStreams: 0001030405 + m_Mesh: {fileID: 0} + m_Mesh1: {fileID: 0} + m_Mesh2: {fileID: 0} + m_Mesh3: {fileID: 0} + m_MeshWeighting: 1 + m_MeshWeighting1: 1 + m_MeshWeighting2: 1 + m_MeshWeighting3: 1 + m_MaskInteraction: 0 +--- !u!198 &1158336909 +ParticleSystem: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1158336906} + serializedVersion: 8 + lengthInSec: 5 + simulationSpeed: 1 + stopAction: 0 + cullingMode: 3 + ringBufferMode: 0 + ringBufferLoopRange: {x: 0, y: 1} + emitterVelocityMode: 1 + looping: 1 + prewarm: 1 + playOnAwake: 1 + useUnscaledTime: 0 + autoRandomSeed: 1 + startDelay: + serializedVersion: 2 + minMaxState: 0 + scalar: 0 + minScalar: 0 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + moveWithTransform: 1 + moveWithCustomTransform: {fileID: 0} + scalingMode: 1 + randomSeed: 0 + InitialModule: + serializedVersion: 3 + enabled: 1 + startLifetime: + serializedVersion: 2 + minMaxState: 0 + scalar: 0.5 + minScalar: 5 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + startSpeed: + serializedVersion: 2 + minMaxState: 0 + scalar: 5 + minScalar: 5 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + startColor: + serializedVersion: 2 + minMaxState: 0 + minColor: {r: 1, g: 1, b: 1, a: 1} + maxColor: {r: 1, g: 1, b: 1, a: 1} + maxGradient: + serializedVersion: 2 + key0: {r: 1, g: 1, b: 1, a: 1} + key1: {r: 1, g: 1, b: 1, a: 1} + key2: {r: 0, g: 0, b: 0, a: 0} + key3: {r: 0, g: 0, b: 0, a: 0} + key4: {r: 0, g: 0, b: 0, a: 0} + key5: {r: 0, g: 0, b: 0, a: 0} + key6: {r: 0, g: 0, b: 0, a: 0} + key7: {r: 0, g: 0, b: 0, a: 0} + ctime0: 0 + ctime1: 65535 + ctime2: 0 + ctime3: 0 + ctime4: 0 + ctime5: 0 + ctime6: 0 + ctime7: 0 + atime0: 0 + atime1: 65535 + atime2: 0 + atime3: 0 + atime4: 0 + atime5: 0 + atime6: 0 + atime7: 0 + m_Mode: 0 + m_NumColorKeys: 2 + m_NumAlphaKeys: 2 + minGradient: + serializedVersion: 2 + key0: {r: 1, g: 1, b: 1, a: 1} + key1: {r: 1, g: 1, b: 1, a: 1} + key2: {r: 0, g: 0, b: 0, a: 0} + key3: {r: 0, g: 0, b: 0, a: 0} + key4: {r: 0, g: 0, b: 0, a: 0} + key5: {r: 0, g: 0, b: 0, a: 0} + key6: {r: 0, g: 0, b: 0, a: 0} + key7: {r: 0, g: 0, b: 0, a: 0} + ctime0: 0 + ctime1: 65535 + ctime2: 0 + ctime3: 0 + ctime4: 0 + ctime5: 0 + ctime6: 0 + ctime7: 0 + atime0: 0 + atime1: 65535 + atime2: 0 + atime3: 0 + atime4: 0 + atime5: 0 + atime6: 0 + atime7: 0 + m_Mode: 0 + m_NumColorKeys: 2 + m_NumAlphaKeys: 2 + startSize: + serializedVersion: 2 + minMaxState: 3 + scalar: 0.1 + minScalar: 0.05 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 0 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0.5 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 0 + startSizeY: + serializedVersion: 2 + minMaxState: 3 + scalar: 1 + minScalar: 0 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 0 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 0 + startSizeZ: + serializedVersion: 2 + minMaxState: 3 + scalar: 1 + minScalar: 0 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 0 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 0 + startRotationX: + serializedVersion: 2 + minMaxState: 3 + scalar: 0 + minScalar: 0 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 0 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 0 + startRotationY: + serializedVersion: 2 + minMaxState: 3 + scalar: 0 + minScalar: 0 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 0 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 0 + startRotation: + serializedVersion: 2 + minMaxState: 3 + scalar: 0.87266463 + minScalar: -0.87266463 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 0 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: -1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 0 + randomizeRotationDirection: 0 + gravitySource: 0 + maxNumParticles: 1000 + customEmitterVelocity: {x: 0, y: 0, z: 0} + size3D: 0 + rotation3D: 0 + gravityModifier: + serializedVersion: 2 + minMaxState: 0 + scalar: 0 + minScalar: 0 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + ShapeModule: + serializedVersion: 6 + enabled: 1 + type: 10 + angle: 25 + length: 5 + boxThickness: {x: 0, y: 0, z: 0} + radiusThickness: 0 + donutRadius: 0.2 + m_Position: {x: 0, y: 0, z: 0} + m_Rotation: {x: 0, y: 0, z: 0} + m_Scale: {x: 1, y: 1, z: 1} + placementMode: 0 + m_MeshMaterialIndex: 0 + m_MeshNormalOffset: 0 + m_MeshSpawn: + mode: 0 + spread: 0 + speed: + serializedVersion: 2 + minMaxState: 0 + scalar: 1 + minScalar: 1 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + m_Mesh: {fileID: 0} + m_MeshRenderer: {fileID: 0} + m_SkinnedMeshRenderer: {fileID: 0} + m_Sprite: {fileID: 0} + m_SpriteRenderer: {fileID: 0} + m_UseMeshMaterialIndex: 0 + m_UseMeshColors: 1 + alignToDirection: 0 + m_Texture: {fileID: 0} + m_TextureClipChannel: 3 + m_TextureClipThreshold: 0 + m_TextureUVChannel: 0 + m_TextureColorAffectsParticles: 1 + m_TextureAlphaAffectsParticles: 1 + m_TextureBilinearFiltering: 0 + randomDirectionAmount: 0 + sphericalDirectionAmount: 0 + randomPositionAmount: 0 + radius: + value: 0.444762 + mode: 0 + spread: 0 + speed: + serializedVersion: 2 + minMaxState: 0 + scalar: 1 + minScalar: 1 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + arc: + value: 360 + mode: 0 + spread: 0 + speed: + serializedVersion: 2 + minMaxState: 0 + scalar: 1 + minScalar: 1 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + EmissionModule: + enabled: 1 + serializedVersion: 4 + rateOverTime: + serializedVersion: 2 + minMaxState: 0 + scalar: 20 + minScalar: 10 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + rateOverDistance: + serializedVersion: 2 + minMaxState: 0 + scalar: 0 + minScalar: 0 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + m_BurstCount: 0 + m_Bursts: [] + SizeModule: + enabled: 0 + curve: + serializedVersion: 2 + minMaxState: 1 + scalar: 1 + minScalar: 1 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + y: + serializedVersion: 2 + minMaxState: 1 + scalar: 1 + minScalar: 1 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + z: + serializedVersion: 2 + minMaxState: 1 + scalar: 1 + minScalar: 1 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + separateAxes: 0 + RotationModule: + enabled: 1 + x: + serializedVersion: 2 + minMaxState: 3 + scalar: 0 + minScalar: 0 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 0 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 0 + y: + serializedVersion: 2 + minMaxState: 3 + scalar: 0 + minScalar: 0 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 0 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 0 + curve: + serializedVersion: 2 + minMaxState: 3 + scalar: 5.2359877 + minScalar: -5.2359877 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 0 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: -1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 0 + separateAxes: 0 + ColorModule: + enabled: 1 + gradient: + serializedVersion: 2 + minMaxState: 1 + minColor: {r: 1, g: 1, b: 1, a: 1} + maxColor: {r: 1, g: 1, b: 1, a: 1} + maxGradient: + serializedVersion: 2 + key0: {r: 1, g: 1, b: 1, a: 1} + key1: {r: 1, g: 1, b: 1, a: 0} + key2: {r: 0, g: 0, b: 0, a: 0} + key3: {r: 0, g: 0, b: 0, a: 0} + key4: {r: 0, g: 0, b: 0, a: 0} + key5: {r: 0, g: 0, b: 0, a: 0} + key6: {r: 0, g: 0, b: 0, a: 0} + key7: {r: 0, g: 0, b: 0, a: 0} + ctime0: 0 + ctime1: 65535 + ctime2: 0 + ctime3: 0 + ctime4: 0 + ctime5: 0 + ctime6: 0 + ctime7: 0 + atime0: 0 + atime1: 65535 + atime2: 0 + atime3: 0 + atime4: 0 + atime5: 0 + atime6: 0 + atime7: 0 + m_Mode: 0 + m_NumColorKeys: 2 + m_NumAlphaKeys: 2 + minGradient: + serializedVersion: 2 + key0: {r: 1, g: 1, b: 1, a: 1} + key1: {r: 1, g: 1, b: 1, a: 1} + key2: {r: 0, g: 0, b: 0, a: 0} + key3: {r: 0, g: 0, b: 0, a: 0} + key4: {r: 0, g: 0, b: 0, a: 0} + key5: {r: 0, g: 0, b: 0, a: 0} + key6: {r: 0, g: 0, b: 0, a: 0} + key7: {r: 0, g: 0, b: 0, a: 0} + ctime0: 0 + ctime1: 65535 + ctime2: 0 + ctime3: 0 + ctime4: 0 + ctime5: 0 + ctime6: 0 + ctime7: 0 + atime0: 0 + atime1: 65535 + atime2: 0 + atime3: 0 + atime4: 0 + atime5: 0 + atime6: 0 + atime7: 0 + m_Mode: 0 + m_NumColorKeys: 2 + m_NumAlphaKeys: 2 + UVModule: + serializedVersion: 2 + enabled: 0 + mode: 0 + timeMode: 0 + fps: 30 + frameOverTime: + serializedVersion: 2 + minMaxState: 1 + scalar: 0.9999 + minScalar: 0.9999 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 1 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 1 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 1 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 1 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + startFrame: + serializedVersion: 2 + minMaxState: 0 + scalar: 0 + minScalar: 0 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + speedRange: {x: 0, y: 1} + tilesX: 1 + tilesY: 1 + animationType: 0 + rowIndex: 0 + cycles: 1 + uvChannelMask: -1 + rowMode: 1 + sprites: + - sprite: {fileID: 0} + flipU: 0 + flipV: 0 + VelocityModule: + enabled: 0 + x: + serializedVersion: 2 + minMaxState: 0 + scalar: 0 + minScalar: 0 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + y: + serializedVersion: 2 + minMaxState: 0 + scalar: 0 + minScalar: 0 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + z: + serializedVersion: 2 + minMaxState: 0 + scalar: 0 + minScalar: 0 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + orbitalX: + serializedVersion: 2 + minMaxState: 0 + scalar: 0 + minScalar: 0 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + orbitalY: + serializedVersion: 2 + minMaxState: 0 + scalar: 0 + minScalar: 0 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + orbitalZ: + serializedVersion: 2 + minMaxState: 0 + scalar: 0 + minScalar: 0 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + orbitalOffsetX: + serializedVersion: 2 + minMaxState: 0 + scalar: 0 + minScalar: 0 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + orbitalOffsetY: + serializedVersion: 2 + minMaxState: 0 + scalar: 0 + minScalar: 0 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + orbitalOffsetZ: + serializedVersion: 2 + minMaxState: 0 + scalar: 0 + minScalar: 0 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + radial: + serializedVersion: 2 + minMaxState: 0 + scalar: 0 + minScalar: 0 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + speedModifier: + serializedVersion: 2 + minMaxState: 0 + scalar: 1 + minScalar: 1 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + inWorldSpace: 0 + InheritVelocityModule: + enabled: 0 + m_Mode: 0 + m_Curve: + serializedVersion: 2 + minMaxState: 0 + scalar: 0 + minScalar: 0 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + LifetimeByEmitterSpeedModule: + enabled: 0 + m_Curve: + serializedVersion: 2 + minMaxState: 1 + scalar: 1 + minScalar: 1 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: -0.8 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0.2 + inSlope: -0.8 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + m_Range: {x: 0, y: 1} + ForceModule: + enabled: 0 + x: + serializedVersion: 2 + minMaxState: 0 + scalar: 0 + minScalar: 0 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + y: + serializedVersion: 2 + minMaxState: 0 + scalar: 0 + minScalar: 0 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + z: + serializedVersion: 2 + minMaxState: 0 + scalar: 0 + minScalar: 0 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + inWorldSpace: 0 + randomizePerFrame: 0 + ExternalForcesModule: + serializedVersion: 2 + enabled: 0 + multiplierCurve: + serializedVersion: 2 + minMaxState: 0 + scalar: 1 + minScalar: 1 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + influenceFilter: 0 + influenceMask: + serializedVersion: 2 + m_Bits: 4294967295 + influenceList: [] + ClampVelocityModule: + enabled: 1 + x: + serializedVersion: 2 + minMaxState: 0 + scalar: 1 + minScalar: 1 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + y: + serializedVersion: 2 + minMaxState: 0 + scalar: 1 + minScalar: 1 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + z: + serializedVersion: 2 + minMaxState: 0 + scalar: 1 + minScalar: 1 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + magnitude: + serializedVersion: 2 + minMaxState: 0 + scalar: 1 + minScalar: 1 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + separateAxis: 0 + inWorldSpace: 0 + multiplyDragByParticleSize: 1 + multiplyDragByParticleVelocity: 1 + dampen: 1 + drag: + serializedVersion: 2 + minMaxState: 0 + scalar: 0 + minScalar: 0 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + NoiseModule: + enabled: 0 + strength: + serializedVersion: 2 + minMaxState: 0 + scalar: 1 + minScalar: 1 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + strengthY: + serializedVersion: 2 + minMaxState: 0 + scalar: 1 + minScalar: 1 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + strengthZ: + serializedVersion: 2 + minMaxState: 0 + scalar: 1 + minScalar: 1 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + separateAxes: 0 + frequency: 0.5 + damping: 1 + octaves: 1 + octaveMultiplier: 0.5 + octaveScale: 2 + quality: 2 + scrollSpeed: + serializedVersion: 2 + minMaxState: 0 + scalar: 0 + minScalar: 0 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + remap: + serializedVersion: 2 + minMaxState: 1 + scalar: 1 + minScalar: 1 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: -1 + inSlope: 0 + outSlope: 2 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 2 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + remapY: + serializedVersion: 2 + minMaxState: 1 + scalar: 1 + minScalar: 1 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: -1 + inSlope: 0 + outSlope: 2 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 2 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + remapZ: + serializedVersion: 2 + minMaxState: 1 + scalar: 1 + minScalar: 1 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: -1 + inSlope: 0 + outSlope: 2 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 2 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + remapEnabled: 0 + positionAmount: + serializedVersion: 2 + minMaxState: 0 + scalar: 1 + minScalar: 1 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + rotationAmount: + serializedVersion: 2 + minMaxState: 0 + scalar: 0 + minScalar: 0 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + sizeAmount: + serializedVersion: 2 + minMaxState: 0 + scalar: 0 + minScalar: 0 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + SizeBySpeedModule: + enabled: 0 + curve: + serializedVersion: 2 + minMaxState: 1 + scalar: 1 + minScalar: 1 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + y: + serializedVersion: 2 + minMaxState: 1 + scalar: 1 + minScalar: 1 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + z: + serializedVersion: 2 + minMaxState: 1 + scalar: 1 + minScalar: 1 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + range: {x: 0, y: 1} + separateAxes: 0 + RotationBySpeedModule: + enabled: 0 + x: + serializedVersion: 2 + minMaxState: 0 + scalar: 0 + minScalar: 0 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + y: + serializedVersion: 2 + minMaxState: 0 + scalar: 0 + minScalar: 0 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + curve: + serializedVersion: 2 + minMaxState: 0 + scalar: 0.7853981 + minScalar: 0.7853982 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + separateAxes: 0 + range: {x: 0, y: 1} + ColorBySpeedModule: + enabled: 0 + gradient: + serializedVersion: 2 + minMaxState: 1 + minColor: {r: 1, g: 1, b: 1, a: 1} + maxColor: {r: 1, g: 1, b: 1, a: 1} + maxGradient: + serializedVersion: 2 + key0: {r: 1, g: 1, b: 1, a: 1} + key1: {r: 1, g: 1, b: 1, a: 1} + key2: {r: 0, g: 0, b: 0, a: 0} + key3: {r: 0, g: 0, b: 0, a: 0} + key4: {r: 0, g: 0, b: 0, a: 0} + key5: {r: 0, g: 0, b: 0, a: 0} + key6: {r: 0, g: 0, b: 0, a: 0} + key7: {r: 0, g: 0, b: 0, a: 0} + ctime0: 0 + ctime1: 65535 + ctime2: 0 + ctime3: 0 + ctime4: 0 + ctime5: 0 + ctime6: 0 + ctime7: 0 + atime0: 0 + atime1: 65535 + atime2: 0 + atime3: 0 + atime4: 0 + atime5: 0 + atime6: 0 + atime7: 0 + m_Mode: 0 + m_NumColorKeys: 2 + m_NumAlphaKeys: 2 + minGradient: + serializedVersion: 2 + key0: {r: 1, g: 1, b: 1, a: 1} + key1: {r: 1, g: 1, b: 1, a: 1} + key2: {r: 0, g: 0, b: 0, a: 0} + key3: {r: 0, g: 0, b: 0, a: 0} + key4: {r: 0, g: 0, b: 0, a: 0} + key5: {r: 0, g: 0, b: 0, a: 0} + key6: {r: 0, g: 0, b: 0, a: 0} + key7: {r: 0, g: 0, b: 0, a: 0} + ctime0: 0 + ctime1: 65535 + ctime2: 0 + ctime3: 0 + ctime4: 0 + ctime5: 0 + ctime6: 0 + ctime7: 0 + atime0: 0 + atime1: 65535 + atime2: 0 + atime3: 0 + atime4: 0 + atime5: 0 + atime6: 0 + atime7: 0 + m_Mode: 0 + m_NumColorKeys: 2 + m_NumAlphaKeys: 2 + range: {x: 0, y: 1} + CollisionModule: + enabled: 0 + serializedVersion: 4 + type: 0 + collisionMode: 0 + colliderForce: 0 + multiplyColliderForceByParticleSize: 0 + multiplyColliderForceByParticleSpeed: 0 + multiplyColliderForceByCollisionAngle: 1 + m_Planes: + - {fileID: 0} + - {fileID: 0} + - {fileID: 0} + - {fileID: 0} + - {fileID: 0} + - {fileID: 0} + m_Dampen: + serializedVersion: 2 + minMaxState: 0 + scalar: 0 + minScalar: 0 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + m_Bounce: + serializedVersion: 2 + minMaxState: 0 + scalar: 1 + minScalar: 1 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + m_EnergyLossOnCollision: + serializedVersion: 2 + minMaxState: 0 + scalar: 0 + minScalar: 0 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minKillSpeed: 0 + maxKillSpeed: 10000 + radiusScale: 1 + collidesWith: + serializedVersion: 2 + m_Bits: 4294967295 + maxCollisionShapes: 256 + quality: 0 + voxelSize: 0.5 + collisionMessages: 0 + collidesWithDynamic: 1 + interiorCollisions: 1 + TriggerModule: + enabled: 0 + serializedVersion: 2 + inside: 1 + outside: 0 + enter: 0 + exit: 0 + colliderQueryMode: 0 + radiusScale: 1 + primitives: + - {fileID: 0} + - {fileID: 0} + - {fileID: 0} + - {fileID: 0} + - {fileID: 0} + - {fileID: 0} + SubModule: + serializedVersion: 2 + enabled: 0 + subEmitters: + - serializedVersion: 3 + emitter: {fileID: 0} + type: 0 + properties: 0 + emitProbability: 1 + LightsModule: + enabled: 0 + ratio: 0 + light: {fileID: 0} + randomDistribution: 1 + color: 1 + range: 1 + intensity: 1 + rangeCurve: + serializedVersion: 2 + minMaxState: 0 + scalar: 1 + minScalar: 1 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + intensityCurve: + serializedVersion: 2 + minMaxState: 0 + scalar: 1 + minScalar: 1 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + maxLights: 20 + TrailModule: + enabled: 0 + mode: 0 + ratio: 1 + lifetime: + serializedVersion: 2 + minMaxState: 0 + scalar: 1 + minScalar: 1 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minVertexDistance: 0.2 + textureMode: 0 + textureScale: {x: 1, y: 1} + ribbonCount: 1 + shadowBias: 0.5 + worldSpace: 0 + dieWithParticles: 1 + sizeAffectsWidth: 1 + sizeAffectsLifetime: 0 + inheritParticleColor: 1 + generateLightingData: 0 + splitSubEmitterRibbons: 0 + attachRibbonsToTransform: 0 + colorOverLifetime: + serializedVersion: 2 + minMaxState: 0 + minColor: {r: 1, g: 1, b: 1, a: 1} + maxColor: {r: 1, g: 1, b: 1, a: 1} + maxGradient: + serializedVersion: 2 + key0: {r: 1, g: 1, b: 1, a: 1} + key1: {r: 1, g: 1, b: 1, a: 1} + key2: {r: 0, g: 0, b: 0, a: 0} + key3: {r: 0, g: 0, b: 0, a: 0} + key4: {r: 0, g: 0, b: 0, a: 0} + key5: {r: 0, g: 0, b: 0, a: 0} + key6: {r: 0, g: 0, b: 0, a: 0} + key7: {r: 0, g: 0, b: 0, a: 0} + ctime0: 0 + ctime1: 65535 + ctime2: 0 + ctime3: 0 + ctime4: 0 + ctime5: 0 + ctime6: 0 + ctime7: 0 + atime0: 0 + atime1: 65535 + atime2: 0 + atime3: 0 + atime4: 0 + atime5: 0 + atime6: 0 + atime7: 0 + m_Mode: 0 + m_NumColorKeys: 2 + m_NumAlphaKeys: 2 + minGradient: + serializedVersion: 2 + key0: {r: 1, g: 1, b: 1, a: 1} + key1: {r: 1, g: 1, b: 1, a: 1} + key2: {r: 0, g: 0, b: 0, a: 0} + key3: {r: 0, g: 0, b: 0, a: 0} + key4: {r: 0, g: 0, b: 0, a: 0} + key5: {r: 0, g: 0, b: 0, a: 0} + key6: {r: 0, g: 0, b: 0, a: 0} + key7: {r: 0, g: 0, b: 0, a: 0} + ctime0: 0 + ctime1: 65535 + ctime2: 0 + ctime3: 0 + ctime4: 0 + ctime5: 0 + ctime6: 0 + ctime7: 0 + atime0: 0 + atime1: 65535 + atime2: 0 + atime3: 0 + atime4: 0 + atime5: 0 + atime6: 0 + atime7: 0 + m_Mode: 0 + m_NumColorKeys: 2 + m_NumAlphaKeys: 2 + widthOverTrail: + serializedVersion: 2 + minMaxState: 0 + scalar: 1 + minScalar: 1 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + colorOverTrail: + serializedVersion: 2 + minMaxState: 0 + minColor: {r: 1, g: 1, b: 1, a: 1} + maxColor: {r: 1, g: 1, b: 1, a: 1} + maxGradient: + serializedVersion: 2 + key0: {r: 1, g: 1, b: 1, a: 1} + key1: {r: 1, g: 1, b: 1, a: 1} + key2: {r: 0, g: 0, b: 0, a: 0} + key3: {r: 0, g: 0, b: 0, a: 0} + key4: {r: 0, g: 0, b: 0, a: 0} + key5: {r: 0, g: 0, b: 0, a: 0} + key6: {r: 0, g: 0, b: 0, a: 0} + key7: {r: 0, g: 0, b: 0, a: 0} + ctime0: 0 + ctime1: 65535 + ctime2: 0 + ctime3: 0 + ctime4: 0 + ctime5: 0 + ctime6: 0 + ctime7: 0 + atime0: 0 + atime1: 65535 + atime2: 0 + atime3: 0 + atime4: 0 + atime5: 0 + atime6: 0 + atime7: 0 + m_Mode: 0 + m_NumColorKeys: 2 + m_NumAlphaKeys: 2 + minGradient: + serializedVersion: 2 + key0: {r: 1, g: 1, b: 1, a: 1} + key1: {r: 1, g: 1, b: 1, a: 1} + key2: {r: 0, g: 0, b: 0, a: 0} + key3: {r: 0, g: 0, b: 0, a: 0} + key4: {r: 0, g: 0, b: 0, a: 0} + key5: {r: 0, g: 0, b: 0, a: 0} + key6: {r: 0, g: 0, b: 0, a: 0} + key7: {r: 0, g: 0, b: 0, a: 0} + ctime0: 0 + ctime1: 65535 + ctime2: 0 + ctime3: 0 + ctime4: 0 + ctime5: 0 + ctime6: 0 + ctime7: 0 + atime0: 0 + atime1: 65535 + atime2: 0 + atime3: 0 + atime4: 0 + atime5: 0 + atime6: 0 + atime7: 0 + m_Mode: 0 + m_NumColorKeys: 2 + m_NumAlphaKeys: 2 + CustomDataModule: + enabled: 0 + mode0: 0 + vectorComponentCount0: 4 + color0: + serializedVersion: 2 + minMaxState: 0 + minColor: {r: 1, g: 1, b: 1, a: 1} + maxColor: {r: 1, g: 1, b: 1, a: 1} + maxGradient: + serializedVersion: 2 + key0: {r: 1, g: 1, b: 1, a: 1} + key1: {r: 1, g: 1, b: 1, a: 1} + key2: {r: 0, g: 0, b: 0, a: 0} + key3: {r: 0, g: 0, b: 0, a: 0} + key4: {r: 0, g: 0, b: 0, a: 0} + key5: {r: 0, g: 0, b: 0, a: 0} + key6: {r: 0, g: 0, b: 0, a: 0} + key7: {r: 0, g: 0, b: 0, a: 0} + ctime0: 0 + ctime1: 65535 + ctime2: 0 + ctime3: 0 + ctime4: 0 + ctime5: 0 + ctime6: 0 + ctime7: 0 + atime0: 0 + atime1: 65535 + atime2: 0 + atime3: 0 + atime4: 0 + atime5: 0 + atime6: 0 + atime7: 0 + m_Mode: 0 + m_NumColorKeys: 2 + m_NumAlphaKeys: 2 + minGradient: + serializedVersion: 2 + key0: {r: 1, g: 1, b: 1, a: 1} + key1: {r: 1, g: 1, b: 1, a: 1} + key2: {r: 0, g: 0, b: 0, a: 0} + key3: {r: 0, g: 0, b: 0, a: 0} + key4: {r: 0, g: 0, b: 0, a: 0} + key5: {r: 0, g: 0, b: 0, a: 0} + key6: {r: 0, g: 0, b: 0, a: 0} + key7: {r: 0, g: 0, b: 0, a: 0} + ctime0: 0 + ctime1: 65535 + ctime2: 0 + ctime3: 0 + ctime4: 0 + ctime5: 0 + ctime6: 0 + ctime7: 0 + atime0: 0 + atime1: 65535 + atime2: 0 + atime3: 0 + atime4: 0 + atime5: 0 + atime6: 0 + atime7: 0 + m_Mode: 0 + m_NumColorKeys: 2 + m_NumAlphaKeys: 2 + colorLabel0: Color + vector0_0: + serializedVersion: 2 + minMaxState: 0 + scalar: 0 + minScalar: 0 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + vectorLabel0_0: X + vector0_1: + serializedVersion: 2 + minMaxState: 0 + scalar: 0 + minScalar: 0 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + vectorLabel0_1: Y + vector0_2: + serializedVersion: 2 + minMaxState: 0 + scalar: 0 + minScalar: 0 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + vectorLabel0_2: Z + vector0_3: + serializedVersion: 2 + minMaxState: 0 + scalar: 0 + minScalar: 0 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + vectorLabel0_3: W + mode1: 0 + vectorComponentCount1: 4 + color1: + serializedVersion: 2 + minMaxState: 0 + minColor: {r: 1, g: 1, b: 1, a: 1} + maxColor: {r: 1, g: 1, b: 1, a: 1} + maxGradient: + serializedVersion: 2 + key0: {r: 1, g: 1, b: 1, a: 1} + key1: {r: 1, g: 1, b: 1, a: 1} + key2: {r: 0, g: 0, b: 0, a: 0} + key3: {r: 0, g: 0, b: 0, a: 0} + key4: {r: 0, g: 0, b: 0, a: 0} + key5: {r: 0, g: 0, b: 0, a: 0} + key6: {r: 0, g: 0, b: 0, a: 0} + key7: {r: 0, g: 0, b: 0, a: 0} + ctime0: 0 + ctime1: 65535 + ctime2: 0 + ctime3: 0 + ctime4: 0 + ctime5: 0 + ctime6: 0 + ctime7: 0 + atime0: 0 + atime1: 65535 + atime2: 0 + atime3: 0 + atime4: 0 + atime5: 0 + atime6: 0 + atime7: 0 + m_Mode: 0 + m_NumColorKeys: 2 + m_NumAlphaKeys: 2 + minGradient: + serializedVersion: 2 + key0: {r: 1, g: 1, b: 1, a: 1} + key1: {r: 1, g: 1, b: 1, a: 1} + key2: {r: 0, g: 0, b: 0, a: 0} + key3: {r: 0, g: 0, b: 0, a: 0} + key4: {r: 0, g: 0, b: 0, a: 0} + key5: {r: 0, g: 0, b: 0, a: 0} + key6: {r: 0, g: 0, b: 0, a: 0} + key7: {r: 0, g: 0, b: 0, a: 0} + ctime0: 0 + ctime1: 65535 + ctime2: 0 + ctime3: 0 + ctime4: 0 + ctime5: 0 + ctime6: 0 + ctime7: 0 + atime0: 0 + atime1: 65535 + atime2: 0 + atime3: 0 + atime4: 0 + atime5: 0 + atime6: 0 + atime7: 0 + m_Mode: 0 + m_NumColorKeys: 2 + m_NumAlphaKeys: 2 + colorLabel1: Color + vector1_0: + serializedVersion: 2 + minMaxState: 0 + scalar: 0 + minScalar: 0 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + vectorLabel1_0: X + vector1_1: + serializedVersion: 2 + minMaxState: 0 + scalar: 0 + minScalar: 0 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + vectorLabel1_1: Y + vector1_2: + serializedVersion: 2 + minMaxState: 0 + scalar: 0 + minScalar: 0 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + vectorLabel1_2: Z + vector1_3: + serializedVersion: 2 + minMaxState: 0 + scalar: 0 + minScalar: 0 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + vectorLabel1_3: W +--- !u!1 &1183403028 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1183403029} + - component: {fileID: 1183403031} + - component: {fileID: 1183403030} + m_Layer: 0 + m_Name: Particle System + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &1183403029 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1183403028} + m_LocalRotation: {x: -0, y: -0, z: 0.0042760437, w: 0.9999909} + m_LocalPosition: {x: -0.01, y: 0.13, z: 0} + m_LocalScale: {x: 0.5, y: 0.5, z: 0.5} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 1744664983} + m_RootOrder: -1 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!199 &1183403030 +ParticleSystemRenderer: + serializedVersion: 6 + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1183403028} + m_Enabled: 1 + m_CastShadows: 0 + m_ReceiveShadows: 0 + m_DynamicOccludee: 1 + m_StaticShadowCaster: 0 + m_MotionVectors: 1 + m_LightProbeUsage: 1 + m_ReflectionProbeUsage: 0 + m_RayTracingMode: 0 + m_RayTraceProcedural: 0 + m_RenderingLayerMask: 1 + m_RendererPriority: 0 + m_Materials: + - {fileID: 10754, guid: 0000000000000000f000000000000000, type: 0} + m_StaticBatchInfo: + firstSubMesh: 0 + subMeshCount: 0 + m_StaticBatchRoot: {fileID: 0} + m_ProbeAnchor: {fileID: 0} + m_LightProbeVolumeOverride: {fileID: 0} + m_ScaleInLightmap: 1 + m_ReceiveGI: 1 + m_PreserveUVs: 0 + m_IgnoreNormalsForChartDetection: 0 + m_ImportantGI: 0 + m_StitchLightmapSeams: 1 + m_SelectedEditorRenderState: 0 + m_MinimumChartSize: 4 + m_AutoUVMaxDistance: 0.5 + m_AutoUVMaxAngle: 89 + m_LightmapParameters: {fileID: 0} + m_SortingLayerID: 0 + m_SortingLayer: 0 + m_SortingOrder: 14 + m_RenderMode: 0 + m_MeshDistribution: 0 + m_SortMode: 0 + m_MinParticleSize: 0 + m_MaxParticleSize: 0.5 + m_CameraVelocityScale: 0 + m_VelocityScale: 0 + m_LengthScale: 2 + m_SortingFudge: 0 + m_NormalDirection: 1 + m_ShadowBias: 0 + m_RenderAlignment: 0 + m_Pivot: {x: 0, y: 0, z: 0} + m_Flip: {x: 0, y: 0, z: 0} + m_UseCustomVertexStreams: 0 + m_EnableGPUInstancing: 0 + m_ApplyActiveColorSpace: 0 + m_AllowRoll: 1 + m_FreeformStretching: 0 + m_RotateWithStretchDirection: 1 + m_VertexStreams: 0001030405 + m_Mesh: {fileID: 0} + m_Mesh1: {fileID: 0} + m_Mesh2: {fileID: 0} + m_Mesh3: {fileID: 0} + m_MeshWeighting: 1 + m_MeshWeighting1: 1 + m_MeshWeighting2: 1 + m_MeshWeighting3: 1 + m_MaskInteraction: 0 +--- !u!198 &1183403031 +ParticleSystem: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1183403028} + serializedVersion: 8 + lengthInSec: 5 + simulationSpeed: 1 + stopAction: 0 + cullingMode: 3 + ringBufferMode: 0 + ringBufferLoopRange: {x: 0, y: 1} + emitterVelocityMode: 1 + looping: 1 + prewarm: 1 + playOnAwake: 1 + useUnscaledTime: 0 + autoRandomSeed: 1 + startDelay: + serializedVersion: 2 + minMaxState: 0 + scalar: 0 + minScalar: 0 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + moveWithTransform: 1 + moveWithCustomTransform: {fileID: 0} + scalingMode: 1 + randomSeed: 0 + InitialModule: + serializedVersion: 3 + enabled: 1 + startLifetime: + serializedVersion: 2 + minMaxState: 0 + scalar: 0.5 + minScalar: 5 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + startSpeed: + serializedVersion: 2 + minMaxState: 0 + scalar: 5 + minScalar: 5 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + startColor: + serializedVersion: 2 + minMaxState: 0 + minColor: {r: 1, g: 1, b: 1, a: 1} + maxColor: {r: 1, g: 1, b: 1, a: 1} + maxGradient: + serializedVersion: 2 + key0: {r: 1, g: 1, b: 1, a: 1} + key1: {r: 1, g: 1, b: 1, a: 1} + key2: {r: 0, g: 0, b: 0, a: 0} + key3: {r: 0, g: 0, b: 0, a: 0} + key4: {r: 0, g: 0, b: 0, a: 0} + key5: {r: 0, g: 0, b: 0, a: 0} + key6: {r: 0, g: 0, b: 0, a: 0} + key7: {r: 0, g: 0, b: 0, a: 0} + ctime0: 0 + ctime1: 65535 + ctime2: 0 + ctime3: 0 + ctime4: 0 + ctime5: 0 + ctime6: 0 + ctime7: 0 + atime0: 0 + atime1: 65535 + atime2: 0 + atime3: 0 + atime4: 0 + atime5: 0 + atime6: 0 + atime7: 0 + m_Mode: 0 + m_NumColorKeys: 2 + m_NumAlphaKeys: 2 + minGradient: + serializedVersion: 2 + key0: {r: 1, g: 1, b: 1, a: 1} + key1: {r: 1, g: 1, b: 1, a: 1} + key2: {r: 0, g: 0, b: 0, a: 0} + key3: {r: 0, g: 0, b: 0, a: 0} + key4: {r: 0, g: 0, b: 0, a: 0} + key5: {r: 0, g: 0, b: 0, a: 0} + key6: {r: 0, g: 0, b: 0, a: 0} + key7: {r: 0, g: 0, b: 0, a: 0} + ctime0: 0 + ctime1: 65535 + ctime2: 0 + ctime3: 0 + ctime4: 0 + ctime5: 0 + ctime6: 0 + ctime7: 0 + atime0: 0 + atime1: 65535 + atime2: 0 + atime3: 0 + atime4: 0 + atime5: 0 + atime6: 0 + atime7: 0 + m_Mode: 0 + m_NumColorKeys: 2 + m_NumAlphaKeys: 2 + startSize: + serializedVersion: 2 + minMaxState: 3 + scalar: 0.1 + minScalar: 0.05 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 0 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0.5 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 0 + startSizeY: + serializedVersion: 2 + minMaxState: 3 + scalar: 1 + minScalar: 0 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 0 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 0 + startSizeZ: + serializedVersion: 2 + minMaxState: 3 + scalar: 1 + minScalar: 0 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 0 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 0 + startRotationX: + serializedVersion: 2 + minMaxState: 3 + scalar: 0 + minScalar: 0 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 0 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 0 + startRotationY: + serializedVersion: 2 + minMaxState: 3 + scalar: 0 + minScalar: 0 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 0 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 0 + startRotation: + serializedVersion: 2 + minMaxState: 3 + scalar: 0.87266463 + minScalar: -0.87266463 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 0 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: -1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 0 + randomizeRotationDirection: 0 + gravitySource: 0 + maxNumParticles: 1000 + customEmitterVelocity: {x: 0, y: 0, z: 0} + size3D: 0 + rotation3D: 0 + gravityModifier: + serializedVersion: 2 + minMaxState: 0 + scalar: 0 + minScalar: 0 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + ShapeModule: + serializedVersion: 6 + enabled: 1 + type: 10 + angle: 25 + length: 5 + boxThickness: {x: 0, y: 0, z: 0} + radiusThickness: 0 + donutRadius: 0.2 + m_Position: {x: 0, y: 0, z: 0} + m_Rotation: {x: 0, y: 0, z: 0} + m_Scale: {x: 1, y: 1, z: 1} + placementMode: 0 + m_MeshMaterialIndex: 0 + m_MeshNormalOffset: 0 + m_MeshSpawn: + mode: 0 + spread: 0 + speed: + serializedVersion: 2 + minMaxState: 0 + scalar: 1 + minScalar: 1 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + m_Mesh: {fileID: 0} + m_MeshRenderer: {fileID: 0} + m_SkinnedMeshRenderer: {fileID: 0} + m_Sprite: {fileID: 0} + m_SpriteRenderer: {fileID: 0} + m_UseMeshMaterialIndex: 0 + m_UseMeshColors: 1 + alignToDirection: 0 + m_Texture: {fileID: 0} + m_TextureClipChannel: 3 + m_TextureClipThreshold: 0 + m_TextureUVChannel: 0 + m_TextureColorAffectsParticles: 1 + m_TextureAlphaAffectsParticles: 1 + m_TextureBilinearFiltering: 0 + randomDirectionAmount: 0 + sphericalDirectionAmount: 0 + randomPositionAmount: 0 + radius: + value: 0.444762 + mode: 0 + spread: 0 + speed: + serializedVersion: 2 + minMaxState: 0 + scalar: 1 + minScalar: 1 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + arc: + value: 360 + mode: 0 + spread: 0 + speed: + serializedVersion: 2 + minMaxState: 0 + scalar: 1 + minScalar: 1 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + EmissionModule: + enabled: 1 + serializedVersion: 4 + rateOverTime: + serializedVersion: 2 + minMaxState: 0 + scalar: 20 + minScalar: 10 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + rateOverDistance: + serializedVersion: 2 + minMaxState: 0 + scalar: 0 + minScalar: 0 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + m_BurstCount: 0 + m_Bursts: [] + SizeModule: + enabled: 0 + curve: + serializedVersion: 2 + minMaxState: 1 + scalar: 1 + minScalar: 1 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + y: + serializedVersion: 2 + minMaxState: 1 + scalar: 1 + minScalar: 1 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + z: + serializedVersion: 2 + minMaxState: 1 + scalar: 1 + minScalar: 1 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + separateAxes: 0 + RotationModule: + enabled: 1 + x: + serializedVersion: 2 + minMaxState: 3 + scalar: 0 + minScalar: 0 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 0 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 0 + y: + serializedVersion: 2 + minMaxState: 3 + scalar: 0 + minScalar: 0 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 0 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 0 + curve: + serializedVersion: 2 + minMaxState: 3 + scalar: 5.2359877 + minScalar: -5.2359877 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 0 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: -1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 0 + separateAxes: 0 + ColorModule: + enabled: 1 + gradient: + serializedVersion: 2 + minMaxState: 1 + minColor: {r: 1, g: 1, b: 1, a: 1} + maxColor: {r: 1, g: 1, b: 1, a: 1} + maxGradient: + serializedVersion: 2 + key0: {r: 1, g: 1, b: 1, a: 1} + key1: {r: 1, g: 1, b: 1, a: 0} + key2: {r: 0, g: 0, b: 0, a: 0} + key3: {r: 0, g: 0, b: 0, a: 0} + key4: {r: 0, g: 0, b: 0, a: 0} + key5: {r: 0, g: 0, b: 0, a: 0} + key6: {r: 0, g: 0, b: 0, a: 0} + key7: {r: 0, g: 0, b: 0, a: 0} + ctime0: 0 + ctime1: 65535 + ctime2: 0 + ctime3: 0 + ctime4: 0 + ctime5: 0 + ctime6: 0 + ctime7: 0 + atime0: 0 + atime1: 65535 + atime2: 0 + atime3: 0 + atime4: 0 + atime5: 0 + atime6: 0 + atime7: 0 + m_Mode: 0 + m_NumColorKeys: 2 + m_NumAlphaKeys: 2 + minGradient: + serializedVersion: 2 + key0: {r: 1, g: 1, b: 1, a: 1} + key1: {r: 1, g: 1, b: 1, a: 1} + key2: {r: 0, g: 0, b: 0, a: 0} + key3: {r: 0, g: 0, b: 0, a: 0} + key4: {r: 0, g: 0, b: 0, a: 0} + key5: {r: 0, g: 0, b: 0, a: 0} + key6: {r: 0, g: 0, b: 0, a: 0} + key7: {r: 0, g: 0, b: 0, a: 0} + ctime0: 0 + ctime1: 65535 + ctime2: 0 + ctime3: 0 + ctime4: 0 + ctime5: 0 + ctime6: 0 + ctime7: 0 + atime0: 0 + atime1: 65535 + atime2: 0 + atime3: 0 + atime4: 0 + atime5: 0 + atime6: 0 + atime7: 0 + m_Mode: 0 + m_NumColorKeys: 2 + m_NumAlphaKeys: 2 + UVModule: + serializedVersion: 2 + enabled: 0 + mode: 0 + timeMode: 0 + fps: 30 + frameOverTime: + serializedVersion: 2 + minMaxState: 1 + scalar: 0.9999 + minScalar: 0.9999 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 1 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 1 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 1 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 1 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + startFrame: + serializedVersion: 2 + minMaxState: 0 + scalar: 0 + minScalar: 0 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + speedRange: {x: 0, y: 1} + tilesX: 1 + tilesY: 1 + animationType: 0 + rowIndex: 0 + cycles: 1 + uvChannelMask: -1 + rowMode: 1 + sprites: + - sprite: {fileID: 0} + flipU: 0 + flipV: 0 + VelocityModule: + enabled: 0 + x: + serializedVersion: 2 + minMaxState: 0 + scalar: 0 + minScalar: 0 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + y: + serializedVersion: 2 + minMaxState: 0 + scalar: 0 + minScalar: 0 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + z: + serializedVersion: 2 + minMaxState: 0 + scalar: 0 + minScalar: 0 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + orbitalX: + serializedVersion: 2 + minMaxState: 0 + scalar: 0 + minScalar: 0 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + orbitalY: + serializedVersion: 2 + minMaxState: 0 + scalar: 0 + minScalar: 0 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + orbitalZ: + serializedVersion: 2 + minMaxState: 0 + scalar: 0 + minScalar: 0 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + orbitalOffsetX: + serializedVersion: 2 + minMaxState: 0 + scalar: 0 + minScalar: 0 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + orbitalOffsetY: + serializedVersion: 2 + minMaxState: 0 + scalar: 0 + minScalar: 0 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + orbitalOffsetZ: + serializedVersion: 2 + minMaxState: 0 + scalar: 0 + minScalar: 0 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + radial: + serializedVersion: 2 + minMaxState: 0 + scalar: 0 + minScalar: 0 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + speedModifier: + serializedVersion: 2 + minMaxState: 0 + scalar: 1 + minScalar: 1 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + inWorldSpace: 0 + InheritVelocityModule: + enabled: 0 + m_Mode: 0 + m_Curve: + serializedVersion: 2 + minMaxState: 0 + scalar: 0 + minScalar: 0 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + LifetimeByEmitterSpeedModule: + enabled: 0 + m_Curve: + serializedVersion: 2 + minMaxState: 1 + scalar: 1 + minScalar: 1 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: -0.8 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0.2 + inSlope: -0.8 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + m_Range: {x: 0, y: 1} + ForceModule: + enabled: 0 + x: + serializedVersion: 2 + minMaxState: 0 + scalar: 0 + minScalar: 0 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + y: + serializedVersion: 2 + minMaxState: 0 + scalar: 0 + minScalar: 0 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + z: + serializedVersion: 2 + minMaxState: 0 + scalar: 0 + minScalar: 0 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + inWorldSpace: 0 + randomizePerFrame: 0 + ExternalForcesModule: + serializedVersion: 2 + enabled: 0 + multiplierCurve: + serializedVersion: 2 + minMaxState: 0 + scalar: 1 + minScalar: 1 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + influenceFilter: 0 + influenceMask: + serializedVersion: 2 + m_Bits: 4294967295 + influenceList: [] + ClampVelocityModule: + enabled: 1 + x: + serializedVersion: 2 + minMaxState: 0 + scalar: 1 + minScalar: 1 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + y: + serializedVersion: 2 + minMaxState: 0 + scalar: 1 + minScalar: 1 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + z: + serializedVersion: 2 + minMaxState: 0 + scalar: 1 + minScalar: 1 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + magnitude: + serializedVersion: 2 + minMaxState: 0 + scalar: 1 + minScalar: 1 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + separateAxis: 0 + inWorldSpace: 0 + multiplyDragByParticleSize: 1 + multiplyDragByParticleVelocity: 1 + dampen: 1 + drag: + serializedVersion: 2 + minMaxState: 0 + scalar: 0 + minScalar: 0 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + NoiseModule: + enabled: 0 + strength: + serializedVersion: 2 + minMaxState: 0 + scalar: 1 + minScalar: 1 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + strengthY: + serializedVersion: 2 + minMaxState: 0 + scalar: 1 + minScalar: 1 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + strengthZ: + serializedVersion: 2 + minMaxState: 0 + scalar: 1 + minScalar: 1 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + separateAxes: 0 + frequency: 0.5 + damping: 1 + octaves: 1 + octaveMultiplier: 0.5 + octaveScale: 2 + quality: 2 + scrollSpeed: + serializedVersion: 2 + minMaxState: 0 + scalar: 0 + minScalar: 0 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + remap: + serializedVersion: 2 + minMaxState: 1 + scalar: 1 + minScalar: 1 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: -1 + inSlope: 0 + outSlope: 2 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 2 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + remapY: + serializedVersion: 2 + minMaxState: 1 + scalar: 1 + minScalar: 1 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: -1 + inSlope: 0 + outSlope: 2 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 2 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + remapZ: + serializedVersion: 2 + minMaxState: 1 + scalar: 1 + minScalar: 1 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: -1 + inSlope: 0 + outSlope: 2 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 2 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + remapEnabled: 0 + positionAmount: + serializedVersion: 2 + minMaxState: 0 + scalar: 1 + minScalar: 1 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + rotationAmount: + serializedVersion: 2 + minMaxState: 0 + scalar: 0 + minScalar: 0 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + sizeAmount: + serializedVersion: 2 + minMaxState: 0 + scalar: 0 + minScalar: 0 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + SizeBySpeedModule: + enabled: 0 + curve: + serializedVersion: 2 + minMaxState: 1 + scalar: 1 + minScalar: 1 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + y: + serializedVersion: 2 + minMaxState: 1 + scalar: 1 + minScalar: 1 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + z: + serializedVersion: 2 + minMaxState: 1 + scalar: 1 + minScalar: 1 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + range: {x: 0, y: 1} + separateAxes: 0 + RotationBySpeedModule: + enabled: 0 + x: + serializedVersion: 2 + minMaxState: 0 + scalar: 0 + minScalar: 0 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + y: + serializedVersion: 2 + minMaxState: 0 + scalar: 0 + minScalar: 0 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + curve: + serializedVersion: 2 + minMaxState: 0 + scalar: 0.7853981 + minScalar: 0.7853982 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + separateAxes: 0 + range: {x: 0, y: 1} + ColorBySpeedModule: + enabled: 0 + gradient: + serializedVersion: 2 + minMaxState: 1 + minColor: {r: 1, g: 1, b: 1, a: 1} + maxColor: {r: 1, g: 1, b: 1, a: 1} + maxGradient: + serializedVersion: 2 + key0: {r: 1, g: 1, b: 1, a: 1} + key1: {r: 1, g: 1, b: 1, a: 1} + key2: {r: 0, g: 0, b: 0, a: 0} + key3: {r: 0, g: 0, b: 0, a: 0} + key4: {r: 0, g: 0, b: 0, a: 0} + key5: {r: 0, g: 0, b: 0, a: 0} + key6: {r: 0, g: 0, b: 0, a: 0} + key7: {r: 0, g: 0, b: 0, a: 0} + ctime0: 0 + ctime1: 65535 + ctime2: 0 + ctime3: 0 + ctime4: 0 + ctime5: 0 + ctime6: 0 + ctime7: 0 + atime0: 0 + atime1: 65535 + atime2: 0 + atime3: 0 + atime4: 0 + atime5: 0 + atime6: 0 + atime7: 0 + m_Mode: 0 + m_NumColorKeys: 2 + m_NumAlphaKeys: 2 + minGradient: + serializedVersion: 2 + key0: {r: 1, g: 1, b: 1, a: 1} + key1: {r: 1, g: 1, b: 1, a: 1} + key2: {r: 0, g: 0, b: 0, a: 0} + key3: {r: 0, g: 0, b: 0, a: 0} + key4: {r: 0, g: 0, b: 0, a: 0} + key5: {r: 0, g: 0, b: 0, a: 0} + key6: {r: 0, g: 0, b: 0, a: 0} + key7: {r: 0, g: 0, b: 0, a: 0} + ctime0: 0 + ctime1: 65535 + ctime2: 0 + ctime3: 0 + ctime4: 0 + ctime5: 0 + ctime6: 0 + ctime7: 0 + atime0: 0 + atime1: 65535 + atime2: 0 + atime3: 0 + atime4: 0 + atime5: 0 + atime6: 0 + atime7: 0 + m_Mode: 0 + m_NumColorKeys: 2 + m_NumAlphaKeys: 2 + range: {x: 0, y: 1} + CollisionModule: + enabled: 0 + serializedVersion: 4 + type: 0 + collisionMode: 0 + colliderForce: 0 + multiplyColliderForceByParticleSize: 0 + multiplyColliderForceByParticleSpeed: 0 + multiplyColliderForceByCollisionAngle: 1 + m_Planes: + - {fileID: 0} + - {fileID: 0} + - {fileID: 0} + - {fileID: 0} + - {fileID: 0} + - {fileID: 0} + m_Dampen: + serializedVersion: 2 + minMaxState: 0 + scalar: 0 + minScalar: 0 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + m_Bounce: + serializedVersion: 2 + minMaxState: 0 + scalar: 1 + minScalar: 1 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + m_EnergyLossOnCollision: + serializedVersion: 2 + minMaxState: 0 + scalar: 0 + minScalar: 0 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minKillSpeed: 0 + maxKillSpeed: 10000 + radiusScale: 1 + collidesWith: + serializedVersion: 2 + m_Bits: 4294967295 + maxCollisionShapes: 256 + quality: 0 + voxelSize: 0.5 + collisionMessages: 0 + collidesWithDynamic: 1 + interiorCollisions: 1 + TriggerModule: + enabled: 0 + serializedVersion: 2 + inside: 1 + outside: 0 + enter: 0 + exit: 0 + colliderQueryMode: 0 + radiusScale: 1 + primitives: + - {fileID: 0} + - {fileID: 0} + - {fileID: 0} + - {fileID: 0} + - {fileID: 0} + - {fileID: 0} + SubModule: + serializedVersion: 2 + enabled: 0 + subEmitters: + - serializedVersion: 3 + emitter: {fileID: 0} + type: 0 + properties: 0 + emitProbability: 1 + LightsModule: + enabled: 0 + ratio: 0 + light: {fileID: 0} + randomDistribution: 1 + color: 1 + range: 1 + intensity: 1 + rangeCurve: + serializedVersion: 2 + minMaxState: 0 + scalar: 1 + minScalar: 1 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + intensityCurve: + serializedVersion: 2 + minMaxState: 0 + scalar: 1 + minScalar: 1 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + maxLights: 20 + TrailModule: + enabled: 0 + mode: 0 + ratio: 1 + lifetime: + serializedVersion: 2 + minMaxState: 0 + scalar: 1 + minScalar: 1 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minVertexDistance: 0.2 + textureMode: 0 + textureScale: {x: 1, y: 1} + ribbonCount: 1 + shadowBias: 0.5 + worldSpace: 0 + dieWithParticles: 1 + sizeAffectsWidth: 1 + sizeAffectsLifetime: 0 + inheritParticleColor: 1 + generateLightingData: 0 + splitSubEmitterRibbons: 0 + attachRibbonsToTransform: 0 + colorOverLifetime: + serializedVersion: 2 + minMaxState: 0 + minColor: {r: 1, g: 1, b: 1, a: 1} + maxColor: {r: 1, g: 1, b: 1, a: 1} + maxGradient: + serializedVersion: 2 + key0: {r: 1, g: 1, b: 1, a: 1} + key1: {r: 1, g: 1, b: 1, a: 1} + key2: {r: 0, g: 0, b: 0, a: 0} + key3: {r: 0, g: 0, b: 0, a: 0} + key4: {r: 0, g: 0, b: 0, a: 0} + key5: {r: 0, g: 0, b: 0, a: 0} + key6: {r: 0, g: 0, b: 0, a: 0} + key7: {r: 0, g: 0, b: 0, a: 0} + ctime0: 0 + ctime1: 65535 + ctime2: 0 + ctime3: 0 + ctime4: 0 + ctime5: 0 + ctime6: 0 + ctime7: 0 + atime0: 0 + atime1: 65535 + atime2: 0 + atime3: 0 + atime4: 0 + atime5: 0 + atime6: 0 + atime7: 0 + m_Mode: 0 + m_NumColorKeys: 2 + m_NumAlphaKeys: 2 + minGradient: + serializedVersion: 2 + key0: {r: 1, g: 1, b: 1, a: 1} + key1: {r: 1, g: 1, b: 1, a: 1} + key2: {r: 0, g: 0, b: 0, a: 0} + key3: {r: 0, g: 0, b: 0, a: 0} + key4: {r: 0, g: 0, b: 0, a: 0} + key5: {r: 0, g: 0, b: 0, a: 0} + key6: {r: 0, g: 0, b: 0, a: 0} + key7: {r: 0, g: 0, b: 0, a: 0} + ctime0: 0 + ctime1: 65535 + ctime2: 0 + ctime3: 0 + ctime4: 0 + ctime5: 0 + ctime6: 0 + ctime7: 0 + atime0: 0 + atime1: 65535 + atime2: 0 + atime3: 0 + atime4: 0 + atime5: 0 + atime6: 0 + atime7: 0 + m_Mode: 0 + m_NumColorKeys: 2 + m_NumAlphaKeys: 2 + widthOverTrail: + serializedVersion: 2 + minMaxState: 0 + scalar: 1 + minScalar: 1 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + colorOverTrail: + serializedVersion: 2 + minMaxState: 0 + minColor: {r: 1, g: 1, b: 1, a: 1} + maxColor: {r: 1, g: 1, b: 1, a: 1} + maxGradient: + serializedVersion: 2 + key0: {r: 1, g: 1, b: 1, a: 1} + key1: {r: 1, g: 1, b: 1, a: 1} + key2: {r: 0, g: 0, b: 0, a: 0} + key3: {r: 0, g: 0, b: 0, a: 0} + key4: {r: 0, g: 0, b: 0, a: 0} + key5: {r: 0, g: 0, b: 0, a: 0} + key6: {r: 0, g: 0, b: 0, a: 0} + key7: {r: 0, g: 0, b: 0, a: 0} + ctime0: 0 + ctime1: 65535 + ctime2: 0 + ctime3: 0 + ctime4: 0 + ctime5: 0 + ctime6: 0 + ctime7: 0 + atime0: 0 + atime1: 65535 + atime2: 0 + atime3: 0 + atime4: 0 + atime5: 0 + atime6: 0 + atime7: 0 + m_Mode: 0 + m_NumColorKeys: 2 + m_NumAlphaKeys: 2 + minGradient: + serializedVersion: 2 + key0: {r: 1, g: 1, b: 1, a: 1} + key1: {r: 1, g: 1, b: 1, a: 1} + key2: {r: 0, g: 0, b: 0, a: 0} + key3: {r: 0, g: 0, b: 0, a: 0} + key4: {r: 0, g: 0, b: 0, a: 0} + key5: {r: 0, g: 0, b: 0, a: 0} + key6: {r: 0, g: 0, b: 0, a: 0} + key7: {r: 0, g: 0, b: 0, a: 0} + ctime0: 0 + ctime1: 65535 + ctime2: 0 + ctime3: 0 + ctime4: 0 + ctime5: 0 + ctime6: 0 + ctime7: 0 + atime0: 0 + atime1: 65535 + atime2: 0 + atime3: 0 + atime4: 0 + atime5: 0 + atime6: 0 + atime7: 0 + m_Mode: 0 + m_NumColorKeys: 2 + m_NumAlphaKeys: 2 + CustomDataModule: + enabled: 0 + mode0: 0 + vectorComponentCount0: 4 + color0: + serializedVersion: 2 + minMaxState: 0 + minColor: {r: 1, g: 1, b: 1, a: 1} + maxColor: {r: 1, g: 1, b: 1, a: 1} + maxGradient: + serializedVersion: 2 + key0: {r: 1, g: 1, b: 1, a: 1} + key1: {r: 1, g: 1, b: 1, a: 1} + key2: {r: 0, g: 0, b: 0, a: 0} + key3: {r: 0, g: 0, b: 0, a: 0} + key4: {r: 0, g: 0, b: 0, a: 0} + key5: {r: 0, g: 0, b: 0, a: 0} + key6: {r: 0, g: 0, b: 0, a: 0} + key7: {r: 0, g: 0, b: 0, a: 0} + ctime0: 0 + ctime1: 65535 + ctime2: 0 + ctime3: 0 + ctime4: 0 + ctime5: 0 + ctime6: 0 + ctime7: 0 + atime0: 0 + atime1: 65535 + atime2: 0 + atime3: 0 + atime4: 0 + atime5: 0 + atime6: 0 + atime7: 0 + m_Mode: 0 + m_NumColorKeys: 2 + m_NumAlphaKeys: 2 + minGradient: + serializedVersion: 2 + key0: {r: 1, g: 1, b: 1, a: 1} + key1: {r: 1, g: 1, b: 1, a: 1} + key2: {r: 0, g: 0, b: 0, a: 0} + key3: {r: 0, g: 0, b: 0, a: 0} + key4: {r: 0, g: 0, b: 0, a: 0} + key5: {r: 0, g: 0, b: 0, a: 0} + key6: {r: 0, g: 0, b: 0, a: 0} + key7: {r: 0, g: 0, b: 0, a: 0} + ctime0: 0 + ctime1: 65535 + ctime2: 0 + ctime3: 0 + ctime4: 0 + ctime5: 0 + ctime6: 0 + ctime7: 0 + atime0: 0 + atime1: 65535 + atime2: 0 + atime3: 0 + atime4: 0 + atime5: 0 + atime6: 0 + atime7: 0 + m_Mode: 0 + m_NumColorKeys: 2 + m_NumAlphaKeys: 2 + colorLabel0: Color + vector0_0: + serializedVersion: 2 + minMaxState: 0 + scalar: 0 + minScalar: 0 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + vectorLabel0_0: X + vector0_1: + serializedVersion: 2 + minMaxState: 0 + scalar: 0 + minScalar: 0 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + vectorLabel0_1: Y + vector0_2: + serializedVersion: 2 + minMaxState: 0 + scalar: 0 + minScalar: 0 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + vectorLabel0_2: Z + vector0_3: + serializedVersion: 2 + minMaxState: 0 + scalar: 0 + minScalar: 0 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + vectorLabel0_3: W + mode1: 0 + vectorComponentCount1: 4 + color1: + serializedVersion: 2 + minMaxState: 0 + minColor: {r: 1, g: 1, b: 1, a: 1} + maxColor: {r: 1, g: 1, b: 1, a: 1} + maxGradient: + serializedVersion: 2 + key0: {r: 1, g: 1, b: 1, a: 1} + key1: {r: 1, g: 1, b: 1, a: 1} + key2: {r: 0, g: 0, b: 0, a: 0} + key3: {r: 0, g: 0, b: 0, a: 0} + key4: {r: 0, g: 0, b: 0, a: 0} + key5: {r: 0, g: 0, b: 0, a: 0} + key6: {r: 0, g: 0, b: 0, a: 0} + key7: {r: 0, g: 0, b: 0, a: 0} + ctime0: 0 + ctime1: 65535 + ctime2: 0 + ctime3: 0 + ctime4: 0 + ctime5: 0 + ctime6: 0 + ctime7: 0 + atime0: 0 + atime1: 65535 + atime2: 0 + atime3: 0 + atime4: 0 + atime5: 0 + atime6: 0 + atime7: 0 + m_Mode: 0 + m_NumColorKeys: 2 + m_NumAlphaKeys: 2 + minGradient: + serializedVersion: 2 + key0: {r: 1, g: 1, b: 1, a: 1} + key1: {r: 1, g: 1, b: 1, a: 1} + key2: {r: 0, g: 0, b: 0, a: 0} + key3: {r: 0, g: 0, b: 0, a: 0} + key4: {r: 0, g: 0, b: 0, a: 0} + key5: {r: 0, g: 0, b: 0, a: 0} + key6: {r: 0, g: 0, b: 0, a: 0} + key7: {r: 0, g: 0, b: 0, a: 0} + ctime0: 0 + ctime1: 65535 + ctime2: 0 + ctime3: 0 + ctime4: 0 + ctime5: 0 + ctime6: 0 + ctime7: 0 + atime0: 0 + atime1: 65535 + atime2: 0 + atime3: 0 + atime4: 0 + atime5: 0 + atime6: 0 + atime7: 0 + m_Mode: 0 + m_NumColorKeys: 2 + m_NumAlphaKeys: 2 + colorLabel1: Color + vector1_0: + serializedVersion: 2 + minMaxState: 0 + scalar: 0 + minScalar: 0 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + vectorLabel1_0: X + vector1_1: + serializedVersion: 2 + minMaxState: 0 + scalar: 0 + minScalar: 0 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + vectorLabel1_1: Y + vector1_2: + serializedVersion: 2 + minMaxState: 0 + scalar: 0 + minScalar: 0 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + vectorLabel1_2: Z + vector1_3: + serializedVersion: 2 + minMaxState: 0 + scalar: 0 + minScalar: 0 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + vectorLabel1_3: W +--- !u!1 &1400352146 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1400352147} + - component: {fileID: 1400352149} + - component: {fileID: 1400352148} + m_Layer: 0 + m_Name: Drag Me Label + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &1400352147 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1400352146} + m_LocalRotation: {x: -0, y: -0, z: 0.0042760437, w: 0.9999909} + m_LocalPosition: {x: -0.31, y: -0.47, z: -0.18} + m_LocalScale: {x: 1.5, y: 1.5, z: 1.5} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 1744664983} + m_RootOrder: -1 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!102 &1400352148 +TextMesh: + serializedVersion: 3 + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1400352146} + m_Text: Drag me! + m_OffsetZ: 0 + m_CharacterSize: 0.1 + m_LineSpacing: 1 + m_Anchor: 4 + m_Alignment: 1 + m_TabSize: 4 + m_FontSize: 40 + m_FontStyle: 1 + m_RichText: 1 + m_Font: {fileID: 0} + m_Color: + serializedVersion: 2 + rgba: 4280156415 +--- !u!23 &1400352149 +MeshRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1400352146} + m_Enabled: 1 + m_CastShadows: 1 + m_ReceiveShadows: 1 + m_DynamicOccludee: 1 + m_StaticShadowCaster: 0 + m_MotionVectors: 1 + m_LightProbeUsage: 1 + m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 + m_RayTraceProcedural: 0 + m_RenderingLayerMask: 1 + m_RendererPriority: 0 + m_Materials: + - {fileID: 10100, guid: 0000000000000000e000000000000000, type: 0} + m_StaticBatchInfo: + firstSubMesh: 0 + subMeshCount: 0 + m_StaticBatchRoot: {fileID: 0} + m_ProbeAnchor: {fileID: 0} + m_LightProbeVolumeOverride: {fileID: 0} + m_ScaleInLightmap: 1 + m_ReceiveGI: 1 + m_PreserveUVs: 0 + m_IgnoreNormalsForChartDetection: 0 + m_ImportantGI: 0 + m_StitchLightmapSeams: 1 + m_SelectedEditorRenderState: 3 + m_MinimumChartSize: 4 + m_AutoUVMaxDistance: 0.5 + m_AutoUVMaxAngle: 89 + m_LightmapParameters: {fileID: 0} + m_SortingLayerID: 0 + m_SortingLayer: 0 + m_SortingOrder: 0 + m_AdditionalVertexStreams: {fileID: 0} +--- !u!1 &1744664982 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1744664983} + - component: {fileID: 1744664984} + m_Layer: 0 + m_Name: Follower + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &1744664983 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1744664982} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0.000000018091114, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: + - {fileID: 1400352147} + - {fileID: 1183403029} + m_Father: {fileID: 1813667324} + m_RootOrder: -1 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!114 &1744664984 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1744664982} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: a1fd8daaed7b64148a34acb96ba14ce1, type: 3} + m_Name: + m_EditorClassIdentifier: + skeletonRenderer: {fileID: 1813667321} + boneName: pot + followXYPosition: 1 + followZPosition: 1 + followBoneRotation: 1 + followSkeletonFlip: 1 + followLocalScale: 0 + followParentWorldScale: 0 + maintainedAxisOrientation: 1 + initializeOnAwake: 1 +--- !u!1 &1774103489 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1774103495} + - component: {fileID: 1774103494} + - component: {fileID: 1774103493} + - component: {fileID: 1774103492} + m_Layer: 0 + m_Name: snowglobe - Skeleton with PhysicsConstraints + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!114 &1774103492 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1774103489} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: d247ba06193faa74d9335f5481b2b56c, type: 3} + m_Name: + m_EditorClassIdentifier: + skeletonDataAsset: {fileID: 11400000, guid: 9f9df402d4f49864aa437e785eb16524, type: 2} + initialSkinName: + fixPrefabOverrideViaMeshFilter: 2 + initialFlipX: 0 + initialFlipY: 0 + updateWhenInvisible: 3 + separatorSlotNames: [] + zSpacing: 0 + useClipping: 1 + immutableTriangles: 0 + pmaVertexColors: 1 + clearStateOnDisable: 0 + tintBlack: 0 + singleSubmesh: 0 + fixDrawOrder: 0 + addNormals: 0 + calculateTangents: 0 + maskInteraction: 0 + maskMaterials: + materialsMaskDisabled: [] + materialsInsideMask: [] + materialsOutsideMask: [] + disableRenderingOnOverride: 1 + physicsPositionInheritanceFactor: {x: 1, y: 1} + physicsRotationInheritanceFactor: 1 + physicsMovementRelativeTo: {fileID: 0} + updateTiming: 1 + unscaledTime: 0 + _animationName: shake + loop: 1 + timeScale: 1 +--- !u!23 &1774103493 +MeshRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1774103489} + m_Enabled: 1 + m_CastShadows: 1 + m_ReceiveShadows: 1 + m_DynamicOccludee: 1 + m_StaticShadowCaster: 0 + m_MotionVectors: 1 + m_LightProbeUsage: 1 + m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 + m_RayTraceProcedural: 0 + m_RenderingLayerMask: 1 + m_RendererPriority: 0 + m_Materials: + - {fileID: 2100000, guid: 457f3020c684d35468371a3d1f701bf5, type: 2} + - {fileID: 2100000, guid: 30c7a85032064f0468da374e72de22b0, type: 2} + - {fileID: 2100000, guid: 2944e525a4bfee14b8c5067246eb3e39, type: 2} + - {fileID: 2100000, guid: decd34b04cd07554a9bcd2e85dde7b03, type: 2} + - {fileID: 2100000, guid: bc273223b04e8cb4dbbc77a27f38cc65, type: 2} + - {fileID: 2100000, guid: c0f19210b249a30418ba777c6dbdd1f3, type: 2} + - {fileID: 2100000, guid: bc273223b04e8cb4dbbc77a27f38cc65, type: 2} + - {fileID: 2100000, guid: c0f19210b249a30418ba777c6dbdd1f3, type: 2} + - {fileID: 2100000, guid: bc273223b04e8cb4dbbc77a27f38cc65, type: 2} + - {fileID: 2100000, guid: c0f19210b249a30418ba777c6dbdd1f3, type: 2} + - {fileID: 2100000, guid: bc273223b04e8cb4dbbc77a27f38cc65, type: 2} + - {fileID: 2100000, guid: c0f19210b249a30418ba777c6dbdd1f3, type: 2} + - {fileID: 2100000, guid: bc273223b04e8cb4dbbc77a27f38cc65, type: 2} + - {fileID: 2100000, guid: c0f19210b249a30418ba777c6dbdd1f3, type: 2} + - {fileID: 2100000, guid: bc273223b04e8cb4dbbc77a27f38cc65, type: 2} + - {fileID: 2100000, guid: c0f19210b249a30418ba777c6dbdd1f3, type: 2} + - {fileID: 2100000, guid: bc273223b04e8cb4dbbc77a27f38cc65, type: 2} + - {fileID: 2100000, guid: 30c7a85032064f0468da374e72de22b0, type: 2} + - {fileID: 2100000, guid: bc273223b04e8cb4dbbc77a27f38cc65, type: 2} + - {fileID: 2100000, guid: c0f19210b249a30418ba777c6dbdd1f3, type: 2} + - {fileID: 2100000, guid: bc273223b04e8cb4dbbc77a27f38cc65, type: 2} + - {fileID: 2100000, guid: c0f19210b249a30418ba777c6dbdd1f3, type: 2} + - {fileID: 2100000, guid: bc273223b04e8cb4dbbc77a27f38cc65, type: 2} + - {fileID: 2100000, guid: 2944e525a4bfee14b8c5067246eb3e39, type: 2} + - {fileID: 2100000, guid: c0f19210b249a30418ba777c6dbdd1f3, type: 2} + - {fileID: 2100000, guid: bc273223b04e8cb4dbbc77a27f38cc65, type: 2} + - {fileID: 2100000, guid: c0f19210b249a30418ba777c6dbdd1f3, type: 2} + - {fileID: 2100000, guid: bc273223b04e8cb4dbbc77a27f38cc65, type: 2} + - {fileID: 2100000, guid: c0f19210b249a30418ba777c6dbdd1f3, type: 2} + - {fileID: 2100000, guid: bc273223b04e8cb4dbbc77a27f38cc65, type: 2} + - {fileID: 2100000, guid: c0f19210b249a30418ba777c6dbdd1f3, type: 2} + - {fileID: 2100000, guid: bc273223b04e8cb4dbbc77a27f38cc65, type: 2} + - {fileID: 2100000, guid: c0f19210b249a30418ba777c6dbdd1f3, type: 2} + - {fileID: 2100000, guid: bc273223b04e8cb4dbbc77a27f38cc65, type: 2} + - {fileID: 2100000, guid: c0f19210b249a30418ba777c6dbdd1f3, type: 2} + - {fileID: 2100000, guid: bc273223b04e8cb4dbbc77a27f38cc65, type: 2} + - {fileID: 2100000, guid: c0f19210b249a30418ba777c6dbdd1f3, type: 2} + - {fileID: 2100000, guid: bc273223b04e8cb4dbbc77a27f38cc65, type: 2} + - {fileID: 2100000, guid: c0f19210b249a30418ba777c6dbdd1f3, type: 2} + - {fileID: 2100000, guid: bc273223b04e8cb4dbbc77a27f38cc65, type: 2} + - {fileID: 2100000, guid: 2944e525a4bfee14b8c5067246eb3e39, type: 2} + - {fileID: 2100000, guid: 30c7a85032064f0468da374e72de22b0, type: 2} + m_StaticBatchInfo: + firstSubMesh: 0 + subMeshCount: 0 + m_StaticBatchRoot: {fileID: 0} + m_ProbeAnchor: {fileID: 0} + m_LightProbeVolumeOverride: {fileID: 0} + m_ScaleInLightmap: 1 + m_ReceiveGI: 1 + m_PreserveUVs: 0 + m_IgnoreNormalsForChartDetection: 0 + m_ImportantGI: 0 + m_StitchLightmapSeams: 1 + m_SelectedEditorRenderState: 3 + m_MinimumChartSize: 4 + m_AutoUVMaxDistance: 0.5 + m_AutoUVMaxAngle: 89 + m_LightmapParameters: {fileID: 0} + m_SortingLayerID: 0 + m_SortingLayer: 0 + m_SortingOrder: 0 + m_AdditionalVertexStreams: {fileID: 0} +--- !u!33 &1774103494 +MeshFilter: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1774103489} + m_Mesh: {fileID: 0} +--- !u!4 &1774103495 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1774103489} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: -1.9, y: -0.33999997, z: 0} + m_LocalScale: {x: 0.08, y: 0.08, z: 0.08} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 2 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!1 &1813667318 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1813667324} + - component: {fileID: 1813667323} + - component: {fileID: 1813667322} + - component: {fileID: 1813667321} + - component: {fileID: 1813667320} + - component: {fileID: 1813667319} + m_Layer: 0 + m_Name: cloud-pot draggable - Skeleton with PhysicsConstraints + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!61 &1813667319 +BoxCollider2D: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1813667318} + m_Enabled: 1 + m_Density: 1 + m_Material: {fileID: 0} + m_IsTrigger: 1 + m_UsedByEffector: 0 + m_UsedByComposite: 0 + m_Offset: {x: -2.1638055, y: 0.75051403} + m_SpriteTilingProperty: + border: {x: 0, y: 0, z: 0, w: 0} + pivot: {x: 0, y: 0} + oldSize: {x: 0, y: 0} + newSize: {x: 0, y: 0} + adaptiveTilingThreshold: 0 + drawMode: 0 + adaptiveTiling: 0 + m_AutoTiling: 0 + serializedVersion: 2 + m_Size: {x: 9.8641615, y: 7.6567745} + m_EdgeRadius: 0 +--- !u!114 &1813667320 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1813667318} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: ac0a69923492d1b4aa7ca656033ec6a3, type: 3} + m_Name: + m_EditorClassIdentifier: +--- !u!114 &1813667321 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1813667318} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: d247ba06193faa74d9335f5481b2b56c, type: 3} + m_Name: + m_EditorClassIdentifier: + skeletonDataAsset: {fileID: 11400000, guid: 9dd558761bfa4274584a8e92095c37ab, type: 2} + initialSkinName: + fixPrefabOverrideViaMeshFilter: 2 + initialFlipX: 0 + initialFlipY: 0 + updateWhenInvisible: 3 + separatorSlotNames: [] + zSpacing: 0 + useClipping: 1 + immutableTriangles: 0 + pmaVertexColors: 1 + clearStateOnDisable: 0 + tintBlack: 0 + singleSubmesh: 0 + fixDrawOrder: 0 + addNormals: 0 + calculateTangents: 0 + maskInteraction: 0 + maskMaterials: + materialsMaskDisabled: [] + materialsInsideMask: [] + materialsOutsideMask: [] + disableRenderingOnOverride: 1 + physicsPositionInheritanceFactor: {x: 1, y: 1} + physicsRotationInheritanceFactor: 1 + physicsMovementRelativeTo: {fileID: 0} + updateTiming: 1 + unscaledTime: 0 + _animationName: playing-in-the-rain + loop: 1 + timeScale: 1 +--- !u!23 &1813667322 +MeshRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1813667318} + m_Enabled: 1 + m_CastShadows: 1 + m_ReceiveShadows: 1 + m_DynamicOccludee: 1 + m_StaticShadowCaster: 0 + m_MotionVectors: 1 + m_LightProbeUsage: 1 + m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 + m_RayTraceProcedural: 0 + m_RenderingLayerMask: 1 + m_RendererPriority: 0 + m_Materials: + - {fileID: 2100000, guid: 2bbfceb90d2246d44a79b471b9e137a1, type: 2} + m_StaticBatchInfo: + firstSubMesh: 0 + subMeshCount: 0 + m_StaticBatchRoot: {fileID: 0} + m_ProbeAnchor: {fileID: 0} + m_LightProbeVolumeOverride: {fileID: 0} + m_ScaleInLightmap: 1 + m_ReceiveGI: 1 + m_PreserveUVs: 0 + m_IgnoreNormalsForChartDetection: 0 + m_ImportantGI: 0 + m_StitchLightmapSeams: 1 + m_SelectedEditorRenderState: 3 + m_MinimumChartSize: 4 + m_AutoUVMaxDistance: 0.5 + m_AutoUVMaxAngle: 89 + m_LightmapParameters: {fileID: 0} + m_SortingLayerID: 0 + m_SortingLayer: 0 + m_SortingOrder: 0 + m_AdditionalVertexStreams: {fileID: 0} +--- !u!33 &1813667323 +MeshFilter: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1813667318} + m_Mesh: {fileID: 0} +--- !u!4 &1813667324 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1813667318} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 6.4, y: -1.42, z: 0} + m_LocalScale: {x: 0.4, y: 0.4, z: 0.4} + m_ConstrainProportionsScale: 0 + m_Children: + - {fileID: 1744664983} + m_Father: {fileID: 0} + m_RootOrder: 5 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!1 &1842554116 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1842554121} + - component: {fileID: 1842554120} + - component: {fileID: 1842554118} + - component: {fileID: 1842554117} + - component: {fileID: 1842554122} + m_Layer: 0 + m_Name: Main Camera + m_TagString: MainCamera + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!81 &1842554117 +AudioListener: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1842554116} + m_Enabled: 1 +--- !u!124 &1842554118 +Behaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1842554116} + m_Enabled: 1 +--- !u!20 &1842554120 +Camera: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1842554116} + m_Enabled: 1 + serializedVersion: 2 + m_ClearFlags: 1 + m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0.019607844} + m_projectionMatrixMode: 1 + m_GateFitMode: 2 + m_FOVAxisMode: 0 + m_SensorSize: {x: 36, y: 24} + m_LensShift: {x: 0, y: 0} + m_FocalLength: 50 + m_NormalizedViewPortRect: + serializedVersion: 2 + x: 0 + y: 0 + width: 1 + height: 1 + near clip plane: 0.3 + far clip plane: 1000 + field of view: 60 + orthographic: 0 + orthographic size: 5 + m_Depth: -1 + m_CullingMask: + serializedVersion: 2 + m_Bits: 4294967295 + m_RenderingPath: -1 + m_TargetTexture: {fileID: 0} + m_TargetDisplay: 0 + m_TargetEye: 3 + m_HDR: 0 + m_AllowMSAA: 1 + m_AllowDynamicResolution: 0 + m_ForceIntoRT: 0 + m_OcclusionCulling: 1 + m_StereoConvergence: 10 + m_StereoSeparation: 0.022 +--- !u!4 &1842554121 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1842554116} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 1, z: -10} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 0 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!114 &1842554122 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1842554116} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: a79441f348de89743a2939f4d699eac1, type: 3} + m_Name: + m_EditorClassIdentifier: + m_RenderShadows: 1 + m_RequiresDepthTextureOption: 2 + m_RequiresOpaqueTextureOption: 2 + m_CameraType: 0 + m_Cameras: [] + m_RendererIndex: -1 + m_VolumeLayerMask: + serializedVersion: 2 + m_Bits: 1 + m_VolumeTrigger: {fileID: 0} + m_VolumeFrameworkUpdateModeOption: 2 + m_RenderPostProcessing: 0 + m_Antialiasing: 0 + m_AntialiasingQuality: 2 + m_StopNaN: 0 + m_Dithering: 0 + m_ClearDepth: 1 + m_AllowXRRendering: 1 + m_RequiresDepthTexture: 0 + m_RequiresColorTexture: 0 + m_Version: 2 diff --git a/Assets/ThirdParty/Spine Examples/Other Examples/Physics Constraints.unity.meta b/Assets/ThirdParty/Spine Examples/Other Examples/Physics Constraints.unity.meta new file mode 100644 index 000000000..fa9f19a6d --- /dev/null +++ b/Assets/ThirdParty/Spine Examples/Other Examples/Physics Constraints.unity.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: e08ce2e2ca315ea4a8e8d3a90681a14c +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/ThirdParty/Spine Examples/Other Examples/RenderTexture FadeOut Transparency.unity b/Assets/ThirdParty/Spine Examples/Other Examples/RenderTexture FadeOut Transparency.unity index 93acf07d8..57ff07b00 100644 --- a/Assets/ThirdParty/Spine Examples/Other Examples/RenderTexture FadeOut Transparency.unity +++ b/Assets/ThirdParty/Spine Examples/Other Examples/RenderTexture FadeOut Transparency.unity @@ -151,6 +151,7 @@ RectTransform: m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 592567554} m_RootOrder: 1 @@ -256,6 +257,9 @@ MonoBehaviour: materialsInsideMask: [] materialsOutsideMask: [] disableRenderingOnOverride: 1 + physicsPositionInheritanceFactor: {x: 1, y: 1} + physicsRotationInheritanceFactor: 1 + physicsMovementRelativeTo: {fileID: 0} updateTiming: 1 unscaledTime: 0 _animationName: run @@ -272,6 +276,7 @@ MeshRenderer: m_CastShadows: 1 m_ReceiveShadows: 1 m_DynamicOccludee: 1 + m_StaticShadowCaster: 0 m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 @@ -320,6 +325,7 @@ Transform: m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: -7.83, y: 0, z: 5.66} m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 0} m_RootOrder: 3 @@ -352,6 +358,7 @@ RectTransform: m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 592567554} m_RootOrder: 2 @@ -434,6 +441,7 @@ RectTransform: m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 0, y: 0, z: 0} + m_ConstrainProportionsScale: 0 m_Children: - {fileID: 1911967440} - {fileID: 71621967} @@ -489,6 +497,7 @@ Canvas: m_OverridePixelPerfect: 0 m_SortingBucketNormalizedSize: 0 m_AdditionalShaderChannelsFlag: 0 + m_UpdateRectTransformForStandalone: 0 m_SortingLayerID: 0 m_SortingOrder: 0 m_TargetDisplay: 0 @@ -518,6 +527,7 @@ RectTransform: m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 1911967440} m_RootOrder: 0 @@ -554,6 +564,7 @@ Transform: m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: -3.7153435, y: -0.0017910004, z: 5.9292965} m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 0} m_RootOrder: 2 @@ -583,6 +594,7 @@ GameObject: m_Component: - component: {fileID: 1369381601} - component: {fileID: 1369381600} + - component: {fileID: 1369381602} m_Layer: 0 m_Name: Directional Light m_TagString: Untagged @@ -662,10 +674,31 @@ Transform: m_LocalRotation: {x: 0.40821788, y: -0.23456968, z: 0.10938163, w: 0.8754261} m_LocalPosition: {x: 0, y: 3, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 0} m_RootOrder: 1 m_LocalEulerAnglesHint: {x: 50, y: -30, z: 0} +--- !u!114 &1369381602 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1369381599} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 474bcb49853aa07438625e644c072ee6, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Version: 1 + m_UsePipelineSettings: 1 + m_AdditionalLightsShadowResolutionTier: 2 + m_LightLayerMask: 1 + m_CustomShadowLayers: 0 + m_ShadowLayerMask: 1 + m_LightCookieSize: {x: 1, y: 1} + m_LightCookieOffset: {x: 0, y: 0} --- !u!1 &1407691187 GameObject: m_ObjectHideFlags: 0 @@ -745,6 +778,7 @@ Transform: m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: 0, y: 4.8, z: -10} m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 0} m_RootOrder: 0 @@ -811,6 +845,7 @@ Transform: m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 0} m_RootOrder: 5 @@ -843,6 +878,7 @@ RectTransform: m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 592567554} m_RootOrder: 3 @@ -930,6 +966,7 @@ RectTransform: m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 592567554} m_RootOrder: 4 @@ -1019,9 +1056,10 @@ MonoBehaviour: color: {r: 1, g: 1, b: 1, a: 1} maxRenderTextureSize: 1024 quad: {fileID: 0} + quadMaterial: {fileID: 2100000, guid: 4c507f887c6274a44a603d96e0eabf2a, type: 2} renderTexture: {fileID: 0} targetCamera: {fileID: 0} - quadMaterial: {fileID: 2100000, guid: 4c507f887c6274a44a603d96e0eabf2a, type: 2} + shaderPasses: 00000000 --- !u!114 &1786065615 MonoBehaviour: m_ObjectHideFlags: 0 @@ -1057,6 +1095,9 @@ MonoBehaviour: materialsInsideMask: [] materialsOutsideMask: [] disableRenderingOnOverride: 1 + physicsPositionInheritanceFactor: {x: 1, y: 1} + physicsRotationInheritanceFactor: 1 + physicsMovementRelativeTo: {fileID: 0} updateTiming: 1 unscaledTime: 0 _animationName: run @@ -1073,6 +1114,7 @@ MeshRenderer: m_CastShadows: 1 m_ReceiveShadows: 1 m_DynamicOccludee: 1 + m_StaticShadowCaster: 0 m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 @@ -1121,6 +1163,7 @@ Transform: m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: 2.38, y: 0, z: 5.66} m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 0} m_RootOrder: 4 @@ -1164,6 +1207,7 @@ Transform: m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: -4.7074776, y: 0.042612553, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 m_Children: - {fileID: 592567554} m_Father: {fileID: 0} @@ -1199,6 +1243,7 @@ RectTransform: m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 0.3, y: 0.3, z: 0.3} + m_ConstrainProportionsScale: 0 m_Children: - {fileID: 1089682727} m_Father: {fileID: 592567554} @@ -1233,6 +1278,7 @@ MonoBehaviour: additiveMaterial: {fileID: 2100000, guid: 2e8245019faeb8c43b75f9ca3ac8ee34, type: 2} multiplyMaterial: {fileID: 2100000, guid: e74a1f8978a7da348a721508d0d58834, type: 2} screenMaterial: {fileID: 2100000, guid: bab24c479f34eec45be6ea8595891569, type: 2} + m_SkeletonColor: {r: 1, g: 1, b: 1, a: 1} initialSkinName: default initialFlipX: 0 initialFlipY: 0 @@ -1240,6 +1286,14 @@ MonoBehaviour: startingLoop: 1 timeScale: 1 freeze: 0 + layoutScaleMode: 0 + referenceSize: {x: 2145.5999, y: 1302.059} + referencePivot: {x: 0.63858336, y: 0.010301443} + referencePivotOffset: {x: 1370.1444, y: 13.413086} + referenceScale: 1 + rectTransformSize: {x: 2145.5999, y: 1302.059} + rectTransformPivot: {x: 0, y: 0} + editReferenceRect: 0 updateWhenInvisible: 3 allowMultipleCanvasRenderers: 0 canvasRenderers: [] @@ -1247,16 +1301,20 @@ MonoBehaviour: enableSeparatorSlots: 0 separatorParts: [] updateSeparatorPartLocation: 1 + updateSeparatorPartScale: 0 disableMeshAssignmentOnOverride: 1 + physicsPositionInheritanceFactor: {x: 1, y: 1} + physicsRotationInheritanceFactor: 1 + physicsMovementRelativeTo: {fileID: 0} meshGenerator: settings: useClipping: 1 zSpacing: 0 - pmaVertexColors: 1 tintBlack: 0 - canvasGroupTintBlack: 0 - calculateTangents: 0 + canvasGroupCompatible: 0 + pmaVertexColors: 1 addNormals: 0 + calculateTangents: 0 immutableTriangles: 0 updateTiming: 1 unscaledTime: 0 @@ -1296,8 +1354,10 @@ MonoBehaviour: color: {r: 1, g: 1, b: 1, a: 1} maxRenderTextureSize: 1024 quad: {fileID: 0} + quadMaterial: {fileID: 2100000, guid: afeb0ae2ea2cda94796515bf8d1b3cb1, type: 2} renderTexture: {fileID: 0} targetCamera: {fileID: 0} + shaderPasses: 00000000 customRenderRect: {fileID: 1089682727} meshRendererMaterialForTexture: - texture: {fileID: 2800000, guid: 4ea2c33e839afb34c98f66e892b3b2d2, type: 3} diff --git a/Assets/ThirdParty/Spine Examples/Scripts/Getting Started Scripts/SpineboyBeginnerView.cs b/Assets/ThirdParty/Spine Examples/Scripts/Getting Started Scripts/SpineboyBeginnerView.cs index f37b0e3ea..89105c7b4 100644 --- a/Assets/ThirdParty/Spine Examples/Scripts/Getting Started Scripts/SpineboyBeginnerView.cs +++ b/Assets/ThirdParty/Spine Examples/Scripts/Getting Started Scripts/SpineboyBeginnerView.cs @@ -124,14 +124,14 @@ namespace Spine.Unity.Examples { public void PlayShoot () { // Play the shoot animation on track 1. TrackEntry shootTrack = skeletonAnimation.AnimationState.SetAnimation(1, shoot, false); - shootTrack.AttachmentThreshold = 1f; - shootTrack.MixDuration = 0f; + shootTrack.MixAttachmentThreshold = 1f; + shootTrack.SetMixDuration(0f, 0f); skeletonAnimation.state.AddEmptyAnimation(1, 0.5f, 0.1f); // Play the aim animation on track 2 to aim at the mouse target. TrackEntry aimTrack = skeletonAnimation.AnimationState.SetAnimation(2, aim, false); - aimTrack.AttachmentThreshold = 1f; - aimTrack.MixDuration = 0f; + aimTrack.MixAttachmentThreshold = 1f; + aimTrack.SetMixDuration(0f, 0f); skeletonAnimation.state.AddEmptyAnimation(2, 0.5f, 0.1f); gunSource.pitch = GetRandomPitch(gunsoundPitchOffset); @@ -143,8 +143,8 @@ namespace Spine.Unity.Examples { public void StartPlayingAim () { // Play the aim animation on track 2 to aim at the mouse target. TrackEntry aimTrack = skeletonAnimation.AnimationState.SetAnimation(2, aim, true); - aimTrack.AttachmentThreshold = 1f; - aimTrack.MixDuration = 0f; + aimTrack.MixAttachmentThreshold = 1f; + aimTrack.SetMixDuration(0f, 0f); // use SetMixDuration(mixDuration, delay) to update delay correctly } public void StopPlayingAim () { diff --git a/Assets/ThirdParty/Spine Examples/Scripts/Getting Started Scripts/SpineboyBeginnerViewGraphic.cs b/Assets/ThirdParty/Spine Examples/Scripts/Getting Started Scripts/SpineboyBeginnerViewGraphic.cs index 8f89716a4..7bcc7ad30 100644 --- a/Assets/ThirdParty/Spine Examples/Scripts/Getting Started Scripts/SpineboyBeginnerViewGraphic.cs +++ b/Assets/ThirdParty/Spine Examples/Scripts/Getting Started Scripts/SpineboyBeginnerViewGraphic.cs @@ -124,14 +124,14 @@ namespace Spine.Unity.Examples { public void PlayShoot () { // Play the shoot animation on track 1. TrackEntry shootTrack = skeletonGraphic.AnimationState.SetAnimation(1, shoot, false); - shootTrack.AttachmentThreshold = 1f; - shootTrack.MixDuration = 0f; + shootTrack.MixAttachmentThreshold = 1f; + shootTrack.SetMixDuration(0f, 0f); skeletonGraphic.AnimationState.AddEmptyAnimation(1, 0.5f, 0.1f); // Play the aim animation on track 2 to aim at the mouse target. TrackEntry aimTrack = skeletonGraphic.AnimationState.SetAnimation(2, aim, false); - aimTrack.AttachmentThreshold = 1f; - aimTrack.MixDuration = 0f; + aimTrack.MixAttachmentThreshold = 1f; + aimTrack.SetMixDuration(0f, 0f); skeletonGraphic.AnimationState.AddEmptyAnimation(2, 0.5f, 0.1f); gunSource.pitch = GetRandomPitch(gunsoundPitchOffset); @@ -143,8 +143,8 @@ namespace Spine.Unity.Examples { public void StartPlayingAim () { // Play the aim animation on track 2 to aim at the mouse target. TrackEntry aimTrack = skeletonGraphic.AnimationState.SetAnimation(2, aim, true); - aimTrack.AttachmentThreshold = 1f; - aimTrack.MixDuration = 0f; + aimTrack.MixAttachmentThreshold = 1f; + aimTrack.SetMixDuration(0f, 0f); // use SetMixDuration(mixDuration, delay) to update delay correctly } public void StopPlayingAim () { diff --git a/Assets/ThirdParty/Spine Examples/Scripts/RuntimeLoadFromExportsExample.cs b/Assets/ThirdParty/Spine Examples/Scripts/RuntimeLoadFromExportsExample.cs index c340e8aed..c274f99a3 100644 --- a/Assets/ThirdParty/Spine Examples/Scripts/RuntimeLoadFromExportsExample.cs +++ b/Assets/ThirdParty/Spine Examples/Scripts/RuntimeLoadFromExportsExample.cs @@ -46,14 +46,27 @@ namespace Spine.Unity.Examples { SpineAtlasAsset runtimeAtlasAsset; SkeletonDataAsset runtimeSkeletonDataAsset; SkeletonAnimation runtimeSkeletonAnimation; + SkeletonGraphic runtimeSkeletonGraphic; + + public bool blendModeMaterials = false; + public bool applyAdditiveMaterial = false; + public BlendModeMaterials.TemplateMaterials blendModeTemplateMaterials; + public BlendModeMaterials.TemplateMaterials graphicBlendModeMaterials; + public Material skeletonGraphicMaterial; void CreateRuntimeAssetsAndGameObject () { // 1. Create the AtlasAsset (needs atlas text asset and textures, and materials/shader); // 2. Create SkeletonDataAsset (needs json or binary asset file, and an AtlasAsset) - // 3. Create SkeletonAnimation (needs a valid SkeletonDataAsset) + // 2.1 Optional: Setup blend mode materials at SkeletonDataAsset. Only required if the skeleton + // uses blend modes which require blend mode materials. + // 3.a Create SkeletonAnimation (needs a valid SkeletonDataAsset) + // 3.b Create SkeletonGraphic (needs a valid SkeletonDataAsset) - runtimeAtlasAsset = SpineAtlasAsset.CreateRuntimeInstance(atlasText, textures, materialPropertySource, true); + runtimeAtlasAsset = SpineAtlasAsset.CreateRuntimeInstance(atlasText, textures, materialPropertySource, true, null, true); runtimeSkeletonDataAsset = SkeletonDataAsset.CreateRuntimeInstance(skeletonJson, runtimeAtlasAsset, true); + if (blendModeMaterials) + runtimeSkeletonDataAsset.SetupRuntimeBlendModeMaterials( + applyAdditiveMaterial, blendModeTemplateMaterials); } IEnumerator Start () { @@ -62,7 +75,15 @@ namespace Spine.Unity.Examples { runtimeSkeletonDataAsset.GetSkeletonData(false); // preload yield return new WaitForSeconds(delay); } + InstantiateSkeletonAnimation(); + + InstantiateSkeletonGraphic(); + } + + void InstantiateSkeletonAnimation () { runtimeSkeletonAnimation = SkeletonAnimation.NewSkeletonAnimationGameObject(runtimeSkeletonDataAsset); + runtimeSkeletonAnimation.transform.parent = transform; + runtimeSkeletonAnimation.name = "SkeletonAnimation Instance"; // additional initialization runtimeSkeletonAnimation.Initialize(false); @@ -72,6 +93,28 @@ namespace Spine.Unity.Examples { if (animationName != "") runtimeSkeletonAnimation.AnimationState.SetAnimation(0, animationName, true); } - } + void InstantiateSkeletonGraphic () { + Canvas canvas = this.GetComponentInChildren(); + Transform parent = canvas.transform; + + runtimeSkeletonGraphic = SkeletonGraphic.NewSkeletonGraphicGameObject(runtimeSkeletonDataAsset, parent, skeletonGraphicMaterial); + runtimeSkeletonGraphic.name = "SkeletonGraphic Instance"; + + if (blendModeMaterials) { + runtimeSkeletonGraphic.allowMultipleCanvasRenderers = true; + runtimeSkeletonGraphic.additiveMaterial = graphicBlendModeMaterials.additiveTemplate; + runtimeSkeletonGraphic.multiplyMaterial = graphicBlendModeMaterials.multiplyTemplate; + runtimeSkeletonGraphic.screenMaterial = graphicBlendModeMaterials.screenTemplate; + } + + // additional initialization + runtimeSkeletonGraphic.Initialize(false); + if (skinName != "") + runtimeSkeletonGraphic.Skeleton.SetSkin(skinName); + runtimeSkeletonGraphic.Skeleton.SetSlotsToSetupPose(); + if (animationName != "") + runtimeSkeletonGraphic.AnimationState.SetAnimation(0, animationName, true); + } + } } diff --git a/Assets/ThirdParty/Spine Examples/Scripts/Sample Components/RenderExistingMesh.cs b/Assets/ThirdParty/Spine Examples/Scripts/Sample Components/RenderExistingMesh.cs index 3c6e8af93..a0ae220f5 100644 --- a/Assets/ThirdParty/Spine Examples/Scripts/Sample Components/RenderExistingMesh.cs +++ b/Assets/ThirdParty/Spine Examples/Scripts/Sample Components/RenderExistingMesh.cs @@ -31,6 +31,10 @@ #define NEW_PREFAB_SYSTEM #endif +#if UNITY_2018_2_OR_NEWER +#define HAS_GET_SHARED_MATERIALS +#endif + using System.Collections.Generic; using UnityEngine; @@ -59,20 +63,28 @@ namespace Spine.Unity.Examples { private Dictionary replacementMaterialDict = new Dictionary(); private Material[] sharedMaterials = new Material[0]; +#if HAS_GET_SHARED_MATERIALS + private List parentMaterials = new List(); +#endif #if UNITY_EDITOR private void Reset () { if (referenceRenderer == null) { - referenceRenderer = this.transform.parent.GetComponentInParent(); - if (!referenceRenderer) - return; + if (this.transform.parent) + referenceRenderer = this.transform.parent.GetComponentInParent(); + if (referenceRenderer == null) return; } - +#if HAS_GET_SHARED_MATERIALS + referenceRenderer.GetSharedMaterials(parentMaterials); + int parentMaterialsCount = parentMaterials.Count; +#else Material[] parentMaterials = referenceRenderer.sharedMaterials; - if (replacementMaterials.Length != parentMaterials.Length) { - replacementMaterials = new MaterialReplacement[parentMaterials.Length]; + int parentMaterialsCount = parentMaterials.Length; +#endif + if (replacementMaterials.Length != parentMaterialsCount) { + replacementMaterials = new MaterialReplacement[parentMaterialsCount]; } - for (int i = 0; i < parentMaterials.Length; ++i) { + for (int i = 0; i < parentMaterialsCount; ++i) { replacementMaterials[i].originalMaterial = parentMaterials[i]; replacementMaterials[i].replacementMaterial = parentMaterials[i]; } @@ -82,9 +94,15 @@ namespace Spine.Unity.Examples { #endif void Awake () { + ownRenderer = this.GetComponent(); + ownMeshFilter = this.GetComponent(); + if (referenceRenderer == null) { - referenceRenderer = this.transform.parent.GetComponentInParent(); + if (this.transform.parent != null) + referenceRenderer = this.transform.parent.GetComponentInParent(); + if (referenceRenderer == null) return; } + referenceMeshFilter = referenceRenderer.GetComponent(); // subscribe to OnMeshAndMaterialsUpdated SkeletonAnimation skeletonRenderer = referenceRenderer.GetComponent(); @@ -93,9 +111,6 @@ namespace Spine.Unity.Examples { skeletonRenderer.OnMeshAndMaterialsUpdated += UpdateOnCallback; updateViaSkeletonCallback = true; } - referenceMeshFilter = referenceRenderer.GetComponent(); - ownRenderer = this.GetComponent(); - ownMeshFilter = this.GetComponent(); InitializeDict(); } @@ -131,13 +146,23 @@ namespace Spine.Unity.Examples { } void UpdateMaterials () { +#if UNITY_EDITOR + if (!referenceRenderer) return; + if (!referenceMeshFilter) Reset(); +#endif ownMeshFilter.sharedMesh = referenceMeshFilter.sharedMesh; +#if HAS_GET_SHARED_MATERIALS + referenceRenderer.GetSharedMaterials(parentMaterials); + int parentMaterialsCount = parentMaterials.Count; +#else Material[] parentMaterials = referenceRenderer.sharedMaterials; - if (sharedMaterials.Length != parentMaterials.Length) { - sharedMaterials = new Material[parentMaterials.Length]; + int parentMaterialsCount = parentMaterials.Length; +#endif + if (sharedMaterials.Length != parentMaterialsCount) { + sharedMaterials = new Material[parentMaterialsCount]; } - for (int i = 0; i < parentMaterials.Length; ++i) { + for (int i = 0; i < parentMaterialsCount; ++i) { Material parentMaterial = parentMaterials[i]; if (replacementMaterialDict.ContainsKey(parentMaterial)) { sharedMaterials[i] = replacementMaterialDict[parentMaterial]; diff --git a/Assets/ThirdParty/Spine Examples/Scripts/Sample Components/RenderExistingMeshGraphic.cs b/Assets/ThirdParty/Spine Examples/Scripts/Sample Components/RenderExistingMeshGraphic.cs new file mode 100644 index 000000000..518419c03 --- /dev/null +++ b/Assets/ThirdParty/Spine Examples/Scripts/Sample Components/RenderExistingMeshGraphic.cs @@ -0,0 +1,224 @@ +/****************************************************************************** + * Spine Runtimes License Agreement + * Last updated July 28, 2023. Replaces all prior versions. + * + * Copyright (c) 2013-2025, Esoteric Software LLC + * + * Integration of the Spine Runtimes into software or otherwise creating + * derivative works of the Spine Runtimes is permitted under the terms and + * conditions of Section 2 of the Spine Editor License Agreement: + * http://esotericsoftware.com/spine-editor-license + * + * Otherwise, it is permitted to integrate the Spine Runtimes into software or + * otherwise create derivative works of the Spine Runtimes (collectively, + * "Products"), provided that each user of the Products must obtain their own + * Spine Editor license and redistribution of the Products in any form must + * include this license and copyright notice. + * + * THE SPINE RUNTIMES ARE PROVIDED BY ESOTERIC SOFTWARE LLC "AS IS" AND ANY + * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + * DISCLAIMED. IN NO EVENT SHALL ESOTERIC SOFTWARE LLC BE LIABLE FOR ANY + * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, + * BUSINESS INTERRUPTION, OR LOSS OF USE, DATA, OR PROFITS) HOWEVER CAUSED AND + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THE + * SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + *****************************************************************************/ + +#if UNITY_2018_3 || UNITY_2019 || UNITY_2018_3_OR_NEWER +#define NEW_PREFAB_SYSTEM +#endif + +#if UNITY_2018_2_OR_NEWER +#define HAS_CULL_TRANSPARENT_MESH +#endif + +using System; +using System.Collections.Generic; +using UnityEngine; +using UnityEngine.UI; + +namespace Spine.Unity.Examples { + using MaterialReplacement = RenderExistingMesh.MaterialReplacement; + +#if NEW_PREFAB_SYSTEM + [ExecuteAlways] +#else + [ExecuteInEditMode] +#endif + public class RenderExistingMeshGraphic : MonoBehaviour { + public SkeletonGraphic referenceSkeletonGraphic; + public Material replacementMaterial; + + public MaterialReplacement[] replacementMaterials = new MaterialReplacement[0]; + + SkeletonSubmeshGraphic ownGraphic; + public List ownSubmeshGraphics; + +#if UNITY_EDITOR + private void Reset () { + Awake(); + LateUpdate(); + } +#endif + + void Awake () { + // subscribe to OnMeshAndMaterialsUpdated + if (referenceSkeletonGraphic) { + referenceSkeletonGraphic.OnMeshAndMaterialsUpdated -= UpdateOnCallback; + referenceSkeletonGraphic.OnMeshAndMaterialsUpdated += UpdateOnCallback; + } + + ownGraphic = this.GetComponent(); + if (referenceSkeletonGraphic) { + if (referenceSkeletonGraphic.allowMultipleCanvasRenderers) + EnsureCanvasRendererCount(referenceSkeletonGraphic.canvasRenderers.Count); + else + SetupSubmeshGraphic(); + } + } + + protected void OnDisable () { + if (referenceSkeletonGraphic) { + referenceSkeletonGraphic.OnMeshAndMaterialsUpdated -= UpdateOnCallback; + } + } + + protected void OnEnable () { +#if UNITY_EDITOR + // handle disabled scene reload + if (Application.isPlaying) { + Awake(); + return; + } +#endif + if (referenceSkeletonGraphic) { + referenceSkeletonGraphic.OnMeshAndMaterialsUpdated -= UpdateOnCallback; + referenceSkeletonGraphic.OnMeshAndMaterialsUpdated += UpdateOnCallback; + } + } + + void SetupSubmeshGraphic () { + if (ownGraphic == null) + ownGraphic = this.gameObject.AddComponent(); + + ownGraphic.maskable = referenceSkeletonGraphic.maskable; +#if HAS_CULL_TRANSPARENT_MESH + ownGraphic.canvasRenderer.cullTransparentMesh = referenceSkeletonGraphic.canvasRenderer.cullTransparentMesh; +#endif + ownGraphic.canvasRenderer.SetMaterial(replacementMaterial, referenceSkeletonGraphic.mainTexture); + } + + protected void EnsureCanvasRendererCount (int targetCount) { + if (ownSubmeshGraphics == null) + ownSubmeshGraphics = new List(); + +#if HAS_CULL_TRANSPARENT_MESH + bool cullTransparentMesh = referenceSkeletonGraphic.canvasRenderer.cullTransparentMesh; +#endif + Vector2 pivot = referenceSkeletonGraphic.rectTransform.pivot; + + int currentCount = ownSubmeshGraphics.Count; + for (int i = currentCount; i < targetCount; ++i) { + GameObject go = new GameObject(string.Format("Renderer{0}", i), typeof(RectTransform)); + go.transform.SetParent(this.transform, false); + go.transform.localPosition = Vector3.zero; + CanvasRenderer canvasRenderer = go.AddComponent(); +#if HAS_CULL_TRANSPARENT_MESH + canvasRenderer.cullTransparentMesh = cullTransparentMesh; +#endif + SkeletonSubmeshGraphic submeshGraphic = go.AddComponent(); + ownSubmeshGraphics.Add(submeshGraphic); + submeshGraphic.maskable = referenceSkeletonGraphic.maskable; + submeshGraphic.raycastTarget = false; + submeshGraphic.rectTransform.pivot = pivot; + submeshGraphic.rectTransform.anchorMin = Vector2.zero; + submeshGraphic.rectTransform.anchorMax = Vector2.one; + submeshGraphic.rectTransform.sizeDelta = Vector2.zero; + } + } + + protected void UpdateCanvasRenderers () { + Mesh[] referenceMeshes = referenceSkeletonGraphic.MeshesMultipleCanvasRenderers.Items; + Material[] referenceMaterials = referenceSkeletonGraphic.MaterialsMultipleCanvasRenderers.Items; + Texture[] referenceTextures = referenceSkeletonGraphic.TexturesMultipleCanvasRenderers.Items; + + int end = Math.Min(ownSubmeshGraphics.Count, referenceSkeletonGraphic.TexturesMultipleCanvasRenderers.Count); + + for (int i = 0; i < end; i++) { + SkeletonSubmeshGraphic submeshGraphic = ownSubmeshGraphics[i]; + CanvasRenderer reference = referenceSkeletonGraphic.canvasRenderers[i]; + + if (reference.gameObject.activeInHierarchy) { + Material usedMaterial = replacementMaterial != null ? + replacementMaterial : GetReplacementMaterialFor(referenceMaterials[i]); + if (usedMaterial == null) + usedMaterial = referenceMaterials[i]; + usedMaterial = referenceSkeletonGraphic.GetModifiedMaterial(usedMaterial); + submeshGraphic.canvasRenderer.SetMaterial(usedMaterial, referenceTextures[i]); + submeshGraphic.canvasRenderer.SetMesh(referenceMeshes[i]); + submeshGraphic.gameObject.SetActive(true); + } else { + submeshGraphic.canvasRenderer.Clear(); + submeshGraphic.gameObject.SetActive(false); + } + } + } + + protected void DisableCanvasRenderers () { + for (int i = 0; i < ownSubmeshGraphics.Count; i++) { + SkeletonSubmeshGraphic submeshGraphic = ownSubmeshGraphics[i]; + submeshGraphic.canvasRenderer.Clear(); + submeshGraphic.gameObject.SetActive(false); + } + } + + protected Material GetReplacementMaterialFor (Material originalMaterial) { + for (int i = 0; i < replacementMaterials.Length; ++i) { + MaterialReplacement entry = replacementMaterials[i]; + if (entry.originalMaterial != null && entry.originalMaterial.shader == originalMaterial.shader) + return entry.replacementMaterial; + } + return null; + } + +#if UNITY_EDITOR + void LateUpdate () { + if (!Application.isPlaying) { + UpdateMesh(); + } + } +#endif + + void UpdateOnCallback (SkeletonGraphic g) { + UpdateMesh(); + } + + void UpdateMesh () { + if (!referenceSkeletonGraphic) return; + + if (referenceSkeletonGraphic.allowMultipleCanvasRenderers) { + EnsureCanvasRendererCount(referenceSkeletonGraphic.canvasRenderers.Count); + UpdateCanvasRenderers(); + if (ownGraphic) + ownGraphic.canvasRenderer.Clear(); + } else { + if (ownGraphic == null) + ownGraphic = this.gameObject.AddComponent(); + + DisableCanvasRenderers(); + + Material referenceMaterial = referenceSkeletonGraphic.materialForRendering; + Material usedMaterial = replacementMaterial != null ? replacementMaterial : GetReplacementMaterialFor(referenceMaterial); + if (usedMaterial == null) + usedMaterial = referenceMaterial; + usedMaterial = referenceSkeletonGraphic.GetModifiedMaterial(usedMaterial); + ownGraphic.canvasRenderer.SetMaterial(usedMaterial, referenceSkeletonGraphic.mainTexture); + Mesh mesh = referenceSkeletonGraphic.GetLastMesh(); + ownGraphic.canvasRenderer.SetMesh(mesh); + } + } + } +} diff --git a/Assets/ThirdParty/Spine Examples/Scripts/Sample Components/RenderExistingMeshGraphic.cs.meta b/Assets/ThirdParty/Spine Examples/Scripts/Sample Components/RenderExistingMeshGraphic.cs.meta new file mode 100644 index 000000000..6790dcc80 --- /dev/null +++ b/Assets/ThirdParty/Spine Examples/Scripts/Sample Components/RenderExistingMeshGraphic.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: ff6ce4ce6b9336a479c6bf5af81fa80a +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/ThirdParty/Spine Examples/Scripts/Sample Components/Sample VertexEffects/TwoByTwoTransformEffectExample.cs b/Assets/ThirdParty/Spine Examples/Scripts/Sample Components/Sample VertexEffects/TwoByTwoTransformEffectExample.cs index 831a90c27..d37ebc17f 100644 --- a/Assets/ThirdParty/Spine Examples/Scripts/Sample Components/Sample VertexEffects/TwoByTwoTransformEffectExample.cs +++ b/Assets/ThirdParty/Spine Examples/Scripts/Sample Components/Sample VertexEffects/TwoByTwoTransformEffectExample.cs @@ -98,7 +98,11 @@ public class TwoByTwoTransformEffectExampleEditor : UnityEditor.Editor { Color originalColor = UnityEditor.Handles.color; UnityEditor.Handles.color = color; UnityEditor.Handles.DrawLine(transform.position, transform.TransformPoint(v)); +#if UNITY_2022_1_OR_NEWER + v = transform.InverseTransformPoint(UnityEditor.Handles.FreeMoveHandle(transform.TransformPoint(v), 0.3f, Vector3.zero, UnityEditor.Handles.CubeHandleCap)); +#else v = transform.InverseTransformPoint(UnityEditor.Handles.FreeMoveHandle(transform.TransformPoint(v), Quaternion.identity, 0.3f, Vector3.zero, UnityEditor.Handles.CubeHandleCap)); +#endif UnityEditor.Handles.color = originalColor; } } diff --git a/Assets/ThirdParty/Spine Examples/Scripts/Sample Components/SkeletonRenderTexture/RenderQuadGraphicMaterial.mat b/Assets/ThirdParty/Spine Examples/Scripts/Sample Components/SkeletonRenderTexture/RenderQuadGraphicMaterial.mat new file mode 100644 index 000000000..8e8b55971 --- /dev/null +++ b/Assets/ThirdParty/Spine Examples/Scripts/Sample Components/SkeletonRenderTexture/RenderQuadGraphicMaterial.mat @@ -0,0 +1,106 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!21 &2100000 +Material: + serializedVersion: 8 + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: RenderQuadGraphicMaterial + m_Shader: {fileID: 4800000, guid: fa95b0fb6983c0f40a152e6f9aa82bfb, type: 3} + m_Parent: {fileID: 0} + m_ModifiedSerializedProperties: 0 + m_ValidKeywords: + - _CANVAS_GROUP_COMPATIBLE + m_InvalidKeywords: + - _ALPHAPREMULTIPLY_ON + - _USE8NEIGHBOURHOOD_ON + m_LightmapFlags: 4 + m_EnableInstancingVariants: 0 + m_DoubleSidedGI: 0 + m_CustomRenderQueue: -1 + stringTagMap: {} + disabledShaderPasses: [] + m_LockedProperties: + m_SavedProperties: + serializedVersion: 3 + m_TexEnvs: + - _BumpMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailAlbedoMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailMask: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailNormalMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _EmissionMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _MainTex: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _MetallicGlossMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _OcclusionMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _ParallaxMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + m_Ints: [] + m_Floats: + - _BumpScale: 1 + - _CanvasGroupCompatible: 1 + - _ColorMask: 15 + - _Cutoff: 0.5 + - _DarkColorAlphaAdditive: 0 + - _DetailNormalMapScale: 1 + - _DstBlend: 10 + - _GlossMapScale: 1 + - _Glossiness: 0.5 + - _GlossyReflections: 1 + - _Metallic: 0 + - _Mode: 3 + - _OcclusionStrength: 1 + - _OutlineMipLevel: 0 + - _OutlineOpaqueAlpha: 1 + - _OutlineReferenceTexWidth: 1024 + - _OutlineSmoothness: 1 + - _OutlineWidth: 3 + - _Parallax: 0.02 + - _SmoothnessTextureChannel: 0 + - _SpecularHighlights: 1 + - _SrcBlend: 1 + - _Stencil: 0 + - _StencilComp: 8 + - _StencilOp: 0 + - _StencilReadMask: 255 + - _StencilRef: 1 + - _StencilWriteMask: 255 + - _StraightAlphaInput: 0 + - _ThresholdEnd: 0.25 + - _UVSec: 0 + - _Use8Neighbourhood: 1 + - _UseUIAlphaClip: 0 + - _ZWrite: 0 + m_Colors: + - _Black: {r: 0, g: 0, b: 0, a: 0} + - _Color: {r: 1, g: 1, b: 1, a: 1} + - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} + - _OutlineColor: {r: 1, g: 1, b: 0, a: 1} + m_BuildTextureStacks: [] diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/Dragon/dragon_dragon6.mat.meta b/Assets/ThirdParty/Spine Examples/Scripts/Sample Components/SkeletonRenderTexture/RenderQuadGraphicMaterial.mat.meta similarity index 79% rename from Assets/ThirdParty/Spine Examples/Spine Skeletons/Dragon/dragon_dragon6.mat.meta rename to Assets/ThirdParty/Spine Examples/Scripts/Sample Components/SkeletonRenderTexture/RenderQuadGraphicMaterial.mat.meta index b6a32bc21..ad6afa4b1 100644 --- a/Assets/ThirdParty/Spine Examples/Spine Skeletons/Dragon/dragon_dragon6.mat.meta +++ b/Assets/ThirdParty/Spine Examples/Scripts/Sample Components/SkeletonRenderTexture/RenderQuadGraphicMaterial.mat.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: df19a30178772d14895780e0cbd7c25c +guid: afeb0ae2ea2cda94796515bf8d1b3cb1 NativeFormatImporter: externalObjects: {} mainObjectFileID: 2100000 diff --git a/Assets/ThirdParty/Spine Examples/Scripts/Sample Components/SkeletonRenderTexture/SkeletonGraphicRenderTexture.cs b/Assets/ThirdParty/Spine Examples/Scripts/Sample Components/SkeletonRenderTexture/SkeletonGraphicRenderTexture.cs index 15014ffce..952d3f668 100644 --- a/Assets/ThirdParty/Spine Examples/Scripts/Sample Components/SkeletonRenderTexture/SkeletonGraphicRenderTexture.cs +++ b/Assets/ThirdParty/Spine Examples/Scripts/Sample Components/SkeletonRenderTexture/SkeletonGraphicRenderTexture.cs @@ -40,7 +40,7 @@ namespace Spine.Unity.Examples { /// /// When enabled, this component renders a skeleton to a RenderTexture and - /// then draws this RenderTexture at a UI RawImage quad of the same size. + /// then draws this RenderTexture at a UI SkeletonSubmeshGraphic quad of the same size. /// This allows changing transparency at a single quad, which produces a more /// natural fadeout effect. /// Note: It is recommended to keep this component disabled as much as possible @@ -64,9 +64,22 @@ namespace Spine.Unity.Examples { protected SkeletonGraphic skeletonGraphic; public List meshRendererMaterialForTexture = new List(); protected CanvasRenderer quadCanvasRenderer; - protected RawImage quadRawImage; + protected SkeletonSubmeshGraphic quadMaskableGraphic; protected readonly Vector3[] worldCorners = new Vector3[4]; + public void ResetMeshRendererMaterials () { + meshRendererMaterialForTexture.Clear(); + AtlasAssetBase[] atlasAssets = skeletonGraphic.SkeletonDataAsset.atlasAssets; + for (int i = 0; i < atlasAssets.Length; ++i) { + foreach (Material material in atlasAssets[i].Materials) { + if (material.mainTexture != null) { + meshRendererMaterialForTexture.Add( + new TextureMaterialPair(material.mainTexture, material)); + } + } + } + } + protected override void Awake () { base.Awake(); skeletonGraphic = this.GetComponent(); @@ -79,28 +92,32 @@ namespace Spine.Unity.Examples { } void CreateQuadChild () { - quad = new GameObject(this.name + " RenderTexture", typeof(CanvasRenderer), typeof(RawImage)); + quad = new GameObject(this.name + " RenderTexture", typeof(CanvasRenderer), typeof(SkeletonSubmeshGraphic)); quad.transform.SetParent(this.transform.parent, false); quadCanvasRenderer = quad.GetComponent(); - quadRawImage = quad.GetComponent(); + quadMaskableGraphic = quad.GetComponent(); quadMesh = new Mesh(); quadMesh.MarkDynamic(); quadMesh.name = "RenderTexture Quad"; quadMesh.hideFlags = HideFlags.DontSaveInBuild | HideFlags.DontSaveInEditor; + + if (quadMaterial == null) { + quadMaterial = new Material(Shader.Find("Spine/SkeletonGraphic")); + quadMaterial.EnableKeyword("_CANVAS_GROUP_COMPATIBLE"); + } } void Reset () { skeletonGraphic = this.GetComponent(); - AtlasAssetBase[] atlasAssets = skeletonGraphic.SkeletonDataAsset.atlasAssets; - for (int i = 0; i < atlasAssets.Length; ++i) { - foreach (Material material in atlasAssets[i].Materials) { - if (material.mainTexture != null) { - meshRendererMaterialForTexture.Add( - new TextureMaterialPair(material.mainTexture, material)); - } - } + ResetMeshRendererMaterials(); +#if UNITY_EDITOR + string[] assets = UnityEditor.AssetDatabase.FindAssets("t:material RenderQuadGraphicMaterial"); + if (assets.Length > 0) { + string materialPath = UnityEditor.AssetDatabase.GUIDToAssetPath(assets[0]); + quadMaterial = UnityEditor.AssetDatabase.LoadAssetAtPath(materialPath); } +#endif } void OnEnable () { @@ -109,6 +126,7 @@ namespace Spine.Unity.Examples { skeletonGraphic.AssignMeshOverrideMultipleRenderers += RenderMultipleMeshesToRenderTexture; skeletonGraphic.disableMeshAssignmentOnOverride = true; skeletonGraphic.OnMeshAndMaterialsUpdated += RenderOntoQuad; + skeletonGraphic.OnAnimationRebuild += OnRebuild; List canvasRenderers = skeletonGraphic.canvasRenderers; for (int i = 0; i < canvasRenderers.Count; ++i) canvasRenderers[i].cull = true; @@ -123,6 +141,7 @@ namespace Spine.Unity.Examples { skeletonGraphic.AssignMeshOverrideMultipleRenderers -= RenderMultipleMeshesToRenderTexture; skeletonGraphic.disableMeshAssignmentOnOverride = false; skeletonGraphic.OnMeshAndMaterialsUpdated -= RenderOntoQuad; + skeletonGraphic.OnAnimationRebuild -= OnRebuild; List canvasRenderers = skeletonGraphic.canvasRenderers; for (int i = 0; i < canvasRenderers.Count; ++i) canvasRenderers[i].cull = false; @@ -143,6 +162,10 @@ namespace Spine.Unity.Examples { AssignAtQuad(); } + void OnRebuild (ISkeletonAnimation skeletonGraphic) { + ResetMeshRendererMaterials(); + } + protected void PrepareForMesh () { // We need to get the min/max of all four corners, rotation of the skeleton // in combination with perspective projection otherwise might lead to incorrect @@ -194,8 +217,10 @@ namespace Spine.Unity.Examples { } protected void RenderSingleMeshToRenderTexture (Mesh mesh, Material graphicMaterial, Texture texture) { + if (mesh.subMeshCount == 0) return; Material meshRendererMaterial = MeshRendererMaterialForTexture(texture); - commandBuffer.DrawMesh(mesh, transform.localToWorldMatrix, meshRendererMaterial, 0, -1); + foreach (int shaderPass in shaderPasses) + commandBuffer.DrawMesh(mesh, transform.localToWorldMatrix, meshRendererMaterial, 0, shaderPass); Graphics.ExecuteCommandBuffer(commandBuffer); } @@ -203,19 +228,23 @@ namespace Spine.Unity.Examples { Mesh[] meshes, Material[] graphicMaterials, Texture[] textures) { for (int i = 0; i < meshCount; ++i) { + Mesh mesh = meshes[i]; + if (mesh.subMeshCount == 0) continue; + Material meshRendererMaterial = MeshRendererMaterialForTexture(textures[i]); - commandBuffer.DrawMesh(meshes[i], transform.localToWorldMatrix, meshRendererMaterial, 0, -1); + foreach (int shaderPass in shaderPasses) + commandBuffer.DrawMesh(mesh, transform.localToWorldMatrix, meshRendererMaterial, 0, shaderPass); } Graphics.ExecuteCommandBuffer(commandBuffer); } protected void SetupQuad () { - quadRawImage.texture = this.renderTexture; - quadRawImage.color = color; + quadCanvasRenderer.SetMaterial(quadMaterial, this.renderTexture); + quadMaskableGraphic.color = color; quadCanvasRenderer.SetColor(color); RectTransform srcRectTransform = skeletonGraphic.rectTransform; - RectTransform dstRectTransform = quadRawImage.rectTransform; + RectTransform dstRectTransform = quadMaskableGraphic.rectTransform; dstRectTransform.anchorMin = srcRectTransform.anchorMin; dstRectTransform.anchorMax = srcRectTransform.anchorMax; @@ -231,24 +260,30 @@ namespace Spine.Unity.Examples { commandBuffer.SetRenderTarget(renderTexture); commandBuffer.ClearRenderTarget(true, true, Color.clear); - Rect canvasRect = skeletonGraphic.canvas.pixelRect; - - Matrix4x4 projectionMatrix = Matrix4x4.Ortho( - canvasRect.x, canvasRect.x + canvasRect.width, - canvasRect.y, canvasRect.y + canvasRect.height, - float.MinValue, float.MaxValue); + Vector2 targetViewportSize = new Vector2( + screenSpaceMax.x - screenSpaceMin.x, + screenSpaceMax.y - screenSpaceMin.y); RenderMode canvasRenderMode = skeletonGraphic.canvas.renderMode; if (canvasRenderMode == RenderMode.ScreenSpaceOverlay) { + Rect canvasRect = skeletonGraphic.canvas.pixelRect; + canvasRect.x += screenSpaceMin.x; + canvasRect.y += screenSpaceMin.y; + canvasRect.width = targetViewportSize.x; + canvasRect.height = targetViewportSize.y; + Matrix4x4 projectionMatrix = Matrix4x4.Ortho( + canvasRect.x, canvasRect.x + canvasRect.width, + canvasRect.y, canvasRect.y + canvasRect.height, + float.MinValue, float.MaxValue); commandBuffer.SetViewMatrix(Matrix4x4.identity); commandBuffer.SetProjectionMatrix(projectionMatrix); } else { commandBuffer.SetViewMatrix(targetCamera.worldToCameraMatrix); - commandBuffer.SetProjectionMatrix(targetCamera.projectionMatrix); + Matrix4x4 projectionMatrix = CalculateProjectionMatrix(targetCamera, + screenSpaceMin, screenSpaceMax, skeletonGraphic.canvas.pixelRect.size); + commandBuffer.SetProjectionMatrix(projectionMatrix); } - - Vector2 targetCameraViewportSize = targetCamera.pixelRect.size; - Rect viewportRect = new Rect(-screenSpaceMin * downScaleFactor, targetCameraViewportSize * downScaleFactor); + Rect viewportRect = new Rect(Vector2.zero, targetViewportSize * downScaleFactor); commandBuffer.SetViewport(viewportRect); } diff --git a/Assets/ThirdParty/Spine Examples/Scripts/Sample Components/SkeletonRenderTexture/SkeletonRenderTexture.cs b/Assets/ThirdParty/Spine Examples/Scripts/Sample Components/SkeletonRenderTexture/SkeletonRenderTexture.cs index 6edbdafc9..1a606dab3 100644 --- a/Assets/ThirdParty/Spine Examples/Scripts/Sample Components/SkeletonRenderTexture/SkeletonRenderTexture.cs +++ b/Assets/ThirdParty/Spine Examples/Scripts/Sample Components/SkeletonRenderTexture/SkeletonRenderTexture.cs @@ -52,7 +52,6 @@ namespace Spine.Unity.Examples { [RequireComponent(typeof(SkeletonRenderer))] public class SkeletonRenderTexture : SkeletonRenderTextureBase { #if HAS_GET_SHARED_MATERIALS - public Material quadMaterial; protected SkeletonRenderer skeletonRenderer; protected MeshRenderer meshRenderer; protected MeshFilter meshFilter; @@ -87,6 +86,7 @@ namespace Spine.Unity.Examples { void CreateQuadChild () { quad = new GameObject(this.name + " RenderTexture", typeof(MeshRenderer), typeof(MeshFilter)); quad.transform.SetParent(this.transform.parent, false); + quad.layer = meshRenderer.gameObject.layer; quadMeshRenderer = quad.GetComponent(); quadMeshFilter = quad.GetComponent(); @@ -129,6 +129,13 @@ namespace Spine.Unity.Examples { } void RenderOntoQuad (SkeletonRenderer skeletonRenderer) { + if (meshFilter == null) + meshFilter = this.GetComponent(); + Vector3 size = meshFilter.sharedMesh.bounds.size; + if (size.x == 0f || size.y == 0f) { + AssignNullMeshAtQuad(); + return; + } PrepareForMesh(); RenderToRenderTexture(); AssignAtQuad(); @@ -175,10 +182,16 @@ namespace Spine.Unity.Examples { commandBuffer.SetRenderTarget(renderTexture); commandBuffer.ClearRenderTarget(true, true, Color.clear); - commandBuffer.SetProjectionMatrix(targetCamera.projectionMatrix); commandBuffer.SetViewMatrix(targetCamera.worldToCameraMatrix); - Vector2 targetCameraViewportSize = targetCamera.pixelRect.size; - Rect viewportRect = new Rect(-screenSpaceMin * downScaleFactor, targetCameraViewportSize * downScaleFactor); + + Matrix4x4 projectionMatrix = CalculateProjectionMatrix(targetCamera, + screenSpaceMin, screenSpaceMax, targetCamera.pixelRect.size); + commandBuffer.SetProjectionMatrix(projectionMatrix); + + Vector2 targetViewportSize = new Vector2( + screenSpaceMax.x - screenSpaceMin.x, + screenSpaceMax.y - screenSpaceMin.y); + Rect viewportRect = new Rect(Vector2.zero, targetViewportSize * downScaleFactor); commandBuffer.SetViewport(viewportRect); } @@ -186,9 +199,11 @@ namespace Spine.Unity.Examples { meshRenderer.GetPropertyBlock(propertyBlock); meshRenderer.GetSharedMaterials(materials); - for (int i = 0; i < materials.Count; i++) - commandBuffer.DrawMesh(meshFilter.sharedMesh, transform.localToWorldMatrix, - materials[i], meshRenderer.subMeshStartIndex + i, -1, propertyBlock); + for (int i = 0; i < materials.Count; i++) { + foreach (int shaderPass in shaderPasses) + commandBuffer.DrawMesh(meshFilter.sharedMesh, transform.localToWorldMatrix, + materials[i], meshRenderer.subMeshStartIndex + i, shaderPass, propertyBlock); + } Graphics.ExecuteCommandBuffer(commandBuffer); } @@ -197,6 +212,10 @@ namespace Spine.Unity.Examples { quadMeshRenderer.sharedMaterial.mainTexture = this.renderTexture; quadMeshRenderer.sharedMaterial.color = color; } + + protected void AssignNullMeshAtQuad () { + quadMeshFilter.mesh = null; + } #endif } } diff --git a/Assets/ThirdParty/Spine Examples/Scripts/Sample Components/SkeletonRenderTexture/SkeletonRenderTextureBase.cs b/Assets/ThirdParty/Spine Examples/Scripts/Sample Components/SkeletonRenderTexture/SkeletonRenderTextureBase.cs index db5ad2d6b..aeb82063b 100644 --- a/Assets/ThirdParty/Spine Examples/Scripts/Sample Components/SkeletonRenderTexture/SkeletonRenderTextureBase.cs +++ b/Assets/ThirdParty/Spine Examples/Scripts/Sample Components/SkeletonRenderTexture/SkeletonRenderTextureBase.cs @@ -42,9 +42,14 @@ namespace Spine.Unity.Examples { public Color color = Color.white; public int maxRenderTextureSize = 1024; public GameObject quad; + public Material quadMaterial; protected Mesh quadMesh; public RenderTexture renderTexture; public Camera targetCamera; + [Tooltip("Shader passes to render to the RenderTexture. E.g. set the first element " + + "to -1 to render all shader passes, or set it to 0 to only render the first " + + "shader pass, which may be required when using URP or shadow-casting shaders.")] + public int[] shaderPasses = new int[1] { 0 }; protected CommandBuffer commandBuffer; protected Vector2Int screenSize; @@ -117,6 +122,45 @@ namespace Spine.Unity.Examples { } } + protected Matrix4x4 CalculateProjectionMatrix (Camera targetCamera, + Vector3 screenSpaceMin, Vector3 screenSpaceMax, Vector2 fullSizePixels) { + if (targetCamera.orthographic) + return CalculateOrthoMatrix(targetCamera, screenSpaceMin, screenSpaceMax, fullSizePixels); + else + return CalculatePerspectiveMatrix(targetCamera, screenSpaceMin, screenSpaceMax, fullSizePixels); + } + + protected Matrix4x4 CalculateOrthoMatrix (Camera targetCamera, + Vector3 screenSpaceMin, Vector3 screenSpaceMax, Vector2 fullSizePixels) { + + Vector2 cameraSize = new Vector2( + targetCamera.orthographicSize * 2.0f * targetCamera.aspect, + targetCamera.orthographicSize * 2.0f); + Vector2 min = new Vector2(screenSpaceMin.x, screenSpaceMin.y) / fullSizePixels; + Vector2 max = new Vector2(screenSpaceMax.x, screenSpaceMax.y) / fullSizePixels; + Vector2 centerOffset = new Vector2(-0.5f, -0.5f); + min = (min + centerOffset) * cameraSize; + max = (max + centerOffset) * cameraSize; + + return Matrix4x4.Ortho(min.x, max.x, min.y, max.y, float.MinValue, float.MaxValue); + } + + protected Matrix4x4 CalculatePerspectiveMatrix (Camera targetCamera, + Vector3 screenSpaceMin, Vector3 screenSpaceMax, Vector2 fullSizePixels) { + + FrustumPlanes frustumPlanes = targetCamera.projectionMatrix.decomposeProjection; + Vector2 planesSize = new Vector2( + frustumPlanes.right - frustumPlanes.left, + frustumPlanes.top - frustumPlanes.bottom); + Vector2 min = new Vector2(screenSpaceMin.x, screenSpaceMin.y) / fullSizePixels * planesSize; + Vector2 max = new Vector2(screenSpaceMax.x, screenSpaceMax.y) / fullSizePixels * planesSize; + frustumPlanes.right = frustumPlanes.left + max.x; + frustumPlanes.top = frustumPlanes.bottom + max.y; + frustumPlanes.left += min.x; + frustumPlanes.bottom += min.y; + return Matrix4x4.Frustum(frustumPlanes); + } + protected void AssignAtQuad () { Transform quadTransform = quad.transform; quadTransform.position = this.transform.position; diff --git a/Assets/ThirdParty/Spine Examples/Scripts/Sample Components/SkeletonUtility Modules/SkeletonRagdoll.cs b/Assets/ThirdParty/Spine Examples/Scripts/Sample Components/SkeletonUtility Modules/SkeletonRagdoll.cs index da2837ffe..0bdbf354a 100644 --- a/Assets/ThirdParty/Spine Examples/Scripts/Sample Components/SkeletonUtility Modules/SkeletonRagdoll.cs +++ b/Assets/ThirdParty/Spine Examples/Scripts/Sample Components/SkeletonUtility Modules/SkeletonRagdoll.cs @@ -269,7 +269,7 @@ namespace Spine.Unity.Examples { t.position -= offset; UpdateSpineSkeleton(null); - skeleton.UpdateWorldTransform(); + skeleton.UpdateWorldTransform(Skeleton.Physics.Update); } /// Removes the ragdoll instance and effect from the animated skeleton. diff --git a/Assets/ThirdParty/Spine Examples/Scripts/Sample Components/SkeletonUtility Modules/SkeletonRagdoll2D.cs b/Assets/ThirdParty/Spine Examples/Scripts/Sample Components/SkeletonUtility Modules/SkeletonRagdoll2D.cs index 5d5eaf1d4..5e184c111 100644 --- a/Assets/ThirdParty/Spine Examples/Scripts/Sample Components/SkeletonUtility Modules/SkeletonRagdoll2D.cs +++ b/Assets/ThirdParty/Spine Examples/Scripts/Sample Components/SkeletonUtility Modules/SkeletonRagdoll2D.cs @@ -281,7 +281,7 @@ namespace Spine.Unity.Examples { t.position -= offset; UpdateSpineSkeleton(null); - skeleton.UpdateWorldTransform(); + skeleton.UpdateWorldTransform(Skeleton.Physics.Update); } /// Removes the ragdoll instance and effect from the animated skeleton. diff --git a/Assets/ThirdParty/Spine Examples/Scripts/SpineGauge.cs b/Assets/ThirdParty/Spine Examples/Scripts/SpineGauge.cs index 829a57678..4f6bd84f2 100644 --- a/Assets/ThirdParty/Spine Examples/Scripts/SpineGauge.cs +++ b/Assets/ThirdParty/Spine Examples/Scripts/SpineGauge.cs @@ -56,7 +56,7 @@ namespace Spine.Unity.Examples { Skeleton skeleton = skeletonRenderer.skeleton; if (skeleton == null) return; fillAnimation.Animation.Apply(skeleton, 0, percent, false, null, 1f, MixBlend.Setup, MixDirection.In); - skeleton.UpdateWorldTransform(); + skeleton.UpdateWorldTransform(Skeleton.Physics.Update); } } diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/Dragon/dragon.atlas.txt b/Assets/ThirdParty/Spine Examples/Spine Skeletons/Dragon/dragon.atlas.txt index d90845f5f..805630d88 100644 --- a/Assets/ThirdParty/Spine Examples/Spine Skeletons/Dragon/dragon.atlas.txt +++ b/Assets/ThirdParty/Spine Examples/Spine Skeletons/Dragon/dragon.atlas.txt @@ -2,128 +2,116 @@ dragon.png size: 1024, 1024 filter: Linear, Linear pma: true -back - bounds: 564, 534, 190, 185 -chest - bounds: 2, 645, 136, 122 -chin - bounds: 140, 619, 214, 146 front-toe-a - bounds: 2, 862, 29, 50 - rotate: 90 + bounds: 797, 381, 29, 50 front-toe-b - bounds: 467, 835, 56, 57 - rotate: 90 + bounds: 942, 118, 56, 57 head - bounds: 756, 398, 296, 260 + bounds: 647, 81, 296, 260 rotate: 90 left-front-leg - bounds: 599, 834, 84, 57 + bounds: 942, 250, 84, 57 + rotate: 90 left-front-thigh - bounds: 782, 819, 84, 72 -left-rear-leg - bounds: 356, 558, 206, 177 -left-rear-thigh - bounds: 216, 767, 91, 149 - rotate: 90 + bounds: 852, 7, 84, 72 left-wing01 - bounds: 2, 268, 264, 589 - rotate: 90 -left-wing02 - bounds: 2, 2, 264, 589 - rotate: 90 -right-front-leg - bounds: 113, 769, 101, 89 -right-front-thigh - bounds: 758, 709, 108, 108 -right-rear-leg - bounds: 640, 721, 116, 100 -right-rear-thigh - bounds: 367, 742, 91, 149 - rotate: 90 + bounds: 736, 433, 264, 589 right-rear-toe - bounds: 2, 781, 109, 77 -tail01 - bounds: 868, 696, 120, 153 - rotate: 90 -tail02 - bounds: 518, 737, 95, 120 + bounds: 647, 2, 109, 77 +right-wing01 + bounds: 2, 379, 365, 643 +right-wing02 + bounds: 369, 379, 365, 643 +right-wing03 + bounds: 2, 12, 365, 643 rotate: 90 tail03 - bounds: 868, 818, 73, 92 + bounds: 758, 6, 73, 92 rotate: 90 tail04 - bounds: 526, 835, 56, 71 - rotate: 90 + bounds: 942, 177, 56, 71 tail05 - bounds: 406, 839, 52, 59 + bounds: 736, 379, 52, 59 rotate: 90 tail06 - bounds: 685, 823, 95, 68 + bounds: 942, 336, 95, 68 + rotate: 90 thiagobrayner - bounds: 54, 860, 350, 31 + bounds: 909, 81, 350, 31 + rotate: 90 dragon2.png size: 1024, 1024 filter: Linear, Linear pma: true -left-wing03 - bounds: 2, 534, 264, 589 +back + bounds: 795, 32, 190, 185 +chin + bounds: 647, 157, 214, 146 rotate: 90 -left-wing04 - bounds: 2, 268, 264, 589 +left-rear-leg + bounds: 795, 219, 206, 177 rotate: 90 -left-wing05 - bounds: 593, 209, 264, 589 -left-wing06 - bounds: 2, 2, 264, 589 +left-wing02 + bounds: 736, 427, 264, 589 +right-wing04 + bounds: 2, 373, 365, 643 +right-wing05 + bounds: 369, 373, 365, 643 +right-wing06 + bounds: 2, 6, 365, 643 rotate: 90 +tail01 + bounds: 647, 2, 120, 153 dragon3.png size: 1024, 1024 filter: Linear, Linear pma: true -left-wing07 - bounds: 2, 694, 264, 589 +chest + bounds: 740, 299, 136, 122 +left-rear-thigh + bounds: 647, 218, 91, 149 +left-wing03 + bounds: 736, 423, 264, 589 +right-front-leg + bounds: 850, 196, 101, 89 rotate: 90 -left-wing08 - bounds: 2, 428, 264, 589 - rotate: 90 -left-wing09 - bounds: 593, 369, 264, 589 -right-wing01 +right-front-thigh + bounds: 740, 189, 108, 108 +right-rear-leg + bounds: 878, 321, 116, 100 +right-rear-thigh + bounds: 647, 67, 91, 149 +right-wing07 + bounds: 2, 369, 365, 643 +right-wing08 + bounds: 369, 369, 365, 643 +right-wing09 bounds: 2, 2, 365, 643 rotate: 90 +tail02 + bounds: 740, 67, 95, 120 dragon4.png size: 1024, 1024 filter: Linear, Linear pma: true -right-wing02 - bounds: 2, 369, 365, 643 -right-wing03 - bounds: 369, 369, 365, 643 -right-wing04 - bounds: 2, 2, 365, 643 +left-wing04 + bounds: 2, 268, 264, 589 +left-wing05 + bounds: 268, 268, 264, 589 +left-wing06 + bounds: 534, 268, 264, 589 +left-wing07 + bounds: 2, 2, 264, 589 rotate: 90 dragon5.png size: 1024, 1024 filter: Linear, Linear pma: true -right-wing05 - bounds: 2, 369, 365, 643 -right-wing06 - bounds: 369, 369, 365, 643 -right-wing07 - bounds: 2, 2, 365, 643 - rotate: 90 - -dragon6.png - size: 1024, 1024 - filter: Linear, Linear - pma: true -right-wing08 - bounds: 2, 2, 365, 643 -right-wing09 - bounds: 369, 2, 365, 643 +left-wing08 + bounds: 2, 2, 264, 589 +left-wing09 + bounds: 268, 2, 264, 589 diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/Dragon/dragon.json b/Assets/ThirdParty/Spine Examples/Spine Skeletons/Dragon/dragon.json index 7c16610d7..e5ed6c7c1 100644 --- a/Assets/ThirdParty/Spine Examples/Spine Skeletons/Dragon/dragon.json +++ b/Assets/ThirdParty/Spine Examples/Spine Skeletons/Dragon/dragon.json @@ -1,7 +1,7 @@ { "skeleton": { - "hash": "aPoA1GjXkVI", - "spine": "4.1.23-beta", + "hash": "fE1TdXi9fk4", + "spine": "4.2.22", "x": -366.31, "y": -327.81, "width": 660.39, diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/Dragon/dragon.png b/Assets/ThirdParty/Spine Examples/Spine Skeletons/Dragon/dragon.png index bc49bf978..ec9e89390 100644 Binary files a/Assets/ThirdParty/Spine Examples/Spine Skeletons/Dragon/dragon.png and b/Assets/ThirdParty/Spine Examples/Spine Skeletons/Dragon/dragon.png differ diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/Dragon/dragon.png.meta b/Assets/ThirdParty/Spine Examples/Spine Skeletons/Dragon/dragon.png.meta index 78249580c..7dd533ed4 100644 --- a/Assets/ThirdParty/Spine Examples/Spine Skeletons/Dragon/dragon.png.meta +++ b/Assets/ThirdParty/Spine Examples/Spine Skeletons/Dragon/dragon.png.meta @@ -29,7 +29,7 @@ TextureImporter: mipmaps: mipMapMode: 0 enableMipMap: 0 - sRGBTexture: 1 + sRGBTexture: 0 linearTexture: 0 fadeOut: 0 borderMipMap: 0 diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/Dragon/dragon2.png b/Assets/ThirdParty/Spine Examples/Spine Skeletons/Dragon/dragon2.png index 084bc5e93..6c025cb8e 100644 Binary files a/Assets/ThirdParty/Spine Examples/Spine Skeletons/Dragon/dragon2.png and b/Assets/ThirdParty/Spine Examples/Spine Skeletons/Dragon/dragon2.png differ diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/Dragon/dragon2.png.meta b/Assets/ThirdParty/Spine Examples/Spine Skeletons/Dragon/dragon2.png.meta index 265d56e45..669b2c753 100644 --- a/Assets/ThirdParty/Spine Examples/Spine Skeletons/Dragon/dragon2.png.meta +++ b/Assets/ThirdParty/Spine Examples/Spine Skeletons/Dragon/dragon2.png.meta @@ -27,7 +27,7 @@ TextureImporter: mipmaps: mipMapMode: 0 enableMipMap: 0 - sRGBTexture: 1 + sRGBTexture: 0 linearTexture: 0 fadeOut: 0 borderMipMap: 0 diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/Dragon/dragon3.png b/Assets/ThirdParty/Spine Examples/Spine Skeletons/Dragon/dragon3.png index 17276d4e6..42d87958e 100644 Binary files a/Assets/ThirdParty/Spine Examples/Spine Skeletons/Dragon/dragon3.png and b/Assets/ThirdParty/Spine Examples/Spine Skeletons/Dragon/dragon3.png differ diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/Dragon/dragon3.png.meta b/Assets/ThirdParty/Spine Examples/Spine Skeletons/Dragon/dragon3.png.meta index 7f8ad48eb..d07c2320f 100644 --- a/Assets/ThirdParty/Spine Examples/Spine Skeletons/Dragon/dragon3.png.meta +++ b/Assets/ThirdParty/Spine Examples/Spine Skeletons/Dragon/dragon3.png.meta @@ -7,7 +7,7 @@ TextureImporter: mipmaps: mipMapMode: 0 enableMipMap: 0 - sRGBTexture: 1 + sRGBTexture: 0 linearTexture: 0 fadeOut: 0 borderMipMap: 0 diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/Dragon/dragon4.png b/Assets/ThirdParty/Spine Examples/Spine Skeletons/Dragon/dragon4.png index f0b9d721b..11283aad5 100644 Binary files a/Assets/ThirdParty/Spine Examples/Spine Skeletons/Dragon/dragon4.png and b/Assets/ThirdParty/Spine Examples/Spine Skeletons/Dragon/dragon4.png differ diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/Dragon/dragon4.png.meta b/Assets/ThirdParty/Spine Examples/Spine Skeletons/Dragon/dragon4.png.meta index 4c2081384..75761e906 100644 --- a/Assets/ThirdParty/Spine Examples/Spine Skeletons/Dragon/dragon4.png.meta +++ b/Assets/ThirdParty/Spine Examples/Spine Skeletons/Dragon/dragon4.png.meta @@ -7,7 +7,7 @@ TextureImporter: mipmaps: mipMapMode: 0 enableMipMap: 0 - sRGBTexture: 1 + sRGBTexture: 0 linearTexture: 0 fadeOut: 0 borderMipMap: 0 diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/Dragon/dragon5.png b/Assets/ThirdParty/Spine Examples/Spine Skeletons/Dragon/dragon5.png index f98942cba..4aba3a6d3 100644 Binary files a/Assets/ThirdParty/Spine Examples/Spine Skeletons/Dragon/dragon5.png and b/Assets/ThirdParty/Spine Examples/Spine Skeletons/Dragon/dragon5.png differ diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/Dragon/dragon5.png.meta b/Assets/ThirdParty/Spine Examples/Spine Skeletons/Dragon/dragon5.png.meta index 5b58643e2..be7a6557f 100644 --- a/Assets/ThirdParty/Spine Examples/Spine Skeletons/Dragon/dragon5.png.meta +++ b/Assets/ThirdParty/Spine Examples/Spine Skeletons/Dragon/dragon5.png.meta @@ -7,7 +7,7 @@ TextureImporter: mipmaps: mipMapMode: 0 enableMipMap: 0 - sRGBTexture: 1 + sRGBTexture: 0 linearTexture: 0 fadeOut: 0 borderMipMap: 0 diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/Dragon/dragon6.png b/Assets/ThirdParty/Spine Examples/Spine Skeletons/Dragon/dragon6.png deleted file mode 100644 index ebbfe9285..000000000 Binary files a/Assets/ThirdParty/Spine Examples/Spine Skeletons/Dragon/dragon6.png and /dev/null differ diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/Dragon/dragon_Atlas.asset b/Assets/ThirdParty/Spine Examples/Spine Skeletons/Dragon/dragon_Atlas.asset index 6247c15a7..fac6ecbd8 100644 --- a/Assets/ThirdParty/Spine Examples/Spine Skeletons/Dragon/dragon_Atlas.asset +++ b/Assets/ThirdParty/Spine Examples/Spine Skeletons/Dragon/dragon_Atlas.asset @@ -21,4 +21,3 @@ MonoBehaviour: - {fileID: 2100000, guid: 46ebf60e37c48414f90b2f53f8ce4ea0, type: 2} - {fileID: 2100000, guid: 1cb51a81cfe737549beec4fdb1f16360, type: 2} - {fileID: 2100000, guid: bd1fb273f898c1e4482466fbdfdbd01e, type: 2} - - {fileID: 2100000, guid: df19a30178772d14895780e0cbd7c25c, type: 2} diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/Dragon/dragon_dragon.mat b/Assets/ThirdParty/Spine Examples/Spine Skeletons/Dragon/dragon_dragon.mat index 4d948ec39..33cecd8db 100644 --- a/Assets/ThirdParty/Spine Examples/Spine Skeletons/Dragon/dragon_dragon.mat +++ b/Assets/ThirdParty/Spine Examples/Spine Skeletons/Dragon/dragon_dragon.mat @@ -28,6 +28,7 @@ Material: m_Ints: [] m_Floats: - _Cutoff: 0.1 + - _Fill: 0 - _OutlineMipLevel: 0 - _OutlineOpaqueAlpha: 1 - _OutlineReferenceTexWidth: 1024 @@ -38,6 +39,7 @@ Material: - _StraightAlphaInput: 0 - _ThresholdEnd: 0.25 - _Use8Neighbourhood: 1 + - _UseScreenSpaceOutlineWidth: 0 m_Colors: - _OutlineColor: {r: 1, g: 1, b: 0, a: 1} m_BuildTextureStacks: [] diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/Dragon/dragon_dragon2.mat b/Assets/ThirdParty/Spine Examples/Spine Skeletons/Dragon/dragon_dragon2.mat index 74575c500..ef6d5fc46 100644 --- a/Assets/ThirdParty/Spine Examples/Spine Skeletons/Dragon/dragon_dragon2.mat +++ b/Assets/ThirdParty/Spine Examples/Spine Skeletons/Dragon/dragon_dragon2.mat @@ -28,6 +28,7 @@ Material: m_Ints: [] m_Floats: - _Cutoff: 0.1 + - _Fill: 0 - _OutlineMipLevel: 0 - _OutlineOpaqueAlpha: 1 - _OutlineReferenceTexWidth: 1024 @@ -38,6 +39,7 @@ Material: - _StraightAlphaInput: 0 - _ThresholdEnd: 0.25 - _Use8Neighbourhood: 1 + - _UseScreenSpaceOutlineWidth: 0 m_Colors: - _OutlineColor: {r: 1, g: 1, b: 0, a: 1} m_BuildTextureStacks: [] diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/Dragon/dragon_dragon3.mat b/Assets/ThirdParty/Spine Examples/Spine Skeletons/Dragon/dragon_dragon3.mat index 29514f0a4..7889500df 100644 --- a/Assets/ThirdParty/Spine Examples/Spine Skeletons/Dragon/dragon_dragon3.mat +++ b/Assets/ThirdParty/Spine Examples/Spine Skeletons/Dragon/dragon_dragon3.mat @@ -28,6 +28,7 @@ Material: m_Ints: [] m_Floats: - _Cutoff: 0.1 + - _Fill: 0 - _OutlineMipLevel: 0 - _OutlineOpaqueAlpha: 1 - _OutlineReferenceTexWidth: 1024 @@ -38,6 +39,7 @@ Material: - _StraightAlphaInput: 0 - _ThresholdEnd: 0.25 - _Use8Neighbourhood: 1 + - _UseScreenSpaceOutlineWidth: 0 m_Colors: - _OutlineColor: {r: 1, g: 1, b: 0, a: 1} m_BuildTextureStacks: [] diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/Dragon/dragon_dragon4.mat b/Assets/ThirdParty/Spine Examples/Spine Skeletons/Dragon/dragon_dragon4.mat index 0fbbe9f88..44dedf5ea 100644 --- a/Assets/ThirdParty/Spine Examples/Spine Skeletons/Dragon/dragon_dragon4.mat +++ b/Assets/ThirdParty/Spine Examples/Spine Skeletons/Dragon/dragon_dragon4.mat @@ -28,6 +28,7 @@ Material: m_Ints: [] m_Floats: - _Cutoff: 0.1 + - _Fill: 0 - _OutlineMipLevel: 0 - _OutlineOpaqueAlpha: 1 - _OutlineReferenceTexWidth: 1024 @@ -38,6 +39,7 @@ Material: - _StraightAlphaInput: 0 - _ThresholdEnd: 0.25 - _Use8Neighbourhood: 1 + - _UseScreenSpaceOutlineWidth: 0 m_Colors: - _OutlineColor: {r: 1, g: 1, b: 0, a: 1} m_BuildTextureStacks: [] diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/Dragon/dragon_dragon5.mat b/Assets/ThirdParty/Spine Examples/Spine Skeletons/Dragon/dragon_dragon5.mat index a333a8561..7fc3d4f37 100644 --- a/Assets/ThirdParty/Spine Examples/Spine Skeletons/Dragon/dragon_dragon5.mat +++ b/Assets/ThirdParty/Spine Examples/Spine Skeletons/Dragon/dragon_dragon5.mat @@ -28,6 +28,7 @@ Material: m_Ints: [] m_Floats: - _Cutoff: 0.1 + - _Fill: 0 - _OutlineMipLevel: 0 - _OutlineOpaqueAlpha: 1 - _OutlineReferenceTexWidth: 1024 @@ -38,6 +39,7 @@ Material: - _StraightAlphaInput: 0 - _ThresholdEnd: 0.25 - _Use8Neighbourhood: 1 + - _UseScreenSpaceOutlineWidth: 0 m_Colors: - _OutlineColor: {r: 1, g: 1, b: 0, a: 1} m_BuildTextureStacks: [] diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/Eyes/eyes.atlas.txt b/Assets/ThirdParty/Spine Examples/Spine Skeletons/Eyes/eyes.atlas.txt index 6d82750d9..d5004c0c6 100644 --- a/Assets/ThirdParty/Spine Examples/Spine Skeletons/Eyes/eyes.atlas.txt +++ b/Assets/ThirdParty/Spine Examples/Spine Skeletons/Eyes/eyes.atlas.txt @@ -3,10 +3,10 @@ eyes.png filter: Linear, Linear pma: true EyeLines - bounds: 2, 2, 868, 322 + bounds: 2, 152, 868, 322 EyeWhite - bounds: 2, 326, 700, 148 + bounds: 2, 2, 700, 148 L_Eye - bounds: 704, 326, 148, 148 + bounds: 872, 326, 148, 148 R_Eye - bounds: 704, 326, 148, 148 + bounds: 872, 326, 148, 148 diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/Eyes/eyes.json b/Assets/ThirdParty/Spine Examples/Spine Skeletons/Eyes/eyes.json index 56a3086b9..7fa736b4b 100644 --- a/Assets/ThirdParty/Spine Examples/Spine Skeletons/Eyes/eyes.json +++ b/Assets/ThirdParty/Spine Examples/Spine Skeletons/Eyes/eyes.json @@ -1,7 +1,7 @@ { "skeleton": { - "hash": "3Ru4PsHnfWE", - "spine": "4.1.23-beta", + "hash": "bCPH+nfNatw", + "spine": "4.2.22", "x": -434, "y": -133, "width": 868, diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/Eyes/eyes.png b/Assets/ThirdParty/Spine Examples/Spine Skeletons/Eyes/eyes.png index b8aa51f35..02459133e 100644 Binary files a/Assets/ThirdParty/Spine Examples/Spine Skeletons/Eyes/eyes.png and b/Assets/ThirdParty/Spine Examples/Spine Skeletons/Eyes/eyes.png differ diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/Eyes/eyes.png.meta b/Assets/ThirdParty/Spine Examples/Spine Skeletons/Eyes/eyes.png.meta index 619633917..de9b14ba7 100644 --- a/Assets/ThirdParty/Spine Examples/Spine Skeletons/Eyes/eyes.png.meta +++ b/Assets/ThirdParty/Spine Examples/Spine Skeletons/Eyes/eyes.png.meta @@ -8,7 +8,7 @@ TextureImporter: mipmaps: mipMapMode: 0 enableMipMap: 0 - sRGBTexture: 1 + sRGBTexture: 0 linearTexture: 0 fadeOut: 0 borderMipMap: 0 diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/Eyes/eyes_Material.mat b/Assets/ThirdParty/Spine Examples/Spine Skeletons/Eyes/eyes_Material.mat index 1271244c6..1ffa89bcd 100644 --- a/Assets/ThirdParty/Spine Examples/Spine Skeletons/Eyes/eyes_Material.mat +++ b/Assets/ThirdParty/Spine Examples/Spine Skeletons/Eyes/eyes_Material.mat @@ -7,12 +7,12 @@ Material: m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_Name: eyes_Material + m_Name: eyes_material m_Shader: {fileID: 4800000, guid: 1e8a610c9e01c3648bac42585e5fc676, type: 3} m_ValidKeywords: [] m_InvalidKeywords: - _USE8NEIGHBOURHOOD_ON - m_LightmapFlags: 5 + m_LightmapFlags: 4 m_EnableInstancingVariants: 0 m_DoubleSidedGI: 0 m_CustomRenderQueue: -1 @@ -28,6 +28,7 @@ Material: m_Ints: [] m_Floats: - _Cutoff: 0.1 + - _Fill: 0 - _OutlineMipLevel: 0 - _OutlineOpaqueAlpha: 1 - _OutlineReferenceTexWidth: 1024 @@ -38,6 +39,7 @@ Material: - _StraightAlphaInput: 0 - _ThresholdEnd: 0.25 - _Use8Neighbourhood: 1 + - _UseScreenSpaceOutlineWidth: 0 m_Colors: - _OutlineColor: {r: 1, g: 1, b: 0, a: 1} m_BuildTextureStacks: [] diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/Eyes/eyes_Material.mat.meta b/Assets/ThirdParty/Spine Examples/Spine Skeletons/Eyes/eyes_Material.mat.meta index 1b3efba47..89795f0f6 100644 --- a/Assets/ThirdParty/Spine Examples/Spine Skeletons/Eyes/eyes_Material.mat.meta +++ b/Assets/ThirdParty/Spine Examples/Spine Skeletons/Eyes/eyes_Material.mat.meta @@ -1,4 +1,8 @@ fileFormatVersion: 2 guid: 4f9d106a1e4d45b468b980311947a225 NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 2100000 userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/FootSoldier/Equipment/Equipment.png.meta b/Assets/ThirdParty/Spine Examples/Spine Skeletons/FootSoldier/Equipment/Equipment.png.meta index 7a557cfc2..58a7db054 100644 --- a/Assets/ThirdParty/Spine Examples/Spine Skeletons/FootSoldier/Equipment/Equipment.png.meta +++ b/Assets/ThirdParty/Spine Examples/Spine Skeletons/FootSoldier/Equipment/Equipment.png.meta @@ -12,7 +12,7 @@ TextureImporter: mipmaps: mipMapMode: 0 enableMipMap: 0 - sRGBTexture: 1 + sRGBTexture: 0 linearTexture: 0 fadeOut: 0 borderMipMap: 0 diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/FootSoldier/Equipment/Equipment_Material.mat b/Assets/ThirdParty/Spine Examples/Spine Skeletons/FootSoldier/Equipment/Equipment_Material.mat index 8e8b3910c..5288235f8 100644 --- a/Assets/ThirdParty/Spine Examples/Spine Skeletons/FootSoldier/Equipment/Equipment_Material.mat +++ b/Assets/ThirdParty/Spine Examples/Spine Skeletons/FootSoldier/Equipment/Equipment_Material.mat @@ -28,6 +28,7 @@ Material: m_Ints: [] m_Floats: - _Cutoff: 0.1 + - _Fill: 0 - _OutlineMipLevel: 0 - _OutlineOpaqueAlpha: 1 - _OutlineReferenceTexWidth: 1024 @@ -38,6 +39,7 @@ Material: - _StraightAlphaInput: 0 - _ThresholdEnd: 0.25 - _Use8Neighbourhood: 1 + - _UseScreenSpaceOutlineWidth: 0 m_Colors: - _OutlineColor: {r: 1, g: 1, b: 0, a: 1} m_BuildTextureStacks: [] diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/FootSoldier/FS_White.png b/Assets/ThirdParty/Spine Examples/Spine Skeletons/FootSoldier/FS_White.png index dec75bc50..9ef97aa05 100644 Binary files a/Assets/ThirdParty/Spine Examples/Spine Skeletons/FootSoldier/FS_White.png and b/Assets/ThirdParty/Spine Examples/Spine Skeletons/FootSoldier/FS_White.png differ diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/FootSoldier/FS_White.png.meta b/Assets/ThirdParty/Spine Examples/Spine Skeletons/FootSoldier/FS_White.png.meta index 9a1c0a059..43704126b 100644 --- a/Assets/ThirdParty/Spine Examples/Spine Skeletons/FootSoldier/FS_White.png.meta +++ b/Assets/ThirdParty/Spine Examples/Spine Skeletons/FootSoldier/FS_White.png.meta @@ -8,7 +8,7 @@ TextureImporter: mipmaps: mipMapMode: 0 enableMipMap: 0 - sRGBTexture: 1 + sRGBTexture: 0 linearTexture: 0 fadeOut: 0 borderMipMap: 0 diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/FootSoldier/FS_White_Material.mat b/Assets/ThirdParty/Spine Examples/Spine Skeletons/FootSoldier/FS_White_Material.mat index 713128afa..73a4a3eb4 100644 --- a/Assets/ThirdParty/Spine Examples/Spine Skeletons/FootSoldier/FS_White_Material.mat +++ b/Assets/ThirdParty/Spine Examples/Spine Skeletons/FootSoldier/FS_White_Material.mat @@ -7,12 +7,12 @@ Material: m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_Name: FS_White_Material + m_Name: FS_White_material m_Shader: {fileID: 4800000, guid: 1e8a610c9e01c3648bac42585e5fc676, type: 3} m_ValidKeywords: [] m_InvalidKeywords: - _USE8NEIGHBOURHOOD_ON - m_LightmapFlags: 5 + m_LightmapFlags: 4 m_EnableInstancingVariants: 0 m_DoubleSidedGI: 0 m_CustomRenderQueue: -1 @@ -28,6 +28,7 @@ Material: m_Ints: [] m_Floats: - _Cutoff: 0.1 + - _Fill: 0 - _OutlineMipLevel: 0 - _OutlineOpaqueAlpha: 1 - _OutlineReferenceTexWidth: 1024 @@ -38,6 +39,7 @@ Material: - _StraightAlphaInput: 0 - _ThresholdEnd: 0.25 - _Use8Neighbourhood: 1 + - _UseScreenSpaceOutlineWidth: 0 m_Colors: - _OutlineColor: {r: 1, g: 1, b: 0, a: 1} m_BuildTextureStacks: [] diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/FootSoldier/FS_White_Material.mat.meta b/Assets/ThirdParty/Spine Examples/Spine Skeletons/FootSoldier/FS_White_Material.mat.meta index 146d15988..c8e140523 100644 --- a/Assets/ThirdParty/Spine Examples/Spine Skeletons/FootSoldier/FS_White_Material.mat.meta +++ b/Assets/ThirdParty/Spine Examples/Spine Skeletons/FootSoldier/FS_White_Material.mat.meta @@ -1,4 +1,8 @@ fileFormatVersion: 2 guid: 5a3598dafa118754db95756064347da7 NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 2100000 userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/FootSoldier/FootSoldier.json b/Assets/ThirdParty/Spine Examples/Spine Skeletons/FootSoldier/FootSoldier.json index 7dd4077a4..4c1640f8d 100644 --- a/Assets/ThirdParty/Spine Examples/Spine Skeletons/FootSoldier/FootSoldier.json +++ b/Assets/ThirdParty/Spine Examples/Spine Skeletons/FootSoldier/FootSoldier.json @@ -1,7 +1,7 @@ { "skeleton": { - "hash": "RGdJecpcnMU", - "spine": "4.1.23-beta", + "hash": "sqPqrqoSm2E", + "spine": "4.2.22", "x": -79.83, "y": -0.99, "width": 147.64, diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/Gauge/Gauge.atlas.txt b/Assets/ThirdParty/Spine Examples/Spine Skeletons/Gauge/Gauge.atlas.txt index 0178a6569..2bfd8f01e 100644 --- a/Assets/ThirdParty/Spine Examples/Spine Skeletons/Gauge/Gauge.atlas.txt +++ b/Assets/ThirdParty/Spine Examples/Spine Skeletons/Gauge/Gauge.atlas.txt @@ -1,10 +1,10 @@ Gauge.png - size: 512, 128 + size: 1024, 64 filter: Linear, Linear pma: true Background - bounds: 254, 36, 224, 32 + bounds: 254, 30, 224, 32 Bar - bounds: 254, 2, 224, 32 + bounds: 480, 30, 224, 32 Border - bounds: 2, 8, 250, 60 + bounds: 2, 2, 250, 60 diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/Gauge/Gauge.json b/Assets/ThirdParty/Spine Examples/Spine Skeletons/Gauge/Gauge.json index c3f838910..3ebfb0424 100644 --- a/Assets/ThirdParty/Spine Examples/Spine Skeletons/Gauge/Gauge.json +++ b/Assets/ThirdParty/Spine Examples/Spine Skeletons/Gauge/Gauge.json @@ -1,7 +1,7 @@ { "skeleton": { - "hash": "Sz0QhWD6Eyg", - "spine": "4.1.23-beta", + "hash": "TKIzjMjpnSk", + "spine": "4.2.22", "x": -125, "y": -30, "width": 250, diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/Gauge/Gauge.png b/Assets/ThirdParty/Spine Examples/Spine Skeletons/Gauge/Gauge.png index 083750f93..3ed43f6c8 100644 Binary files a/Assets/ThirdParty/Spine Examples/Spine Skeletons/Gauge/Gauge.png and b/Assets/ThirdParty/Spine Examples/Spine Skeletons/Gauge/Gauge.png differ diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/Gauge/Gauge.png.meta b/Assets/ThirdParty/Spine Examples/Spine Skeletons/Gauge/Gauge.png.meta index 85b6f3937..412ca51e3 100644 --- a/Assets/ThirdParty/Spine Examples/Spine Skeletons/Gauge/Gauge.png.meta +++ b/Assets/ThirdParty/Spine Examples/Spine Skeletons/Gauge/Gauge.png.meta @@ -8,7 +8,7 @@ TextureImporter: mipmaps: mipMapMode: 0 enableMipMap: 0 - sRGBTexture: 1 + sRGBTexture: 0 linearTexture: 0 fadeOut: 0 borderMipMap: 0 diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/Gauge/Gauge_Material.mat b/Assets/ThirdParty/Spine Examples/Spine Skeletons/Gauge/Gauge_Material.mat index c5fad8ab3..bc2a72e79 100644 --- a/Assets/ThirdParty/Spine Examples/Spine Skeletons/Gauge/Gauge_Material.mat +++ b/Assets/ThirdParty/Spine Examples/Spine Skeletons/Gauge/Gauge_Material.mat @@ -7,12 +7,12 @@ Material: m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_Name: Gauge_Material + m_Name: Gauge_material m_Shader: {fileID: 4800000, guid: 1e8a610c9e01c3648bac42585e5fc676, type: 3} m_ValidKeywords: [] m_InvalidKeywords: - _USE8NEIGHBOURHOOD_ON - m_LightmapFlags: 5 + m_LightmapFlags: 4 m_EnableInstancingVariants: 0 m_DoubleSidedGI: 0 m_CustomRenderQueue: -1 @@ -28,6 +28,7 @@ Material: m_Ints: [] m_Floats: - _Cutoff: 0.1 + - _Fill: 0 - _OutlineMipLevel: 0 - _OutlineOpaqueAlpha: 1 - _OutlineReferenceTexWidth: 1024 @@ -38,6 +39,7 @@ Material: - _StraightAlphaInput: 0 - _ThresholdEnd: 0.25 - _Use8Neighbourhood: 1 + - _UseScreenSpaceOutlineWidth: 0 m_Colors: - _OutlineColor: {r: 1, g: 1, b: 0, a: 1} m_BuildTextureStacks: [] diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/Gauge/Gauge_Material.mat.meta b/Assets/ThirdParty/Spine Examples/Spine Skeletons/Gauge/Gauge_Material.mat.meta index 7b7b3aaa2..3dc452a43 100644 --- a/Assets/ThirdParty/Spine Examples/Spine Skeletons/Gauge/Gauge_Material.mat.meta +++ b/Assets/ThirdParty/Spine Examples/Spine Skeletons/Gauge/Gauge_Material.mat.meta @@ -1,4 +1,8 @@ fileFormatVersion: 2 guid: 9ab9bdbda020b3e46b5a3b0558ef591d NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 2100000 userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/Goblins/dagger.png.meta b/Assets/ThirdParty/Spine Examples/Spine Skeletons/Goblins/dagger.png.meta index ff57b805b..965a2f446 100644 --- a/Assets/ThirdParty/Spine Examples/Spine Skeletons/Goblins/dagger.png.meta +++ b/Assets/ThirdParty/Spine Examples/Spine Skeletons/Goblins/dagger.png.meta @@ -20,6 +20,7 @@ TextureImporter: externalNormalMap: 0 heightScale: 0.25 normalMapFilter: 0 + flipGreenChannel: 0 isReadable: 1 streamingMipmaps: 0 streamingMipmapsPriority: 0 @@ -63,6 +64,7 @@ TextureImporter: textureFormatSet: 0 ignorePngGamma: 0 applyGammaDecoding: 1 + swizzle: 50462976 cookieLightType: 1 platformSettings: - serializedVersion: 3 @@ -89,30 +91,6 @@ TextureImporter: overridden: 0 androidETC2FallbackOverride: 0 forceMaximumCompressionQuality_BC6H_BC7: 0 - - serializedVersion: 3 - buildTarget: iPhone - maxTextureSize: 2048 - resizeAlgorithm: 0 - textureFormat: -1 - textureCompression: 0 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - androidETC2FallbackOverride: 0 - forceMaximumCompressionQuality_BC6H_BC7: 0 - - serializedVersion: 3 - buildTarget: Android - maxTextureSize: 2048 - resizeAlgorithm: 0 - textureFormat: -1 - textureCompression: 0 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - androidETC2FallbackOverride: 0 - forceMaximumCompressionQuality_BC6H_BC7: 0 - serializedVersion: 3 buildTarget: Server maxTextureSize: 2048 @@ -141,7 +119,6 @@ TextureImporter: nameFileIdTable: {} spritePackingTag: pSDRemoveMatte: 0 - pSDShowRemoveMatteOption: 0 userData: assetBundleName: assetBundleVariant: diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/Goblins/goblins.atlas.txt b/Assets/ThirdParty/Spine Examples/Spine Skeletons/Goblins/goblins.atlas.txt index 144797b51..2335b650e 100644 --- a/Assets/ThirdParty/Spine Examples/Spine Skeletons/Goblins/goblins.atlas.txt +++ b/Assets/ThirdParty/Spine Examples/Spine Skeletons/Goblins/goblins.atlas.txt @@ -3,95 +3,100 @@ goblins.png filter: Linear, Linear pma: true dagger - bounds: 2, 18, 26, 108 + bounds: 372, 100, 26, 108 + rotate: 90 goblin/eyes-closed - bounds: 2, 4, 34, 12 + bounds: 2, 7, 34, 12 goblin/head - bounds: 113, 23, 103, 66 - rotate: 90 + bounds: 107, 36, 103, 66 goblin/left-arm - bounds: 937, 89, 37, 35 - rotate: 90 + bounds: 901, 56, 37, 35 goblin/left-foot - bounds: 609, 61, 65, 31 - rotate: 90 + bounds: 929, 95, 65, 31 goblin/left-hand - bounds: 840, 21, 36, 41 + bounds: 452, 2, 36, 41 goblin/left-lower-leg - bounds: 504, 56, 33, 70 + bounds: 713, 93, 33, 70 + rotate: 90 goblin/left-shoulder - bounds: 745, 17, 29, 44 + bounds: 610, 44, 29, 44 goblin/left-upper-leg - bounds: 397, 53, 33, 73 + bounds: 638, 93, 33, 73 + rotate: 90 goblin/neck - bounds: 862, 85, 36, 41 + bounds: 490, 2, 36, 41 goblin/pelvis - bounds: 776, 18, 62, 43 + bounds: 482, 45, 62, 43 goblin/right-arm - bounds: 181, 5, 23, 50 + bounds: 690, 2, 23, 50 rotate: 90 goblin/right-foot - bounds: 747, 63, 63, 33 - rotate: 90 + bounds: 771, 58, 63, 33 goblin/right-hand - bounds: 878, 3, 36, 37 + bounds: 940, 56, 36, 37 goblin/right-lower-leg - bounds: 321, 50, 36, 76 -goblin/right-shoulder - bounds: 663, 14, 39, 45 -goblin/right-upper-leg - bounds: 675, 63, 34, 63 -goblin/torso - bounds: 181, 30, 68, 96 -goblin/undie-straps - bounds: 38, 2, 55, 19 -goblin/undies - bounds: 974, 97, 36, 29 -goblingirl/eyes-closed - bounds: 397, 30, 37, 21 -goblingirl/head - bounds: 30, 23, 103, 81 + bounds: 482, 90, 36, 76 rotate: 90 +goblin/right-shoulder + bounds: 602, 3, 39, 45 + rotate: 90 +goblin/right-upper-leg + bounds: 641, 57, 34, 63 + rotate: 90 +goblin/torso + bounds: 212, 34, 68, 96 + rotate: 90 +goblin/undie-straps + bounds: 380, 5, 55, 19 +goblin/undies + bounds: 174, 5, 36, 29 +goblingirl/eyes-closed + bounds: 269, 11, 37, 21 +goblingirl/head + bounds: 2, 21, 103, 81 goblingirl/left-arm - bounds: 916, 8, 37, 35 + bounds: 978, 56, 37, 35 rotate: 90 goblingirl/left-foot - bounds: 642, 61, 65, 31 - rotate: 90 + bounds: 107, 3, 65, 31 goblingirl/left-hand - bounds: 900, 86, 35, 40 + bounds: 565, 2, 35, 40 goblingirl/left-lower-leg - bounds: 539, 56, 33, 70 + bounds: 785, 93, 33, 70 + rotate: 90 goblingirl/left-shoulder - bounds: 633, 13, 28, 46 + bounds: 690, 27, 28, 46 + rotate: 90 goblingirl/left-upper-leg - bounds: 574, 56, 33, 70 + bounds: 857, 93, 33, 70 + rotate: 90 goblingirl/neck - bounds: 878, 42, 35, 41 + bounds: 528, 2, 35, 41 goblingirl/pelvis - bounds: 817, 64, 62, 43 - rotate: 90 + bounds: 546, 45, 62, 43 goblingirl/right-arm - bounds: 603, 4, 28, 50 + bounds: 452, 48, 28, 50 goblingirl/right-foot - bounds: 782, 63, 63, 33 - rotate: 90 + bounds: 836, 58, 63, 33 goblingirl/right-hand - bounds: 915, 47, 36, 37 -goblingirl/right-lower-leg - bounds: 359, 50, 36, 76 -goblingirl/right-shoulder - bounds: 704, 16, 39, 45 -goblingirl/right-upper-leg - bounds: 711, 63, 34, 63 -goblingirl/torso - bounds: 251, 30, 68, 96 -goblingirl/undie-straps - bounds: 95, 2, 55, 19 -goblingirl/undies - bounds: 974, 66, 36, 29 -shield - bounds: 432, 54, 70, 72 -spear - bounds: 233, 6, 22, 368 + bounds: 771, 20, 36, 37 + rotate: 90 +goblingirl/right-lower-leg + bounds: 560, 90, 36, 76 + rotate: 90 +goblingirl/right-shoulder + bounds: 649, 10, 39, 45 +goblingirl/right-upper-leg + bounds: 706, 57, 34, 63 + rotate: 90 +goblingirl/torso + bounds: 310, 2, 68, 96 +goblingirl/undie-straps + bounds: 212, 13, 55, 19 +goblingirl/undies + bounds: 810, 27, 36, 29 +shield + bounds: 380, 26, 70, 72 +spear + bounds: 2, 104, 22, 368 rotate: 90 diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/Goblins/goblins.json b/Assets/ThirdParty/Spine Examples/Spine Skeletons/Goblins/goblins.json index 6caf03bb0..b54a18d0e 100644 --- a/Assets/ThirdParty/Spine Examples/Spine Skeletons/Goblins/goblins.json +++ b/Assets/ThirdParty/Spine Examples/Spine Skeletons/Goblins/goblins.json @@ -1,7 +1,7 @@ { "skeleton": { - "hash": "CdaHvXeCMjE", - "spine": "4.1.23-beta", + "hash": "r8iwnU9Tvmc", + "spine": "4.2.22", "x": -134.12, "y": -3.28, "width": 266.94, diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/Goblins/goblins.png b/Assets/ThirdParty/Spine Examples/Spine Skeletons/Goblins/goblins.png index f0a5b6ce3..4b9f623d7 100644 Binary files a/Assets/ThirdParty/Spine Examples/Spine Skeletons/Goblins/goblins.png and b/Assets/ThirdParty/Spine Examples/Spine Skeletons/Goblins/goblins.png differ diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/Goblins/goblins.png.meta b/Assets/ThirdParty/Spine Examples/Spine Skeletons/Goblins/goblins.png.meta index e339d59aa..d36868930 100644 --- a/Assets/ThirdParty/Spine Examples/Spine Skeletons/Goblins/goblins.png.meta +++ b/Assets/ThirdParty/Spine Examples/Spine Skeletons/Goblins/goblins.png.meta @@ -8,7 +8,7 @@ TextureImporter: mipmaps: mipMapMode: 0 enableMipMap: 0 - sRGBTexture: 1 + sRGBTexture: 0 linearTexture: 0 fadeOut: 0 borderMipMap: 0 diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/Goblins/goblins_Material.mat b/Assets/ThirdParty/Spine Examples/Spine Skeletons/Goblins/goblins_Material.mat index 06419193f..bc9165684 100644 --- a/Assets/ThirdParty/Spine Examples/Spine Skeletons/Goblins/goblins_Material.mat +++ b/Assets/ThirdParty/Spine Examples/Spine Skeletons/Goblins/goblins_Material.mat @@ -7,12 +7,12 @@ Material: m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_Name: goblins_Material + m_Name: goblins_material m_Shader: {fileID: 4800000, guid: 1e8a610c9e01c3648bac42585e5fc676, type: 3} m_ValidKeywords: [] m_InvalidKeywords: - _USE8NEIGHBOURHOOD_ON - m_LightmapFlags: 5 + m_LightmapFlags: 4 m_EnableInstancingVariants: 0 m_DoubleSidedGI: 0 m_CustomRenderQueue: -1 @@ -28,6 +28,7 @@ Material: m_Ints: [] m_Floats: - _Cutoff: 0.1 + - _Fill: 0 - _OutlineMipLevel: 0 - _OutlineOpaqueAlpha: 1 - _OutlineReferenceTexWidth: 1024 @@ -38,8 +39,7 @@ Material: - _StraightAlphaInput: 0 - _ThresholdEnd: 0.25 - _Use8Neighbourhood: 1 + - _UseScreenSpaceOutlineWidth: 0 m_Colors: - - _Black: {r: 1, g: 0, b: 0, a: 1} - - _Color: {r: 1, g: 1, b: 1, a: 1} - _OutlineColor: {r: 1, g: 1, b: 0, a: 1} m_BuildTextureStacks: [] diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/Goblins/goblins_Material.mat.meta b/Assets/ThirdParty/Spine Examples/Spine Skeletons/Goblins/goblins_Material.mat.meta index d4e948ee9..9904d6ec6 100644 --- a/Assets/ThirdParty/Spine Examples/Spine Skeletons/Goblins/goblins_Material.mat.meta +++ b/Assets/ThirdParty/Spine Examples/Spine Skeletons/Goblins/goblins_Material.mat.meta @@ -1,8 +1,8 @@ fileFormatVersion: 2 guid: 54091ef934c41eb4192f72bfd8e3bcc9 -timeCreated: 1467115504 -licenseType: Free NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 2100000 userData: assetBundleName: assetBundleVariant: diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/Hero/hero-pro.atlas.txt b/Assets/ThirdParty/Spine Examples/Spine Skeletons/Hero/hero-pro.atlas.txt index 6a4f23ce5..d2ffe7567 100644 --- a/Assets/ThirdParty/Spine Examples/Spine Skeletons/Hero/hero-pro.atlas.txt +++ b/Assets/ThirdParty/Spine Examples/Spine Skeletons/Hero/hero-pro.atlas.txt @@ -3,59 +3,58 @@ hero-pro.png filter: Linear, Linear pma: true body - bounds: 452, 157, 97, 95 - rotate: 90 + bounds: 324, 88, 97, 95 cape - bounds: 247, 95, 146, 159 + bounds: 176, 95, 146, 159 chain-ball - bounds: 241, 11, 64, 68 + bounds: 423, 115, 64, 68 chain-flat - bounds: 241, 4, 16, 5 + bounds: 2, 2, 16, 5 chain-round - bounds: 307, 10, 17, 14 - rotate: 90 + bounds: 423, 99, 17, 14 eyes - bounds: 68, 5, 82, 31 + bounds: 678, 223, 82, 31 fingers - bounds: 2, 3, 31, 33 + bounds: 948, 221, 31, 33 foot1 - bounds: 483, 2, 50, 42 + bounds: 762, 212, 50, 42 foot2 - bounds: 185, 41, 53, 38 + bounds: 140, 26, 53, 38 + rotate: 90 forearm1 - bounds: 73, 38, 41, 49 + bounds: 814, 213, 41, 49 rotate: 90 forearm2 - bounds: 35, 4, 31, 32 + bounds: 981, 222, 31, 32 hand1 - bounds: 191, 2, 37, 48 + bounds: 865, 217, 37, 48 rotate: 90 hand2 - bounds: 152, 7, 31, 37 - rotate: 90 + bounds: 915, 217, 31, 37 handle - bounds: 323, 13, 134, 14 + bounds: 542, 240, 134, 14 head - bounds: 73, 81, 172, 173 + bounds: 2, 81, 172, 173 mantles - bounds: 395, 118, 136, 55 - rotate: 90 + bounds: 2, 24, 136, 55 mouth - bounds: 395, 103, 61, 13 + bounds: 2, 9, 61, 13 shin1 - bounds: 428, 44, 53, 57 + bounds: 542, 126, 53, 57 + rotate: 90 shin2 - bounds: 458, 104, 51, 54 - rotate: 90 + bounds: 489, 129, 51, 54 sword - bounds: 2, 38, 216, 69 - rotate: 90 + bounds: 324, 185, 216, 69 thigh1 - bounds: 366, 30, 60, 63 -thigh2 - bounds: 307, 29, 57, 64 -upper-arm1 - bounds: 483, 46, 50, 56 -upper-arm2 - bounds: 124, 40, 39, 59 + bounds: 608, 178, 60, 63 + rotate: 90 +thigh2 + bounds: 542, 181, 57, 64 + rotate: 90 +upper-arm1 + bounds: 601, 126, 50, 56 + rotate: 90 +upper-arm2 + bounds: 673, 182, 39, 59 rotate: 90 diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/Hero/hero-pro.json b/Assets/ThirdParty/Spine Examples/Spine Skeletons/Hero/hero-pro.json index b33c61fdb..b0138d168 100644 --- a/Assets/ThirdParty/Spine Examples/Spine Skeletons/Hero/hero-pro.json +++ b/Assets/ThirdParty/Spine Examples/Spine Skeletons/Hero/hero-pro.json @@ -1,7 +1,7 @@ { "skeleton": { - "hash": "iMg/Nef4GhU", - "spine": "4.1.23-beta", + "hash": "1GKrwevyJb4", + "spine": "4.2.22", "x": -85.7, "y": -0.02, "width": 321.77, @@ -34,7 +34,7 @@ "rotation": -90.96, "x": 28.17, "y": -0.49, - "transform": "noRotationOrReflection" + "inherit": "noRotationOrReflection" }, { "name": "right-ground", "parent": "root", "x": 28.12, "y": 0.26, "color": "ff0000ff" }, { "name": "right-ankle", "parent": "right-ground", "y": 31.79, "color": "ff3f00ff" }, @@ -47,7 +47,7 @@ "rotation": -90.42, "x": 25.55, "y": 0.28, - "transform": "noRotationOrReflection" + "inherit": "noRotationOrReflection" }, { "name": "upper-arm1", "parent": "body", "length": 19.36, "rotation": 130.11, "x": 52.5, "y": 41.85 }, { "name": "forearm1", "parent": "upper-arm1", "length": 22.06, "rotation": 30.56, "x": 23.97, "y": 5.16 }, @@ -309,7 +309,7 @@ }, { "name": "weapon/morningstar", - "bones": [ "chain4", "weapon-morningstar-physics2", "weapon-morningstar-physics1", "weapon-morningstar-physics3", "chain8", "chain1", "chain6", "weapon-morningstar", "chain5", "chain7", "weapon-morningstar-physics4", "chain2", "chain3" ], + "bones": [ "chain1", "chain2", "chain3", "chain4", "chain5", "chain6", "chain7", "chain8", "weapon-morningstar", "weapon-morningstar-physics1", "weapon-morningstar-physics2", "weapon-morningstar-physics3", "weapon-morningstar-physics4" ], "path": [ "weapon-morningstar" ] }, { diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/Hero/hero-pro.png b/Assets/ThirdParty/Spine Examples/Spine Skeletons/Hero/hero-pro.png index c506a0a45..6f5319f41 100644 Binary files a/Assets/ThirdParty/Spine Examples/Spine Skeletons/Hero/hero-pro.png and b/Assets/ThirdParty/Spine Examples/Spine Skeletons/Hero/hero-pro.png differ diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/Hero/hero-pro.png.meta b/Assets/ThirdParty/Spine Examples/Spine Skeletons/Hero/hero-pro.png.meta index aa1c7400e..3d36fd646 100644 --- a/Assets/ThirdParty/Spine Examples/Spine Skeletons/Hero/hero-pro.png.meta +++ b/Assets/ThirdParty/Spine Examples/Spine Skeletons/Hero/hero-pro.png.meta @@ -8,7 +8,7 @@ TextureImporter: mipmaps: mipMapMode: 0 enableMipMap: 0 - sRGBTexture: 1 + sRGBTexture: 0 linearTexture: 0 fadeOut: 0 borderMipMap: 0 diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/Hero/hero-pro_Material.mat b/Assets/ThirdParty/Spine Examples/Spine Skeletons/Hero/hero-pro_Material.mat index ddc2cfa9a..162895c03 100644 --- a/Assets/ThirdParty/Spine Examples/Spine Skeletons/Hero/hero-pro_Material.mat +++ b/Assets/ThirdParty/Spine Examples/Spine Skeletons/Hero/hero-pro_Material.mat @@ -7,8 +7,8 @@ Material: m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_Name: hero-pro_Material - m_Shader: {fileID: 4800000, guid: 45495790b394f894a967dbf44489b57b, type: 3} + m_Name: hero-pro_material + m_Shader: {fileID: 4800000, guid: 1e8a610c9e01c3648bac42585e5fc676, type: 3} m_ValidKeywords: [] m_InvalidKeywords: - _USE8NEIGHBOURHOOD_ON @@ -28,7 +28,7 @@ Material: m_Ints: [] m_Floats: - _Cutoff: 0.1 - - _FillPhase: 0 + - _Fill: 0 - _OutlineMipLevel: 0 - _OutlineOpaqueAlpha: 1 - _OutlineReferenceTexWidth: 1024 @@ -39,7 +39,7 @@ Material: - _StraightAlphaInput: 0 - _ThresholdEnd: 0.25 - _Use8Neighbourhood: 1 + - _UseScreenSpaceOutlineWidth: 0 m_Colors: - - _FillColor: {r: 1, g: 1, b: 1, a: 1} - _OutlineColor: {r: 1, g: 1, b: 0, a: 1} m_BuildTextureStacks: [] diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/Hero/hero-pro_Material.mat.meta b/Assets/ThirdParty/Spine Examples/Spine Skeletons/Hero/hero-pro_Material.mat.meta index e52a36a59..65595f4b1 100644 --- a/Assets/ThirdParty/Spine Examples/Spine Skeletons/Hero/hero-pro_Material.mat.meta +++ b/Assets/ThirdParty/Spine Examples/Spine Skeletons/Hero/hero-pro_Material.mat.meta @@ -1,8 +1,7 @@ fileFormatVersion: 2 guid: 9aa2023c2c91b254f9cb0a4fba19af00 -timeCreated: 1524005968 -licenseType: Free NativeFormatImporter: + externalObjects: {} mainObjectFileID: 2100000 userData: assetBundleName: diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/Raggedy Spineboy/Raggedy Spineboy.atlas.txt b/Assets/ThirdParty/Spine Examples/Spine Skeletons/Raggedy Spineboy/Raggedy Spineboy.atlas.txt index 792c6867e..e54448815 100644 --- a/Assets/ThirdParty/Spine Examples/Spine Skeletons/Raggedy Spineboy/Raggedy Spineboy.atlas.txt +++ b/Assets/ThirdParty/Spine Examples/Spine Skeletons/Raggedy Spineboy/Raggedy Spineboy.atlas.txt @@ -3,14 +3,11 @@ Raggedy Spineboy.png filter: Linear, Linear pma: true arm - bounds: 2, 140, 71, 75 - rotate: 90 + bounds: 140, 178, 71, 75 head - bounds: 2, 2, 136, 187 - rotate: 90 + bounds: 2, 66, 136, 187 leg - bounds: 2, 213, 36, 99 - rotate: 90 + bounds: 140, 77, 36, 99 torso - bounds: 103, 187, 62, 95 + bounds: 2, 2, 62, 95 rotate: 90 diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/Raggedy Spineboy/Raggedy Spineboy.png b/Assets/ThirdParty/Spine Examples/Spine Skeletons/Raggedy Spineboy/Raggedy Spineboy.png index 337fbc5a2..de5b3f872 100644 Binary files a/Assets/ThirdParty/Spine Examples/Spine Skeletons/Raggedy Spineboy/Raggedy Spineboy.png and b/Assets/ThirdParty/Spine Examples/Spine Skeletons/Raggedy Spineboy/Raggedy Spineboy.png differ diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/Raggedy Spineboy/Raggedy Spineboy.png.meta b/Assets/ThirdParty/Spine Examples/Spine Skeletons/Raggedy Spineboy/Raggedy Spineboy.png.meta index 9480b8230..36ce0e803 100644 --- a/Assets/ThirdParty/Spine Examples/Spine Skeletons/Raggedy Spineboy/Raggedy Spineboy.png.meta +++ b/Assets/ThirdParty/Spine Examples/Spine Skeletons/Raggedy Spineboy/Raggedy Spineboy.png.meta @@ -8,7 +8,7 @@ TextureImporter: mipmaps: mipMapMode: 0 enableMipMap: 0 - sRGBTexture: 1 + sRGBTexture: 0 linearTexture: 0 fadeOut: 0 borderMipMap: 0 diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/Raggedy Spineboy/Raggedy Spineboy_Material.mat b/Assets/ThirdParty/Spine Examples/Spine Skeletons/Raggedy Spineboy/Raggedy Spineboy_Material.mat index 343aee9a1..417413ac4 100644 --- a/Assets/ThirdParty/Spine Examples/Spine Skeletons/Raggedy Spineboy/Raggedy Spineboy_Material.mat +++ b/Assets/ThirdParty/Spine Examples/Spine Skeletons/Raggedy Spineboy/Raggedy Spineboy_Material.mat @@ -7,12 +7,12 @@ Material: m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_Name: Raggedy Spineboy_Material + m_Name: Raggedy Spineboy_material m_Shader: {fileID: 4800000, guid: 1e8a610c9e01c3648bac42585e5fc676, type: 3} m_ValidKeywords: [] m_InvalidKeywords: - _USE8NEIGHBOURHOOD_ON - m_LightmapFlags: 5 + m_LightmapFlags: 4 m_EnableInstancingVariants: 0 m_DoubleSidedGI: 0 m_CustomRenderQueue: -1 @@ -28,6 +28,7 @@ Material: m_Ints: [] m_Floats: - _Cutoff: 0.1 + - _Fill: 0 - _OutlineMipLevel: 0 - _OutlineOpaqueAlpha: 1 - _OutlineReferenceTexWidth: 1024 @@ -38,6 +39,7 @@ Material: - _StraightAlphaInput: 0 - _ThresholdEnd: 0.25 - _Use8Neighbourhood: 1 + - _UseScreenSpaceOutlineWidth: 0 m_Colors: - _OutlineColor: {r: 1, g: 1, b: 0, a: 1} m_BuildTextureStacks: [] diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/Raggedy Spineboy/Raggedy Spineboy_Material.mat.meta b/Assets/ThirdParty/Spine Examples/Spine Skeletons/Raggedy Spineboy/Raggedy Spineboy_Material.mat.meta index 58813197c..679506fdf 100644 --- a/Assets/ThirdParty/Spine Examples/Spine Skeletons/Raggedy Spineboy/Raggedy Spineboy_Material.mat.meta +++ b/Assets/ThirdParty/Spine Examples/Spine Skeletons/Raggedy Spineboy/Raggedy Spineboy_Material.mat.meta @@ -1,4 +1,8 @@ fileFormatVersion: 2 guid: 4ad4f7167d4983147ad870f93ebc9416 NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 2100000 userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/Raggedy Spineboy/raggedy spineboy.json b/Assets/ThirdParty/Spine Examples/Spine Skeletons/Raggedy Spineboy/raggedy spineboy.json index ece22dd22..16fc47452 100644 --- a/Assets/ThirdParty/Spine Examples/Spine Skeletons/Raggedy Spineboy/raggedy spineboy.json +++ b/Assets/ThirdParty/Spine Examples/Spine Skeletons/Raggedy Spineboy/raggedy spineboy.json @@ -1,7 +1,7 @@ { "skeleton": { - "hash": "ukmbgK+14T0", - "spine": "4.1.23-beta", + "hash": "y7rWjT0Whbg", + "spine": "4.2.22", "x": -78.45, "y": -9.66, "width": 157.48, diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/Raptor/raptor.atlas.txt b/Assets/ThirdParty/Spine Examples/Spine Skeletons/Raptor/raptor.atlas.txt index 0d9fb8ba3..8a7f85da8 100644 --- a/Assets/ThirdParty/Spine Examples/Spine Skeletons/Raptor/raptor.atlas.txt +++ b/Assets/ThirdParty/Spine Examples/Spine Skeletons/Raptor/raptor.atlas.txt @@ -3,91 +3,84 @@ raptor.png filter: Linear, Linear pma: true back_arm - bounds: 827, 536, 46, 29 - rotate: 90 + bounds: 410, 545, 46, 29 back_bracer - bounds: 710, 490, 39, 28 - rotate: 90 + bounds: 540, 548, 39, 28 back_hand - bounds: 741, 520, 36, 34 + bounds: 504, 538, 36, 34 + rotate: 90 back_knee - bounds: 560, 668, 49, 67 + bounds: 299, 478, 49, 67 back_thigh - bounds: 779, 530, 39, 24 + bounds: 140, 247, 39, 24 + rotate: 90 eyes_open - bounds: 953, 499, 47, 45 + bounds: 2, 2, 47, 45 + rotate: 90 front_arm - bounds: 831, 633, 48, 30 - rotate: 90 + bounds: 360, 544, 48, 30 front_bracer - bounds: 710, 531, 41, 29 - rotate: 90 + bounds: 538, 578, 41, 29 front_hand - bounds: 831, 729, 41, 38 - rotate: 90 + bounds: 538, 609, 41, 38 front_open_hand - bounds: 543, 499, 43, 44 - rotate: 90 + bounds: 894, 782, 43, 44 front_thigh - bounds: 831, 772, 57, 29 - rotate: 90 + bounds: 942, 849, 57, 29 gun - bounds: 382, 553, 107, 103 + bounds: 785, 774, 107, 103 gun_nohand - bounds: 603, 470, 105, 102 + bounds: 614, 703, 105, 102 head - bounds: 873, 731, 136, 149 - rotate: 90 + bounds: 2, 137, 136, 149 lower_leg - bounds: 858, 447, 73, 98 + bounds: 780, 699, 73, 98 + rotate: 90 mouth_smile - bounds: 827, 584, 47, 30 + bounds: 49, 2, 47, 30 rotate: 90 neck - bounds: 933, 524, 18, 21 -raptor_arm_back - bounds: 933, 415, 82, 86 + bounds: 1001, 860, 18, 21 rotate: 90 +raptor_arm_back + bounds: 940, 936, 82, 86 raptor_body bounds: 2, 737, 610, 285 raptor_front_arm - bounds: 744, 556, 81, 102 + bounds: 195, 464, 81, 102 + rotate: 90 raptor_front_leg - bounds: 614, 831, 191, 257 - rotate: 90 + bounds: 2, 478, 191, 257 raptor_hindleg_back - bounds: 614, 660, 169, 215 - rotate: 90 + bounds: 614, 807, 169, 215 raptor_horn - bounds: 871, 547, 182, 80 - rotate: 90 + bounds: 360, 655, 182, 80 raptor_horn_back - bounds: 382, 658, 176, 77 + bounds: 360, 576, 176, 77 raptor_jaw - bounds: 873, 869, 153, 143 - rotate: 90 + bounds: 785, 879, 153, 143 raptor_saddle_noshadow - bounds: 2, 572, 163, 188 - rotate: 90 + bounds: 2, 288, 163, 188 raptor_saddle_strap_front - bounds: 953, 546, 57, 95 + bounds: 721, 710, 57, 95 raptor_saddle_strap_rear - bounds: 547, 544, 54, 74 -raptor_saddle_w_shadow - bounds: 192, 572, 163, 188 + bounds: 940, 880, 54, 74 rotate: 90 +raptor_saddle_w_shadow + bounds: 195, 547, 163, 188 raptor_tongue - bounds: 953, 643, 86, 64 + bounds: 544, 649, 86, 64 rotate: 90 stirrup_back - bounds: 831, 683, 44, 35 - rotate: 90 + bounds: 458, 539, 44, 35 stirrup_front - bounds: 491, 518, 45, 50 + bounds: 81, 4, 45, 50 rotate: 90 stirrup_strap - bounds: 560, 620, 49, 46 + bounds: 894, 828, 49, 46 + rotate: 90 torso - bounds: 491, 565, 54, 91 + bounds: 610, 647, 54, 91 + rotate: 90 visor - bounds: 611, 574, 131, 84 + bounds: 2, 51, 131, 84 diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/Raptor/raptor.json b/Assets/ThirdParty/Spine Examples/Spine Skeletons/Raptor/raptor.json index 39a4977cb..80c2ab738 100644 --- a/Assets/ThirdParty/Spine Examples/Spine Skeletons/Raptor/raptor.json +++ b/Assets/ThirdParty/Spine Examples/Spine Skeletons/Raptor/raptor.json @@ -1,7 +1,7 @@ { "skeleton": { - "hash": "8C0Q8jcbsuI", - "spine": "4.1.23-beta", + "hash": "4YKjYFOYC7w", + "spine": "4.2.22", "x": -402.84, "y": -35.99, "width": 611.87, @@ -110,7 +110,7 @@ "rotation": 9.21, "x": 21.84, "y": 0.03, - "transform": "noRotationOrReflection", + "inherit": "noRotationOrReflection", "color": "ffffffff" }, { "name": "spineboy_rear_arm_goal", "parent": "saddle", "x": -15.22, "y": -50.04, "color": "ff3f00ff" }, @@ -226,7 +226,7 @@ "y": -0.01, "scaleX": 0.731, "scaleY": 0.823, - "transform": "noRotationOrReflection", + "inherit": "noRotationOrReflection", "color": "15ff00ff" }, { @@ -237,7 +237,7 @@ "x": 24.85, "y": 10.33, "scaleX": 1.155, - "transform": "noRotationOrReflection", + "inherit": "noRotationOrReflection", "color": "15ff00ff" }, { @@ -256,7 +256,7 @@ "rotation": 13.9, "x": 19.99, "y": -0.45, - "transform": "noRotationOrReflection", + "inherit": "noRotationOrReflection", "color": "ffffffff" }, { "name": "spineboy_front_arm_goal", "parent": "saddle", "x": -25.35, "y": -48.47, "color": "ff3f00ff" }, @@ -314,7 +314,7 @@ "rotation": -140.14, "x": 14.69, "y": -20.08, - "transform": "noScale", + "inherit": "noScale", "color": "ffff00ff" }, { @@ -372,7 +372,7 @@ "rotation": -6.14, "x": 42.25, "y": -0.17, - "transform": "noRotationOrReflection", + "inherit": "noRotationOrReflection", "color": "e07800ff" }, { @@ -770,7 +770,7 @@ "raptor_tongue": { "type": "mesh", "uvs": [ 0.35242, 0.21561, 0.4794, 0.44246, 0.62072, 0.61177, 0.80563, 0.75374, 1, 0.90297, 1, 1, 0.8971, 1, 0.72055, 0.92255, 0.50668, 0.82872, 0.30402, 0.70725, 0.10537, 0.57889, 0, 0.50622, 0, 0, 0.26225, 0 ], - "triangles": [ 7, 8, 3, 6, 7, 3, 4, 6, 3, 6, 4, 5, 8, 7, 6, 9, 1, 2, 8, 9, 2, 9, 10, 1, 8, 2, 3, 0, 11, 12, 0, 12, 13, 10, 11, 0, 1, 10, 0 ], + "triangles": [], "vertices": [ 2, 63, 1.82, 13.52, 0.6875, 64, -23.64, 16.94, 0.3125, 3, 63, 19.55, 9.73, 0.3125, 64, -6.71, 10.44, 0.625, 65, -25.77, 16.69, 0.0625, 3, 63, 35.78, 9.52, 0.0625, 64, 9.3, 7.7, 0.625, 65, -10.78, 10.46, 0.3125, 2, 64, 27.51, 8.43, 0.3125, 65, 7.14, 7.12, 0.6875, 2, 64, 46.67, 9.2, 0.08333, 65, 25.99, 3.61, 0.91667, 1, 65, 28.05, -2.26, 1, 2, 64, 42.53, -0.75, 0.08333, 65, 19.75, -5.16, 0.91667, 2, 64, 27.11, -4.59, 0.3125, 65, 3.86, -5.49, 0.6875, 3, 63, 37.57, -7.36, 0.0625, 64, 8.44, -9.25, 0.625, 65, -15.39, -5.87, 0.3125, 3, 63, 19.4, -12.9, 0.3125, 64, -10.37, -11.9, 0.625, 65, -34.31, -4.27, 0.0625, 2, 63, 1.2, -17.89, 0.6875, 64, -29.12, -13.99, 0.3125, 2, 63, -8.65, -20.32, 0.91667, 64, -39.23, -14.86, 0.08333, 1, 63, -29.96, 4.09, 1, 2, 63, -13.07, 18.84, 0.91667, 64, -37.51, 24.51, 0.08333 ], "hull": 14, "edges": [ 22, 24, 10, 12, 10, 8, 24, 26, 16, 4, 18, 16, 2, 4, 18, 2, 22, 20, 0, 26, 20, 0, 0, 2, 12, 14, 14, 16, 4, 6, 6, 8, 14, 6, 20, 18 ], diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/Raptor/raptor.png b/Assets/ThirdParty/Spine Examples/Spine Skeletons/Raptor/raptor.png index 0b070ffab..f4aec155f 100644 Binary files a/Assets/ThirdParty/Spine Examples/Spine Skeletons/Raptor/raptor.png and b/Assets/ThirdParty/Spine Examples/Spine Skeletons/Raptor/raptor.png differ diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/Raptor/raptor.png.meta b/Assets/ThirdParty/Spine Examples/Spine Skeletons/Raptor/raptor.png.meta index ad6fe555c..e1642f83f 100644 --- a/Assets/ThirdParty/Spine Examples/Spine Skeletons/Raptor/raptor.png.meta +++ b/Assets/ThirdParty/Spine Examples/Spine Skeletons/Raptor/raptor.png.meta @@ -43,7 +43,7 @@ TextureImporter: mipmaps: mipMapMode: 0 enableMipMap: 0 - sRGBTexture: 1 + sRGBTexture: 0 linearTexture: 0 fadeOut: 0 borderMipMap: 0 diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/Raptor/raptor_Material.mat b/Assets/ThirdParty/Spine Examples/Spine Skeletons/Raptor/raptor_Material.mat index fd078e18a..77a6f0483 100644 --- a/Assets/ThirdParty/Spine Examples/Spine Skeletons/Raptor/raptor_Material.mat +++ b/Assets/ThirdParty/Spine Examples/Spine Skeletons/Raptor/raptor_Material.mat @@ -7,12 +7,12 @@ Material: m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_Name: raptor_Material - m_Shader: {fileID: 4800000, guid: 522f03282fd79be47b306e2ef4b593fd, type: 3} + m_Name: raptor_material + m_Shader: {fileID: 4800000, guid: 1e8a610c9e01c3648bac42585e5fc676, type: 3} m_ValidKeywords: [] m_InvalidKeywords: - _USE8NEIGHBOURHOOD_ON - m_LightmapFlags: 5 + m_LightmapFlags: 4 m_EnableInstancingVariants: 0 m_DoubleSidedGI: 0 m_CustomRenderQueue: -1 @@ -28,7 +28,7 @@ Material: m_Ints: [] m_Floats: - _Cutoff: 0.1 - - _DarkColorAlphaAdditive: 0 + - _Fill: 0 - _OutlineMipLevel: 0 - _OutlineOpaqueAlpha: 1 - _OutlineReferenceTexWidth: 1024 @@ -39,8 +39,7 @@ Material: - _StraightAlphaInput: 0 - _ThresholdEnd: 0.25 - _Use8Neighbourhood: 1 + - _UseScreenSpaceOutlineWidth: 0 m_Colors: - - _Black: {r: 0, g: 0, b: 0, a: 0} - - _Color: {r: 1, g: 1, b: 1, a: 1} - _OutlineColor: {r: 1, g: 1, b: 0, a: 1} m_BuildTextureStacks: [] diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/Raptor/raptor_Material.mat.meta b/Assets/ThirdParty/Spine Examples/Spine Skeletons/Raptor/raptor_Material.mat.meta index 57ee39967..db29a96cb 100644 --- a/Assets/ThirdParty/Spine Examples/Spine Skeletons/Raptor/raptor_Material.mat.meta +++ b/Assets/ThirdParty/Spine Examples/Spine Skeletons/Raptor/raptor_Material.mat.meta @@ -1,4 +1,8 @@ fileFormatVersion: 2 guid: 4e2feebfcaa26a54ab19f1ff3e0eae35 NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 2100000 userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/Spineunitygirl/Doi.atlas.txt b/Assets/ThirdParty/Spine Examples/Spine Skeletons/Spineunitygirl/Doi.atlas.txt index be97844cd..fa52cd646 100644 --- a/Assets/ThirdParty/Spine Examples/Spine Skeletons/Spineunitygirl/Doi.atlas.txt +++ b/Assets/ThirdParty/Spine Examples/Spine Skeletons/Spineunitygirl/Doi.atlas.txt @@ -3,95 +3,93 @@ Doi.png filter: Linear, Linear pma: true armL - bounds: 2, 5, 163, 133 - rotate: 90 + bounds: 2, 36, 163, 133 armR - bounds: 425, 82, 133, 109 + bounds: 167, 36, 133, 109 + rotate: 90 arrow - bounds: 414, 12, 64, 85 - rotate: 90 + bounds: 609, 334, 64, 85 body - bounds: 2, 170, 274, 339 + bounds: 2, 171, 274, 339 bootR - bounds: 456, 198, 91, 84 + bounds: 783, 426, 91, 84 browL - bounds: 610, 94, 40, 22 - rotate: 90 + bounds: 126, 12, 40, 22 browR - bounds: 629, 60, 32, 25 + bounds: 2, 2, 32, 25 rotate: 90 eyelids closed - bounds: 137, 76, 183, 92 + bounds: 278, 191, 183, 92 eyelids open - bounds: 278, 193, 176, 89 + bounds: 502, 421, 176, 89 hairL - bounds: 652, 449, 54, 60 + bounds: 548, 239, 54, 60 hairL2 - bounds: 587, 313, 71, 76 + bounds: 385, 49, 71, 76 hairM - bounds: 501, 3, 96, 77 + bounds: 876, 433, 96, 77 hairM blob - bounds: 609, 394, 30, 45 + bounds: 29, 4, 30, 45 rotate: 90 hairM blobS - bounds: 298, 171, 16, 20 + bounds: 448, 146, 16, 20 hairR - bounds: 609, 426, 41, 83 + bounds: 974, 427, 41, 83 hairR2 - bounds: 322, 78, 94, 101 + bounds: 680, 416, 94, 101 rotate: 90 hairSide - bounds: 560, 88, 48, 24 + bounds: 76, 10, 48, 24 head - bounds: 278, 284, 222, 225 + bounds: 278, 285, 222, 225 indexL - bounds: 624, 174, 24, 36 + bounds: 640, 260, 24, 36 indexR - bounds: 599, 13, 34, 28 - rotate: 90 + bounds: 207, 6, 34, 28 inmouth - bounds: 656, 392, 46, 55 + bounds: 548, 191, 46, 55 + rotate: 90 irisL - bounds: 560, 163, 34, 47 + bounds: 609, 298, 34, 47 + rotate: 90 irisL flatspec - bounds: 358, 181, 19, 10 + bounds: 278, 41, 19, 10 irisL spec - bounds: 278, 170, 18, 21 + bounds: 448, 168, 18, 21 irisR - bounds: 560, 114, 34, 47 + bounds: 604, 249, 34, 47 irisR flatspec - bounds: 334, 180, 22, 11 + bounds: 502, 288, 22, 11 irisR spec - bounds: 316, 174, 16, 17 + bounds: 448, 127, 16, 17 middleL - bounds: 596, 174, 26, 36 + bounds: 243, 8, 26, 36 + rotate: 90 middleR - bounds: 623, 138, 34, 26 + bounds: 766, 342, 34, 26 rotate: 90 mouth - bounds: 502, 300, 89, 83 - rotate: 90 + bounds: 675, 331, 89, 83 nose - bounds: 379, 180, 11, 10 - rotate: 90 + bounds: 658, 322, 11, 10 pinkyL - bounds: 629, 31, 24, 27 + bounds: 605, 191, 24, 27 + rotate: 90 pony1 - bounds: 307, 2, 72, 105 + bounds: 278, 53, 72, 105 rotate: 90 pony2 - bounds: 549, 212, 86, 83 + bounds: 463, 197, 86, 83 rotate: 90 ringL - bounds: 634, 106, 26, 30 + bounds: 605, 217, 26, 30 rotate - bounds: 502, 391, 105, 118 + bounds: 502, 301, 105, 118 strap - bounds: 137, 12, 62, 168 + bounds: 278, 127, 62, 168 rotate: 90 thumbL - bounds: 599, 49, 37, 28 - rotate: 90 + bounds: 168, 6, 37, 28 thumbR - bounds: 596, 136, 36, 25 + bounds: 766, 378, 36, 25 rotate: 90 diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/Spineunitygirl/Doi.json b/Assets/ThirdParty/Spine Examples/Spine Skeletons/Spineunitygirl/Doi.json index bbf62c09c..2237f8516 100644 --- a/Assets/ThirdParty/Spine Examples/Spine Skeletons/Spineunitygirl/Doi.json +++ b/Assets/ThirdParty/Spine Examples/Spine Skeletons/Spineunitygirl/Doi.json @@ -1,7 +1,7 @@ { "skeleton": { - "hash": "8oWe7nDoZEk", - "spine": "4.1.23-beta", + "hash": "bpqXaGsNIZs", + "spine": "4.2.22", "x": -214.04, "y": -80.91, "width": 519.95, diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/Spineunitygirl/Doi.png b/Assets/ThirdParty/Spine Examples/Spine Skeletons/Spineunitygirl/Doi.png index 523a161fb..c697bb1a4 100644 Binary files a/Assets/ThirdParty/Spine Examples/Spine Skeletons/Spineunitygirl/Doi.png and b/Assets/ThirdParty/Spine Examples/Spine Skeletons/Spineunitygirl/Doi.png differ diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/Spineunitygirl/Doi.png.meta b/Assets/ThirdParty/Spine Examples/Spine Skeletons/Spineunitygirl/Doi.png.meta index db48e102b..37cc6f853 100644 --- a/Assets/ThirdParty/Spine Examples/Spine Skeletons/Spineunitygirl/Doi.png.meta +++ b/Assets/ThirdParty/Spine Examples/Spine Skeletons/Spineunitygirl/Doi.png.meta @@ -8,7 +8,7 @@ TextureImporter: mipmaps: mipMapMode: 0 enableMipMap: 0 - sRGBTexture: 1 + sRGBTexture: 0 linearTexture: 0 fadeOut: 0 borderMipMap: 0 diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/Spineunitygirl/Doi_Material.mat b/Assets/ThirdParty/Spine Examples/Spine Skeletons/Spineunitygirl/Doi_Material.mat index 297754890..0c736c827 100644 --- a/Assets/ThirdParty/Spine Examples/Spine Skeletons/Spineunitygirl/Doi_Material.mat +++ b/Assets/ThirdParty/Spine Examples/Spine Skeletons/Spineunitygirl/Doi_Material.mat @@ -7,7 +7,7 @@ Material: m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_Name: Doi_Material + m_Name: Doi_material m_Shader: {fileID: 4800000, guid: 1e8a610c9e01c3648bac42585e5fc676, type: 3} m_ValidKeywords: [] m_InvalidKeywords: @@ -28,6 +28,7 @@ Material: m_Ints: [] m_Floats: - _Cutoff: 0.1 + - _Fill: 0 - _OutlineMipLevel: 0 - _OutlineOpaqueAlpha: 1 - _OutlineReferenceTexWidth: 1024 @@ -38,6 +39,7 @@ Material: - _StraightAlphaInput: 0 - _ThresholdEnd: 0.25 - _Use8Neighbourhood: 1 + - _UseScreenSpaceOutlineWidth: 0 m_Colors: - _OutlineColor: {r: 1, g: 1, b: 0, a: 1} m_BuildTextureStacks: [] diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/Spineunitygirl/Doi_Material.mat.meta b/Assets/ThirdParty/Spine Examples/Spine Skeletons/Spineunitygirl/Doi_Material.mat.meta index 9d1cb26ce..d9bad130a 100644 --- a/Assets/ThirdParty/Spine Examples/Spine Skeletons/Spineunitygirl/Doi_Material.mat.meta +++ b/Assets/ThirdParty/Spine Examples/Spine Skeletons/Spineunitygirl/Doi_Material.mat.meta @@ -1,8 +1,7 @@ fileFormatVersion: 2 guid: 2745674eb28031e499ac70ef825b153e -timeCreated: 1560705704 -licenseType: Free NativeFormatImporter: + externalObjects: {} mainObjectFileID: 2100000 userData: assetBundleName: diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/Stretchyman/stretchyman-diffuse-pma.png.meta b/Assets/ThirdParty/Spine Examples/Spine Skeletons/Stretchyman/stretchyman-diffuse-pma.png.meta index ca5e5cc8a..13290da3e 100644 --- a/Assets/ThirdParty/Spine Examples/Spine Skeletons/Stretchyman/stretchyman-diffuse-pma.png.meta +++ b/Assets/ThirdParty/Spine Examples/Spine Skeletons/Stretchyman/stretchyman-diffuse-pma.png.meta @@ -8,7 +8,7 @@ TextureImporter: mipmaps: mipMapMode: 0 enableMipMap: 0 - sRGBTexture: 1 + sRGBTexture: 0 linearTexture: 0 fadeOut: 0 borderMipMap: 0 diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/Stretchyman/stretchyman-diffuse-pma_Material.mat b/Assets/ThirdParty/Spine Examples/Spine Skeletons/Stretchyman/stretchyman-diffuse-pma_Material.mat index 155a11fa3..04285f695 100644 --- a/Assets/ThirdParty/Spine Examples/Spine Skeletons/Stretchyman/stretchyman-diffuse-pma_Material.mat +++ b/Assets/ThirdParty/Spine Examples/Spine Skeletons/Stretchyman/stretchyman-diffuse-pma_Material.mat @@ -9,13 +9,8 @@ Material: m_PrefabAsset: {fileID: 0} m_Name: stretchyman-diffuse-pma_Material m_Shader: {fileID: 4800000, guid: 2ce511398fb980f41b7d316c51534590, type: 3} - m_ValidKeywords: - - _ALPHAPREMULTIPLY_ON - - _EMISSION - - _FIXED_NORMALS_VIEWSPACE - - _NORMALMAP + m_ValidKeywords: [] m_InvalidKeywords: - - _FIXED_NORMALS - _USE8NEIGHBOURHOOD_ON m_LightmapFlags: 5 m_EnableInstancingVariants: 0 @@ -70,6 +65,7 @@ Material: - _DstBlend: 10 - _EmissionPower: 1 - _EnableExternalAlpha: 0 + - _Fill: 0 - _GlossMapScale: 1 - _Glossiness: 0.5 - _Hue: 0 @@ -90,6 +86,7 @@ Material: - _ThresholdEnd: 0.25 - _TintBlack: 0 - _Use8Neighbourhood: 1 + - _UseScreenSpaceOutlineWidth: 0 - _ZWrite: 0 m_Colors: - _Black: {r: 0, g: 0, b: 0, a: 0} diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/Stretchyman/stretchyman-normals.png.meta b/Assets/ThirdParty/Spine Examples/Spine Skeletons/Stretchyman/stretchyman-normals.png.meta index b26eebc03..f2d8892f5 100644 --- a/Assets/ThirdParty/Spine Examples/Spine Skeletons/Stretchyman/stretchyman-normals.png.meta +++ b/Assets/ThirdParty/Spine Examples/Spine Skeletons/Stretchyman/stretchyman-normals.png.meta @@ -1,59 +1,147 @@ fileFormatVersion: 2 guid: d00f264cbe0cc4a49a54a221ee812855 -timeCreated: 1479531896 -licenseType: Free TextureImporter: - fileIDToRecycleName: {} - serializedVersion: 2 + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 12 mipmaps: mipMapMode: 0 enableMipMap: 1 - linearTexture: 1 - correctGamma: 0 + sRGBTexture: 0 + linearTexture: 0 fadeOut: 0 borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 mipMapFadeDistanceStart: 1 mipMapFadeDistanceEnd: 3 bumpmap: convertToNormalMap: 0 - externalNormalMap: 1 + externalNormalMap: 0 heightScale: 0.25 normalMapFilter: 0 isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMasterTextureLimit: 0 grayScaleToAlpha: 0 - generateCubemap: 0 + generateCubemap: 6 cubemapConvolution: 0 - cubemapConvolutionSteps: 7 - cubemapConvolutionExponent: 1.5 seamlessCubemap: 0 - textureFormat: -3 + textureFormat: 1 maxTextureSize: 2048 textureSettings: - filterMode: -1 - aniso: 16 - mipBias: -1 - wrapMode: 1 + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 0 + wrapV: 0 + wrapW: 0 nPOTScale: 1 lightmap: 0 - rGBM: 0 compressionQuality: 50 - allowsAlphaSplitting: 0 spriteMode: 0 spriteExtrude: 1 spriteMeshType: 1 alignment: 0 spritePivot: {x: 0.5, y: 0.5} - spriteBorder: {x: 0, y: 0, z: 0, w: 0} spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 alphaIsTransparency: 0 spriteTessellationDetail: -1 textureType: 1 - buildTargetSettings: [] + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + cookieLightType: 1 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: iPhone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Android + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Server + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 spriteSheet: serializedVersion: 2 sprites: [] outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} spritePackingTag: + pSDRemoveMatte: 0 + pSDShowRemoveMatteOption: 0 userData: assetBundleName: assetBundleVariant: diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/Stretchyman/stretchyman.json b/Assets/ThirdParty/Spine Examples/Spine Skeletons/Stretchyman/stretchyman.json index 006f2d5a8..5b8975896 100644 --- a/Assets/ThirdParty/Spine Examples/Spine Skeletons/Stretchyman/stretchyman.json +++ b/Assets/ThirdParty/Spine Examples/Spine Skeletons/Stretchyman/stretchyman.json @@ -1,7 +1,7 @@ { "skeleton": { - "hash": "QqiPXGOfONE", - "spine": "4.1.23-beta", + "hash": "CNp43FaCQIg", + "spine": "4.2.22", "x": -100.47, "y": -9.21, "width": 260.65, @@ -11,7 +11,7 @@ }, "bones": [ { "name": "root" }, - { "name": "back-arm-ik-target", "parent": "root", "x": 103.52, "y": 345.27, "color": "ff3f00ff" }, + { "name": "back-arm-ik-target", "parent": "root", "x": 103.52, "y": 345.27, "color": "ff3f00ff", "icon": "ik" }, { "name": "hip", "parent": "root", "x": 28.61, "y": 289.9, "color": "ffbd00ff" }, { "name": "spine1", @@ -58,7 +58,7 @@ "rotation": -154.36, "x": 16, "y": -4.58, - "transform": "noScale", + "inherit": "noScale", "color": "ff0000ff" }, { @@ -96,7 +96,7 @@ "rotation": -6.56, "x": -34.01, "y": -279.68, - "transform": "onlyTranslation", + "inherit": "onlyTranslation", "color": "ff0000ff" }, { @@ -105,7 +105,7 @@ "length": 32.29, "rotation": 4.34, "x": 33.24, - "transform": "noScale", + "inherit": "noScale", "color": "ff0000ff" }, { @@ -114,10 +114,10 @@ "length": 15.87, "rotation": 10.06, "x": 32.29, - "transform": "noScale", + "inherit": "noScale", "color": "ff0000ff" }, - { "name": "back-leg-ik-target", "parent": "root", "x": 46.15, "y": 8.68, "color": "ff3f00ff" }, + { "name": "back-leg-ik-target", "parent": "root", "x": 46.15, "y": 8.68, "color": "ff3f00ff", "icon": "ik" }, { "name": "back-leg-ik1", "parent": "hip", @@ -202,7 +202,7 @@ }, { "name": "belly", "parent": "spine1", "x": 35.94, "y": -37.69, "color": "ffbd00ff" }, { "name": "butt", "parent": "hip", "x": -32.67, "y": -1.88, "color": "ffbd00ff" }, - { "name": "front-arm-ik-target", "parent": "root", "x": -92.44, "y": 331.78, "color": "ff3f00ff" }, + { "name": "front-arm-ik-target", "parent": "root", "x": -92.44, "y": 331.78, "color": "ff3f00ff", "icon": "ik" }, { "name": "front-arm-ik1", "parent": "spine4", @@ -220,7 +220,7 @@ "rotation": 118.58, "x": 27.13, "y": 4.9, - "transform": "noScale", + "inherit": "noScale", "color": "4eff00ff" }, { @@ -248,7 +248,7 @@ "length": 46.32, "rotation": 16.09, "x": 29.18, - "transform": "noScale", + "inherit": "noScale", "color": "4eff00ff" }, { @@ -258,12 +258,12 @@ "rotation": -10.98, "x": -77.05, "y": -285.04, - "transform": "onlyTranslation", + "inherit": "onlyTranslation", "color": "50ff00ff" }, { "name": "front-foot2", "parent": "front-foot1", "length": 29.12, "rotation": 9.61, "x": 26.3, "color": "50ff00ff" }, { "name": "front-foot3", "parent": "front-foot2", "length": 23.49, "rotation": 8.91, "x": 29.12, "color": "50ff00ff" }, - { "name": "front-leg-ik-target", "parent": "root", "x": -37.74, "y": 5.03, "color": "ff3f00ff" }, + { "name": "front-leg-ik-target", "parent": "root", "x": -37.74, "y": 5.03, "color": "ff3f00ff", "icon": "ik" }, { "name": "front-leg-ik1", "parent": "hip", @@ -371,7 +371,7 @@ "rotation": 6.98, "x": 15.82, "y": 0.22, - "transform": "noScale", + "inherit": "noScale", "color": "ffbd00ff" } ], @@ -489,7 +489,7 @@ "back-arm": { "type": "mesh", "uvs": [ 0.74522, 0.00989, 0.64111, 0.05762, 0.56303, 0.1559, 0.42509, 0.25886, 0.28974, 0.359, 0.22988, 0.49565, 0.21166, 0.60797, 0.21166, 0.69782, 0.16481, 0.78674, 0.14139, 0.84757, 0.02427, 0.88501, 0.0529, 0.91871, 0.37824, 0.98797, 0.60468, 0.98235, 0.6307, 0.9056, 0.73481, 0.87752, 0.63591, 0.81762, 0.55262, 0.74181, 0.38084, 0.69876, 0.37824, 0.60797, 0.39906, 0.50876, 0.51358, 0.38521, 0.66194, 0.28881, 0.85454, 0.18398, 0.97687, 0.07541, 0.9144, 0.00989 ], - "triangles": [ 11, 9, 12, 9, 8, 12, 12, 8, 18, 13, 12, 14, 12, 18, 17, 18, 8, 7, 14, 12, 17, 11, 10, 9, 14, 16, 15, 14, 17, 16, 7, 19, 18, 7, 6, 19, 6, 5, 19, 19, 5, 20, 5, 4, 20, 20, 4, 21, 4, 3, 21, 21, 3, 22, 3, 2, 22, 22, 2, 23, 2, 1, 23, 23, 1, 24, 1, 0, 24, 0, 25, 24 ], + "triangles": [ 14, 17, 16, 14, 16, 15, 11, 10, 9, 14, 12, 17, 18, 8, 7, 12, 18, 17, 13, 12, 14, 12, 8, 18, 9, 8, 12, 11, 9, 12, 6, 5, 19, 7, 6, 19, 7, 19, 18, 20, 4, 21, 5, 4, 20, 19, 5, 20, 3, 2, 22, 21, 3, 22, 4, 3, 21, 0, 25, 24, 1, 0, 24, 23, 1, 24, 2, 1, 23, 22, 2, 23 ], "vertices": [ 1, 9, -7.68, -11.48, 1, 1, 9, 4.09, -13.63, 1, 1, 9, 23.49, -9.36, 1, 1, 10, 13.44, -9.23, 1, 2, 10, 35.2, -9.62, 0.50649, 11, -0.58, -9.66, 0.49351, 1, 11, 26.04, -6.39, 1, 1, 12, 14.15, -6.11, 1, 2, 12, 31.54, -5.57, 0.66493, 13, -3.33, -5.03, 0.33507, 1, 13, 13.08, -11.25, 1, 1, 13, 24.41, -14.89, 1, 1, 13, 30.15, -24.52, 1, 1, 13, 36.93, -23.54, 1, 1, 13, 54.08, -2.33, 1, 1, 13, 55.73, 14.15, 1, 1, 13, 41.39, 18.48, 1, 1, 13, 37.29, 26.87, 1, 1, 13, 24.66, 21.67, 1, 1, 13, 9.18, 18.1, 1, 2, 12, 31.33, 6.78, 0.47881, 13, -1.11, 7.12, 0.52119, 1, 12, 13.77, 6.04, 1, 2, 11, 24.98, 6.17, 0.89218, 12, -5.48, 6.96, 0.10782, 2, 10, 32.6, 7.29, 0.59842, 11, -0.32, 7.45, 0.40158, 1, 10, 11.08, 8.85, 1, 1, 9, 17.89, 11.88, 1, 1, 9, -4.82, 9.46, 1, 1, 9, -13.69, -0.69, 1 ], "hull": 26, "edges": [ 0, 2, 2, 4, 4, 6, 6, 8, 8, 10, 10, 12, 12, 14, 14, 16, 16, 18, 18, 20, 20, 22, 22, 24, 24, 26, 26, 28, 28, 30, 30, 32, 32, 34, 34, 36, 36, 38, 38, 40, 40, 42, 42, 44, 44, 46, 46, 48, 48, 50, 0, 50, 2, 48, 4, 46, 6, 44, 8, 42, 10, 40, 12, 38, 14, 36 ], @@ -509,7 +509,7 @@ "back-leg": { "type": "mesh", "uvs": [ 0.502, 0.01179, 0.36076, 0.06379, 0.4057, 0.15046, 0.44743, 0.23916, 0.47953, 0.32991, 0.51163, 0.42269, 0.52127, 0.50629, 0.48274, 0.58888, 0.41212, 0.66025, 0.3126, 0.74182, 0.2163, 0.81625, 0.1232, 0.89272, 0.00763, 0.97429, 0.29655, 0.98958, 0.47407, 0.99222, 0.64004, 0.99468, 0.80989, 0.9896, 0.91291, 0.98652, 1, 0.95797, 0.8333, 0.94681, 0.71067, 0.9386, 0.57123, 0.92031, 0.41533, 0.89986, 0.3447, 0.89272, 0.36885, 0.87178, 0.42817, 0.82033, 0.502, 0.74794, 0.58226, 0.66943, 0.6593, 0.59092, 0.72993, 0.50528, 0.76524, 0.42167, 0.78129, 0.32481, 0.78771, 0.23406, 0.78771, 0.13924, 0.72351, 0.03728, 0.60152, 0.00567, 0.82117, 0.96898, 0.67873, 0.96396, 0.52111, 0.9574, 0.35936, 0.94214, 0.19388, 0.92922, 0.25375, 0.88159, 0.32792, 0.8184 ], - "triangles": [ 17, 36, 19, 17, 16, 36, 16, 37, 36, 17, 19, 18, 36, 20, 19, 15, 37, 16, 14, 38, 15, 15, 38, 37, 37, 20, 36, 38, 21, 37, 37, 21, 20, 38, 22, 21, 13, 39, 14, 14, 39, 38, 12, 40, 13, 13, 40, 39, 39, 22, 38, 40, 23, 39, 39, 23, 22, 12, 11, 40, 40, 41, 23, 40, 11, 41, 23, 41, 24, 11, 10, 41, 41, 42, 24, 41, 10, 42, 24, 42, 25, 26, 25, 9, 10, 9, 42, 25, 42, 9, 9, 8, 26, 26, 8, 27, 8, 7, 27, 27, 7, 28, 7, 6, 28, 28, 6, 29, 6, 5, 29, 29, 5, 30, 30, 5, 31, 31, 5, 4, 31, 4, 32, 32, 4, 3, 32, 3, 33, 3, 2, 33, 2, 34, 33, 2, 1, 34, 34, 0, 35, 34, 1, 0 ], + "triangles": [ 36, 20, 19, 17, 19, 18, 16, 37, 36, 17, 16, 36, 17, 36, 19, 38, 22, 21, 37, 21, 20, 38, 21, 37, 37, 20, 36, 15, 38, 37, 14, 38, 15, 15, 37, 16, 39, 23, 22, 40, 23, 39, 39, 22, 38, 13, 40, 39, 12, 40, 13, 14, 39, 38, 13, 39, 14, 9, 8, 26, 25, 42, 9, 10, 9, 42, 26, 25, 9, 24, 42, 25, 41, 10, 42, 41, 42, 24, 11, 10, 41, 23, 41, 24, 40, 11, 41, 40, 41, 23, 12, 11, 40, 26, 8, 27, 6, 5, 29, 28, 6, 29, 7, 6, 28, 27, 7, 28, 8, 7, 27, 29, 5, 30, 31, 5, 4, 30, 5, 31, 32, 4, 3, 31, 4, 32, 34, 1, 0, 34, 0, 35, 2, 1, 34, 2, 34, 33, 3, 2, 33, 32, 3, 33 ], "vertices": [ 1, 20, -19.79, -5.67, 1, 2, 20, -5.62, -22.28, 0.83363, 21, -41.07, -23.3, 0.16637, 2, 20, 22.31, -21.98, 0.65187, 21, -13.17, -21.89, 0.34813, 3, 20, 50.83, -22.11, 0.3172, 21, 15.33, -20.87, 0.43086, 22, -19.67, -21.09, 0.25193, 4, 20, 79.85, -23.29, 0.10792, 21, 44.37, -20.89, 0.35417, 22, 9.3, -19.2, 0.3192, 23, -25.22, -20.06, 0.21872, 4, 21, 74.06, -20.98, 0.16486, 22, 38.93, -17.34, 0.32776, 23, 4.09, -15.38, 0.29831, 24, -30.1, -17.16, 0.20907, 3, 22, 65.54, -17.61, 0.17523, 23, 30.6, -13.11, 0.39173, 24, -4.12, -11.42, 0.43304, 3, 23, 57.03, -15.71, 0.19718, 24, 22.43, -10.53, 0.52971, 25, -12.97, -9.81, 0.27311, 3, 24, 46.05, -13.47, 0.40991, 25, 10.84, -10.17, 0.34747, 26, -24.93, -10.51, 0.24261, 3, 24, 73.39, -18.69, 0.19432, 25, 38.58, -12.41, 0.37177, 26, 2.9, -10.99, 0.43391, 3, 25, 64.06, -14.98, 0.16664, 26, 28.49, -11.94, 0.56756, 27, -7.53, -11.48, 0.2658, 3, 26, 54.58, -12.37, 0.52114, 27, 18.56, -10.93, 0.36168, 14, -3.08, 24.95, 0.11718, 4, 26, 82.97, -14.36, 0.35144, 27, 47.01, -11.86, 0.29521, 14, -13.07, -1.67, 0.25118, 15, -46.3, 1.83, 0.10216, 1, 14, 16.37, -4.67, 1, 2, 14, 34.32, -4.37, 0.53487, 15, 0.74, -4.44, 0.46513, 3, 14, 51.1, -4.08, 0.14611, 15, 17.5, -5.42, 0.54314, 16, -15.51, -2.75, 0.31075, 2, 15, 34.67, -4.01, 0.40714, 16, 1.65, -4.36, 0.59286, 2, 15, 45.09, -3.16, 0.25726, 16, 12.05, -5.34, 0.74274, 2, 15, 53.99, 5.81, 0.25311, 16, 22.38, 1.94, 0.74689, 2, 15, 37.19, 9.56, 0.4029, 16, 6.5, 8.57, 0.5971, 3, 14, 57.07, 14.17, 0.13352, 15, 24.84, 12.33, 0.54644, 16, -5.18, 13.44, 0.32004, 4, 26, 47.09, 33.11, 0.13131, 14, 42.64, 19.08, 0.26349, 15, 10.82, 18.31, 0.49746, 16, -17.94, 21.78, 0.10773, 4, 26, 46.46, 16.09, 0.21159, 27, 9.37, 17.21, 0.1068, 14, 26.51, 24.57, 0.44951, 15, -4.85, 25.01, 0.23211, 3, 26, 46.8, 8.62, 0.40111, 27, 10, 9.75, 0.24543, 14, 19.24, 26.38, 0.35346, 3, 26, 39.71, 8.61, 0.5825, 27, 2.91, 9.47, 0.30792, 14, 21.25, 33.18, 0.10958, 3, 25, 59.17, 5.89, 0.21955, 26, 22.27, 8.58, 0.57946, 27, -14.51, 8.8, 0.20099, 3, 24, 71.84, 0.47, 0.21583, 25, 34.96, 6.47, 0.32263, 26, -1.92, 7.63, 0.46154, 3, 24, 45.81, 3.96, 0.40554, 25, 8.71, 7.12, 0.38602, 26, -28.17, 6.61, 0.20845, 3, 23, 56.79, 2.13, 0.25409, 24, 19.83, 7.12, 0.53006, 25, -17.46, 7.46, 0.21585, 3, 22, 66.18, 3.45, 0.22414, 23, 29.23, 7.92, 0.34135, 24, -8.25, 9.24, 0.43451, 4, 21, 76.6, 4.51, 0.19364, 22, 39.78, 8.26, 0.28887, 23, 2.49, 10.19, 0.33579, 24, -35.06, 7.97, 0.1817, 4, 20, 82.88, 7.08, 0.11658, 21, 46.18, 9.58, 0.35727, 22, 9.09, 11.32, 0.35745, 23, -28.36, 10.3, 0.16869, 3, 20, 54.46, 12.11, 0.35357, 21, 17.57, 13.46, 0.44494, 22, -19.71, 13.32, 0.20149, 2, 20, 24.65, 16.69, 0.65438, 21, -12.4, 16.85, 0.34562, 2, 20, -8.38, 15.21, 0.85331, 21, -45.34, 14.05, 0.14669, 1, 20, -20.19, 4.56, 1, 2, 15, 35.89, 2.53, 0.4051, 16, 3.99, 1.87, 0.5949, 3, 14, 54.38, 5.92, 0.13921, 15, 21.52, 4.3, 0.54495, 16, -9.85, 6.12, 0.31584, 2, 14, 37.79, 7.63, 0.44939, 15, 5.1, 7.27, 0.55061, 3, 26, 65.39, 20.7, 0.11858, 14, 20.6, 11.35, 0.75134, 15, -11.76, 12.27, 0.13008, 3, 26, 65.41, 1.81, 0.3968, 27, 24.3, 0.23, 0.28258, 14, 2.07, 14.98, 0.32063, 3, 26, 48.01, 0.08, 0.55395, 27, 6.94, -0.33, 0.33293, 14, 3.38, 30.47, 0.11312, 3, 25, 65.95, -2.97, 0.19447, 26, 24.96, -1.58, 0.57382, 27, -15.99, -0.43, 0.23171 ], "hull": 36, "edges": [ 0, 2, 2, 4, 4, 6, 6, 8, 8, 10, 10, 12, 12, 14, 14, 16, 16, 18, 18, 20, 20, 22, 22, 24, 24, 26, 34, 36, 44, 46, 50, 52, 52, 54, 54, 56, 56, 58, 58, 60, 60, 62, 62, 64, 64, 66, 66, 68, 68, 70, 0, 70, 4, 66, 2, 68, 40, 42, 42, 44, 26, 28, 28, 30, 46, 48, 48, 50, 36, 38, 38, 40, 30, 32, 32, 34, 18, 52, 16, 54, 14, 56, 12, 58, 10, 60, 8, 62, 6, 64, 32, 72, 72, 38, 30, 74, 74, 40, 72, 74, 28, 76, 76, 42, 74, 76, 26, 78, 78, 44, 76, 78, 24, 80, 80, 46, 78, 80, 22, 82, 82, 48, 80, 82, 20, 84, 84, 50, 82, 84 ], @@ -529,7 +529,7 @@ "body": { "type": "mesh", "uvs": [ 0.35966, 0.01351, 0.26864, 0.04108, 0.26204, 0.0954, 0.34119, 0.14478, 0.39792, 0.19457, 0.40451, 0.24272, 0.38077, 0.27893, 0.3597, 0.3004, 0.34119, 0.31926, 0.34989, 0.34326, 0.35834, 0.36658, 0.36552, 0.40164, 0.37234, 0.43499, 0.38397, 0.4944, 0.3956, 0.55971, 0.39884, 0.59858, 0.40142, 0.62955, 0.40216, 0.65662, 0.3461, 0.71564, 0.27077, 0.78176, 0.2201, 0.82128, 0.17618, 0.85553, 0.13115, 0.88833, 0.08238, 0.92385, 0.00342, 0.9796, 0.18836, 0.99127, 0.32172, 0.99284, 0.46266, 0.99451, 0.61643, 0.98608, 0.71618, 0.97182, 0.61851, 0.95821, 0.48967, 0.95043, 0.39458, 0.94083, 0.27772, 0.92904, 0.23408, 0.9232, 0.26692, 0.89774, 0.30681, 0.86681, 0.34203, 0.83415, 0.38369, 0.7955, 0.45642, 0.72874, 0.52708, 0.66845, 0.56032, 0.63345, 0.57541, 0.60109, 0.59357, 0.56214, 0.61643, 0.49732, 0.63513, 0.43963, 0.64345, 0.40462, 0.77081, 0.39011, 0.84585, 0.37025, 0.90983, 0.35331, 0.9674, 0.31915, 0.97302, 0.28585, 0.96448, 0.23351, 0.8952, 0.1681, 0.79346, 0.12643, 0.75179, 0.10879, 0.71799, 0.09448, 0.66817, 0.07237, 0.61343, 0.04807, 0.47868, 0.01411, 0.49846, 0.38826, 0.66315, 0.34728, 0.67333, 0.30664, 0.8188, 0.29655, 0.80971, 0.24505, 0.72829, 0.17902, 0.68147, 0.13902, 0.59191, 0.09711, 0.3904, 0.09012, 0.53695, 0.14981, 0.57563, 0.19616, 0.64483, 0.25077, 0.79855, 0.33476, 0.61751, 0.97167, 0.4773, 0.97061, 0.23795, 0.95673, 0.15272, 0.92355, 0.14158, 0.94886, 0.23861, 0.86092, 0.51732, 0.30354, 0.50696, 0.34527, 0.50634, 0.43735, 0.50334, 0.4959, 0.51086, 0.32558, 0.50355, 0.41057, 0.19543, 0.89241, 0.36492, 0.9641 ], - "triangles": [ 1, 0, 59, 58, 1, 59, 68, 1, 58, 2, 1, 68, 67, 68, 58, 67, 58, 57, 67, 57, 56, 66, 67, 56, 66, 56, 55, 3, 2, 68, 69, 68, 67, 3, 68, 69, 69, 67, 66, 66, 55, 54, 65, 66, 54, 65, 54, 53, 4, 3, 69, 70, 69, 66, 4, 69, 70, 70, 66, 65, 5, 4, 70, 71, 70, 65, 5, 70, 71, 6, 71, 62, 79, 6, 62, 7, 6, 79, 71, 6, 5, 83, 7, 79, 8, 7, 83, 83, 79, 62, 9, 8, 83, 80, 9, 83, 61, 83, 62, 61, 62, 72, 80, 83, 61, 46, 80, 61, 46, 61, 47, 62, 71, 64, 64, 65, 53, 64, 53, 52, 71, 65, 64, 63, 64, 52, 63, 52, 51, 62, 64, 63, 50, 63, 51, 72, 62, 63, 72, 63, 50, 49, 72, 50, 48, 72, 49, 47, 61, 72, 47, 72, 48, 74, 32, 31, 86, 32, 74, 73, 31, 30, 74, 31, 73, 73, 30, 29, 28, 74, 73, 28, 73, 29, 27, 86, 74, 27, 74, 28, 26, 86, 27, 75, 33, 86, 24, 23, 77, 25, 77, 75, 24, 77, 25, 26, 75, 86, 25, 75, 26, 22, 21, 85, 85, 78, 35, 34, 85, 35, 76, 22, 85, 76, 85, 34, 23, 22, 76, 77, 23, 76, 77, 76, 34, 77, 34, 33, 75, 77, 33, 86, 33, 32, 36, 78, 20, 21, 20, 78, 37, 36, 20, 85, 21, 78, 35, 78, 36, 38, 18, 39, 19, 18, 38, 37, 19, 38, 20, 19, 37, 40, 17, 16, 41, 40, 16, 39, 17, 40, 18, 17, 39, 42, 15, 14, 43, 42, 14, 41, 16, 15, 42, 41, 15, 14, 13, 82, 43, 82, 44, 14, 82, 43, 12, 11, 84, 45, 81, 84, 12, 84, 81, 46, 45, 84, 13, 12, 81, 82, 13, 81, 44, 81, 45, 82, 81, 44, 10, 9, 80, 60, 10, 80, 11, 10, 60, 60, 80, 46, 84, 60, 46, 11, 60, 84 ], + "triangles": [ 2, 1, 68, 68, 1, 58, 58, 1, 59, 1, 0, 59, 69, 67, 66, 3, 68, 69, 69, 68, 67, 3, 2, 68, 66, 56, 55, 66, 67, 56, 67, 57, 56, 67, 58, 57, 67, 68, 58, 5, 70, 71, 71, 70, 65, 5, 4, 70, 70, 66, 65, 4, 69, 70, 70, 69, 66, 4, 3, 69, 65, 54, 53, 65, 66, 54, 66, 55, 54, 46, 61, 47, 46, 80, 61, 80, 83, 61, 61, 62, 72, 61, 83, 62, 80, 9, 83, 9, 8, 83, 83, 79, 62, 8, 7, 83, 83, 7, 79, 71, 6, 5, 7, 6, 79, 79, 6, 62, 6, 71, 62, 47, 72, 48, 47, 61, 72, 48, 72, 49, 49, 72, 50, 72, 63, 50, 72, 62, 63, 50, 63, 51, 62, 64, 63, 63, 52, 51, 63, 64, 52, 71, 65, 64, 64, 53, 52, 64, 65, 53, 62, 71, 64, 26, 86, 27, 27, 74, 28, 27, 86, 74, 28, 73, 29, 28, 74, 73, 73, 30, 29, 74, 31, 73, 73, 31, 30, 86, 32, 74, 74, 32, 31, 25, 75, 26, 26, 75, 86, 24, 77, 25, 25, 77, 75, 24, 23, 77, 75, 33, 86, 86, 33, 32, 75, 77, 33, 77, 34, 33, 77, 76, 34, 77, 23, 76, 23, 22, 76, 76, 85, 34, 76, 22, 85, 34, 85, 35, 85, 78, 35, 22, 21, 85, 35, 78, 36, 85, 21, 78, 37, 36, 20, 21, 20, 78, 36, 78, 20, 20, 19, 37, 37, 19, 38, 19, 18, 38, 38, 18, 39, 18, 17, 39, 39, 17, 40, 41, 40, 16, 40, 17, 16, 42, 41, 15, 41, 16, 15, 43, 42, 14, 42, 15, 14, 14, 82, 43, 43, 82, 44, 14, 13, 82, 82, 81, 44, 44, 81, 45, 82, 13, 81, 13, 12, 81, 46, 45, 84, 12, 84, 81, 45, 81, 84, 12, 11, 84, 11, 60, 84, 84, 60, 46, 60, 80, 46, 11, 10, 60, 60, 10, 80, 10, 9, 80 ], "vertices": [ 1, 6, 30.85, 2.45, 1, 2, 5, 60.42, 12.42, 0.24859, 6, 22.32, 18.18, 0.75141, 2, 5, 39.47, 25.25, 0.44332, 6, -1.06, 25.72, 0.55668, 3, 4, 48.03, 29.46, 0.37431, 5, 14.55, 26.45, 0.47619, 6, -25.57, 21.02, 0.1495, 3, 3, 50.36, 32.58, 0.11243, 4, 24.29, 26.8, 0.64611, 5, -8.99, 30.5, 0.24146, 3, 44, -45.22, -8.81, 0.10611, 3, 28.69, 30.4, 0.49533, 4, 2.89, 30.85, 0.39856, 3, 44, -28.91, -12.45, 0.25802, 3, 12.15, 32.8, 0.60894, 4, -12.29, 37.84, 0.13304, 3, 44, -18.5, -14.05, 0.28714, 3, 2.34, 35.98, 0.51935, 29, -7.6, 18.95, 0.19351, 4, 44, -10.79, -18.35, 0.28478, 28, -42.03, 75.56, 0.10295, 3, -6.36, 37.32, 0.37494, 29, -10.2, 10.26, 0.23733, 3, 44, 0.92, -16.96, 0.34087, 3, -17.28, 35.45, 0.32141, 29, -8.2, -0.67, 0.33772, 4, 44, 10.64, -16.32, 0.32691, 45, -24.05, -14.9, 0.16082, 3, -27.58, 33.67, 0.14432, 29, -6.37, -11.05, 0.36794, 4, 44, 28.5, -15.63, 0.24237, 45, -9.55, -15.11, 0.27028, 46, -45.51, -19.12, 0.12132, 29, -3.65, -27.88, 0.36603, 4, 44, 41.59, -14.89, 0.21761, 45, 6.93, -15.35, 0.33285, 46, -26.85, -17.49, 0.20377, 29, -1.3, -43.28, 0.24577, 3, 45, 33.83, -15.81, 0.47179, 46, 0, -15.85, 0.42627, 47, -31.79, -17.82, 0.10194, 3, 45, 63.39, -16.48, 0.2126, 46, 29.52, -14.22, 0.42737, 47, -2.43, -14.39, 0.36002, 3, 46, 49.79, -15.51, 0.30179, 47, 14.85, -13.08, 0.47127, 48, -21.15, -15.64, 0.22695, 3, 46, 61.1, -13.41, 0.15443, 47, 29.03, -11.65, 0.50848, 48, -3.27, -12.45, 0.33708, 2, 47, 41.24, -10.8, 0.28079, 48, 8.41, -8.79, 0.71921, 2, 48, 36.24, -8.59, 0.56513, 49, -3.02, -8.84, 0.43487, 3, 48, 67.93, -10.06, 0.16322, 49, 28.69, -7.82, 0.53712, 50, -8.12, -7.7, 0.29966, 3, 49, 47.76, -8.47, 0.40201, 50, 10.97, -7.9, 0.45131, 51, -26.34, -6.21, 0.14668, 3, 49, 64.62, -8.06, 0.25017, 50, 27.8, -8.4, 0.46039, 51, -12.77, -8.82, 0.28944, 4, 49, 79.13, -10.24, 0.11858, 50, 42.33, -8.03, 0.26981, 51, 4.53, -8.38, 0.48104, 38, -1.56, 35.6, 0.13057, 2, 51, 20.84, -9.2, 0.728, 38, -5.38, 19.56, 0.272, 1, 38, -11.5, -7.3, 1, 4, 51, 43.23, 16.27, 0.2746, 38, 15.1, -7.51, 0.48158, 39, -12.29, -5.54, 0.12942, 40, -41.77, 0.94, 0.11439, 4, 51, 37, 33.94, 0.18804, 38, 33.71, -4.58, 0.34252, 39, 6.54, -5.76, 0.18297, 40, -23.2, -2.19, 0.28647, 3, 38, 53.35, -1.59, 0.21646, 39, 26.41, -6.09, 0.26516, 40, -3.62, -5.59, 0.51838, 2, 39, 47.99, -1.76, 0.15753, 40, 18.37, -4.66, 0.84247, 1, 40, 33.16, -0.12, 1, 2, 39, 47.98, 10.84, 0.17387, 40, 20.32, 7.79, 0.82613, 4, 51, 9.83, 48.43, 0.17572, 38, 53.29, 18.7, 0.17038, 39, 29.73, 13.92, 0.136, 40, 2.77, 13.66, 0.5179, 4, 51, 11.45, 34.58, 0.26313, 38, 39.26, 20.56, 0.23037, 39, 16.21, 18.1, 0.15679, 40, -9.94, 19.88, 0.3497, 4, 51, 12.41, 17.13, 0.37057, 38, 22.11, 22.5, 0.30409, 39, -0.38, 22.88, 0.18235, 40, -25.59, 27.17, 0.14299, 3, 51, 12.34, 10.44, 0.4464, 38, 15.56, 23.92, 0.2976, 39, -6.59, 25.37, 0.256, 4, 50, 38.15, 11.09, 0.28506, 51, 1.65, 10.97, 0.37544, 38, 17.99, 34.75, 0.18251, 39, -2.39, 35.65, 0.15699, 3, 49, 62.62, 10.94, 0.26064, 50, 26.05, 10.62, 0.49792, 51, -15.15, 10.14, 0.24144, 3, 49, 47.27, 9.67, 0.40348, 50, 9.53, 10.2, 0.4787, 51, -26.59, 11.94, 0.11781, 3, 48, 69.23, 6.98, 0.16044, 49, 28.64, 9.27, 0.53936, 50, -7.95, 9.39, 0.3002, 2, 48, 37.36, 8.01, 0.57649, 49, -3.21, 7.8, 0.42351, 2, 47, 45.49, 7.11, 0.2935, 48, 8.38, 9.61, 0.7065, 3, 46, 62.85, 9, 0.15446, 47, 29.41, 10.82, 0.49324, 48, -8.13, 9.49, 0.3523, 3, 46, 52.15, 9.28, 0.30575, 47, 12.84, 11.74, 0.46742, 48, -26.12, 8.77, 0.22683, 3, 45, 66.66, 11.26, 0.21798, 46, 30.62, 13.69, 0.42844, 47, -3.05, 13.54, 0.35358, 3, 45, 37.7, 16.76, 0.48246, 46, 1.32, 16.92, 0.41752, 47, -32.5, 14.97, 0.10002, 4, 44, 44.35, 22.12, 0.2346, 45, 11.91, 21.43, 0.43853, 46, -24.76, 19.57, 0.2068, 3, -58.29, -7.2, 0.12007, 4, 44, 28.55, 23.57, 0.31081, 45, -3.77, 23.84, 0.19158, 28, -76.76, 29.23, 0.21531, 3, -42.43, -7.46, 0.28231, 3, 44, 22.31, 41.64, 0.18196, 28, -69.84, 12.47, 0.43955, 3, -34.84, -25, 0.37848, 3, 44, 19.78, 51.42, 0.1392, 28, -59.84, 2.53, 0.47896, 3, -23.9, -35.17, 0.38184, 3, 44, 6.03, 61.54, 0.10543, 28, -52.71, -5.88, 0.51007, 3, -17.11, -43.61, 0.38449, 2, 28, -37.16, -13.14, 0.67427, 3, -1.22, -50.83, 0.32573, 1, 28, -22.09, -13.06, 1, 2, 28, 1.45, -10.49, 0.89019, 3, 37.4, -48.18, 0.10981, 3, 28, 30.41, 0.97, 0.4302, 3, 66.35, -36.73, 0.16237, 4, 19.98, -44.2, 0.40743, 2, 4, 41.58, -34.52, 0.68165, 5, -9.45, -33.21, 0.31835, 2, 4, 50.69, -30.62, 0.51066, 5, 0.38, -31.99, 0.48934, 3, 4, 58.07, -27.45, 0.26484, 5, 8.35, -31.01, 0.61475, 6, -18.05, -36.28, 0.12041, 3, 4, 69.4, -22.88, 0.17396, 5, 20.51, -29.78, 0.5644, 6, -6.53, -32.23, 0.26164, 2, 5, 33.86, -28.42, 0.29085, 6, 6.13, -27.77, 0.70915, 2, 5, 56.55, -19.38, 0.17381, 6, 26.05, -13.63, 0.82619, 4, 44, 20.79, 3.26, 0.43236, 45, -12.74, 4.03, 0.19687, 3, -36.22, 13.38, 0.21782, 29, 13.98, -19.25, 0.15294, 4, 44, 2.69, 26.81, 0.26409, 28, -50.86, 29.21, 0.2337, 3, -16.39, -8.73, 0.34628, 29, 35.79, -0.49, 0.15592, 3, 44, -15.65, 28.57, 0.15678, 28, -33.54, 28.78, 0.2916, 3, 2.03, -9.11, 0.55162, 1, 28, -28.18, 8.37, 1, 1, 28, -5.01, 11, 1, 3, 28, 24.12, 24.18, 0.12052, 3, 60.07, -13.52, 0.21384, 4, 20.53, -20.16, 0.66564, 2, 4, 39.64, -17.85, 0.59513, 5, -6.68, -16.66, 0.40487, 3, 4, 60.96, -9.87, 0.26252, 5, 16.02, -14.92, 0.55541, 6, -14.39, -18.85, 0.18206, 2, 5, 32.69, 8.3, 0.58729, 6, -3.66, 7.65, 0.41271, 2, 4, 39.53, 3.1, 0.47136, 5, -0.95, 3.5, 0.52864, 1, 4, 17.89, 2.56, 1, 2, 3, 27.01, -3.64, 0.67245, 4, -8.37, -1.32, 0.32755, 3, 44, -2.63, 46, 0.10033, 28, -45.42, 10.27, 0.52612, 3, -9.64, -27.47, 0.37356, 2, 39, 47.98, 4.75, 0.16598, 40, 19.38, 1.78, 0.83402, 4, 51, 19.56, 50.48, 0.12624, 38, 53.31, 9.51, 0.16908, 39, 28.22, 4.86, 0.24846, 40, -0.13, 4.94, 0.45621, 4, 51, 26.31, 16.82, 0.32786, 38, 18.97, 9.25, 0.38308, 39, -5.69, 10.34, 0.1588, 40, -32.78, 15.61, 0.13026, 2, 51, 16.97, -0.03, 0.66865, 38, 4.23, 21.71, 0.33135, 3, 51, 28.1, 2.86, 0.4826, 38, 4.92, 10.15, 0.31302, 39, -19.39, 13.57, 0.20437, 3, 49, 63.22, -0.58, 0.21069, 50, 25.96, 0.79, 0.49387, 51, -11.02, 1.48, 0.29545, 3, 44, -14.84, 8.09, 0.24448, 28, -33.35, 51.23, 0.16325, 3, 2.6, 13.54, 0.59227, 4, 44, 3.38, 4.96, 0.28616, 28, -51.81, 51.13, 0.16477, 3, -15.87, 13.44, 0.31892, 29, 13.85, -0.53, 0.23015, 4, 44, 46.09, 3.59, 0.2409, 45, 9.06, 3.1, 0.41152, 46, -28.46, 0.64, 0.21862, 29, 17.5, -43.07, 0.12896, 3, 45, 37.23, 1.25, 0.47745, 46, -0.08, 1.26, 0.42163, 47, -36.26, -5.26, 0.10093, 4, 44, -5.23, 6.3, 0.25594, 28, -43.11, 51.32, 0.15579, 3, -7.17, 13.63, 0.42092, 29, 14.17, 8.17, 0.16735, 4, 44, 33.04, 3.37, 0.36685, 45, -3.97, 3.61, 0.31093, 3, -45.33, 9.83, 0.17307, 29, 15.76, -30.15, 0.14915, 4, 49, 77.51, -1.16, 0.11479, 50, 40.24, 0.95, 0.26889, 51, 3.05, 0.72, 0.44973, 38, 7.66, 35.33, 0.16659, 4, 51, 22.73, 34.68, 0.22091, 38, 37.18, 9.39, 0.26956, 39, 12.3, 7.43, 0.20636, 40, -15.46, 9.95, 0.30317 ], "hull": 60, "edges": [ 0, 2, 2, 4, 4, 6, 6, 8, 8, 10, 10, 12, 24, 26, 26, 28, 32, 34, 34, 36, 36, 38, 46, 48, 48, 50, 54, 56, 56, 58, 58, 60, 60, 62, 66, 68, 76, 78, 78, 80, 80, 82, 86, 88, 88, 90, 90, 92, 92, 94, 98, 100, 100, 102, 102, 104, 104, 106, 106, 108, 116, 118, 0, 118, 92, 120, 120, 20, 28, 86, 82, 32, 34, 80, 78, 36, 76, 38, 12, 124, 102, 126, 126, 124, 126, 128, 128, 130, 130, 132, 132, 134, 112, 134, 134, 136, 136, 4, 2, 116, 6, 138, 138, 132, 8, 140, 140, 130, 10, 142, 142, 128, 128, 104, 130, 106, 132, 108, 122, 92, 100, 144, 144, 122, 126, 144, 144, 94, 112, 114, 114, 116, 108, 110, 110, 112, 16, 18, 18, 20, 20, 22, 22, 24, 12, 14, 14, 16, 122, 124, 94, 96, 96, 98, 56, 146, 146, 60, 54, 148, 148, 62, 146, 148, 50, 150, 150, 66, 46, 152, 152, 68, 154, 152, 154, 48, 42, 156, 156, 72, 14, 158, 158, 124, 18, 160, 160, 122, 160, 120, 24, 162, 162, 90, 26, 164, 164, 88, 162, 164, 16, 166, 160, 166, 166, 158, 166, 124, 162, 168, 168, 120, 168, 22, 168, 92, 38, 40, 40, 42, 72, 74, 74, 76, 40, 74, 42, 44, 44, 46, 152, 170, 170, 156, 44, 170, 68, 70, 70, 72, 170, 70, 62, 64, 64, 66, 148, 172, 172, 150, 64, 172, 50, 52, 52, 54, 172, 52, 154, 66, 150, 154, 28, 30, 30, 32, 82, 84, 84, 86, 30, 84 ], @@ -541,7 +541,7 @@ "front-arm": { "type": "mesh", "uvs": [ 0.71401, 0.00566, 0.67108, 0.08129, 0.60222, 0.15434, 0.53633, 0.21683, 0.44558, 0.28705, 0.34898, 0.35134, 0.29097, 0.38941, 0.25238, 0.41472, 0.22423, 0.44271, 0.19483, 0.47193, 0.15998, 0.50658, 0.09138, 0.59568, 0.05498, 0.70866, 0.02988, 0.81366, 0.01049, 0.94262, 0.10495, 0.98985, 0.25391, 0.97421, 0.31482, 0.88907, 0.28834, 0.82869, 0.13607, 0.74572, 0.14335, 0.71488, 0.18317, 0.62253, 0.25217, 0.54221, 0.29538, 0.50981, 0.33787, 0.47795, 0.38452, 0.45013, 0.43581, 0.41953, 0.54711, 0.3655, 0.68845, 0.29832, 0.74855, 0.35527, 0.85874, 0.38229, 0.99674, 0.37645, 0.95354, 0.33244, 0.91356, 0.29172, 0.87464, 0.25208, 0.83759, 0.21434, 0.78083, 0.12598, 0.78194, 0.0683, 0.6322, 0.23719, 0.66925, 0.15784, 0.75533, 0.20967, 0.7161, 0.11137 ], - "triangles": [ 30, 32, 31, 30, 29, 33, 30, 33, 32, 29, 28, 33, 28, 34, 33, 34, 40, 35, 34, 28, 40, 28, 38, 40, 38, 39, 40, 40, 36, 35, 39, 41, 40, 40, 41, 36, 39, 1, 41, 36, 41, 37, 37, 41, 0, 41, 1, 0, 39, 2, 1, 15, 18, 16, 15, 14, 13, 15, 13, 19, 16, 18, 17, 18, 15, 19, 13, 12, 19, 19, 12, 20, 12, 11, 20, 20, 11, 21, 11, 10, 21, 21, 10, 22, 10, 9, 22, 22, 9, 23, 9, 8, 23, 8, 7, 23, 23, 7, 24, 7, 6, 24, 24, 6, 25, 6, 5, 25, 25, 5, 26, 26, 5, 4, 26, 4, 27, 4, 3, 27, 27, 38, 28, 27, 3, 38, 3, 2, 38, 38, 2, 39 ], + "triangles": [ 30, 29, 33, 30, 32, 31, 40, 41, 36, 39, 41, 40, 40, 36, 35, 38, 39, 40, 28, 38, 40, 34, 28, 40, 34, 40, 35, 28, 34, 33, 29, 28, 33, 30, 33, 32, 41, 1, 0, 37, 41, 0, 36, 41, 37, 39, 1, 41, 39, 2, 1, 19, 12, 20, 13, 12, 19, 18, 15, 19, 16, 18, 17, 15, 13, 19, 15, 14, 13, 15, 18, 16, 21, 10, 22, 11, 10, 21, 20, 11, 21, 12, 11, 20, 9, 8, 23, 22, 9, 23, 10, 9, 22, 26, 5, 4, 25, 5, 26, 6, 5, 25, 24, 6, 25, 7, 6, 24, 23, 7, 24, 8, 7, 23, 38, 2, 39, 3, 2, 38, 27, 3, 38, 27, 38, 28, 4, 3, 27, 26, 4, 27 ], "vertices": [ 1, 53, 21.67, 6.08, 1, 2, 52, 18.13, 3.37, 0.16553, 53, 3.92, 4.24, 0.83447, 3, 33, -6.12, -15.24, 0.20965, 52, -0.05, 8.86, 0.53629, 6, 43.44, 6.81, 0.25406, 1, 33, 10.36, -12.02, 1, 2, 33, 30.62, -10.09, 0.88822, 34, -7.63, -10.15, 0.11178, 2, 33, 50.57, -9.69, 0.30996, 34, 12.31, -9.61, 0.69004, 2, 34, 24.21, -9.37, 0.86563, 35, -13.43, -6.2, 0.13437, 2, 34, 32.12, -9.22, 0.73143, 35, -5.73, -8.02, 0.26857, 2, 34, 39.35, -7.59, 0.54007, 35, 1.68, -8.25, 0.45993, 2, 34, 46.9, -5.88, 0.29037, 35, 9.42, -8.48, 0.70963, 2, 35, 18.59, -8.76, 0.66539, 36, -15.76, -5.13, 0.33461, 1, 36, 6.03, -8.58, 1, 2, 36, 31.42, -5.98, 0.39257, 37, 0.49, -6.36, 0.60743, 1, 37, 23.8, -9.31, 1, 1, 37, 52.37, -11.28, 1, 1, 37, 62.39, 2.72, 1, 1, 37, 58.29, 24.21, 1, 1, 37, 39.22, 32.48, 1, 1, 37, 26, 28.25, 1, 1, 37, 8.33, 5.63, 1, 2, 36, 28.81, 6.64, 0.48313, 37, 1.49, 6.49, 0.51687, 1, 36, 7.61, 5.9, 1, 3, 34, 51.67, 11.07, 0.10767, 35, 18.26, 6.75, 0.559, 36, -12.35, 10.01, 0.33333, 2, 34, 42.19, 10.25, 0.31464, 35, 8.88, 8.32, 0.68536, 2, 34, 32.87, 9.45, 0.59184, 35, -0.35, 9.86, 0.40816, 2, 34, 23.73, 9.7, 0.83036, 35, -9.14, 12.39, 0.16964, 2, 33, 52.08, 9.88, 0.29921, 34, 13.68, 9.98, 0.70079, 2, 33, 32.19, 12.6, 0.84687, 34, -6.24, 12.55, 0.15313, 1, 6, 9.42, 3.39, 1, 2, 6, -5.05, -1.59, 0.472, 5, 29.16, -0.35, 0.528, 1, 5, 16.13, -11.36, 1, 1, 5, 7.46, -29.44, 1, 2, 6, -8.23, -31.57, 0.5193, 5, 19, -28.74, 0.4807, 1, 6, 2, -28.43, 1, 1, 6, 11.96, -25.37, 1, 1, 6, 21.44, -22.45, 1, 3, 52, 12.7, -14.55, 0.25482, 53, 2.14, -14.4, 0.32231, 6, 42.47, -19.82, 0.42287, 1, 53, 13.64, -8.89, 1, 1, 33, 3.55, 0.91, 1, 2, 52, 1.72, -0.73, 0.5001, 6, 40.07, -2.34, 0.4999, 1, 6, 25.66, -11.25, 1, 3, 52, 13.4, -4.65, 0.33234, 53, 0.86, -4.56, 0.48165, 6, 48.12, -11.66, 0.18601 ], "hull": 38, "edges": [ 0, 2, 8, 10, 20, 22, 22, 24, 24, 26, 26, 28, 28, 30, 30, 32, 32, 34, 34, 36, 36, 38, 38, 40, 40, 42, 42, 44, 52, 54, 54, 56, 56, 58, 58, 60, 60, 62, 70, 72, 72, 74, 0, 74, 56, 76, 6, 8, 76, 6, 4, 6, 4, 78, 78, 80, 80, 70, 2, 82, 82, 72, 82, 78, 78, 76, 2, 4, 56, 80, 56, 66, 62, 64, 64, 66, 66, 68, 68, 70, 44, 46, 46, 48, 18, 20, 46, 18, 10, 12, 12, 14, 48, 50, 50, 52, 12, 50, 14, 16, 16, 18 ], @@ -572,6 +572,17 @@ } ], "animations": { + "idle": { + "bones": { + "hip": { + "translate": [ + {}, + { "time": 1, "y": -4.42 }, + { "time": 2 } + ] + } + } + }, "sneak": { "bones": { "hip": { diff --git a/Assets/ThirdParty/spine.timeline-4.1.meta b/Assets/ThirdParty/Spine Examples/Spine Skeletons/celestial-circus.meta similarity index 77% rename from Assets/ThirdParty/spine.timeline-4.1.meta rename to Assets/ThirdParty/Spine Examples/Spine Skeletons/celestial-circus.meta index 82075f2b8..43ac7307e 100644 --- a/Assets/ThirdParty/spine.timeline-4.1.meta +++ b/Assets/ThirdParty/Spine Examples/Spine Skeletons/celestial-circus.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 2e028c83389c4464aaef0549ee646686 +guid: 2cae596f8e1fa2b47ad0709b67cc2444 folderAsset: yes DefaultImporter: externalObjects: {} diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/celestial-circus/celestial-circus-pma.atlas.txt b/Assets/ThirdParty/Spine Examples/Spine Skeletons/celestial-circus/celestial-circus-pma.atlas.txt new file mode 100644 index 000000000..614022925 --- /dev/null +++ b/Assets/ThirdParty/Spine Examples/Spine Skeletons/celestial-circus/celestial-circus-pma.atlas.txt @@ -0,0 +1,174 @@ +celestial-circus-pma.png + size: 1024, 1024 + filter: Linear, Linear + pma: true + scale: 0.4 +arm-back-down + bounds: 324, 401, 38, 82 + rotate: 90 +arm-back-up + bounds: 290, 44, 83, 116 + rotate: 90 +arm-front-down + bounds: 706, 2, 36, 78 + rotate: 90 +arm-front-up + bounds: 860, 138, 77, 116 +bench + bounds: 725, 256, 189, 48 +body-bottom + bounds: 879, 868, 154, 124 + rotate: 90 +body-top + bounds: 725, 128, 126, 133 + rotate: 90 +chest + bounds: 408, 26, 104, 93 +cloud-back + bounds: 752, 378, 202, 165 +cloud-front + bounds: 2, 2, 325, 196 + rotate: 90 +collar + bounds: 786, 13, 47, 26 +ear + bounds: 1002, 643, 20, 28 +eye-back-shadow + bounds: 428, 395, 14, 10 +eye-front-shadow + bounds: 704, 529, 24, 14 +eye-reflex-back + bounds: 860, 128, 8, 7 + rotate: 90 +eye-reflex-front + bounds: 726, 386, 10, 7 +eye-white-back + bounds: 835, 23, 13, 16 +eye-white-front + bounds: 1005, 1000, 22, 17 + rotate: 90 +eyelashes-down-back + bounds: 232, 329, 11, 6 + rotate: 90 +eyelashes-down-front + bounds: 913, 851, 15, 6 + rotate: 90 +eyelashes-top-back + bounds: 408, 395, 18, 10 +eyelashes-top-front + bounds: 702, 179, 30, 16 + rotate: 90 +face + bounds: 514, 26, 93, 102 + rotate: 90 +feathers-back + bounds: 954, 625, 46, 46 +feathers-front + bounds: 706, 40, 72, 86 +fringe-middle-back + bounds: 200, 6, 33, 52 + rotate: 90 +fringe-middle-front + bounds: 878, 76, 60, 50 + rotate: 90 +fringe-side-back + bounds: 780, 41, 27, 94 + rotate: 90 +fringe-side-front + bounds: 939, 161, 26, 93 +glove-bottom-back + bounds: 954, 572, 51, 41 + rotate: 90 +glove-bottom-front + bounds: 916, 256, 47, 48 +hair-back-1 + bounds: 444, 395, 132, 306 + rotate: 90 +hair-back-2 + bounds: 438, 211, 80, 285 + rotate: 90 +hair-back-3 + bounds: 719, 306, 70, 268 + rotate: 90 +hair-back-4 + bounds: 438, 121, 88, 262 + rotate: 90 +hair-back-5 + bounds: 438, 293, 88, 279 + rotate: 90 +hair-back-6 + bounds: 200, 41, 88, 286 +hair-hat-shadow + bounds: 232, 398, 90, 41 +hand-back + bounds: 954, 673, 60, 47 + rotate: 90 +hand-front + bounds: 967, 172, 53, 60 +hat-back + bounds: 954, 802, 64, 45 + rotate: 90 +hat-front + bounds: 780, 70, 96, 56 +head-back + bounds: 618, 17, 102, 86 + rotate: 90 +jabot + bounds: 967, 234, 70, 55 + rotate: 90 +leg-back + bounds: 232, 441, 210, 333 +leg-front + bounds: 444, 529, 258, 320 +logo-brooch + bounds: 954, 545, 16, 25 +mouth + bounds: 408, 121, 22, 6 +neck + bounds: 232, 342, 39, 56 + rotate: 90 +nose + bounds: 742, 529, 6, 7 + rotate: 90 +nose-highlight + bounds: 719, 300, 4, 4 +nose-shadow + bounds: 869, 128, 7, 8 +pupil-back + bounds: 730, 529, 10, 14 +pupil-front + bounds: 254, 21, 12, 18 +rope-back + bounds: 232, 383, 10, 492 + rotate: 90 +rope-front + bounds: 232, 383, 10, 492 + rotate: 90 +rope-front-bottom + bounds: 954, 735, 42, 65 +skirt + bounds: 2, 776, 440, 246 +sock-bow + bounds: 408, 407, 33, 32 +spine-logo-body + bounds: 879, 853, 13, 32 + rotate: 90 +star-big + bounds: 939, 141, 18, 24 + rotate: 90 +star-medium + bounds: 742, 537, 6, 8 + rotate: 90 +star-small + bounds: 719, 378, 3, 4 + rotate: 90 +underskirt + bounds: 2, 329, 445, 228 + rotate: 90 +underskirt-back + bounds: 444, 851, 433, 171 +wing-back + bounds: 290, 129, 146, 252 +wing-front + bounds: 704, 545, 304, 248 + rotate: 90 diff --git a/Assets/ThirdParty/spine.timeline-4.1/version.txt.meta b/Assets/ThirdParty/Spine Examples/Spine Skeletons/celestial-circus/celestial-circus-pma.atlas.txt.meta similarity index 75% rename from Assets/ThirdParty/spine.timeline-4.1/version.txt.meta rename to Assets/ThirdParty/Spine Examples/Spine Skeletons/celestial-circus/celestial-circus-pma.atlas.txt.meta index a6e49ef5a..5d88213ed 100644 --- a/Assets/ThirdParty/spine.timeline-4.1/version.txt.meta +++ b/Assets/ThirdParty/Spine Examples/Spine Skeletons/celestial-circus/celestial-circus-pma.atlas.txt.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 3f240b7d6513d1742b370fd3713405b9 +guid: 9f77b6317f3511f4485d8be1e088ff6c TextScriptImporter: externalObjects: {} userData: diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/celestial-circus/celestial-circus-pma.png b/Assets/ThirdParty/Spine Examples/Spine Skeletons/celestial-circus/celestial-circus-pma.png new file mode 100644 index 000000000..2b2b9ca1e Binary files /dev/null and b/Assets/ThirdParty/Spine Examples/Spine Skeletons/celestial-circus/celestial-circus-pma.png differ diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/Dragon/dragon6.png.meta b/Assets/ThirdParty/Spine Examples/Spine Skeletons/celestial-circus/celestial-circus-pma.png.meta similarity index 92% rename from Assets/ThirdParty/Spine Examples/Spine Skeletons/Dragon/dragon6.png.meta rename to Assets/ThirdParty/Spine Examples/Spine Skeletons/celestial-circus/celestial-circus-pma.png.meta index dd07ef7aa..923e7df5b 100644 --- a/Assets/ThirdParty/Spine Examples/Spine Skeletons/Dragon/dragon6.png.meta +++ b/Assets/ThirdParty/Spine Examples/Spine Skeletons/celestial-circus/celestial-circus-pma.png.meta @@ -1,13 +1,13 @@ fileFormatVersion: 2 -guid: a87fe78b999f42f459397732f7c75303 +guid: d5bf0901654cca44d8d54e4b72929593 TextureImporter: internalIDToNameTable: [] externalObjects: {} - serializedVersion: 11 + serializedVersion: 12 mipmaps: mipMapMode: 0 enableMipMap: 0 - sRGBTexture: 1 + sRGBTexture: 0 linearTexture: 0 fadeOut: 0 borderMipMap: 0 @@ -20,10 +20,12 @@ TextureImporter: externalNormalMap: 0 heightScale: 0.25 normalMapFilter: 0 + flipGreenChannel: 0 isReadable: 0 streamingMipmaps: 0 streamingMipmapsPriority: 0 vTOnly: 0 + ignoreMasterTextureLimit: 0 grayScaleToAlpha: 0 generateCubemap: 6 cubemapConvolution: 0 @@ -62,6 +64,8 @@ TextureImporter: textureFormatSet: 0 ignorePngGamma: 0 applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 platformSettings: - serializedVersion: 3 buildTarget: DefaultTexturePlatform @@ -100,9 +104,9 @@ TextureImporter: edges: [] weights: [] secondaryTextures: [] + nameFileIdTable: {} spritePackingTag: pSDRemoveMatte: 0 - pSDShowRemoveMatteOption: 0 userData: assetBundleName: assetBundleVariant: diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/celestial-circus/celestial-circus-pma_Atlas.asset b/Assets/ThirdParty/Spine Examples/Spine Skeletons/celestial-circus/celestial-circus-pma_Atlas.asset new file mode 100644 index 000000000..60c3d42c2 --- /dev/null +++ b/Assets/ThirdParty/Spine Examples/Spine Skeletons/celestial-circus/celestial-circus-pma_Atlas.asset @@ -0,0 +1,19 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!114 &11400000 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: a6b194f808b1af6499c93410e504af42, type: 3} + m_Name: celestial-circus-pma_Atlas + m_EditorClassIdentifier: + textureLoadingMode: 0 + onDemandTextureLoader: {fileID: 0} + atlasFile: {fileID: 4900000, guid: 9f77b6317f3511f4485d8be1e088ff6c, type: 3} + materials: + - {fileID: 2100000, guid: 870f657376183b9489a1fe7ccbdacaa4, type: 2} diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/celestial-circus/celestial-circus-pma_Atlas.asset.meta b/Assets/ThirdParty/Spine Examples/Spine Skeletons/celestial-circus/celestial-circus-pma_Atlas.asset.meta new file mode 100644 index 000000000..fee624ee5 --- /dev/null +++ b/Assets/ThirdParty/Spine Examples/Spine Skeletons/celestial-circus/celestial-circus-pma_Atlas.asset.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 7eaea318921ef93428ded0a3c24125e4 +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 11400000 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/celestial-circus/celestial-circus-pma_Material.mat b/Assets/ThirdParty/Spine Examples/Spine Skeletons/celestial-circus/celestial-circus-pma_Material.mat new file mode 100644 index 000000000..cd9bb0975 --- /dev/null +++ b/Assets/ThirdParty/Spine Examples/Spine Skeletons/celestial-circus/celestial-circus-pma_Material.mat @@ -0,0 +1,45 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!21 &2100000 +Material: + serializedVersion: 8 + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: celestial-circus-pma_Material + m_Shader: {fileID: 4800000, guid: 1e8a610c9e01c3648bac42585e5fc676, type: 3} + m_ValidKeywords: [] + m_InvalidKeywords: + - _USE8NEIGHBOURHOOD_ON + m_LightmapFlags: 4 + m_EnableInstancingVariants: 0 + m_DoubleSidedGI: 0 + m_CustomRenderQueue: -1 + stringTagMap: {} + disabledShaderPasses: [] + m_SavedProperties: + serializedVersion: 3 + m_TexEnvs: + - _MainTex: + m_Texture: {fileID: 2800000, guid: d5bf0901654cca44d8d54e4b72929593, type: 3} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + m_Ints: [] + m_Floats: + - _Cutoff: 0.1 + - _Fill: 0 + - _OutlineMipLevel: 0 + - _OutlineOpaqueAlpha: 1 + - _OutlineReferenceTexWidth: 1024 + - _OutlineSmoothness: 1 + - _OutlineWidth: 3 + - _StencilComp: 8 + - _StencilRef: 1 + - _StraightAlphaInput: 0 + - _ThresholdEnd: 0.25 + - _Use8Neighbourhood: 1 + - _UseScreenSpaceOutlineWidth: 0 + m_Colors: + - _OutlineColor: {r: 1, g: 1, b: 0, a: 1} + m_BuildTextureStacks: [] diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/celestial-circus/celestial-circus-pma_Material.mat.meta b/Assets/ThirdParty/Spine Examples/Spine Skeletons/celestial-circus/celestial-circus-pma_Material.mat.meta new file mode 100644 index 000000000..0ad127836 --- /dev/null +++ b/Assets/ThirdParty/Spine Examples/Spine Skeletons/celestial-circus/celestial-circus-pma_Material.mat.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 870f657376183b9489a1fe7ccbdacaa4 +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 2100000 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/celestial-circus/celestial-circus-pma_celestial-circus-pma-Multiply.mat b/Assets/ThirdParty/Spine Examples/Spine Skeletons/celestial-circus/celestial-circus-pma_celestial-circus-pma-Multiply.mat new file mode 100644 index 000000000..e5e9ba7bf --- /dev/null +++ b/Assets/ThirdParty/Spine Examples/Spine Skeletons/celestial-circus/celestial-circus-pma_celestial-circus-pma-Multiply.mat @@ -0,0 +1,53 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!21 &2100000 +Material: + serializedVersion: 8 + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: celestial-circus-pma_celestial-circus-pma-Multiply + m_Shader: {fileID: 4800000, guid: 8bdcdc7ee298e594a9c20c61d25c33b6, type: 3} + m_Parent: {fileID: 0} + m_ModifiedSerializedProperties: 0 + m_ValidKeywords: [] + m_InvalidKeywords: + - _USE8NEIGHBOURHOOD_ON + m_LightmapFlags: 4 + m_EnableInstancingVariants: 0 + m_DoubleSidedGI: 0 + m_CustomRenderQueue: -1 + stringTagMap: {} + disabledShaderPasses: [] + m_LockedProperties: + m_SavedProperties: + serializedVersion: 3 + m_TexEnvs: + - : + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _MainTex: + m_Texture: {fileID: 2800000, guid: d5bf0901654cca44d8d54e4b72929593, type: 3} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + m_Ints: [] + m_Floats: + - : 0 + - _Cutoff: 0.1 + - _OutlineMipLevel: 0 + - _OutlineOpaqueAlpha: 1 + - _OutlineReferenceTexWidth: 1024 + - _OutlineSmoothness: 1 + - _OutlineWidth: 3 + - _StencilComp: 8 + - _StencilRef: 1 + - _StraightAlphaInput: 0 + - _ThresholdEnd: 0.25 + - _Use8Neighbourhood: 1 + m_Colors: + - : {r: 0, g: 2.018574, b: 1e-45, a: 0.000007110106} + - _Color: {r: 1, g: 1, b: 1, a: 1} + - _OutlineColor: {r: 1, g: 1, b: 0, a: 1} + m_BuildTextureStacks: [] diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/celestial-circus/celestial-circus-pma_celestial-circus-pma-Multiply.mat.meta b/Assets/ThirdParty/Spine Examples/Spine Skeletons/celestial-circus/celestial-circus-pma_celestial-circus-pma-Multiply.mat.meta new file mode 100644 index 000000000..40af48aaa --- /dev/null +++ b/Assets/ThirdParty/Spine Examples/Spine Skeletons/celestial-circus/celestial-circus-pma_celestial-circus-pma-Multiply.mat.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 51ea24e83c232c34994854424cd89413 +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 2100000 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/celestial-circus/celestial-circus-pro.json b/Assets/ThirdParty/Spine Examples/Spine Skeletons/celestial-circus/celestial-circus-pro.json new file mode 100644 index 000000000..1a7eebab0 --- /dev/null +++ b/Assets/ThirdParty/Spine Examples/Spine Skeletons/celestial-circus/celestial-circus-pro.json @@ -0,0 +1,3758 @@ +{ +"skeleton": { + "hash": "FsTlpSGjt5g", + "spine": "4.2.22", + "x": -755, + "y": -556.02, + "width": 1332, + "height": 2365.02, + "images": "./images/", + "audio": "" +}, +"bones": [ + { "name": "root" }, + { "name": "cloud", "parent": "root", "y": 1580, "color": "91aaebff", "icon": "circle" }, + { "name": "swing-top", "parent": "cloud", "length": 1040.94, "rotation": -90, "y": 4.09, "color": "afc1eeff" }, + { "name": "swing-bottom", "parent": "swing-top", "length": 520.47, "x": 1040.94, "color": "afc1eeff" }, + { + "name": "bench-front", + "parent": "swing-bottom", + "rotation": 90, + "x": 528.6, + "y": -170.65, + "color": "afc1eeff", + "icon": "diamond" + }, + { "name": "bench-back", "parent": "bench-front", "x": 314.34, "y": 66.88, "color": "34497dff", "icon": "diamond" }, + { + "name": "rope-front", + "parent": "swing-top", + "rotation": 90, + "x": 215.22, + "y": -172.32, + "color": "afc1eeff", + "icon": "diamond" + }, + { + "name": "rope-back", + "parent": "swing-top", + "rotation": 90, + "x": 153.36, + "y": 157.07, + "color": "34497dff", + "icon": "diamond" + }, + { "name": "body-bottom", "parent": "bench-front", "x": 172.22, "y": 170.54, "color": "ff9b1aff", "icon": "diamondB" }, + { + "name": "body-down", + "parent": "body-bottom", + "length": 144.53, + "rotation": 90, + "x": 1.67, + "y": 3.34, + "color": "ff9b1aff" + }, + { "name": "body-up", "parent": "body-down", "length": 222.38, "x": 142.12, "y": -0.84, "color": "ff9b1aff" }, + { + "name": "leg-back", + "parent": "body-bottom", + "length": 337.6, + "rotation": -43.22, + "x": 81.18, + "y": 17, + "color": "1540beff" + }, + { "name": "leg-back-down", "parent": "leg-back", "length": 393.2, "rotation": -28.55, "x": 337.6, "color": "1540beff" }, + { "name": "foot-back", "parent": "leg-back-down", "length": 136.87, "rotation": 1.38, "x": 393.2, "color": "1540beff" }, + { + "name": "leg-front", + "parent": "body-bottom", + "length": 325.03, + "rotation": -28.9, + "x": -50.72, + "y": -36.36, + "color": "d10606ff" + }, + { "name": "leg-front-down", "parent": "leg-front", "length": 407.97, "rotation": -44.64, "x": 325.03, "color": "d10606ff" }, + { "name": "foot-front", "parent": "leg-front-down", "length": 174.76, "rotation": 23.03, "x": 407.97, "color": "d10606ff" }, + { + "name": "chest-control", + "parent": "body-up", + "rotation": -0.22, + "x": 135.95, + "y": -81.51, + "color": "ff9b1aff", + "icon": "arrows" + }, + { "name": "neck", "parent": "body-up", "length": 98.45, "x": 296.95, "y": 23.58, "color": "ff9b1aff" }, + { + "name": "jabot", + "parent": "body-up", + "length": 86.81, + "rotation": -167.47, + "x": 284.11, + "y": -5.52, + "color": "ff9b1aff" + }, + { "name": "face", "parent": "neck", "length": 254.23, "x": 95.02, "y": 10.27, "color": "ff9b1aff" }, + { "name": "face-control", "parent": "face", "x": 25.68, "y": -99.3, "color": "ff9b1aff", "icon": "arrowsB" }, + { "name": "face-inverse", "parent": "face", "x": 135.25, "y": 152.37, "color": "ff9b1aff", "icon": "warning" }, + { + "name": "hat-front", + "parent": "face", + "length": 88.84, + "rotation": 25.08, + "x": 216.57, + "y": 39.38, + "color": "ffe719ff" + }, + { + "name": "feathers-front", + "parent": "hat-front", + "length": 125.88, + "rotation": -23.52, + "x": 19.98, + "y": -76.45, + "color": "ffe719ff" + }, + { "name": "feathers-front-top", "parent": "feathers-front", "length": 120.64, "rotation": 46.61, "x": 125.88, "color": "ffe719ff" }, + { + "name": "hair-back", + "parent": "face-inverse", + "length": 468.65, + "rotation": 180, + "x": -6.39, + "y": -102.85, + "color": "561d8ea9" + }, + { "name": "hair-back-down", "parent": "hair-back", "length": 234.32, "x": 468.65, "color": "561d8ea9" }, + { "name": "face-holder", "parent": "face", "x": 59.16, "y": -82.67, "color": "ff9b1aff", "icon": "square" }, + { + "name": "fringe-side-front", + "parent": "face-holder", + "length": 214.4, + "rotation": 180, + "x": 111.88, + "y": 110.79, + "color": "c181e8ff" + }, + { + "name": "fringe-side-back", + "parent": "face-holder", + "length": 221.68, + "rotation": 180, + "x": 106.6, + "y": -43.08, + "color": "9f19ffff" + }, + { "name": "arm-front-up-holder", "parent": "body-up", "x": 237.74, "y": 145.38, "color": "ff1919ff", "icon": "arrowsB" }, + { "name": "arm-front-up", "parent": "arm-front-up-holder", "length": 223.61, "rotation": 155.09, "x": 0.6, "color": "ff1919ff" }, + { "name": "arm-back-up-holder", "parent": "body-up", "x": 263.54, "y": -112.02, "color": "19b2ffff", "icon": "warning" }, + { "name": "arm-back-up", "parent": "arm-back-up-holder", "length": 231.75, "rotation": -155.69, "color": "19b2ffff" }, + { + "name": "wing-front", + "parent": "body-down", + "length": 441.84, + "rotation": 51.84, + "x": 184.85, + "y": 60.03, + "color": "19ffb2ff" + }, + { "name": "wing-front-tip", "parent": "wing-front", "length": 401.17, "rotation": 10.15, "x": 441.84, "color": "19ffb2ff" }, + { + "name": "wing-back", + "parent": "body-down", + "length": 187.48, + "rotation": -37.42, + "x": 188.23, + "y": -9.9, + "color": "0fab73ff" + }, + { "name": "wing-back-tip", "parent": "wing-back", "length": 414.74, "rotation": 15.88, "x": 187.48, "color": "0fab73ff" }, + { + "name": "sock-bow", + "parent": "leg-front-down", + "length": 48.74, + "rotation": -14.1, + "x": 258.61, + "y": -45.08, + "color": "d10606ff" + }, + { + "name": "skirt-back", + "parent": "bench-front", + "length": 282.06, + "rotation": -105.78, + "x": -169.75, + "y": 31.39, + "color": "abe323ff" + }, + { + "name": "skirt-front", + "parent": "bench-back", + "length": 243.95, + "rotation": -62.03, + "x": 191.48, + "y": 67.98, + "color": "00842eff" + }, + { "name": "underskirt-back", "parent": "skirt-back", "x": 294.81, "y": 0.61, "color": "abe323ff" }, + { "name": "underskirt-front", "parent": "skirt-front", "x": 249.28, "y": -0.54, "color": "00842eff" }, + { "name": "mouth", "parent": "face-holder", "x": -71.7, "y": 11.81, "color": "ff9b1aff", "icon": "mouth" }, + { "name": "eye-white-front", "parent": "face-holder", "x": 2, "y": 55.83, "color": "fff019ff", "icon": "eye" }, + { "name": "pupil-front", "parent": "eye-white-front", "x": 2.39, "y": -1.65, "color": "fff019ff", "icon": "star" }, + { + "name": "eyelashes-top-front", + "parent": "eye-white-front", + "rotation": -5.82, + "x": 23.09, + "y": -5.15, + "color": "fff019ff", + "icon": "arrowLeftRight" + }, + { "name": "eyelashes-down-front", "parent": "eye-white-front", "x": -19.83, "y": 8.85, "color": "fff019ff", "icon": "arrowLeftRight" }, + { "name": "eye-white-back", "parent": "face-holder", "x": -0.34, "y": -36.94, "color": "c99d19ff", "icon": "eye" }, + { "name": "pupil-back", "parent": "eye-white-back", "x": 2.17, "y": -1.08, "color": "c99d19ff", "icon": "star" }, + { "name": "eyelashes-top-back", "parent": "eye-white-back", "x": 17.02, "y": -2.38, "color": "c99d19ff", "icon": "arrowLeftRight" }, + { "name": "eyelashes-down-back", "parent": "eye-white-back", "x": -17.56, "y": -0.43, "color": "c99d19ff", "icon": "arrowLeftRight" }, + { "name": "star1", "parent": "cloud", "x": -244.61, "y": 44.37, "color": "ffe12fff", "icon": "star" }, + { "name": "star2", "parent": "cloud", "x": 161.71, "y": 44.37, "color": "ffe12fff", "icon": "star" }, + { "name": "star3", "parent": "cloud", "x": -120.79, "y": -83.12, "color": "ffe12fff", "icon": "star" }, + { "name": "star4", "parent": "cloud", "x": 19.54, "y": 117.75, "color": "ffe12fff", "icon": "star" }, + { "name": "star5", "parent": "cloud", "x": -216.18, "y": -117.05, "color": "ffe12fff", "icon": "star" }, + { "name": "star6", "parent": "cloud", "x": 204.82, "y": -110.63, "color": "ffe12fff", "icon": "star" }, + { "name": "cloud-perspective", "parent": "cloud", "y": 25.92, "color": "d9e2faff", "icon": "arrowsB" } +], +"slots": [ + { "name": "underskirt-back", "bone": "body-bottom", "attachment": "underskirt-back" }, + { "name": "wing-back", "bone": "wing-back", "attachment": "wing-back" }, + { "name": "wing-front", "bone": "wing-front", "attachment": "wing-front" }, + { "name": "hat/feathers-back", "bone": "feathers-front", "attachment": "feathers-back" }, + { "name": "hat/feathers-front", "bone": "feathers-front", "attachment": "feathers-front" }, + { "name": "hat/hat-back", "bone": "hat-front", "attachment": "hat-back" }, + { "name": "hat/hat-front", "bone": "hat-front", "attachment": "hat-front" }, + { "name": "bench", "bone": "bench-front", "attachment": "bench" }, + { "name": "head-back", "bone": "face", "attachment": "head-back" }, + { "name": "hair-back/hair-back-6", "bone": "hair-back", "attachment": "hair-back-6" }, + { "name": "hair-back/hair-back-5", "bone": "hair-back", "attachment": "hair-back-5" }, + { "name": "hair-back/hair-back-4", "bone": "hair-back", "attachment": "hair-back-4" }, + { "name": "hair-back/hair-back-3", "bone": "hair-back", "attachment": "hair-back-3" }, + { "name": "hair-back/hair-back-2", "bone": "hair-back", "attachment": "hair-back-2" }, + { "name": "hair-back/hair-back-1", "bone": "hair-back", "attachment": "hair-back-1" }, + { "name": "arm-back-up", "bone": "arm-back-up-holder", "attachment": "arm-back-up" }, + { "name": "arm-back-down", "bone": "arm-back-up", "attachment": "arm-back-down" }, + { "name": "cloud-back", "bone": "cloud", "attachment": "cloud-back" }, + { "name": "rope-back", "bone": "rope-back", "attachment": "rope-back" }, + { "name": "body-bottom", "bone": "body-down", "attachment": "body-bottom" }, + { "name": "leg-back", "bone": "leg-back", "attachment": "leg-back" }, + { "name": "leg-front", "bone": "leg-front", "attachment": "leg-front" }, + { "name": "sock-bow", "bone": "sock-bow", "attachment": "sock-bow" }, + { "name": "body-top", "bone": "body-up", "attachment": "body-top" }, + { "name": "chest", "bone": "body-up", "attachment": "chest" }, + { "name": "arm-front-up", "bone": "arm-front-up", "attachment": "arm-front-up" }, + { "name": "neck", "bone": "neck", "attachment": "neck" }, + { "name": "collar", "bone": "body-up", "attachment": "collar" }, + { "name": "jabot", "bone": "jabot", "attachment": "jabot" }, + { "name": "logo-brooch", "bone": "body-up", "attachment": "logo-brooch" }, + { "name": "face/fringe-side-back", "bone": "fringe-side-back", "attachment": "fringe-side-back" }, + { "name": "face/face", "bone": "face", "attachment": "face" }, + { "name": "face/ear", "bone": "face", "attachment": "ear" }, + { "name": "face/eye-white-back", "bone": "eye-white-back", "attachment": "eye-white-back" }, + { "name": "face/eye-white-front", "bone": "eye-white-front", "attachment": "eye-white-front" }, + { "name": "face/nose", "bone": "face-holder", "attachment": "nose", "blend": "multiply" }, + { "name": "face/mouth", "bone": "mouth", "attachment": "mouth", "blend": "multiply" }, + { "name": "face/eyelashes-down-back", "bone": "eyelashes-down-back", "attachment": "eyelashes-down-back", "blend": "multiply" }, + { "name": "face/eyelashes-down-front", "bone": "eyelashes-down-front", "attachment": "eyelashes-down-front" }, + { "name": "face/pupil-back", "bone": "pupil-back", "attachment": "pupil-back" }, + { "name": "face/eye-reflex-back", "bone": "pupil-back", "attachment": "eye-reflex-back" }, + { "name": "face/pupil-front", "bone": "pupil-front", "attachment": "pupil-front" }, + { "name": "face/eye-reflex-front", "bone": "pupil-front", "attachment": "eye-reflex-front" }, + { "name": "face/eyelashes-top-back", "bone": "eyelashes-top-back", "attachment": "eyelashes-top-back", "blend": "multiply" }, + { "name": "face/eyelashes-top-front", "bone": "eyelashes-top-front", "attachment": "eyelashes-top-front" }, + { "name": "face/eye-front-shadow", "bone": "eye-white-front", "attachment": "eye-front-shadow", "blend": "multiply" }, + { "name": "face/eye-back-shadow", "bone": "eye-white-back", "attachment": "eye-back-shadow", "blend": "multiply" }, + { "name": "face/nose-shadow", "bone": "face-holder", "attachment": "nose-shadow", "blend": "multiply" }, + { "name": "face/nose-highlight", "bone": "face-holder", "attachment": "nose-highlight" }, + { "name": "face/fringe-front/fringe-middle-back", "bone": "face", "attachment": "fringe-middle-back" }, + { "name": "face/fringe-front/fringe-middle-front", "bone": "face", "attachment": "fringe-middle-front" }, + { "name": "face/fringe-front/fringe-side-front", "bone": "fringe-side-front", "attachment": "fringe-side-front" }, + { "name": "face/hair-hat-shadow", "bone": "face", "attachment": "hair-hat-shadow", "blend": "multiply" }, + { "name": "underskirt", "bone": "underskirt-back", "attachment": "underskirt" }, + { "name": "skirt", "bone": "skirt-front", "attachment": "skirt" }, + { "name": "spine-logo-body", "bone": "body-up", "attachment": "spine-logo-body" }, + { "name": "arm-front-down", "bone": "arm-front-up", "attachment": "arm-front-down" }, + { "name": "rope-front", "bone": "rope-front", "attachment": "rope-front" }, + { "name": "rope-front-bottom", "bone": "bench-front", "attachment": "rope-front-bottom" }, + { "name": "glove-bottom-back", "bone": "bench-back", "attachment": "glove-bottom-back" }, + { "name": "hand-back", "bone": "bench-back", "attachment": "hand-back" }, + { "name": "glove-bottom-front", "bone": "bench-front", "attachment": "glove-bottom-front" }, + { "name": "hand-front", "bone": "bench-front", "attachment": "hand-front" }, + { "name": "cloud-front", "bone": "cloud", "attachment": "cloud-front" }, + { "name": "stars/star1", "bone": "star1" }, + { "name": "stars/star2", "bone": "star2" }, + { "name": "stars/star3", "bone": "star3" }, + { "name": "stars/star4", "bone": "star4" }, + { "name": "stars/star5", "bone": "star5" }, + { "name": "stars/star6", "bone": "star6" } +], +"transform": [ + { + "name": "girl/face-control", + "order": 9, + "bones": [ "face-holder" ], + "target": "face-control", + "x": 33.48, + "y": 16.63, + "mixRotate": 0, + "mixX": 0.8, + "mixScaleX": 0, + "mixShearY": 0 + }, + { + "name": "girl/head-control", + "order": 8, + "bones": [ "face-inverse" ], + "target": "face-control", + "x": 109.57, + "y": 251.66, + "mixRotate": 0, + "mixX": -0.5, + "mixScaleX": 0, + "mixShearY": 0 + }, + { + "name": "girl/shoulders-perspective", + "order": 6, + "bones": [ "arm-back-up-holder" ], + "target": "arm-front-up-holder", + "x": 25.8, + "y": -257.4, + "mixRotate": 0, + "mixX": -1, + "mixScaleX": 0, + "mixShearY": 0 + } +], +"physics": [ + { + "name": "bench-back", + "order": 31, + "bone": "bench-back", + "x": 0.4949, + "y": 0.4579, + "limit": 1500, + "inertia": 0.5, + "damping": 0.85 + }, + { + "name": "bench-front", + "order": 2, + "bone": "bench-front", + "x": 0.1279, + "y": 0.2256, + "inertia": 0.4071, + "strength": 81.4, + "damping": 0.792 + }, + { + "name": "cloud-perspective", + "order": 32, + "bone": "cloud-perspective", + "x": 1, + "y": 1, + "limit": 500, + "inertia": 0.25, + "damping": 0.85, + "windGlobal": true + }, + { "name": "swing-bottom", "order": 1, "bone": "swing-bottom", "rotate": 1, "inertia": 0.5, "damping": 0.85 }, + { "name": "swing-top", "bone": "swing-top", "rotate": 1, "limit": 7000, "inertia": 0.5, "damping": 0.85 }, + { + "name": "girl/hair/fringe-side-back", + "order": 26, + "bone": "fringe-side-back", + "rotate": 1, + "scaleX": 0.6033, + "limit": 1500, + "inertia": 0.5, + "damping": 0.85 + }, + { + "name": "girl/hair/fringe-side-front", + "order": 25, + "bone": "fringe-side-front", + "rotate": 1, + "scaleX": 0.6033, + "limit": 1500, + "inertia": 0.5, + "damping": 0.85 + }, + { + "name": "girl/hair/hair-back", + "order": 23, + "bone": "hair-back", + "rotate": 1, + "limit": 1500, + "inertia": 0.5, + "damping": 0.85 + }, + { + "name": "girl/hair/hair-back-down", + "order": 24, + "bone": "hair-back-down", + "x": 1, + "y": 1, + "rotate": 1, + "scaleX": 0.3641, + "limit": 1500, + "inertia": 0.7345, + "damping": 0.8142, + "windGlobal": true + }, + { + "name": "girl/legs/foot-back", + "order": 22, + "bone": "foot-back", + "rotate": 1, + "limit": 1500, + "inertia": 0.1593, + "damping": 0.85 + }, + { + "name": "girl/legs/foot-front", + "order": 20, + "bone": "foot-front", + "rotate": 1, + "limit": 1500, + "inertia": 0.1593, + "damping": 0.85 + }, + { + "name": "girl/legs/leg-back-down", + "order": 21, + "bone": "leg-back-down", + "rotate": 1, + "limit": 1500, + "inertia": 0.8496, + "damping": 0.85 + }, + { + "name": "girl/legs/leg-front-down", + "order": 18, + "bone": "leg-front-down", + "rotate": 1, + "limit": 1500, + "inertia": 0.5, + "damping": 0.85 + }, + { + "name": "girl/legs/sock-bow", + "order": 19, + "bone": "sock-bow", + "rotate": 1, + "limit": 1500, + "inertia": 0.5, + "damping": 0.85 + }, + { + "name": "girl/skirt/skirt-back", + "order": 27, + "bone": "skirt-back", + "rotate": 1, + "limit": 1500, + "inertia": 0.3805, + "strength": 113.3, + "damping": 0.8982, + "mass": 2.27 + }, + { + "name": "girl/skirt/skirt-front", + "order": 29, + "bone": "skirt-front", + "rotate": 1, + "limit": 1500, + "inertia": 0.3805, + "strength": 113.3, + "damping": 0.8982, + "mass": 2.27 + }, + { + "name": "girl/skirt/underskirt-back", + "order": 28, + "bone": "underskirt-back", + "x": 0.3737, + "y": 0.3737, + "limit": 100, + "inertia": 0.5, + "strength": 164.6, + "damping": 0.85, + "windGlobal": true + }, + { + "name": "girl/skirt/underskirt-front", + "order": 30, + "bone": "underskirt-front", + "x": 0.3737, + "y": 0.3737, + "limit": 100, + "inertia": 0.5, + "strength": 164.6, + "damping": 0.85, + "windGlobal": true + }, + { + "name": "girl/wings/wing-back", + "order": 16, + "bone": "wing-back", + "rotate": 0.4105, + "shearX": 0.1602, + "limit": 1600, + "inertia": 0.5, + "strength": 164.6, + "damping": 0.85 + }, + { + "name": "girl/wings/wing-back-tip", + "order": 17, + "bone": "wing-back-tip", + "rotate": 1, + "limit": 1600, + "inertia": 0.5, + "damping": 0.85, + "windGlobal": true + }, + { + "name": "girl/wings/wing-front", + "order": 14, + "bone": "wing-front", + "rotate": 0.4105, + "shearX": 0.1602, + "limit": 1600, + "inertia": 0.5, + "strength": 164.6, + "damping": 0.85 + }, + { + "name": "girl/wings/wing-front-tip", + "order": 15, + "bone": "wing-front-tip", + "rotate": 1, + "limit": 1600, + "inertia": 0.5, + "damping": 0.85, + "windGlobal": true + }, + { + "name": "girl/arm-front-up-holder", + "order": 5, + "bone": "arm-front-up-holder", + "x": 0.6522, + "y": 0.1359, + "limit": 500, + "inertia": 0.5, + "damping": 0.85 + }, + { + "name": "girl/body-down", + "order": 3, + "bone": "body-down", + "rotate": 1, + "limit": 1500, + "inertia": 0.1195, + "damping": 0.85 + }, + { + "name": "girl/body-up", + "order": 4, + "bone": "body-up", + "rotate": 0.3098, + "limit": 1500, + "inertia": 0.2257, + "damping": 0.85 + }, + { + "name": "girl/chest-control", + "order": 11, + "bone": "chest-control", + "x": 1, + "y": 1, + "limit": 500, + "inertia": 0.354, + "strength": 146.9, + "damping": 0.8938, + "mass": 2 + }, + { + "name": "girl/face-control", + "order": 7, + "bone": "face-control", + "x": 0.5, + "y": 0.5, + "limit": 1500, + "inertia": 0.1372, + "strength": 138.9, + "damping": 0.6372 + }, + { + "name": "girl/feathers-front", + "order": 10, + "bone": "feathers-front", + "rotate": 1, + "limit": 1500, + "inertia": 0.5, + "strength": 48.8, + "damping": 0.85 + }, + { + "name": "girl/feathers-front-top", + "order": 13, + "bone": "feathers-front-top", + "rotate": 1, + "limit": 1500, + "inertia": 0.5, + "strength": 48.8, + "damping": 0.85 + }, + { + "name": "girl/jabot", + "order": 12, + "bone": "jabot", + "rotate": 1, + "scaleX": 0.7011, + "limit": 1500, + "inertia": 0.2566, + "damping": 0.7965, + "mass": 1.36, + "windGlobal": true + } +], +"skins": [ + { + "name": "default", + "attachments": { + "arm-back-down": { + "arm-back-down": { + "type": "mesh", + "uvs": [ 1, 1, 0, 1, 0, 0, 0.62552, 0, 1, 0, 0.30019, 0.75582, 0.67336, 0.80436 ], + "triangles": [ 5, 2, 3, 6, 3, 4, 0, 6, 4, 5, 1, 2, 1, 5, 6, 0, 1, 6, 5, 3, 6 ], + "vertices": [ 1, 34, 266.05, 30.04, 1, 1, 34, 226.94, -56.53, 1, 2, 5, 14.31, 488.57, 0.7907, 7, 0.93, -860.73, 0.2093, 2, 5, 73.73, 488.57, 0.7907, 7, 60.36, -860.73, 0.2093, 2, 5, 109.31, 488.57, 0.7907, 7, 95.93, -860.73, 0.2093, 2, 34, 192.84, -9.84, 0.7879, 5, 42.83, 332.87, 0.2121, 2, 34, 216.55, 18.35, 0.7879, 5, 78.28, 322.87, 0.2121 ], + "hull": 5, + "edges": [ 0, 2, 2, 4, 0, 8, 4, 6, 6, 8 ], + "width": 95, + "height": 206 + } + }, + "arm-back-up": { + "arm-back-up": { "x": -86.1, "y": -20.9, "rotation": -90, "width": 208, "height": 290 } + }, + "arm-front-down": { + "arm-front-down": { + "type": "mesh", + "uvs": [ 1, 1, 0, 1, 0, 0, 0.43452, 0, 0.67692, 0, 1, 0, 0.31332, 0.74613, 0.71731, 0.75077 ], + "triangles": [ 1, 6, 0, 6, 7, 0, 6, 3, 7, 6, 1, 2, 0, 7, 5, 3, 4, 7, 7, 4, 5, 6, 2, 3 ], + "vertices": [ 1, 32, 227.27, 54.07, 1, 1, 32, 265.18, -27.55, 1, 2, 4, -107.35, 521.45, 0.6047, 6, -105.68, -832.87, 0.3953, 2, 4, -68.25, 521.45, 0.6047, 6, -66.58, -832.87, 0.3953, 2, 4, -46.43, 521.45, 0.6047, 6, -44.76, -832.87, 0.3953, 2, 4, -17.35, 521.45, 0.6047, 6, -15.68, -832.87, 0.3953, 3, 4, -79.16, 375.21, 0.15283, 32, 208.17, -22.94, 0.81603, 6, -77.48, -979.11, 0.03115, 3, 4, -42.8, 374.3, 0.2334, 32, 193.68, 10.42, 0.71976, 6, -41.12, -980.02, 0.04684 ], + "hull": 6, + "edges": [ 0, 2, 4, 6, 6, 8, 8, 10, 2, 4, 10, 0 ], + "width": 90, + "height": 196 + } + }, + "arm-front-up": { + "arm-front-up": { "x": 83.58, "y": 4.97, "rotation": 114.91, "width": 192, "height": 290 } + }, + "bench": { + "bench": { "x": 149.15, "y": 26.95, "width": 473, "height": 119 } + }, + "body-bottom": { + "body-bottom": { "x": 0.06, "y": -1.26, "rotation": -90, "width": 385, "height": 311 } + }, + "body-top": { + "body-top": { + "type": "mesh", + "uvs": [ 0.68503, 0.0173, 0.77124, 0.03199, 0.91531, 0.05656, 1, 0.43324, 1, 0.67192, 0.92419, 1, 0.7759, 1, 0.42918, 0.97744, 0.26456, 0.96673, 0.14336, 0.62093, 0, 0.2119, 0, 0.18595, 0.14242, 0.01727, 0.31495, 0.00606, 0.38463, 0.55715, 0.30121, 0.21217, 0.9283, 0.59001, 0.92255, 0.42573 ], + "triangles": [ 17, 1, 2, 3, 17, 2, 6, 16, 4, 16, 6, 14, 16, 14, 17, 16, 3, 4, 1, 17, 0, 0, 17, 15, 16, 17, 3, 0, 15, 13, 5, 6, 4, 8, 14, 7, 14, 6, 7, 8, 9, 14, 9, 15, 14, 9, 10, 15, 17, 14, 15, 15, 11, 12, 15, 12, 13, 15, 10, 11 ], + "vertices": [ 2, 10, 305.7, -37.39, 0.67811, 33, 42.16, 74.63, 0.32189, 2, 10, 300.82, -64.63, 0.4046, 33, 37.28, 47.39, 0.5954, 1, 33, 29.13, 1.86, 1, 2, 10, 167.61, -136.92, 0.7252, 33, -95.93, -24.9, 0.2748, 2, 10, 88.36, -136.92, 0.7252, 33, -175.17, -24.9, 0.2748, 1, 9, 121.56, -113.8, 1, 2, 31, -258.3, -211.49, 0.2636, 9, 121.56, -66.94, 0.7364, 2, 31, -250.81, -101.92, 0.3876, 9, 129.05, 42.62, 0.6124, 1, 9, 132.61, 94.64, 1, 2, 31, -132.44, -11.6, 0.458, 10, 105.29, 133.78, 0.542, 1, 31, 3.35, 33.7, 1, 1, 31, 11.97, 33.7, 1, 2, 31, 67.97, -11.31, 0.68, 10, 305.71, 134.07, 0.32, 1, 10, 309.43, 79.55, 1, 2, 31, -111.27, -87.84, 0.8168, 10, 126.47, 57.54, 0.1832, 1, 31, 3.26, -61.48, 1, 2, 10, 115.56, -114.26, 0.9535, 33, -147.98, -2.25, 0.0465, 2, 10, 170.1, -112.45, 0.7252, 33, -93.44, -0.43, 0.2748 ], + "hull": 14, + "edges": [ 4, 6, 6, 8, 8, 10, 10, 12, 20, 22, 22, 24, 16, 18, 18, 20, 12, 14, 14, 16, 2, 4, 24, 26, 0, 2, 26, 0 ], + "width": 316, + "height": 332 + } + }, + "chest": { + "chest": { + "type": "mesh", + "uvs": [ 0.45001, 0, 0.57525, 0.0237, 0.76703, 0.22276, 0.97238, 0.4359, 1, 0.66542, 1, 0.81592, 0.7799, 0.99414, 0.13228, 0.99919, 0, 0.20603, 0, 0.12601, 0.18781, 0, 0.34662, 0.79353, 0.63746, 0.78251, 0.85889, 0.71271, 0.61432, 0.54004, 0.49204, 0.35267, 0.31357, 0.55841, 0.81262, 0.47023, 0.23094, 0.33063, 0.3334, 0.8964, 0.65398, 0.89272, 0.87211, 0.81925, 0.17806, 0.67229 ], + "triangles": [ 20, 19, 11, 7, 19, 6, 16, 18, 15, 19, 22, 11, 8, 10, 18, 8, 9, 10, 7, 8, 22, 22, 8, 18, 7, 22, 19, 22, 18, 16, 22, 16, 11, 11, 16, 14, 20, 11, 12, 16, 15, 14, 11, 14, 12, 13, 17, 4, 18, 10, 0, 15, 0, 1, 15, 1, 2, 18, 0, 15, 17, 2, 3, 14, 15, 2, 17, 14, 2, 13, 4, 5, 21, 13, 5, 6, 20, 21, 6, 21, 5, 19, 20, 6, 17, 3, 4, 12, 14, 13, 12, 13, 21, 20, 12, 21, 14, 17, 13 ], + "vertices": [ 1, 10, 306.44, -25.48, 1, 2, 33, 37.38, 54.11, 0.1756, 10, 300.92, -57.91, 0.8244, 2, 33, -9, 4.44, 0.1756, 10, 254.54, -107.58, 0.8244, 3, 17, 69.23, -79, 0.20371, 33, -58.66, -48.75, 0.4198, 10, 204.88, -160.77, 0.37649, 3, 17, 15.78, -86.35, 0.14356, 33, -112.14, -55.9, 0.3282, 10, 151.4, -167.92, 0.52824, 2, 33, -147.21, -55.9, 0.3282, 10, 116.33, -167.92, 0.6718, 1, 10, 74.81, -110.91, 1, 2, 10, 73.63, 56.82, 0.1679, 31, -164.11, -88.56, 0.8321, 2, 10, 258.44, 91.08, 0.1679, 31, 20.7, -54.3, 0.8321, 2, 10, 277.08, 91.08, 0.1679, 31, 39.34, -54.3, 0.8321, 2, 10, 306.44, 42.44, 0.313, 31, 68.7, -102.94, 0.687, 3, 17, -14.71, 82.76, 0.21816, 10, 121.55, 1.3, 0.09484, 31, -116.19, -144.08, 0.687, 3, 17, -11.86, 7.45, 0.41027, 10, 124.12, -74.02, 0.26153, 31, -113.62, -219.4, 0.3282, 3, 17, 4.62, -49.85, 0.49165, 33, -123.16, -19.36, 0.1527, 10, 140.38, -131.38, 0.35565, 3, 17, 44.61, 13.65, 0.41027, 10, 180.61, -68.03, 0.26153, 31, -57.12, -213.41, 0.3282, 3, 17, 88.15, 45.49, 0.30258, 10, 224.27, -36.36, 0.36922, 31, -13.47, -181.74, 0.3282, 3, 17, 40.04, 91.53, 0.21816, 10, 176.33, 9.86, 0.09484, 31, -61.4, -135.52, 0.687, 3, 17, 61.07, -37.65, 0.486, 33, -66.66, -7.37, 0.1527, 10, 196.88, -119.39, 0.3613, 3, 17, 93.03, 113.13, 0.14098, 10, 229.41, 31.26, 0.17202, 31, -8.33, -114.12, 0.687, 3, 17, -38.69, 86.1, 0.18636, 10, 97.58, 4.73, 0.12664, 31, -140.16, -140.65, 0.687, 3, 17, -37.52, 3.07, 0.34873, 10, 98.44, -78.3, 0.32307, 31, -139.3, -223.68, 0.3282, 3, 17, -20.19, -53.36, 0.42304, 33, -147.98, -22.78, 0.1603, 10, 115.56, -134.8, 0.41666, 3, 17, 13.37, 126.52, 0.17681, 10, 149.8, 44.96, 0.13619, 31, -87.94, -100.42, 0.687 ], + "hull": 11, + "edges": [ 0, 20, 0, 2, 6, 8, 8, 10, 10, 12, 12, 14, 14, 16, 16, 18, 18, 20, 2, 4, 4, 6 ], + "width": 259, + "height": 233 + } + }, + "cloud-back": { + "cloud-back": { "x": 34, "y": -35, "width": 504, "height": 412 } + }, + "cloud-front": { + "cloud-front": { + "type": "mesh", + "uvs": [ 0.31327, 1, 0, 0.6177, 0, 0.42025, 0.19412, 0.14966, 0.35888, 0, 0.74282, 0, 1, 0.29836, 1, 0.56651, 0.88846, 0.97605, 0.41478, 0.80054, 0.21765, 0.47631, 0.33975, 0.22279, 0.54864, 0.12772, 0.6678, 0.17403, 0.81785, 0.30323, 0.77666, 0.58114, 0.62747, 0.67312, 0.44331, 0.66744, 0.36329, 0.40562, 0.50892, 0.29396, 0.70487, 0.40205, 0.82079, 0.74203, 0.8914, 0.43487 ], + "triangles": [ 8, 16, 21, 21, 16, 15, 9, 16, 8, 9, 17, 16, 9, 10, 17, 17, 10, 18, 21, 15, 22, 17, 19, 16, 16, 19, 20, 16, 20, 15, 13, 19, 12, 19, 13, 20, 17, 18, 19, 15, 14, 22, 15, 20, 14, 10, 11, 18, 18, 11, 19, 20, 13, 14, 19, 11, 12, 8, 0, 9, 1, 10, 0, 0, 10, 9, 8, 21, 7, 21, 22, 7, 1, 2, 10, 22, 6, 7, 2, 3, 10, 10, 3, 11, 22, 14, 6, 13, 5, 14, 14, 5, 6, 11, 4, 12, 11, 3, 4, 13, 12, 5, 12, 4, 5 ], + "vertices": [ 1, 1, -190.62, -261, 1, 1, 1, -445, -73.68, 1, 1, 1, -445, 23.08, 1, 1, 1, -287.38, 155.67, 1, 1, 1, -153.59, 229, 1, 1, 1, 158.17, 229, 1, 1, 1, 367, 82.8, 1, 1, 1, 367, -48.59, 1, 1, 1, 276.43, -249.27, 1, 2, 1, -108.2, -163.26, 0.2626, 59, -108.2, -189.18, 0.7374, 2, 1, -268.27, -4.39, 0.2626, 59, -268.27, -30.31, 0.7374, 2, 1, -169.12, 119.83, 0.2626, 59, -169.12, 93.92, 0.7374, 2, 1, 0.5, 166.42, 0.2626, 59, 0.5, 140.5, 0.7374, 2, 1, 97.25, 143.72, 0.2626, 59, 97.25, 117.81, 0.7374, 2, 1, 219.09, 80.42, 0.2626, 59, 219.09, 54.5, 0.7374, 1, 59, 185.64, -81.67, 1, 1, 59, 64.51, -126.75, 1, 1, 59, -85.03, -123.96, 1, 1, 59, -150.01, 4.33, 1, 1, 59, -31.75, 59.04, 1, 1, 59, 127.35, 6.08, 1, 2, 1, 221.48, -134.59, 0.2626, 59, 221.48, -160.51, 0.7374, 2, 1, 278.82, 15.91, 0.2626, 59, 278.82, -10, 0.7374 ], + "hull": 9, + "edges": [ 2, 4, 6, 8, 8, 10, 12, 14, 14, 16, 4, 6, 0, 2, 16, 0, 10, 12 ], + "width": 812, + "height": 490 + } + }, + "collar": { + "collar": { "x": 318.94, "y": 22.08, "rotation": -90, "width": 118, "height": 65 } + }, + "glove-bottom-back": { + "glove-bottom-back": { + "type": "mesh", + "uvs": [ 1, 1, 0, 1, 0, 0, 1, 0 ], + "triangles": [ 1, 2, 3, 1, 3, 0 ], + "vertices": [ 2, 7, 127.93, -931.73, 0.1628, 5, 141.31, 417.57, 0.8372, 2, 7, -0.07, -931.73, 0.1628, 5, 13.31, 417.57, 0.8372, 2, 7, -0.07, -829.73, 0.1628, 5, 13.31, 519.57, 0.8372, 2, 7, 127.93, -829.73, 0.1628, 5, 141.31, 519.57, 0.8372 ], + "hull": 4, + "edges": [ 0, 2, 2, 4, 4, 6, 0, 6 ], + "width": 128, + "height": 102 + } + }, + "glove-bottom-front": { + "glove-bottom-front": { + "type": "mesh", + "uvs": [ 1, 1, 0, 1, 0, 0, 1, 0 ], + "triangles": [ 1, 2, 3, 1, 3, 0 ], + "vertices": [ 2, 6, 9.32, -909.87, 0.3023, 4, 7.65, 444.45, 0.6977, 2, 6, -108.68, -909.87, 0.3023, 4, -110.35, 444.45, 0.6977, 2, 6, -108.68, -788.87, 0.3023, 4, -110.35, 565.45, 0.6977, 2, 6, 9.32, -788.87, 0.3023, 4, 7.65, 565.45, 0.6977 ], + "hull": 4, + "edges": [ 0, 2, 2, 4, 4, 6, 0, 6 ], + "width": 118, + "height": 121 + } + }, + "hand-back": { + "hand-back": { + "type": "mesh", + "uvs": [ 1, 1, 0, 1, 0, 0, 1, 0 ], + "triangles": [ 1, 2, 3, 1, 3, 0 ], + "vertices": [ 2, 7, 101.93, -888.73, 0.1628, 5, 115.31, 460.57, 0.8372, 2, 7, -47.07, -888.73, 0.1628, 5, -33.69, 460.57, 0.8372, 2, 7, -47.07, -771.73, 0.1628, 5, -33.69, 577.57, 0.8372, 2, 7, 101.93, -771.73, 0.1628, 5, 115.31, 577.57, 0.8372 ], + "hull": 4, + "edges": [ 0, 2, 2, 4, 4, 6, 0, 6 ], + "width": 149, + "height": 117 + } + }, + "hand-front": { + "hand-front": { + "type": "mesh", + "uvs": [ 1, 1, 0, 1, 0, 0, 1, 0 ], + "triangles": [ 1, 3, 0, 1, 2, 3 ], + "vertices": [ 2, 6, 43.32, -868.87, 0.3023, 4, 41.65, 485.45, 0.6977, 2, 6, -89.68, -868.87, 0.3023, 4, -91.35, 485.45, 0.6977, 2, 6, -89.68, -718.87, 0.3023, 4, -91.35, 635.45, 0.6977, 2, 6, 43.32, -718.87, 0.3023, 4, 41.65, 635.45, 0.6977 ], + "hull": 4, + "edges": [ 0, 2, 2, 4, 4, 6, 0, 6 ], + "width": 133, + "height": 150 + } + }, + "head-back": { + "head-back": { "x": 143.48, "y": -6.28, "rotation": -90, "width": 255, "height": 216 } + }, + "jabot": { + "jabot": { + "type": "mesh", + "uvs": [ 0, 0.00242, 0.68427, 0.0674, 0.78113, 0.19093, 0.92461, 0.37391, 1, 0.47007, 1, 0.77668, 0.68139, 0.9938, 0.25297, 0.99999, 0, 0.59156, 0.10822, 0.43911, 0.20325, 0.30524, 1.0E-5, 0.15397, 0.29926, 0.57598, 0.67862, 0.52015, 0.47435, 0.25963 ], + "triangles": [ 12, 13, 6, 7, 8, 12, 7, 12, 6, 13, 3, 4, 5, 13, 4, 6, 13, 5, 12, 8, 9, 12, 14, 13, 13, 2, 3, 9, 10, 12, 0, 10, 11, 1, 14, 0, 14, 10, 0, 2, 14, 1, 2, 13, 14, 12, 10, 14 ], + "vertices": [ 1, 10, 323.11, 83.08, 1, 1, 10, 314.14, -37.35, 1, 1, 10, 297.09, -54.4, 1, 2, 10, 271.84, -79.65, 0.3511, 19, 28.05, 69.71, 0.6489, 3, 10, 258.57, -92.92, 0.22821, 19, 43.89, 79.78, 0.57989, 17, 122.67, -10.95, 0.1919, 3, 10, 216.26, -92.92, 0.14314, 19, 85.19, 70.6, 0.50336, 17, 80.35, -11.11, 0.3535, 3, 19, 102.27, 9.36, 0.37012, 17, 50.18, 44.86, 0.20238, 31, -51.44, -182.23, 0.4275, 3, 19, 86.75, -64.43, 0.3751, 17, 49.04, 120.25, 0.2051, 31, -52.29, -106.82, 0.4198, 4, 10, 241.81, 83.08, 0.10381, 19, 22.07, -95.66, 0.36505, 17, 105.24, 164.99, 0.11134, 31, 4.07, -62.3, 0.4198, 2, 10, 262.84, 64.03, 0.3511, 19, 5.67, -72.51, 0.6489, 1, 10, 281.32, 47.31, 1, 1, 10, 302.19, 83.08, 1, 4, 10, 243.96, 30.41, 0.03577, 19, 31.4, -43.78, 0.43309, 17, 107.59, 112.33, 0.11134, 31, 6.22, -114.97, 0.4198, 4, 10, 251.66, -36.36, 0.0353, 19, 38.36, 23.07, 0.42734, 17, 115.54, 45.59, 0.10986, 31, 13.92, -181.74, 0.4275, 1, 10, 287.61, -0.41, 1 ], + "hull": 12, + "edges": [ 0, 22, 0, 2, 8, 10, 10, 12, 12, 14, 14, 16, 20, 22, 2, 4, 4, 6, 6, 8, 16, 18, 18, 20 ], + "width": 176, + "height": 138 + } + }, + "leg-back": { + "leg-back": { + "type": "mesh", + "uvs": [ 0.32178, 1.0E-5, 0.65435, 0.2781, 0.68868, 0.31943, 0.70599, 0.34212, 0.72097, 0.37811, 0.74825, 0.44366, 0.81512, 0.57229, 0.88933, 0.74052, 0.91935, 0.79172, 0.93814, 0.82344, 1, 0.92792, 1, 0.99738, 0.92956, 1, 0.89693, 1, 0.74794, 0.8868, 0.75056, 0.80978, 0.74352, 0.76967, 0.58619, 0.589, 0.53314, 0.47715, 0.51888, 0.42426, 0.49157, 0.38949, 0.38189, 0.33429, 0.00221, 0.25355, 0, 0, 0.61105, 0.38965, 0.82789, 0.78577, 0.84871, 0.8316, 0.67341, 0.63766 ], + "triangles": [ 10, 26, 9, 26, 10, 14, 10, 12, 13, 13, 14, 10, 11, 12, 10, 18, 19, 24, 5, 17, 18, 24, 4, 5, 5, 18, 24, 17, 5, 6, 27, 17, 6, 27, 6, 7, 16, 27, 7, 17, 27, 16, 25, 16, 7, 25, 7, 8, 15, 16, 25, 26, 25, 8, 26, 8, 9, 15, 25, 26, 14, 15, 26, 4, 24, 3, 3, 24, 2, 22, 23, 0, 21, 22, 0, 1, 21, 0, 20, 21, 1, 24, 20, 1, 2, 24, 1, 19, 20, 24 ], + "vertices": [ 1, 11, 6.11, 129.11, 1, 2, 11, 291.73, 79.64, 0.99946, 12, -78.35, 48.04, 5.4E-4, 2, 11, 328.42, 66.88, 0.80865, 12, -40.02, 54.36, 0.19135, 2, 11, 347.98, 59.31, 0.57491, 12, -19.23, 57.06, 0.42509, 2, 11, 374.22, 42.84, 0.29825, 12, 11.7, 55.13, 0.70175, 1, 12, 68.04, 51.63, 1, 1, 12, 180.76, 51.39, 1, 1, 12, 326.03, 44.49, 1, 2, 12, 371.46, 46.09, 0.83005, 13, -20.62, 46.6, 0.16995, 2, 12, 399.64, 47.17, 0.63671, 13, 7.58, 47, 0.36329, 1, 13, 100.44, 48.33, 1, 1, 13, 154.94, 28.9, 1, 1, 13, 144.61, -6.6, 1, 1, 13, 138.87, -22.71, 1, 2, 12, 418.59, -64, 0.15021, 13, 23.84, -64.6, 0.84979, 2, 12, 358.08, -42.62, 0.88261, 13, -36.14, -41.76, 0.11739, 1, 12, 325.19, -35.68, 1, 1, 12, 156.46, -66.9, 1, 2, 11, 359, -84.68, 0.05891, 12, 59.27, -64.15, 0.94109, 2, 11, 323.39, -57.69, 0.38892, 12, 15.09, -57.47, 0.61108, 2, 11, 293.12, -46.39, 0.86698, 12, -16.9, -62, 0.13302, 1, 11, 219.75, -52.23, 1, 1, 11, 28.71, -139.47, 1, 1, 11, -116.77, 13.65, 1, 1, 11, 338.83, -3.61, 1, 1, 12, 351.76, 2.12, 1, 2, 12, 391.43, 0.53, 0.59072, 13, -1.75, 0.58, 0.40928, 1, 12, 209.26, -36.17, 1 ], + "hull": 24, + "edges": [ 20, 22, 22, 24, 24, 26, 26, 28, 28, 30, 30, 32, 32, 34, 40, 42, 42, 44, 44, 46, 38, 40, 0, 2, 2, 4, 34, 36, 36, 38, 8, 10, 14, 16, 10, 12, 12, 14, 46, 0, 16, 18, 18, 20, 4, 6, 6, 8 ], + "width": 524, + "height": 833 + } + }, + "leg-front": { + "leg-front": { + "type": "mesh", + "uvs": [ 0.2969, 2.9E-4, 0.42768, 0.05548, 0.59878, 0.15796, 0.6729, 0.22265, 0.68354, 0.26066, 0.69232, 0.29199, 0.6999, 0.31906, 0.70297, 0.35118, 0.7066, 0.38928, 0.71781, 0.50659, 0.74604, 0.58144, 0.79461, 0.71079, 0.82243, 0.74694, 0.84954, 0.78219, 0.87827, 0.81953, 0.93986, 0.89147, 0.96913, 0.90818, 1, 0.95735, 1, 1, 0.95733, 1, 0.84902, 0.98418, 0.74245, 0.97522, 0.69287, 0.89751, 0.70858, 0.8364, 0.71574, 0.80857, 0.70333, 0.77999, 0.54961, 0.5917, 0.50703, 0.39889, 0.46896, 0.33342, 0.29427, 0.28929, 0.2526, 0.31853, 1.0E-5, 0.27849, 0, 0, 0.60991, 0.31513, 0.78952, 0.80682, 0.79263, 0.83757, 0.84003, 0.80682 ], + "triangles": [ 13, 36, 34, 36, 13, 14, 35, 34, 36, 24, 34, 35, 23, 24, 35, 35, 22, 23, 21, 22, 35, 14, 35, 36, 15, 35, 14, 15, 20, 35, 21, 35, 20, 16, 20, 15, 19, 16, 17, 19, 20, 16, 18, 19, 17, 13, 34, 12, 33, 4, 5, 33, 5, 6, 26, 27, 8, 33, 7, 27, 6, 7, 33, 7, 8, 27, 9, 26, 8, 10, 26, 9, 25, 10, 11, 25, 11, 12, 26, 10, 25, 34, 25, 12, 24, 25, 34, 31, 32, 0, 29, 31, 0, 29, 0, 1, 28, 29, 1, 33, 2, 3, 33, 3, 4, 2, 28, 1, 30, 31, 29, 33, 28, 2, 27, 28, 33 ], + "vertices": [ 1, 14, 26.69, 123.29, 1, 1, 14, 121.98, 125.47, 1, 1, 14, 258.37, 107.11, 1, 2, 14, 325.3, 84.95, 0.7863, 15, -59.49, 60.64, 0.2137, 2, 14, 346.02, 61.65, 0.62278, 15, -28.38, 58.62, 0.37722, 2, 14, 363.09, 42.45, 0.37112, 15, -2.74, 56.95, 0.62888, 2, 14, 377.85, 25.86, 0.15366, 15, 19.42, 55.51, 0.84634, 2, 14, 392, 4.32, 0.08338, 15, 44.62, 50.13, 0.91662, 1, 15, 74.52, 43.75, 1, 1, 15, 166.57, 24.1, 1, 1, 15, 229.17, 24.62, 1, 1, 15, 337.29, 25.39, 1, 2, 15, 370.13, 34.43, 0.6412, 16, -21.35, 46.49, 0.3588, 2, 15, 402.13, 43.24, 0.49447, 16, 11.55, 42.08, 0.50553, 2, 15, 436.04, 52.57, 0.04576, 16, 46.4, 37.4, 0.95424, 2, 15, 502.5, 74.42, 0, 16, 116.12, 31.5, 1, 2, 15, 520.68, 88.77, 0, 16, 138.46, 37.59, 1, 2, 15, 564.06, 96.75, 0, 16, 181.5, 27.96, 1, 2, 15, 596.79, 87.08, 0, 16, 207.84, 6.25, 1, 1, 16, 190.3, -15.01, 1, 1, 16, 136.03, -60.96, 1, 2, 15, 530.63, -66.86, 0, 16, 86.72, -109.53, 1, 2, 15, 461.92, -79.96, 0.03259, 16, 18.37, -94.7, 0.96741, 2, 15, 417.92, -56.38, 0.32661, 16, -12.9, -55.78, 0.67339, 2, 15, 397.88, -45.63, 0.7066, 16, -27.14, -38.05, 0.2934, 2, 15, 373.68, -46.84, 0.97283, 16, -49.88, -29.69, 0.02717, 1, 15, 201.08, -99.4, 1, 2, 14, 299.64, -90.27, 0.24722, 15, 45.36, -82.07, 0.75278, 2, 14, 252.8, -56.31, 0.90138, 15, -11.83, -90.82, 0.09862, 1, 14, 136.94, -79.94, 1, 1, 14, 124.68, -113.43, 1, 1, 14, -33.65, -164.25, 1, 1, 14, -141.33, 30.79, 1, 2, 14, 325.44, 0.51, 0.49238, 15, -0.07, 0.65, 0.50762, 2, 15, 410.04, 0.47, 0.39999, 16, 2.09, -0.38, 0.60001, 1, 16, 22.35, -14.47, 1, 2, 15, 419.29, 31.76, 0.19906, 16, 22.85, 24.8, 0.80094 ], + "hull": 33, + "edges": [ 2, 4, 4, 6, 18, 20, 30, 32, 32, 34, 34, 36, 38, 40, 42, 44, 48, 50, 50, 52, 58, 60, 62, 64, 64, 0, 60, 62, 0, 2, 56, 58, 52, 54, 16, 18, 26, 28, 44, 46, 46, 48, 22, 24, 24, 26, 20, 22, 28, 30, 36, 38, 40, 42, 54, 56, 10, 12, 6, 8, 8, 10, 12, 14, 14, 16 ], + "width": 646, + "height": 800 + } + }, + "logo-brooch": { + "logo-brooch": { + "type": "mesh", + "uvs": [ 1, 1, 0, 1, 0, 0, 1, 0 ], + "triangles": [ 1, 3, 0, 1, 2, 3 ], + "vertices": [ 2, 10, 246.44, -26.92, 0.7273, 17, 110.29, 55.01, 0.2727, 2, 10, 246.44, 13.08, 0.7273, 17, 110.14, 95.01, 0.2727, 1, 10, 308.44, 13.08, 1, 1, 10, 308.44, -26.92, 1 ], + "hull": 4, + "edges": [ 0, 2, 2, 4, 4, 6, 0, 6 ], + "width": 40, + "height": 62 + } + }, + "neck": { + "neck": { "x": 64, "y": -0.01, "rotation": -90, "width": 97, "height": 141 } + }, + "rope-back": { + "rope-back": { + "type": "mesh", + "uvs": [ 1, 1, 0, 1, 0, 0.95833, 0, 0.91667, 0, 0.875, 0, 0.83333, 0, 0.79167, 0, 0.75, 0, 0.70833, 0, 0.66667, 0, 0.625, 0, 0.58333, 0, 0.54167, 0, 0.5, 0, 0.45833, 0, 0.41667, 0, 0.375, 0, 0.33333, 0, 0.29167, 0, 0.25, 0, 0.20833, 0, 0.16667, 0, 0.125, 0, 0.08333, 0, 0.04167, 0, 0, 1, 0, 1, 0.04167, 1, 0.08333, 1, 0.125, 1, 0.16667, 1, 0.20833, 1, 0.25, 1, 0.29167, 1, 0.33333, 1, 0.375, 1, 0.41667, 1, 0.45833, 1, 0.5, 1, 0.54167, 1, 0.58333, 1, 0.625, 1, 0.66667, 1, 0.70833, 1, 0.75, 1, 0.79167, 1, 0.83333, 1, 0.875, 1, 0.91667, 1, 0.95833 ], + "triangles": [ 38, 13, 37, 12, 13, 38, 39, 12, 38, 11, 12, 39, 40, 11, 39, 10, 11, 40, 41, 10, 40, 9, 10, 41, 42, 9, 41, 8, 9, 42, 43, 8, 42, 7, 8, 43, 44, 7, 43, 6, 7, 44, 45, 6, 44, 5, 6, 45, 46, 5, 45, 4, 5, 46, 47, 4, 46, 3, 4, 47, 48, 3, 47, 2, 3, 48, 49, 2, 48, 1, 2, 49, 0, 1, 49, 24, 25, 26, 27, 24, 26, 23, 24, 27, 28, 23, 27, 22, 23, 28, 29, 22, 28, 21, 22, 29, 30, 21, 29, 20, 21, 30, 31, 20, 30, 19, 20, 31, 32, 19, 31, 18, 19, 32, 33, 18, 32, 17, 18, 33, 34, 17, 33, 16, 17, 34, 35, 16, 34, 15, 16, 35, 36, 15, 35, 14, 15, 36, 37, 14, 36, 13, 14, 37 ], + "vertices": [ 2, 7, 15.93, -1218.87, 0.06239, 5, 29.31, 130.43, 0.93761, 2, 7, -9.07, -1218.87, 0.06239, 5, 4.31, 130.43, 0.93761, 2, 7, -9.07, -1167.62, 0.06783, 5, 4.31, 181.68, 0.93217, 2, 7, -9.07, -1116.37, 0.07874, 5, 4.31, 232.93, 0.92126, 2, 7, -9.07, -1065.12, 0.0952, 5, 4.31, 284.18, 0.9048, 2, 7, -9.07, -1013.87, 0.11728, 5, 4.31, 335.43, 0.88272, 2, 7, -9.07, -962.62, 0.14499, 5, 4.31, 386.68, 0.85501, 2, 7, -9.07, -911.37, 0.17827, 5, 4.31, 437.93, 0.82173, 2, 7, -9.07, -860.12, 0.21693, 5, 4.31, 489.18, 0.78307, 2, 7, -9.07, -808.87, 0.2606, 5, 4.31, 540.43, 0.73939, 2, 7, -9.07, -757.62, 0.30875, 5, 4.31, 591.68, 0.69125, 2, 7, -9.07, -706.37, 0.36064, 5, 4.31, 642.93, 0.63936, 2, 7, -9.07, -655.12, 0.41536, 5, 4.31, 694.18, 0.58464, 2, 7, -9.07, -603.87, 0.4719, 5, 4.31, 745.43, 0.5281, 2, 7, -9.07, -552.62, 0.52914, 5, 4.31, 796.68, 0.47086, 2, 7, -9.07, -501.37, 0.58596, 5, 4.31, 847.93, 0.41404, 2, 7, -9.07, -450.12, 0.64132, 5, 4.31, 899.18, 0.35868, 2, 7, -9.07, -398.87, 0.69428, 5, 4.31, 950.43, 0.30572, 2, 7, -9.07, -347.62, 0.74413, 5, 4.31, 1001.68, 0.25586, 2, 7, -9.07, -296.37, 0.7904, 5, 4.31, 1052.93, 0.2096, 2, 7, -9.07, -245.12, 0.83286, 5, 4.31, 1104.18, 0.16714, 2, 7, -9.07, -193.87, 0.87161, 5, 4.31, 1155.43, 0.12839, 2, 7, -9.07, -142.62, 0.90701, 5, 4.31, 1206.68, 0.09299, 2, 7, -9.07, -91.37, 0.93965, 5, 4.31, 1257.93, 0.06036, 2, 7, -9.07, -40.12, 0.97033, 5, 4.31, 1309.18, 0.02967, 1, 7, -9.07, 11.13, 1, 1, 7, 15.93, 11.13, 1, 2, 7, 15.93, -40.12, 0.97033, 5, 29.31, 1309.18, 0.02967, 2, 7, 15.93, -91.37, 0.93965, 5, 29.31, 1257.93, 0.06036, 2, 7, 15.93, -142.62, 0.90701, 5, 29.31, 1206.68, 0.09299, 2, 7, 15.93, -193.87, 0.87161, 5, 29.31, 1155.43, 0.12839, 2, 7, 15.93, -245.12, 0.83286, 5, 29.31, 1104.18, 0.16714, 2, 7, 15.93, -296.37, 0.7904, 5, 29.31, 1052.93, 0.2096, 2, 7, 15.93, -347.62, 0.74413, 5, 29.31, 1001.68, 0.25586, 2, 7, 15.93, -398.87, 0.69428, 5, 29.31, 950.43, 0.30572, 2, 7, 15.93, -450.12, 0.64132, 5, 29.31, 899.18, 0.35868, 2, 7, 15.93, -501.37, 0.58596, 5, 29.31, 847.93, 0.41404, 2, 7, 15.93, -552.62, 0.52914, 5, 29.31, 796.68, 0.47086, 2, 7, 15.93, -603.87, 0.4719, 5, 29.31, 745.43, 0.5281, 2, 7, 15.93, -655.12, 0.41536, 5, 29.31, 694.18, 0.58464, 2, 7, 15.93, -706.37, 0.36064, 5, 29.31, 642.93, 0.63936, 2, 7, 15.93, -757.62, 0.30875, 5, 29.31, 591.68, 0.69125, 2, 7, 15.93, -808.87, 0.2606, 5, 29.31, 540.43, 0.73939, 2, 7, 15.93, -860.12, 0.21693, 5, 29.31, 489.18, 0.78307, 2, 7, 15.93, -911.37, 0.17827, 5, 29.31, 437.93, 0.82173, 2, 7, 15.93, -962.62, 0.14499, 5, 29.31, 386.68, 0.85501, 2, 7, 15.93, -1013.87, 0.11728, 5, 29.31, 335.43, 0.88272, 2, 7, 15.93, -1065.12, 0.0952, 5, 29.31, 284.18, 0.9048, 2, 7, 15.93, -1116.37, 0.07874, 5, 29.31, 232.93, 0.92126, 2, 7, 15.93, -1167.62, 0.06783, 5, 29.31, 181.68, 0.93217 ], + "hull": 50, + "edges": [ 0, 2, 2, 4, 4, 6, 6, 8, 8, 10, 10, 12, 12, 14, 14, 16, 16, 18, 18, 20, 20, 22, 22, 24, 24, 26, 26, 28, 28, 30, 30, 32, 32, 34, 34, 36, 36, 38, 38, 40, 40, 42, 42, 44, 44, 46, 46, 48, 48, 50, 50, 52, 52, 54, 54, 56, 56, 58, 58, 60, 60, 62, 62, 64, 64, 66, 66, 68, 68, 70, 70, 72, 72, 74, 74, 76, 76, 78, 78, 80, 80, 82, 82, 84, 84, 86, 86, 88, 88, 90, 90, 92, 92, 94, 94, 96, 96, 98, 98, 0 ], + "width": 25, + "height": 1230 + } + }, + "rope-front": { + "rope-front": { + "type": "mesh", + "uvs": [ 1, 1, 0, 1, 0, 0.95833, 0, 0.91667, 0, 0.875, 0, 0.83333, 0, 0.79167, 0, 0.75, 0, 0.70833, 0, 0.66667, 0, 0.625, 0, 0.58333, 0, 0.54167, 0, 0.5, 0, 0.45833, 0, 0.41667, 0, 0.375, 0, 0.33333, 0, 0.29167, 0, 0.25, 0, 0.20833, 0, 0.16667, 0, 0.125, 0, 0.08333, 0, 0.04167, 0, 0, 1, 0, 1, 0.04167, 1, 0.08333, 1, 0.125, 1, 0.16667, 1, 0.20833, 1, 0.25, 1, 0.29167, 1, 0.33333, 1, 0.375, 1, 0.41667, 1, 0.45833, 1, 0.5, 1, 0.54167, 1, 0.58333, 1, 0.625, 1, 0.66667, 1, 0.70833, 1, 0.75, 1, 0.79167, 1, 0.83333, 1, 0.875, 1, 0.91667, 1, 0.95833 ], + "triangles": [ 0, 1, 49, 1, 2, 49, 49, 2, 48, 2, 3, 48, 48, 3, 47, 3, 4, 47, 47, 4, 46, 4, 5, 46, 46, 5, 45, 5, 6, 45, 45, 6, 44, 6, 7, 44, 44, 7, 43, 7, 8, 43, 43, 8, 42, 8, 9, 42, 42, 9, 41, 9, 10, 41, 41, 10, 40, 10, 11, 40, 40, 11, 39, 11, 12, 39, 39, 12, 38, 12, 13, 38, 38, 13, 37, 13, 14, 37, 37, 14, 36, 14, 15, 36, 36, 15, 35, 15, 16, 35, 35, 16, 34, 16, 17, 34, 34, 17, 33, 17, 18, 33, 33, 18, 32, 18, 19, 32, 32, 19, 31, 19, 20, 31, 31, 20, 30, 20, 21, 30, 30, 21, 29, 21, 22, 29, 29, 22, 28, 22, 23, 28, 28, 23, 27, 23, 24, 27, 27, 24, 26, 24, 25, 26 ], + "vertices": [ 2, 6, 15.32, -1218.87, 0.01425, 4, 13.65, 135.45, 0.98575, 2, 6, -9.68, -1218.87, 0.01425, 4, -11.35, 135.45, 0.98575, 2, 6, -9.68, -1167.62, 0.03549, 4, -11.35, 186.7, 0.96451, 2, 6, -9.68, -1116.37, 0.05791, 4, -11.35, 237.95, 0.94209, 2, 6, -9.68, -1065.12, 0.08257, 4, -11.35, 289.2, 0.91743, 2, 6, -9.68, -1013.87, 0.11037, 4, -11.35, 340.45, 0.88963, 2, 6, -9.68, -962.62, 0.142, 4, -11.35, 391.7, 0.858, 2, 6, -9.68, -911.37, 0.17784, 4, -11.35, 442.95, 0.82216, 2, 6, -9.68, -860.12, 0.21806, 4, -11.35, 494.2, 0.78194, 2, 6, -9.68, -808.87, 0.26251, 4, -11.35, 545.45, 0.73749, 2, 6, -9.68, -757.62, 0.31083, 4, -11.35, 596.7, 0.68917, 2, 6, -9.68, -706.37, 0.36243, 4, -11.35, 647.95, 0.63757, 2, 6, -9.68, -655.12, 0.41654, 4, -11.35, 699.2, 0.58346, 2, 6, -9.68, -603.87, 0.47225, 4, -11.35, 750.45, 0.52776, 2, 6, -9.68, -552.62, 0.52855, 4, -11.35, 801.7, 0.47145, 2, 6, -9.68, -501.37, 0.58444, 4, -11.35, 852.95, 0.41556, 2, 6, -9.68, -450.12, 0.63896, 4, -11.35, 904.2, 0.36104, 2, 6, -9.68, -398.87, 0.69127, 4, -11.35, 955.45, 0.30873, 2, 6, -9.68, -347.62, 0.74069, 4, -11.35, 1006.7, 0.25931, 2, 6, -9.68, -296.37, 0.78679, 4, -11.35, 1057.95, 0.21321, 2, 6, -9.68, -245.12, 0.82936, 4, -11.35, 1109.2, 0.17064, 2, 6, -9.68, -193.87, 0.86847, 4, -11.35, 1160.45, 0.13153, 2, 6, -9.68, -142.62, 0.90445, 4, -11.35, 1211.7, 0.09555, 2, 6, -9.68, -91.37, 0.93784, 4, -11.35, 1262.95, 0.06216, 2, 6, -9.68, -40.12, 0.9694, 4, -11.35, 1314.2, 0.0306, 1, 6, -9.68, 11.13, 1, 1, 6, 15.32, 11.13, 1, 2, 6, 15.32, -40.12, 0.9694, 4, 13.65, 1314.2, 0.0306, 2, 6, 15.32, -91.37, 0.93784, 4, 13.65, 1262.95, 0.06216, 2, 6, 15.32, -142.62, 0.90445, 4, 13.65, 1211.7, 0.09555, 2, 6, 15.32, -193.87, 0.86847, 4, 13.65, 1160.45, 0.13153, 2, 6, 15.32, -245.12, 0.82936, 4, 13.65, 1109.2, 0.17064, 2, 6, 15.32, -296.37, 0.78679, 4, 13.65, 1057.95, 0.21321, 2, 6, 15.32, -347.62, 0.74069, 4, 13.65, 1006.7, 0.25931, 2, 6, 15.32, -398.87, 0.69127, 4, 13.65, 955.45, 0.30873, 2, 6, 15.32, -450.12, 0.63896, 4, 13.65, 904.2, 0.36104, 2, 6, 15.32, -501.37, 0.58444, 4, 13.65, 852.95, 0.41556, 2, 6, 15.32, -552.62, 0.52855, 4, 13.65, 801.7, 0.47145, 2, 6, 15.32, -603.87, 0.47225, 4, 13.65, 750.45, 0.52776, 2, 6, 15.32, -655.12, 0.41654, 4, 13.65, 699.2, 0.58346, 2, 6, 15.32, -706.37, 0.36243, 4, 13.65, 647.95, 0.63757, 2, 6, 15.32, -757.62, 0.31083, 4, 13.65, 596.7, 0.68917, 2, 6, 15.32, -808.87, 0.26251, 4, 13.65, 545.45, 0.73749, 2, 6, 15.32, -860.12, 0.21806, 4, 13.65, 494.2, 0.78194, 2, 6, 15.32, -911.37, 0.17784, 4, 13.65, 442.95, 0.82216, 2, 6, 15.32, -962.62, 0.142, 4, 13.65, 391.7, 0.858, 2, 6, 15.32, -1013.87, 0.11037, 4, 13.65, 340.45, 0.88963, 2, 6, 15.32, -1065.12, 0.08257, 4, 13.65, 289.2, 0.91743, 2, 6, 15.32, -1116.37, 0.05791, 4, 13.65, 237.95, 0.94209, 2, 6, 15.32, -1167.62, 0.03549, 4, 13.65, 186.7, 0.96451 ], + "hull": 50, + "edges": [ 0, 2, 2, 4, 4, 6, 6, 8, 8, 10, 10, 12, 12, 14, 14, 16, 16, 18, 18, 20, 20, 22, 22, 24, 24, 26, 26, 28, 28, 30, 30, 32, 32, 34, 34, 36, 36, 38, 38, 40, 40, 42, 42, 44, 44, 46, 46, 48, 48, 50, 50, 52, 52, 54, 54, 56, 56, 58, 58, 60, 60, 62, 62, 64, 64, 66, 66, 68, 68, 70, 70, 72, 72, 74, 74, 76, 76, 78, 78, 80, 80, 82, 82, 84, 84, 86, 86, 88, 88, 90, 90, 92, 92, 94, 94, 96, 96, 98, 98, 0 ], + "width": 25, + "height": 1230 + } + }, + "rope-front-bottom": { + "rope-front-bottom": { "x": 6.65, "y": 90.45, "width": 106, "height": 162 } + }, + "skirt": { + "skirt": { + "type": "mesh", + "uvs": [ 0.46879, 0.00497, 0.6193, 0.00865, 0.73168, 0.0729, 0.79086, 0.14366, 0.84028, 0.20275, 0.88824, 0.26009, 0.94354, 0.36305, 0.99934, 0.46693, 0.99902, 0.53745, 0.95967, 0.62431, 0.73749, 0.83501, 0.67118, 0.86255, 0.64669, 0.83712, 0.63777, 0.79457, 0.54456, 0.88007, 0.41826, 0.85692, 0.33176, 0.67054, 0.38298, 0.45193, 0.32025, 0.393, 0.25971, 0.50948, 0.25592, 0.54358, 0.29136, 0.69557, 0.26023, 0.76971, 0.23714, 0.78393, 0.24583, 0.96708, 0.21631, 1, 0.18626, 1, 0.13297, 0.98375, 0.0482, 0.9579, 0, 0.74426, 0, 0.71238, 0.02405, 0.63249, 0.05524, 0.52888, 0.08731, 0.42235, 0.14673, 0.31698, 0.23977, 0.15198, 0.37537, 0.00268, 0.78833, 0.34934, 0.65072, 0.38132, 0.57259, 0.40578, 0.43328, 0.39355, 0.25324, 0.41895, 0.07649, 0.66731, 0.10759, 0.5469, 0.14767, 0.71528, 0.16981, 0.55631, 0.17312, 0.35376, 0.82186, 0.47041, 0.69302, 0.54288, 0.59275, 0.58024 ], + "triangles": [ 21, 23, 20, 17, 40, 15, 16, 17, 15, 23, 45, 20, 20, 45, 19, 45, 46, 41, 19, 45, 41, 19, 41, 18, 17, 18, 40, 18, 41, 35, 18, 36, 40, 41, 46, 35, 11, 12, 13, 10, 47, 9, 10, 48, 47, 47, 6, 9, 8, 9, 7, 48, 37, 47, 7, 9, 6, 47, 5, 6, 47, 37, 5, 37, 4, 5, 37, 3, 4, 10, 11, 13, 25, 26, 24, 24, 26, 23, 26, 27, 23, 27, 44, 23, 27, 28, 44, 28, 29, 42, 28, 42, 44, 31, 42, 30, 23, 21, 22, 23, 44, 45, 42, 29, 30, 42, 43, 44, 44, 43, 45, 31, 32, 42, 42, 32, 43, 45, 43, 46, 32, 33, 43, 46, 33, 34, 46, 43, 33, 46, 34, 35, 13, 48, 10, 37, 38, 3, 14, 15, 49, 49, 40, 39, 39, 1, 38, 1, 39, 0, 39, 40, 0, 40, 36, 0, 18, 35, 36, 38, 1, 2, 3, 38, 2, 49, 39, 38, 49, 38, 48, 48, 38, 37, 14, 49, 13, 13, 49, 48, 40, 49, 15 ], + "vertices": [ 2, 9, 138.5, 15.05, 0.4884, 31, -241.35, -129.5, 0.5116, 1, 9, 136.23, -150.36, 1, 3, 9, 96.66, -273.87, 0.814, 40, -398.02, 529.23, 0, 41, -147.06, 12.37, 0.186, 3, 9, 53.07, -338.91, 0.59714, 40, -373.76, 603.67, 0, 41, -78.06, 49.37, 0.40286, 3, 9, 16.67, -393.22, 0.41605, 40, -353.5, 665.83, 0, 41, -20.44, 80.26, 0.58395, 2, 9, -18.65, -445.93, 0.2403, 41, 35.48, 110.24, 0.7597, 2, 9, -82.08, -506.71, 0.2093, 41, 120, 134.17, 0.7907, 1, 41, 205.28, 158.32, 1, 2, 9, -189.51, -567.68, 0.04571, 41, 243.48, 137.63, 0.95429, 2, 9, -243.01, -524.44, 0.18, 41, 270.45, 74.34, 0.82, 2, 9, -372.8, -280.26, 0.54183, 41, 270.54, -202.19, 0.45817, 2, 9, -389.77, -207.39, 0.4651, 41, 251.35, -274.5, 0.5349, 2, 9, -374.1, -180.47, 0.4651, 41, 224.88, -290.93, 0.5349, 2, 9, -347.89, -170.66, 0.4651, 41, 197.14, -287.3, 0.5349, 3, 9, -400.56, -68.23, 0.46933, 41, 195.61, -402.46, 0.25937, 4, 242.12, -226.67, 0.2713, 4, 9, -386.3, 70.57, 0.56245, 40, 160.39, 329.06, 3.0E-5, 41, 117.91, -518.37, 0.16622, 4, 103.31, -212.42, 0.2713, 3, 40, 75.75, 206.36, 0.00607, 41, -28.08, -548.47, 0.12573, 4, 8.25, -97.6, 0.8682, 1, 4, 64.54, 37.06, 1, 1, 4, -4.4, 73.36, 1, 2, 40, 1.8, 103.19, 0.1318, 4, -70.93, 1.61, 0.8682, 1, 4, -75.1, -19.39, 1, 2, 40, 102.65, 167.82, 0.4651, 4, -36.15, -113.02, 0.5349, 2, 40, 155.91, 147.31, 0.64377, 4, -70.37, -158.69, 0.35623, 2, 40, 171.24, 125.28, 0.51563, 4, -95.74, -167.45, 0.48437, 2, 40, 277.21, 165.15, 0.77714, 4, -86.18, -280.27, 0.22286, 2, 40, 305.54, 139.44, 0.88571, 4, -118.63, -300.55, 0.11429, 2, 40, 314.52, 107.65, 0.80857, 4, -151.66, -300.55, 0.19143, 2, 40, 320.81, 48.57, 0.78571, 4, -210.22, -290.54, 0.21429, 1, 40, 330.82, -45.4, 1, 1, 40, 218.57, -132.16, 1, 1, 40, 199.67, -137.5, 1, 3, 9, -248.05, 503.81, 0.02228, 40, 145.13, -125.45, 0.95682, 4, -329.92, -74.16, 0.0209, 3, 9, -184.23, 469.54, 0.08011, 40, 74.39, -109.81, 0.86977, 4, -295.65, -10.34, 0.05012, 3, 9, -118.6, 434.29, 0.20512, 40, 1.66, -93.74, 0.70568, 4, -260.41, 55.28, 0.0892, 3, 9, -53.7, 368.99, 0.40948, 40, -78.56, -48.54, 0.4572, 4, -195.1, 120.19, 0.13332, 3, 9, 47.94, 266.73, 0.66886, 40, -204.17, 22.23, 0.15284, 4, -92.84, 221.83, 0.1783, 1, 9, 139.91, 117.71, 1, 2, 9, -73.63, -336.14, 0.3798, 41, 32.53, -12.51, 0.6202, 4, 9, -93.33, -184.9, 0.7038, 40, -191, 495.26, 0, 41, -21, -155.32, 0.24191, 31, -473.19, -329.44, 0.05429, 4, 9, -108.4, -99.03, 0.70715, 40, -153.16, 416.72, 1.1E-4, 41, -47.98, -238.22, 0.17845, 31, -488.26, -243.58, 0.11429, 2, 4, 119.82, 73.02, 0.8217, 31, -480.72, -90.48, 0.1783, 1, 4, -78.04, 57.38, 1, 2, 40, 150.1, -64.16, 0.7752, 4, -272.3, -95.61, 0.2248, 2, 40, 69.43, -51.42, 0.6899, 4, -238.11, -21.44, 0.3101, 2, 40, 157.27, 19.15, 0.7752, 4, -194.07, -125.16, 0.2248, 3, 9, -201.12, 343.62, 4.5E-4, 40, 56.42, 15.95, 0.68945, 4, -169.73, -27.24, 0.3101, 3, 9, -76.35, 339.99, 0.06162, 40, -64.64, -14.47, 0.64378, 4, -166.1, 97.53, 0.2946, 2, 9, -148.21, -372.98, 0.2403, 41, 115.68, -14.95, 0.7597, 2, 9, -192.85, -231.39, 0.5891, 41, 88.69, -160.94, 0.4109, 3, 9, -215.87, -121.19, 0.5659, 40, -55.76, 467.26, 1.0E-5, 41, 57.33, -269.06, 0.43409 ], + "hull": 37, + "edges": [ 2, 4, 14, 16, 16, 18, 18, 20, 20, 22, 22, 24, 24, 26, 26, 28, 28, 30, 30, 32, 32, 34, 34, 36, 36, 38, 38, 40, 40, 42, 42, 44, 44, 46, 46, 48, 48, 50, 50, 52, 56, 58, 58, 60, 70, 72, 64, 66, 60, 62, 62, 64, 52, 54, 54, 56, 66, 68, 68, 70, 86, 92, 10, 12, 12, 14, 30, 80, 2, 0, 0, 72, 4, 6, 6, 8, 8, 10 ], + "width": 1099, + "height": 616 + } + }, + "sock-bow": { + "sock-bow": { + "type": "mesh", + "uvs": [ 0.99999, 0.72, 0.75258, 0.92781, 0.22969, 1, 1.0E-5, 0.92563, 1.0E-5, 0.78642, 0.06114, 0.10062, 0.48481, 0.07, 0.87771, 1.0E-5, 0.21914, 0.65955, 0.54384, 0.47361, 0.92125, 0.55017, 0.11372, 0.57861, 0.42577, 0.77111, 0.57969, 0.72736, 0.45951, 0.1958, 0.54595, 0.17611 ], + "triangles": [ 15, 6, 7, 14, 5, 6, 9, 15, 10, 11, 14, 9, 14, 6, 15, 9, 14, 15, 15, 7, 10, 11, 5, 14, 8, 11, 9, 13, 9, 10, 12, 8, 9, 13, 12, 9, 0, 10, 7, 1, 13, 10, 11, 4, 5, 4, 11, 8, 2, 3, 4, 0, 1, 10, 2, 8, 12, 2, 4, 8, 1, 2, 12, 1, 12, 13 ], + "vertices": [ 1, 39, 34.06, 38.19, 1, 1, 39, 49.83, 16.99, 1, 1, 39, 53.81, -26.61, 1, 1, 39, 47.08, -45.41, 1, 1, 39, 35.95, -44.96, 1, 2, 39, -18.66, -37.63, 0.5344, 15, 231.35, -77.03, 0.4656, 1, 15, 238.97, -42.61, 1, 2, 39, -23.91, 30.42, 0.5344, 15, 242.84, -9.75, 0.4656, 2, 39, 26.56, -26.36, 0.5344, 15, 277.95, -77.12, 0.4656, 1, 15, 271.32, -47.06, 1, 2, 39, 20.22, 32.22, 0.5344, 15, 286.07, -18.76, 0.4656, 2, 39, 19.73, -34.84, 0.5344, 15, 269.26, -83.68, 0.4656, 2, 39, 36.18, -9.6, 0.5344, 15, 291.37, -63.2, 0.4656, 2, 39, 33.21, 3.31, 0.5344, 15, 291.63, -49.96, 0.4656, 1, 15, 248.02, -47.48, 1, 1, 15, 248.54, -40.15, 1 ], + "hull": 8, + "edges": [ 0, 14, 6, 8, 8, 10, 4, 6, 0, 2, 2, 4, 10, 12, 12, 14 ], + "width": 83, + "height": 80 + } + }, + "spine-logo-body": { + "spine-logo-body": { + "type": "mesh", + "uvs": [ 1, 1, 0, 1, 0, 0, 1, 0 ], + "triangles": [ 1, 2, 3, 0, 1, 3 ], + "vertices": [ 2, 31, -248.3, -203.3, 0.6279, 33, -274.1, 54.1, 0.3721, 2, 31, -248.3, -171.3, 0.6977, 33, -274.1, 86.1, 0.3023, 2, 31, -169.3, -171.3, 0.6977, 33, -195.1, 86.1, 0.3023, 2, 31, -169.3, -203.3, 0.6279, 33, -195.1, 54.1, 0.3721 ], + "hull": 4, + "edges": [ 0, 2, 2, 4, 4, 6, 0, 6 ], + "width": 32, + "height": 79 + } + }, + "underskirt": { + "underskirt": { + "type": "mesh", + "uvs": [ 0.61384, 0.00326, 0.86014, 0.1566, 1, 0.41744, 0.99999, 0.63264, 0.91366, 0.67712, 0.71449, 0.81522, 0.48265, 0.87782, 0.37222, 0.75816, 0.31568, 0.69151, 0.33041, 0.38409, 0.3203, 0.38107, 0.28115, 0.91727, 0.22206, 1, 0.13682, 0.99971, 0.05161, 0.92594, 0, 0.71479, 0, 0.68836, 0.09431, 0.39249, 0.29714, 0.10495, 0.42184, 0.00353 ], + "triangles": [ 5, 1, 4, 5, 0, 1, 3, 4, 2, 2, 4, 1, 12, 13, 11, 17, 11, 13, 16, 13, 14, 16, 14, 15, 17, 13, 16, 10, 11, 17, 6, 7, 0, 6, 0, 5, 19, 0, 9, 8, 9, 7, 0, 7, 9, 17, 18, 10, 19, 9, 18, 9, 10, 18 ], + "vertices": [ 3, 9, 59.71, -144.35, 0.82348, 42, -622.06, 414.02, 1.0E-5, 43, -424.46, -118.81, 0.17652, 2, 9, -27.7, -418.23, 0.20974, 43, -218.8, 82.08, 0.79026, 2, 9, -176.38, -573.76, 0.00244, 43, -14.54, 149.69, 0.99756, 1, 43, 93.78, 92.15, 1, 2, 9, -324.39, -477.75, 0.00233, 43, 71.15, -4.52, 0.99767, 2, 9, -403.12, -256.27, 0.35855, 43, 36.78, -237.06, 0.64145, 3, 9, -438.79, 1.54, 0.73381, 42, -102.67, 409.16, 0.0028, 43, -52.63, -481.48, 0.26339, 3, 9, -370.59, 124.33, 0.82181, 42, -134.93, 272.44, 0.02156, 43, -170.47, -557.93, 0.15663, 3, 9, -332.6, 187.21, 0.83983, 42, -154.39, 201.61, 0.03404, 43, -233.51, -595.65, 0.12614, 3, 9, -157.37, 170.82, 0.72848, 42, -327.47, 169.74, 0.2419, 43, -380.58, -498.98, 0.02962, 3, 9, -155.65, 182.06, 0.65493, 42, -326.07, 158.45, 0.32779, 43, -387.37, -508.1, 0.01728, 2, 9, -461.28, 225.6, 0.0394, 42, -20.11, 199.65, 0.9606, 2, 9, -508.44, 291.31, 0.01441, 42, 43.13, 149.23, 0.98559, 2, 9, -508.27, 386.1, 5.6E-4, 42, 68.74, 57.97, 0.99944, 1, 42, 54.04, -44.65, 1, 2, 9, -345.87, 538.24, 0.02475, 42, -46.18, -132.6, 0.97525, 2, 9, -330.8, 538.24, 0.02806, 42, -60.68, -136.69, 0.97194, 2, 9, -162.16, 433.37, 0.22852, 42, -251.48, -81.62, 0.77148, 2, 9, 1.74, 207.82, 0.78318, 42, -470.53, 90.88, 0.21682, 3, 9, 59.55, 69.15, 0.97304, 42, -563.86, 208.61, 0.02695, 43, -524.47, -307.44, 1.0E-5 ], + "hull": 20, + "edges": [ 0, 38, 0, 2, 2, 4, 4, 6, 8, 10, 10, 12, 12, 14, 20, 22, 22, 24, 24, 26, 26, 28, 28, 30, 30, 32, 32, 34, 34, 36, 36, 38, 14, 16, 16, 18, 18, 20, 6, 8 ], + "width": 1112, + "height": 570 + } + }, + "underskirt-back": { + "underskirt-back": { + "type": "mesh", + "uvs": [ 0.8116, 0, 1, 0.3776, 1, 0.45388, 0.98647, 0.56624, 0.92179, 0.61762, 0.8759, 0.61039, 0.87506, 0.61851, 0.72906, 0.8252, 0.48046, 0.90197, 0.37375, 0.98138, 0.17375, 1, 0.14891, 1, 0, 0.76838, 0, 0.7307, 0.01937, 0.5828, 0.09779, 0.29851, 0.26066, 0.09077, 0.63845, 0 ], + "triangles": [ 8, 17, 7, 6, 7, 5, 7, 17, 0, 5, 7, 0, 3, 4, 2, 4, 1, 2, 5, 1, 4, 1, 5, 0, 16, 9, 10, 10, 14, 15, 14, 11, 13, 10, 11, 14, 10, 15, 16, 9, 16, 8, 11, 12, 13, 8, 16, 17 ], + "vertices": [ 2, 9, -29.44, -358.72, 0.4574, 43, -245.18, 28.7, 0.5426, 1, 43, -6.75, 133.1, 1, 1, 43, 22.09, 117.78, 1, 1, 43, 57.69, 82.29, 1, 2, 42, -372.61, 831.26, 1.1E-4, 43, 44.25, 10.1, 0.99989, 2, 42, -362.08, 782.6, 0.00633, 43, 18.21, -32.33, 0.99367, 2, 42, -358.49, 782.66, 0.00746, 43, 20.85, -34.77, 0.99254, 2, 42, -230.37, 654.55, 0.14266, 43, 24.81, -215.91, 0.85734, 2, 42, -125.55, 404.39, 0.58607, 43, -72.45, -469.09, 0.41393, 2, 42, -61.42, 302.42, 0.78309, 43, -96.64, -587.1, 0.21691, 2, 42, 5.13, 96.14, 0.98087, 43, -191.2, -782.14, 0.01913, 2, 42, 12.44, 70.26, 0.9887, 43, -203.82, -805.89, 0.0113, 1, 42, -39.11, -111.89, 1, 1, 42, -54.63, -116.28, 1, 1, 42, -121.25, -113.3, 1, 2, 9, -157.2, 414.33, 0.6279, 42, -261.43, -64.65, 0.3721, 3, 9, -68.29, 237.94, 0.6279, 42, -394.95, 80.92, 0.33514, 43, -490.74, -516.48, 0.03696, 3, 9, -29.44, -171.2, 0.6279, 42, -543.57, 464.1, 0.0647, 43, -333.14, -136.91, 0.3074 ], + "hull": 18, + "edges": [ 0, 34, 0, 2, 2, 4, 4, 6, 6, 8, 8, 10, 10, 12, 12, 14, 16, 18, 18, 20, 20, 22, 22, 24, 24, 26, 26, 28, 28, 30, 30, 32, 32, 34, 14, 16 ], + "width": 1083, + "height": 428 + } + }, + "wing-back": { + "wing-back": { + "type": "mesh", + "uvs": [ 0.27992, 1, 0.41993, 0.8511, 0.63506, 0.69103, 0.71019, 0.49935, 0.7819, 0.3709, 1, 0.06855, 1, 0, 0.83312, 0, 0.50871, 0.27604, 0.42334, 0.38473, 0.29016, 0.46773, 0.23894, 0.57049, 0, 0.70289, 0, 1 ], + "triangles": [ 3, 10, 9, 3, 9, 4, 9, 8, 4, 4, 8, 5, 8, 7, 5, 7, 6, 5, 0, 13, 1, 13, 12, 1, 12, 11, 1, 1, 11, 2, 2, 11, 3, 3, 11, 10 ], + "vertices": [ 1, 37, -58.79, -72.37, 1, 1, 37, 46.56, -55.93, 1, 2, 37, 174.1, -56.94, 0.68025, 38, -28.45, -51.1, 0.31975, 2, 37, 286.48, -5.39, 0.4003, 38, 93.74, -32.27, 0.5997, 2, 37, 366.51, 22.98, 0.17872, 38, 178.48, -26.89, 0.82128, 1, 38, 384.52, -30.9, 1, 1, 38, 424.63, -15.07, 1, 1, 38, 402.32, 41.43, 1, 2, 37, 353.46, 138.21, 0.10957, 38, 197.47, 87.52, 0.89043, 2, 37, 280.29, 121.34, 0.25682, 38, 122.47, 91.32, 0.74318, 2, 37, 209.37, 128.12, 0.46071, 38, 56.11, 117.24, 0.53929, 2, 37, 146.7, 103.65, 0.71584, 38, -10.86, 110.85, 0.28416, 2, 37, 27.71, 122.12, 0.99997, 38, -120.26, 161.17, 3.0E-5, 1, 37, -120.71, 8.55, 1 ], + "hull": 14, + "edges": [ 0, 2, 2, 4, 4, 6, 6, 8, 8, 10, 10, 12, 12, 14, 14, 16, 16, 18, 18, 20, 20, 22, 22, 24, 24, 26, 0, 26 ], + "width": 364, + "height": 629 + } + }, + "wing-front": { + "wing-front": { + "type": "mesh", + "uvs": [ 0, 0, 0.02331, 0, 0.22961, 0.21519, 0.35084, 0.26796, 0.43003, 0.30243, 0.488, 0.32767, 0.53152, 0.4064, 0.57005, 0.47608, 0.62939, 0.54328, 1, 0.68105, 0.99999, 0.99998, 0.617, 0.99221, 0.44034, 0.85621, 0.38946, 0.74627, 0.35759, 0.67741, 0.3699, 0.6309, 0.30589, 0.58118, 0.22551, 0.51873, 0.16197, 0.39023, 0.08039, 0.22526, 0.00685, 0.07654 ], + "triangles": [ 5, 15, 4, 16, 4, 15, 16, 3, 4, 16, 17, 3, 3, 18, 2, 3, 17, 18, 18, 19, 2, 2, 19, 1, 19, 20, 1, 20, 0, 1, 10, 11, 9, 11, 8, 9, 11, 12, 8, 12, 13, 8, 14, 15, 13, 7, 13, 15, 7, 8, 13, 15, 6, 7, 15, 5, 6 ], + "vertices": [ 1, 36, 423.69, -49.6, 1, 1, 36, 408.05, -57.92, 1, 1, 36, 206.97, -13.75, 1, 2, 35, 555.33, -8.25, 0.10655, 36, 110.26, -28.12, 0.89345, 2, 35, 494.8, -28.62, 0.21311, 36, 47.09, -37.51, 0.78689, 2, 35, 450.49, -43.54, 0.49546, 36, 0.85, -44.38, 0.50454, 2, 35, 394.32, -25.6, 0.76147, 36, -51.28, -16.82, 0.23853, 2, 35, 344.61, -9.71, 0.92422, 36, -97.42, 7.57, 0.07578, 2, 35, 283.41, -4.82, 0.9928, 36, -156.8, 23.18, 0.0072, 1, 35, 9.16, -111.67, 1, 1, 35, -113, 43.82, 1, 1, 35, 118.85, 219.86, 1, 2, 35, 276.52, 236.51, 0.96534, 36, -121.05, 261.95, 0.03466, 2, 35, 349.03, 206.81, 0.92167, 36, -54.9, 219.92, 0.07833, 2, 35, 394.46, 188.2, 0.916, 36, -13.47, 193.6, 0.084, 2, 35, 404.91, 159.74, 0.7786, 36, -8.19, 163.75, 0.2214, 2, 35, 462.21, 165.55, 0.4504, 36, 49.24, 159.37, 0.5496, 2, 35, 534.17, 172.86, 0.29838, 36, 121.35, 153.88, 0.70162, 2, 35, 621.37, 140.04, 0.14825, 36, 201.4, 106.21, 0.85175, 1, 36, 304.17, 45.02, 1, 1, 36, 396.81, -10.14, 1 ], + "hull": 21, + "edges": [ 0, 2, 14, 16, 22, 24, 28, 30, 40, 0, 34, 36, 36, 38, 4, 6, 30, 32, 32, 34, 6, 8, 8, 10, 10, 12, 12, 14, 30, 10, 24, 26, 26, 28, 26, 14, 18, 20, 16, 18, 20, 22, 38, 40, 2, 4 ], + "width": 760, + "height": 620 + } + }, + "face/fringe-front/fringe-middle-back": { + "fringe-middle-back": { + "type": "mesh", + "uvs": [ 0.32752, 0, 0.86964, 0.29818, 1, 0.59486, 1, 1, 0.28701, 1, 0.30763, 0.65487, 0, 0.25321, 0, 0 ], + "triangles": [ 4, 5, 3, 5, 2, 3, 5, 1, 2, 5, 6, 1, 6, 0, 1, 6, 7, 0 ], + "vertices": [ 1, 20, 208.48, -106.96, 1, 2, 20, 169.72, -151.96, 0.6589, 28, 110.56, -69.29, 0.3411, 2, 20, 131.15, -162.78, 0.3535, 30, 34.61, 37.03, 0.6465, 2, 20, 78.48, -162.78, 0.3535, 30, 87.28, 37.03, 0.6465, 3, 20, 78.48, -103.6, 0.1164, 30, 87.28, -22.15, 0.6465, 28, 19.32, -20.93, 0.2371, 3, 20, 123.35, -105.31, 0.1164, 30, 42.41, -20.44, 0.6465, 28, 64.19, -22.64, 0.2371, 2, 20, 175.56, -79.78, 0.6589, 28, 116.4, 2.89, 0.3411, 1, 20, 208.48, -79.78, 1 ], + "hull": 8, + "edges": [ 0, 2, 2, 4, 4, 6, 6, 8, 8, 10, 10, 12, 12, 14, 0, 14 ], + "width": 83, + "height": 130 + } + }, + "face/fringe-front/fringe-middle-front": { + "fringe-middle-front": { + "type": "mesh", + "uvs": [ 1, 1, 0.75, 1, 0.5, 1, 0.25, 1, 0, 1, 0, 0.66667, 0, 0.33333, 0, 0, 0.5, 0, 1, 0, 1, 0.33333, 1, 0.66667, 0.58576, 0.6538, 0.52144, 0.32047 ], + "triangles": [ 1, 11, 0, 2, 12, 1, 1, 12, 11, 2, 3, 12, 12, 3, 5, 3, 4, 5, 12, 10, 11, 5, 13, 12, 5, 6, 13, 12, 13, 10, 6, 8, 13, 10, 8, 9, 6, 7, 8, 10, 13, 8 ], + "vertices": [ 3, 20, 80.48, -129.78, 0.0853, 30, 85.28, 4.03, 0.303, 28, 21.32, -47.11, 0.6117, 2, 30, 85.28, -33.47, 0.303, 28, 21.32, -9.61, 0.697, 2, 29, 90.56, 82.9, 0.3636, 28, 21.32, 27.89, 0.6364, 2, 29, 90.56, 45.4, 0.3636, 28, 21.32, 65.39, 0.6364, 2, 29, 90.56, 7.9, 0.3636, 28, 21.32, 102.89, 0.6364, 2, 29, 48.89, 7.9, 0.3636, 28, 62.99, 102.89, 0.6364, 2, 20, 163.81, 20.22, 0.3566, 28, 104.66, 102.89, 0.6434, 1, 20, 205.48, 20.22, 1, 1, 20, 205.48, -54.78, 1, 1, 20, 205.48, -129.78, 1, 2, 20, 163.81, -129.78, 0.3178, 28, 104.66, -47.11, 0.6822, 3, 20, 122.15, -129.78, 0.0853, 30, 43.61, 4.03, 0.303, 28, 62.99, -47.11, 0.6117, 2, 29, 47.28, 95.77, 0.3636, 28, 64.6, 15.03, 0.6364, 2, 20, 165.42, -57.99, 0.3566, 28, 106.26, 24.67, 0.6434 ], + "hull": 12, + "edges": [ 0, 2, 2, 4, 4, 6, 6, 8, 8, 10, 10, 12, 12, 14, 18, 20, 20, 22, 22, 0, 14, 16, 16, 18, 20, 16 ], + "width": 150, + "height": 125 + } + }, + "face/fringe-front/fringe-side-front": { + "fringe-side-front": { + "type": "mesh", + "uvs": [ 1, 1, 0, 1, 0, 0.8, 0, 0.6, 0, 0.4, 0, 0.2, 0, 0, 1, 0, 1, 0.2, 1, 0.4, 1, 0.6, 1, 0.8 ], + "triangles": [ 3, 4, 9, 8, 5, 7, 5, 6, 7, 4, 5, 8, 9, 4, 8, 0, 1, 11, 1, 2, 11, 11, 2, 10, 2, 3, 10, 10, 3, 9 ], + "vertices": [ 1, 29, 217.56, 17.9, 1, 1, 29, 217.56, -48.1, 1, 2, 29, 171.16, -48.1, 0.82503, 28, -59.28, 158.89, 0.17497, 2, 29, 124.76, -48.1, 0.60616, 28, -12.88, 158.89, 0.39384, 3, 29, 78.36, -48.1, 0.3251, 20, 92.68, 76.22, 0.1478, 28, 33.52, 158.89, 0.5271, 2, 20, 139.08, 76.22, 0.1705, 28, 79.92, 158.89, 0.8295, 2, 20, 185.48, 76.22, 0.4031, 28, 126.32, 158.89, 0.5969, 2, 20, 185.48, 10.22, 0.4031, 28, 126.32, 92.89, 0.5969, 2, 20, 139.08, 10.22, 0.1705, 28, 79.92, 92.89, 0.8295, 3, 29, 78.36, 17.9, 0.3251, 20, 92.68, 10.22, 0.1478, 28, 33.52, 92.89, 0.5271, 2, 29, 124.76, 17.9, 0.60616, 28, -12.88, 92.89, 0.39384, 2, 29, 171.16, 17.9, 0.82503, 28, -59.28, 92.89, 0.17497 ], + "hull": 12, + "edges": [ 0, 2, 2, 4, 4, 6, 6, 8, 8, 10, 10, 12, 12, 14, 14, 16, 16, 18, 18, 20, 20, 22, 22, 0 ], + "width": 66, + "height": 232 + } + }, + "face/ear": { + "ear": { + "type": "mesh", + "uvs": [ 1, 1, 0, 1, 0, 0, 1, 0 ], + "triangles": [ 1, 2, 3, 1, 3, 0 ], + "vertices": [ 2, 20, 20.48, 52.22, 0.3101, 28, -38.68, 134.89, 0.6899, 2, 28, -38.68, 184.89, 0.7287, 22, -114.77, -50.15, 0.2713, 2, 28, 31.32, 184.89, 0.7287, 22, -44.77, -50.15, 0.2713, 2, 20, 90.48, 52.22, 0.3101, 28, 31.32, 134.89, 0.6899 ], + "hull": 4, + "edges": [ 0, 2, 2, 4, 4, 6, 0, 6 ], + "width": 50, + "height": 70 + } + }, + "face/eye-back-shadow": { + "eye-back-shadow": { + "type": "mesh", + "uvs": [ 1, 1, 0, 1, 0, 0, 1, 0 ], + "triangles": [ 1, 3, 0, 1, 2, 3 ], + "vertices": [ 2, 51, -20.35, -15.78, 0.2749, 49, -3.33, -18.17, 0.7251, 2, 51, -20.35, 19.22, 0.1085, 49, -3.33, 16.83, 0.8915, 2, 51, 3.65, 19.22, 0.69582, 49, 20.67, 16.83, 0.30418, 2, 51, 3.65, -15.78, 0.91085, 49, 20.67, -18.17, 0.08915 ], + "hull": 4, + "edges": [ 0, 2, 2, 4, 4, 6, 0, 6 ], + "width": 35, + "height": 24 + } + }, + "face/eye-front-shadow": { + "eye-front-shadow": { + "type": "mesh", + "uvs": [ 1, 1, 0, 1, 0, 0, 1, 0 ], + "triangles": [ 1, 3, 0, 1, 2, 3 ], + "vertices": [ 2, 47, -34.76, -19.78, 0.1604, 45, -11.68, -24.94, 0.8396, 2, 47, -34.76, 39.22, 0.03854, 45, -11.68, 34.06, 0.96146, 2, 47, 1.24, 39.22, 0.96, 45, 24.32, 34.06, 0.04, 2, 47, 1.24, -19.78, 0.92478, 45, 24.32, -24.94, 0.07522 ], + "hull": 4, + "edges": [ 0, 2, 2, 4, 4, 6, 0, 6 ], + "width": 59, + "height": 36 + } + }, + "face/eye-reflex-back": { + "eye-reflex-back": { "x": -1, "y": 6.42, "rotation": -90, "width": 19, "height": 17 } + }, + "face/eye-reflex-front": { + "eye-reflex-front": { "x": -2.07, "y": 7.22, "rotation": -90, "width": 25, "height": 18 } + }, + "face/eye-white-back": { + "eye-white-back": { + "type": "mesh", + "uvs": [ 1, 1, 0, 1, 0, 0, 1, 0 ], + "triangles": [ 1, 3, 0, 1, 2, 3 ], + "vertices": [ 1, 52, -1.77, -14.73, 1, 1, 52, -1.77, 17.27, 1, 1, 51, 3.65, 19.22, 1, 2, 49, 20.67, -15.17, 0.03731, 51, 3.65, -12.78, 0.96269 ], + "hull": 4, + "edges": [ 0, 2, 2, 4, 4, 6, 0, 6 ], + "width": 32, + "height": 40 + } + }, + "face/eye-white-front": { + "eye-white-front": { + "type": "mesh", + "uvs": [ 0.98492, 0.7288, 0.74399, 0.97841, 0.09394, 0.97675, 0, 0.61321, 0.44029, 0.01082, 0.98133, 0.03613 ], + "triangles": [ 0, 1, 4, 1, 3, 4, 1, 2, 3, 0, 4, 5 ], + "vertices": [ 2, 45, -10.01, -24.09, 0.90792, 48, 9.81, -32.94, 0.09208, 1, 48, -0.92, -19.45, 1, 1, 48, -0.85, 16.95, 1, 3, 45, -5.04, 31.06, 0.13374, 47, -28.13, 36.22, 0.27714, 48, 14.78, 22.22, 0.58912, 1, 47, -2.23, 11.56, 1, 1, 47, -3.31, -18.74, 1 ], + "hull": 6, + "edges": [ 0, 10, 0, 2, 2, 4, 4, 6, 8, 10, 6, 8 ], + "width": 56, + "height": 43 + } + }, + "face/eyelashes-down-back": { + "eyelashes-down-back": { "x": -0.77, "y": -0.73, "rotation": -90, "width": 28, "height": 14 } + }, + "face/eyelashes-down-front": { + "eyelashes-down-front": { "x": -2.35, "y": 0.72, "rotation": -90, "width": 37, "height": 15 } + }, + "face/eyelashes-top-back": { + "eyelashes-top-back": { + "type": "mesh", + "uvs": [ 0.53449, 0.0112, 0.80224, 0.23436, 1, 0.50028, 0.89272, 0.90854, 0.67501, 0.92236, 0.35422, 0.73425, 0.24884, 0.95236, 0.02061, 0.96391, 0.02196, 0.59454, 0.24865, 0.01679 ], + "triangles": [ 7, 8, 6, 3, 1, 2, 5, 0, 4, 4, 1, 3, 4, 0, 1, 8, 9, 5, 5, 9, 0, 6, 8, 5 ], + "vertices": [ 1, 51, 9.38, -2.84, 1, 2, 51, 4.02, -14.88, 0.86286, 49, 21.04, -17.27, 0.13714, 2, 51, -2.36, -23.78, 0.5814, 49, 14.66, -26.17, 0.4186, 2, 51, -12.16, -18.96, 0.5814, 49, 4.86, -21.34, 0.4186, 2, 51, -12.49, -9.16, 0.6434, 49, 4.53, -11.54, 0.3566, 1, 51, -7.98, 5.28, 1, 2, 51, -13.21, 10.02, 0.6047, 49, 3.81, 7.63, 0.3953, 2, 51, -13.49, 20.29, 0.5814, 49, 3.53, 17.9, 0.4186, 2, 51, -4.62, 20.23, 0.5814, 49, 12.4, 17.84, 0.4186, 1, 51, 9.24, 10.03, 1 ], + "hull": 10, + "edges": [ 0, 18, 0, 2, 4, 6, 14, 16, 16, 18, 12, 14, 6, 8, 8, 10, 10, 12, 2, 4 ], + "width": 45, + "height": 24 + } + }, + "face/eyelashes-top-front": { + "eyelashes-top-front": { + "type": "mesh", + "uvs": [ 0, 0.74724, 0.51172, 0, 0.61319, 0, 0.99001, 0.18532, 0.99016, 0.28688, 0.83893, 0.5606, 0.6312, 0.2977, 0.48808, 0.44992, 0.18971, 1, 0.09689, 1, 0, 0.86051 ], + "triangles": [ 4, 5, 3, 7, 0, 1, 7, 1, 6, 1, 2, 6, 5, 6, 3, 6, 2, 3, 0, 8, 9, 9, 10, 0, 7, 8, 0 ], + "vertices": [ 1, 45, -1.31, 42.06, 1, 1, 47, 6.24, 9.35, 1, 1, 47, 6.24, 1.84, 1, 2, 45, 21.73, -31.2, 0.2713, 47, -1.36, -26.05, 0.7287, 2, 45, 17.56, -31.21, 0.2713, 47, -5.52, -26.06, 0.7287, 2, 45, 6.34, -20.02, 0.34, 47, -16.75, -14.87, 0.66, 1, 47, -5.97, 0.51, 1, 2, 45, 10.88, 5.94, 0.23429, 47, -12.21, 11.1, 0.76571, 1, 45, -11.68, 28.02, 1, 1, 45, -11.68, 34.89, 1, 1, 45, -5.96, 42.06, 1 ], + "hull": 11, + "edges": [ 0, 20, 0, 2, 2, 4, 4, 6, 6, 8, 8, 10, 10, 12, 12, 14, 14, 16, 16, 18, 18, 20 ], + "width": 74, + "height": 41 + } + }, + "face/face": { + "face": { + "type": "mesh", + "uvs": [ 0.84841, 0, 0.99605, 0.18591, 0.99597, 0.82505, 0.75638, 1, 0.56116, 1, 0.28151, 0.91236, 0.02486, 0.65319, 0.25928, 0.18329, 0.83782, 0, 0.31251, 0.58794, 0.2902, 0.34407, 0.75589, 0.2771, 0.94411, 0.34407, 0.92878, 0.62458, 0.66107, 0.87982, 0.7811, 0.68326 ], + "triangles": [ 4, 14, 3, 3, 14, 2, 4, 5, 14, 5, 9, 14, 5, 6, 9, 14, 15, 2, 14, 9, 15, 15, 13, 2, 13, 12, 2, 2, 12, 1, 15, 9, 13, 6, 10, 9, 6, 7, 10, 9, 11, 13, 13, 11, 12, 9, 10, 11, 12, 11, 1, 10, 7, 11, 11, 8, 1, 8, 0, 1, 11, 7, 8 ], + "vertices": [ 1, 20, 201.48, -112.61, 1, 1, 20, 153.89, -146.86, 1, 2, 20, -9.73, -146.84, 0.2016, 28, -68.89, -64.18, 0.7984, 1, 28, -113.68, -8.59, 1, 1, 28, -113.68, 36.7, 1, 2, 20, -32.08, 18.91, 0.2481, 28, -91.24, 101.58, 0.7519, 2, 20, 34.26, 78.46, 0.3488, 28, -24.89, 161.12, 0.6512, 1, 20, 154.56, 24.07, 1, 1, 20, 201.48, -110.15, 1, 1, 28, -8.19, 94.39, 1, 1, 28, 54.24, 99.56, 1, 1, 28, 71.38, -8.48, 1, 2, 20, 113.4, -134.81, 0.2403, 28, 54.24, -52.14, 0.7597, 2, 20, 41.59, -131.25, 0.2403, 28, -17.57, -48.59, 0.7597, 1, 28, -82.91, 13.52, 1, 1, 21, 0.89, 2.3, 1 ], + "hull": 9, + "edges": [ 0, 16, 0, 2, 2, 4, 4, 6, 6, 8, 8, 10, 10, 12, 12, 14, 14, 16, 18, 26 ], + "width": 232, + "height": 256 + } + }, + "face/fringe-side-back": { + "fringe-side-back": { + "type": "mesh", + "uvs": [ 1, 1, 0, 1, 0, 0.8, 0, 0.6, 0, 0.4, 0, 0.2, 0, 0, 1, 0, 1, 0.2, 1, 0.4, 1, 0.6, 1, 0.8 ], + "triangles": [ 10, 3, 9, 3, 4, 9, 9, 4, 8, 8, 5, 7, 5, 6, 7, 4, 5, 8, 0, 1, 11, 1, 2, 11, 11, 2, 10, 2, 3, 10 ], + "vertices": [ 1, 30, 219.28, 49.03, 1, 1, 30, 219.28, -18.97, 1, 2, 30, 172.48, -18.97, 0.78148, 20, -6.72, -106.78, 0.21852, 2, 30, 125.68, -18.97, 0.54452, 20, 40.08, -106.78, 0.45548, 2, 30, 78.88, -18.97, 0.28148, 20, 86.88, -106.78, 0.71852, 1, 20, 133.68, -106.78, 1, 1, 20, 180.48, -106.78, 1, 1, 20, 180.48, -174.78, 1, 1, 20, 133.68, -174.78, 1, 2, 30, 78.88, 49.03, 0.28148, 20, 86.88, -174.78, 0.71852, 2, 30, 125.68, 49.03, 0.54452, 20, 40.08, -174.78, 0.45548, 2, 30, 172.48, 49.03, 0.78148, 20, -6.72, -174.78, 0.21852 ], + "hull": 12, + "edges": [ 0, 2, 2, 4, 4, 6, 6, 8, 8, 10, 10, 12, 12, 14, 14, 16, 16, 18, 18, 20, 20, 22, 22, 0 ], + "width": 68, + "height": 234 + } + }, + "face/hair-hat-shadow": { + "hair-hat-shadow": { "x": 198.48, "y": 40.22, "rotation": -90, "width": 224, "height": 102 } + }, + "face/mouth": { + "mouth": { "x": 4.02, "y": -0.92, "rotation": -90, "width": 56, "height": 16 } + }, + "face/nose": { + "nose": { + "type": "mesh", + "uvs": [ 1, 1, 0, 1, 0, 0, 1, 0 ], + "triangles": [ 1, 3, 0, 1, 2, 3 ], + "vertices": [ 1, 21, -13.2, -1.48, 1, 2, 28, -46.68, -3.11, 0.4, 21, -13.2, 13.52, 0.6, 2, 28, -29.68, -3.11, 0.4, 21, 3.8, 13.52, 0.6, 1, 21, 3.8, -1.48, 1 ], + "hull": 4, + "edges": [ 0, 2, 2, 4, 4, 6, 0, 6 ], + "width": 15, + "height": 17 + } + }, + "face/nose-highlight": { + "nose-highlight": { + "type": "mesh", + "uvs": [ 1, 1, 0, 1, 0, 0, 1, 0 ], + "triangles": [ 1, 3, 0, 1, 2, 3 ], + "vertices": [ 2, 28, -33.68, -11.11, 0.124, 21, -0.2, 5.52, 0.876, 2, 28, -33.68, -1.11, 0.124, 21, -0.2, 15.52, 0.876, 2, 28, -22.68, -1.11, 0.124, 21, 10.8, 15.52, 0.876, 2, 28, -22.68, -11.11, 0.124, 21, 10.8, 5.52, 0.876 ], + "hull": 4, + "edges": [ 0, 2, 2, 4, 4, 6, 0, 6 ], + "width": 10, + "height": 11 + } + }, + "face/nose-shadow": { + "nose-shadow": { + "type": "mesh", + "uvs": [ 1, 1, 0, 1, 0, 0, 1, 0 ], + "triangles": [ 1, 2, 3, 1, 3, 0 ], + "vertices": [ 1, 21, -15.2, -5.48, 1, 2, 28, -48.68, -4.11, 0.6047, 21, -15.2, 12.52, 0.3953, 2, 28, -28.68, -4.11, 0.6047, 21, 4.8, 12.52, 0.3953, 1, 21, 4.8, -5.48, 1 ], + "hull": 4, + "edges": [ 0, 2, 2, 4, 4, 6, 0, 6 ], + "width": 18, + "height": 20 + } + }, + "face/pupil-back": { + "pupil-back": { "x": -2.5, "y": 1.42, "rotation": -90, "width": 25, "height": 36 } + }, + "face/pupil-front": { + "pupil-front": { "x": -0.07, "y": 1.72, "rotation": -90, "width": 30, "height": 44 } + }, + "hair-back/hair-back-1": { + "hair-back-1": { + "type": "mesh", + "uvs": [ 1, 0.05206, 0.78167, 0.17387, 0.70445, 0.29745, 0.65078, 0.39485, 0.49669, 0.47826, 0.30981, 0.57942, 0.46147, 0.61966, 0.65876, 0.71313, 0.30967, 0.78419, 0.48938, 0.84645, 0.47689, 0.91323, 0.30103, 1, 0.21344, 1, 0.10045, 0.96739, 0.0798, 0.89237, 0.04833, 0.77797, 0, 0.60231, 0, 0.55114, 0.36021, 0.41385, 0.44814, 0.36733, 0.56438, 0.25145, 0.68422, 0.13617, 0.82577, 0, 1, 1.0E-5 ], + "triangles": [ 10, 11, 14, 14, 11, 12, 12, 13, 14, 5, 17, 18, 4, 19, 3, 3, 19, 2, 19, 20, 2, 18, 19, 4, 5, 18, 4, 14, 8, 10, 10, 8, 9, 14, 15, 8, 8, 15, 6, 15, 5, 6, 15, 16, 5, 16, 17, 5, 8, 6, 7, 0, 22, 23, 22, 0, 21, 0, 1, 21, 2, 20, 1, 20, 21, 1 ], + "vertices": [ 1, 20, 193.6, 53.22, 1, 1, 20, 100.3, 125.49, 1, 2, 20, 5.63, 151.05, 0.5115, 26, 123.22, -101.53, 0.4885, 2, 20, -68.98, 168.82, 0.3588, 26, 197.83, -119.3, 0.6412, 2, 20, -132.86, 219.82, 0.3053, 26, 261.72, -170.3, 0.6947, 3, 20, -210.35, 281.68, 0.26425, 26, 339.21, -232.16, 0.61722, 27, -129.44, -232.16, 0.11853, 3, 20, -241.18, 231.47, 0.22919, 26, 370.03, -181.96, 0.54443, 27, -98.61, -181.96, 0.22638, 3, 20, -312.77, 166.17, 0.2009, 26, 441.63, -116.65, 0.50653, 27, -27.02, -116.65, 0.29257, 3, 20, -367.21, 281.72, 0.18235, 26, 496.06, -232.2, 0.47614, 27, 27.42, -232.2, 0.3415, 3, 20, -414.9, 222.24, 0.21741, 26, 543.75, -172.72, 0.57649, 27, 75.11, -172.72, 0.2061, 3, 20, -466.05, 226.37, 0.23495, 26, 594.91, -176.85, 0.4504, 27, 126.26, -176.85, 0.31465, 3, 20, -532.52, 284.58, 0.23495, 26, 661.38, -235.06, 0.4504, 27, 192.73, -235.06, 0.31465, 3, 20, -532.52, 313.57, 0.23495, 26, 661.38, -264.05, 0.4504, 27, 192.73, -264.05, 0.31465, 3, 20, -507.54, 350.97, 0.23495, 26, 636.39, -301.46, 0.4504, 27, 167.75, -301.46, 0.31465, 3, 20, -450.07, 357.81, 0.23495, 26, 578.93, -308.29, 0.4504, 27, 110.28, -308.29, 0.31465, 3, 20, -362.45, 368.22, 0.23506, 26, 491.3, -318.71, 0.51948, 27, 22.66, -318.71, 0.24546, 3, 20, -227.89, 384.22, 0.25098, 26, 356.75, -334.7, 0.57166, 27, -111.9, -334.7, 0.17736, 3, 20, -188.7, 384.22, 0.27537, 26, 317.55, -334.7, 0.63085, 27, -151.1, -334.7, 0.09378, 2, 20, -83.53, 264.99, 0.3053, 26, 212.38, -215.47, 0.6947, 2, 20, -47.89, 235.89, 0.3588, 26, 176.75, -186.37, 0.6412, 2, 20, 40.87, 197.41, 0.49123, 26, 87.99, -147.89, 0.50877, 2, 20, 129.18, 157.75, 0.68581, 26, -0.32, -108.23, 0.31419, 1, 20, 233.48, 110.89, 1, 1, 20, 233.47, 53.22, 1 ], + "hull": 24, + "edges": [ 0, 2, 10, 12, 12, 14, 14, 16, 16, 18, 18, 20, 20, 22, 22, 24, 24, 26, 32, 34, 34, 36, 36, 38, 44, 46, 30, 32, 30, 12, 26, 28, 28, 30, 6, 8, 8, 10, 4, 6, 38, 40, 2, 4, 46, 0, 40, 42, 42, 44 ], + "width": 331, + "height": 766 + } + }, + "hair-back/hair-back-2": { + "hair-back-2": { + "type": "mesh", + "uvs": [ 0.89086, 0, 0.99848, 0, 0.96651, 0.15477, 0.94381, 0.26466, 0.92222, 0.36914, 0.89845, 0.48424, 0.57735, 0.62302, 0.73413, 0.63077, 0.9883, 0.70379, 0.86085, 0.84916, 0.74336, 0.98316, 0.59619, 1, 0.37348, 1, 0.10983, 0.83684, 1.0E-5, 0.76887, 0, 0.66185, 0.06689, 0.57957, 0.28324, 0.47594, 0.49583, 0.37411, 0.59097, 0.27636, 0.69109, 0.15073, 0.80033, 0.01367, 0.54528, 0.76481 ], + "triangles": [ 22, 7, 8, 14, 15, 22, 13, 14, 22, 9, 22, 8, 9, 13, 22, 9, 12, 13, 9, 11, 12, 10, 11, 9, 4, 19, 3, 18, 19, 4, 5, 18, 4, 17, 18, 5, 6, 17, 5, 16, 17, 6, 15, 16, 6, 22, 15, 6, 22, 6, 7, 19, 20, 3, 3, 20, 2, 1, 21, 0, 2, 21, 1, 20, 21, 2 ], + "vertices": [ 1, 20, 157.48, 123.05, 1, 1, 20, 157.48, 101.53, 1, 2, 20, 47.29, 107.92, 0.70089, 26, 81.57, -58.4, 0.29911, 2, 20, -30.96, 112.46, 0.4885, 26, 159.82, -62.94, 0.5115, 2, 20, -105.35, 116.78, 0.33608, 26, 234.21, -67.26, 0.66392, 2, 20, -187.3, 121.53, 0.1832, 26, 316.15, -72.01, 0.8168, 3, 20, -286.11, 185.75, 0.1756, 26, 414.96, -136.23, 0.74597, 27, -53.68, -136.23, 0.07843, 3, 20, -291.63, 154.4, 0.1756, 26, 420.49, -104.88, 0.63052, 27, -48.16, -104.88, 0.19388, 3, 20, -343.62, 103.56, 0.1756, 26, 472.48, -54.04, 0.45922, 27, 3.83, -54.04, 0.36518, 3, 20, -447.12, 129.05, 0.1756, 26, 575.98, -79.53, 0.24092, 27, 107.33, -79.53, 0.58348, 2, 20, -542.53, 152.55, 0.1756, 27, 202.74, -103.03, 0.8244, 2, 20, -554.52, 181.98, 0.1756, 27, 214.73, -132.46, 0.8244, 2, 20, -554.52, 226.52, 0.1756, 27, 214.73, -177.01, 0.8244, 3, 20, -438.35, 279.26, 0.1756, 26, 567.2, -229.74, 0.24092, 27, 98.56, -229.74, 0.58348, 3, 20, -389.96, 301.22, 0.1756, 26, 518.81, -251.7, 0.45922, 27, 50.17, -251.7, 0.36518, 3, 20, -313.75, 301.22, 0.1756, 26, 442.61, -251.7, 0.63052, 27, -26.04, -251.7, 0.19388, 3, 20, -255.17, 287.84, 0.1756, 26, 384.03, -238.32, 0.74597, 27, -84.62, -238.32, 0.07843, 2, 20, -181.39, 244.57, 0.1832, 26, 310.24, -195.05, 0.8168, 2, 20, -108.88, 202.06, 0.33608, 26, 237.74, -152.54, 0.66392, 2, 20, -39.29, 183.03, 0.4885, 26, 168.15, -133.51, 0.5115, 2, 20, 50.16, 163, 0.6489, 26, 78.7, -113.48, 0.3511, 1, 20, 147.75, 141.16, 1, 2, 20, -387.07, 192.17, 0.1756, 27, 47.28, -142.65, 0.8244 ], + "hull": 22, + "edges": [ 0, 42, 0, 2, 10, 12, 12, 14, 14, 16, 20, 22, 22, 24, 28, 30, 30, 32, 36, 38, 6, 8, 8, 10, 32, 34, 34, 36, 24, 26, 26, 28, 16, 18, 18, 20, 38, 40, 40, 42, 2, 4, 4, 6 ], + "width": 200, + "height": 712 + } + }, + "hair-back/hair-back-3": { + "hair-back-3": { + "type": "mesh", + "uvs": [ 0.84591, 0.08889, 0.82372, 0.26566, 0.80438, 0.41975, 0.94221, 0.62567, 1, 0.81672, 0.70929, 0.99918, 0.46458, 0.99803, 0.23662, 0.83671, 0, 0.66926, 0, 0.51704, 0.21223, 0.38901, 0.3832, 0.26202, 0.39154, 0.00106, 0.78531, 0.00114 ], + "triangles": [ 4, 5, 7, 5, 6, 7, 4, 7, 3, 7, 8, 3, 8, 2, 3, 2, 8, 9, 2, 9, 10, 10, 11, 2, 2, 11, 1, 1, 11, 0, 0, 12, 13, 0, 11, 12 ], + "vertices": [ 1, 20, 43.92, 49.03, 1, 3, 20, -74.51, 52.89, 0.49873, 26, 203.37, -3.37, 0.44236, 27, -265.28, -3.37, 0.05891, 3, 20, -177.75, 56.26, 0.3969, 26, 306.6, -6.74, 0.30443, 27, -162.04, -6.74, 0.29867, 3, 20, -315.72, 32.28, 0.1145, 26, 444.58, 17.24, 0.16959, 27, -24.07, 17.24, 0.71591, 2, 20, -443.72, 22.22, 0.1145, 27, 103.93, 27.3, 0.8855, 2, 20, -565.97, 72.8, 0.1145, 27, 226.18, -23.29, 0.8855, 2, 20, -565.2, 115.38, 0.1145, 27, 225.41, -65.87, 0.8855, 3, 20, -457.12, 155.05, 0.1145, 26, 585.97, -105.53, 0.04756, 27, 117.32, -105.53, 0.83794, 3, 20, -344.93, 196.22, 0.1145, 26, 473.78, -146.7, 0.53505, 27, 5.13, -146.7, 0.35045, 3, 20, -242.93, 196.22, 0.1145, 26, 371.79, -146.7, 0.63528, 27, -96.86, -146.7, 0.25022, 3, 20, -157.16, 159.29, 0.30166, 26, 286.01, -109.77, 0.5576, 27, -182.63, -109.77, 0.14074, 3, 20, -72.07, 129.55, 0.49024, 26, 200.93, -80.03, 0.47767, 27, -267.72, -80.03, 0.03208, 1, 20, 102.77, 128.09, 1, 1, 20, 102.72, 59.58, 1 ], + "hull": 14, + "edges": [ 0, 26, 6, 8, 8, 10, 10, 12, 16, 18, 18, 20, 20, 22, 22, 24, 24, 26, 12, 14, 14, 16, 14, 6, 16, 4, 6, 4, 0, 2, 2, 4 ], + "width": 174, + "height": 670 + } + }, + "hair-back/hair-back-4": { + "hair-back-4": { + "type": "mesh", + "uvs": [ 0.84401, 0.30705, 0.95315, 0.49123, 0.9783, 0.6272, 1, 0.74452, 0.91116, 0.87667, 0.91728, 1, 0.62869, 1, 0.56926, 1, 0.32887, 0.88007, 0.04472, 0.7649, 0, 0.61844, 0.14237, 0.48206, 0.16865, 0.34839, 0.03769, 0.00116, 0.67304, 0.01853 ], + "triangles": [ 11, 2, 10, 2, 9, 10, 3, 9, 2, 5, 6, 4, 3, 8, 9, 4, 8, 3, 6, 7, 8, 8, 4, 6, 2, 11, 1, 11, 12, 1, 12, 0, 1, 12, 13, 14, 12, 14, 0 ], + "vertices": [ 2, 20, -118.94, -74.62, 0.3588, 26, 247.8, 124.13, 0.6412, 3, 20, -239.77, -98.52, 0.2672, 26, 368.62, 148.04, 0.3511, 27, -100.02, 148.04, 0.3817, 3, 20, -328.96, -104.03, 0.19285, 26, 457.82, 153.54, 0.32625, 27, -10.83, 153.54, 0.4809, 3, 20, -405.92, -108.78, 0.12293, 26, 534.78, 158.3, 0.37135, 27, 66.13, 158.3, 0.50573, 3, 20, -492.62, -89.32, 0.05925, 26, 621.47, 138.84, 0.1867, 27, 152.83, 138.84, 0.75405, 2, 26, 702.38, 140.18, 0, 27, 233.73, 140.18, 1, 3, 20, -573.52, -27.46, 0.0224, 26, 702.38, 76.98, 0.06577, 27, 233.73, 76.98, 0.91183, 3, 20, -573.52, -14.45, 0.05056, 26, 702.38, 63.96, 0.14653, 27, 233.73, 63.96, 0.80292, 3, 20, -494.85, 38.2, 0.08885, 26, 623.7, 11.32, 0.25335, 27, 155.06, 11.32, 0.65779, 3, 20, -419.29, 100.43, 0.19057, 26, 548.15, -50.91, 0.36714, 27, 79.5, -50.91, 0.44229, 3, 20, -323.21, 110.22, 0.2672, 26, 452.07, -60.7, 0.2519, 27, -16.58, -60.7, 0.4809, 3, 20, -233.75, 79.04, 0.2672, 26, 362.61, -29.52, 0.3511, 27, -106.04, -29.52, 0.3817, 2, 20, -146.06, 73.29, 0.3588, 26, 274.92, -23.77, 0.6412, 1, 20, 81.72, 101.97, 1, 2, 20, 70.32, -37.17, 0.99873, 26, 58.53, 86.69, 0.00127 ], + "hull": 15, + "edges": [ 12, 14, 20, 22, 22, 24, 24, 26, 26, 28, 2, 4, 4, 6, 2, 0, 0, 28, 18, 20, 14, 16, 16, 18, 8, 10, 6, 8, 10, 12 ], + "width": 219, + "height": 656 + } + }, + "hair-back/hair-back-5": { + "hair-back-5": { + "type": "mesh", + "uvs": [ 0.52681, 0.0022, 0.53701, 0.13188, 0.57788, 0.19975, 0.74688, 0.40516, 0.89266, 0.58235, 1, 0.80234, 0.94757, 0.86532, 0.87274, 0.99806, 0.65652, 1, 0.49768, 0.91169, 0.26202, 0.78067, 0.35593, 0.58238, 0.25008, 0.42396, 0, 0.16031, 0, 0.12266, 0.22195, 0.00216 ], + "triangles": [ 8, 9, 7, 7, 9, 6, 6, 9, 5, 5, 9, 4, 9, 10, 4, 11, 4, 10, 11, 3, 4, 11, 12, 3, 12, 13, 2, 12, 2, 3, 15, 1, 14, 1, 15, 0, 2, 13, 1, 1, 13, 14 ], + "vertices": [ 1, 20, 168.95, -85.68, 1, 2, 20, 78.56, -87.92, 0.84015, 26, 50.29, 137.44, 0.15985, 2, 20, 31.25, -96.91, 0.67545, 26, 97.6, 146.43, 0.32455, 2, 20, -111.92, -134.09, 0.50775, 26, 240.77, 183.61, 0.49225, 2, 20, -235.42, -166.16, 0.34305, 26, 364.28, 215.68, 0.65695, 3, 20, -387.13, -190.07, 0.10437, 26, 515.98, 239.59, 0.36512, 27, 47.26, 237.59, 0.53051, 3, 20, -432.65, -178.24, 0.03859, 26, 561.5, 227.76, 0.18918, 27, 92.85, 227.76, 0.77223, 2, 26, 654.02, 211.3, 0.2137, 27, 185.38, 211.3, 0.7863, 2, 26, 655.38, 163.73, 0.2137, 27, 186.73, 163.73, 0.7863, 3, 20, -464.97, -79.27, 0.09122, 26, 593.83, 128.79, 0.40749, 27, 125.18, 128.79, 0.50129, 2, 20, -373.65, -27.42, 0.1832, 26, 502.5, 76.94, 0.8168, 2, 20, -235.44, -48.08, 0.38703, 26, 364.29, 97.6, 0.61297, 2, 20, -125.02, -24.8, 0.59141, 26, 253.87, 74.32, 0.40859, 1, 20, 58.74, 30.22, 1, 1, 20, 84.98, 30.22, 1, 1, 20, 168.97, -18.61, 1 ], + "hull": 16, + "edges": [ 0, 30, 0, 2, 2, 4, 14, 16, 20, 22, 26, 28, 28, 30, 10, 12, 12, 14, 16, 18, 18, 20, 4, 6, 6, 8, 24, 26, 22, 24, 18, 8, 8, 10 ], + "width": 220, + "height": 697 + } + }, + "hair-back/hair-back-6": { + "hair-back-6": { + "type": "mesh", + "uvs": [ 0, 0.00316, 0.19789, 0.00238, 0.24097, 0.10462, 0.42784, 0.26537, 0.57522, 0.34678, 0.68888, 0.40956, 0.80549, 0.47398, 0.94785, 0.55261, 0.89923, 0.64182, 0.84246, 0.74598, 1, 0.78199, 1, 0.82207, 0.92109, 0.94159, 0.77855, 1, 0.5892, 1, 0.4989, 0.90847, 0.38858, 0.79465, 0.39143, 0.71034, 0.43093, 0.64588, 0.41659, 0.56993, 0.34767, 0.47025, 0.25898, 0.39956, 0.12664, 0.29408, 0.0176, 0.20717, 0, 0.0579, 0.6061, 0.79944 ], + "triangles": [ 12, 13, 15, 13, 14, 15, 12, 15, 11, 11, 15, 9, 15, 16, 25, 15, 25, 9, 9, 10, 11, 25, 8, 9, 25, 16, 17, 8, 25, 17, 18, 8, 17, 18, 19, 8, 8, 19, 7, 19, 6, 7, 19, 20, 6, 20, 5, 6, 5, 21, 4, 5, 20, 21, 21, 3, 4, 21, 22, 3, 22, 23, 3, 23, 2, 3, 23, 24, 2, 24, 1, 2, 24, 0, 1 ], + "vertices": [ 1, 20, 167.22, -45.78, 1, 1, 20, 167.78, -89.31, 1, 3, 20, 94.68, -98.79, 0.86501, 26, 34.18, 148.31, 0.12237, 27, -434.47, 148.31, 0.01262, 3, 20, -20.26, -139.9, 0.73484, 26, 149.11, 189.42, 0.23236, 27, -319.53, 189.42, 0.03279, 3, 20, -78.47, -172.33, 0.6136, 26, 207.32, 221.85, 0.31854, 27, -261.32, 221.85, 0.06786, 3, 20, -123.36, -197.33, 0.50408, 26, 252.21, 246.85, 0.37201, 27, -216.43, 246.85, 0.12392, 3, 20, -169.41, -222.99, 0.40753, 26, 298.27, 272.51, 0.38856, 27, -170.38, 272.51, 0.20391, 3, 20, -225.64, -254.3, 0.32386, 26, 354.49, 303.82, 0.37034, 27, -114.15, 303.82, 0.3058, 3, 20, -289.42, -243.61, 0.25215, 26, 418.27, 293.13, 0.32576, 27, -50.37, 293.13, 0.42209, 3, 20, -363.9, -231.12, 0.20172, 26, 492.75, 280.64, 0.2532, 27, 24.1, 280.64, 0.54508, 3, 20, -389.64, -265.78, 0.16128, 26, 518.5, 315.3, 0.17872, 27, 49.85, 315.3, 0.65999, 3, 20, -418.3, -265.78, 0.10469, 26, 547.16, 315.3, 0.2824, 27, 78.51, 315.3, 0.61291, 3, 20, -503.76, -248.42, 0.07948, 26, 632.61, 297.94, 0.2824, 27, 163.97, 297.94, 0.63812, 3, 20, -545.52, -217.06, 0.06028, 26, 674.38, 266.58, 0.2824, 27, 205.73, 266.58, 0.65732, 3, 20, -545.52, -175.4, 0.06028, 26, 674.38, 224.92, 0.2824, 27, 205.73, 224.92, 0.65732, 3, 20, -480.08, -155.54, 0.15387, 26, 608.93, 205.05, 0.2824, 27, 140.29, 205.05, 0.56373, 3, 20, -398.7, -131.27, 0.25129, 26, 527.55, 180.79, 0.44103, 27, 58.91, 180.79, 0.30769, 3, 20, -338.41, -131.89, 0.2923, 26, 467.27, 181.41, 0.5779, 27, -1.38, 181.41, 0.1298, 3, 20, -292.32, -140.58, 0.37144, 26, 421.18, 190.1, 0.53386, 27, -47.47, 190.1, 0.0947, 3, 20, -238.02, -137.43, 0.45068, 26, 366.88, 186.95, 0.48817, 27, -101.77, 186.95, 0.06116, 3, 20, -166.75, -122.27, 0.53005, 26, 295.6, 171.78, 0.44014, 27, -173.04, 171.78, 0.0298, 2, 20, -116.21, -102.75, 0.60953, 26, 245.06, 152.27, 0.39047, 2, 20, -40.79, -73.64, 0.72471, 26, 169.64, 123.16, 0.27529, 2, 20, 21.35, -49.65, 0.8574, 26, 107.5, 99.17, 0.1426, 1, 20, 128.08, -45.78, 1, 3, 20, -402.12, -179.12, 0.19676, 26, 530.97, 228.64, 0.26884, 27, 62.33, 228.64, 0.5344 ], + "hull": 25, + "edges": [ 0, 48, 0, 2, 2, 4, 4, 6, 18, 20, 20, 22, 22, 24, 24, 26, 26, 28, 38, 40, 46, 48, 12, 14, 10, 12, 44, 46, 40, 42, 42, 44, 6, 8, 8, 10, 36, 38, 14, 16, 16, 18, 32, 34, 34, 36, 28, 30, 30, 32, 50, 16, 18, 30 ], + "width": 220, + "height": 715 + } + }, + "hat/feathers-back": { + "feathers-back": { + "type": "mesh", + "uvs": [ 0.99999, 0, 1, 0.33648, 0.94897, 0.50948, 0.82521, 0.929, 0.47931, 1, 0.33408, 0.78083, 0.14308, 0.49259, 0, 0.27667, 0, 0.08318, 0.4705, 0.03304, 0.78052, 0, 0.66524, 0.5216, 0.59356, 0.18309, 0.6294, 0.3623 ], + "triangles": [ 1, 10, 0, 12, 10, 1, 6, 9, 12, 6, 7, 9, 6, 12, 13, 1, 13, 12, 3, 11, 2, 5, 6, 11, 3, 4, 11, 4, 5, 11, 6, 13, 11, 11, 13, 2, 2, 13, 1, 7, 8, 9, 12, 9, 10 ], + "vertices": [ 2, 24, 96.3, -42.01, 0.6031, 23, 91.5, -153.41, 0.3969, 2, 24, 57.96, -40.97, 0.2748, 23, 56.76, -137.15, 0.7252, 2, 24, 38.4, -34.62, 0.2748, 23, 41.37, -123.52, 0.7252, 1, 23, 4.03, -90.47, 1, 1, 23, 13.42, -51.32, 1, 1, 23, 43.07, -46.92, 1, 2, 24, 42.82, 57.17, 0.2748, 23, 82.06, -41.13, 0.7252, 2, 24, 67.87, 72.8, 0.6031, 23, 111.27, -36.79, 0.3969, 2, 24, 89.92, 72.2, 0.6031, 23, 131.24, -46.15, 0.3969, 2, 24, 94.18, 18.43, 0.6031, 23, 113.68, -97.15, 0.3969, 2, 24, 96.98, -17, 0.6031, 23, 102.11, -130.75, 0.3969, 2, 24, 37.9, -2.25, 0.2748, 23, 53.83, -93.64, 0.7252, 2, 24, 76.7, 4.87, 0.6031, 23, 92.24, -102.6, 0.3969, 2, 24, 56.16, 1.34, 0.2748, 23, 72.01, -97.64, 0.7252 ], + "hull": 11, + "edges": [ 0, 2, 14, 16, 8, 10, 10, 12, 12, 14, 16, 18, 18, 20, 20, 0, 2, 4, 4, 6, 24, 26, 24, 18, 26, 22, 6, 8 ], + "width": 114, + "height": 114 + } + }, + "hat/feathers-front": { + "feathers-front": { + "type": "mesh", + "uvs": [ 0.3388, 0, 0.54158, 0.14344, 0.74297, 0.2859, 0.85306, 0.36378, 1, 0.46773, 1, 0.60515, 0.95944, 0.81123, 0.66438, 1, 0.58726, 1, 0.56097, 0.78724, 0.54426, 0.65203, 0.40317, 0.57511, 0.19125, 0.45957, 0, 0.3553, 0, 1.0E-5, 0.75902, 0.42138, 0.75203, 0.58249, 0.74507, 0.72959, 0.79778, 0.42193, 0.78067, 0.58361 ], + "triangles": [ 19, 4, 5, 5, 17, 19, 7, 8, 9, 7, 17, 6, 17, 7, 9, 6, 17, 5, 0, 13, 14, 12, 0, 1, 12, 13, 0, 11, 12, 1, 11, 1, 2, 17, 10, 16, 17, 16, 19, 19, 18, 4, 15, 2, 3, 11, 2, 15, 15, 10, 11, 19, 15, 18, 16, 15, 19, 16, 10, 15, 9, 10, 17, 18, 15, 3, 18, 3, 4 ], + "vertices": [ 1, 25, 92.8, -22.38, 1, 2, 24, 174.08, 16.41, 0.21011, 25, 45.04, -23.75, 0.78989, 2, 24, 142.48, -18.99, 0.41348, 25, -2.4, -25.11, 0.58652, 2, 24, 125.2, -38.35, 0.5954, 23, 119.46, -161.59, 0.4046, 2, 24, 102.14, -64.18, 0.5954, 23, 88.01, -176.07, 0.4046, 2, 24, 72.6, -63.38, 0.3969, 23, 61.25, -163.54, 0.6031, 2, 24, 28.51, -54.87, 0.1298, 23, 24.22, -138.15, 0.8702, 1, 23, 9.97, -72.84, 1, 1, 23, 15.86, -60.27, 1, 2, 24, 35.62, 16.68, 0.458, 23, 59.29, -75.37, 0.542, 3, 24, 64.76, 18.9, 0.51591, 25, -28.26, 57.4, 0.2824, 23, 86.9, -84.97, 0.20169, 2, 24, 81.98, 43.84, 0.5618, 25, 1.7, 62.01, 0.4382, 2, 24, 107.85, 81.29, 0.37966, 25, 46.68, 68.95, 0.62034, 2, 24, 131.2, 115.1, 0.19036, 25, 87.29, 75.21, 0.80964, 1, 25, 138.24, 18.29, 1, 2, 24, 113.28, -21.09, 0.76701, 25, -23.98, -5.33, 0.23299, 3, 24, 78.69, -18.89, 0.55872, 25, -46.15, 21.31, 0.2824, 23, 84.58, -125.18, 0.15888, 3, 24, 47.11, -16.78, 0.28286, 25, -66.31, 45.71, 0.3824, 23, 56.47, -110.64, 0.33474, 2, 24, 112.97, -28.06, 0.5954, 23, 112.36, -147.28, 0.4046, 2, 24, 78.31, -24.04, 0.3969, 23, 82.18, -129.75, 0.6031 ], + "hull": 15, + "edges": [ 8, 10, 10, 12, 12, 14, 14, 16, 28, 0, 26, 28, 24, 26, 0, 2, 2, 4, 20, 22, 22, 24, 16, 18, 18, 20, 4, 6, 6, 8 ], + "width": 180, + "height": 215 + } + }, + "hat/hat-back": { + "hat-back": { + "type": "mesh", + "uvs": [ 1, 1, 0, 1, 0, 0, 1, 0 ], + "triangles": [ 1, 3, 0, 1, 2, 3 ], + "vertices": [ 1, 23, -51.19, -50.19, 1, 2, 22, 56.23, -21.15, 0.2791, 23, 16.22, 93.82, 0.7209, 2, 22, 168.23, -21.15, 0.2791, 23, 117.65, 46.34, 0.7209, 1, 23, 50.25, -97.67, 1 ], + "hull": 4, + "edges": [ 0, 2, 2, 4, 4, 6, 0, 6 ], + "width": 159, + "height": 112 + } + }, + "hat/hat-front": { + "hat-front": { + "type": "mesh", + "uvs": [ 1, 1, 0, 1, 0, 0, 1, 0 ], + "triangles": [ 1, 2, 3, 1, 3, 0 ], + "vertices": [ 2, 28, 83.32, -0.11, 0.1628, 23, -118.89, -79.23, 0.8372, 2, 22, 7.23, 5.85, 0.2636, 23, -16.72, 139.05, 0.7364, 2, 22, 147.23, 5.85, 0.2636, 23, 110.08, 79.69, 0.7364, 2, 28, 223.32, -0.11, 0.1628, 23, 7.91, -138.58, 0.8372 ], + "hull": 4, + "edges": [ 0, 2, 2, 4, 4, 6, 0, 6 ], + "width": 241, + "height": 140 + } + }, + "stars/star1": { + "star-big": { "width": 44, "height": 60 }, + "star-medium": { "width": 14, "height": 20 }, + "star-small": { "width": 8, "height": 11 } + }, + "stars/star2": { + "star-big": { "width": 44, "height": 60 }, + "star-medium": { "width": 14, "height": 20 }, + "star-small": { "width": 8, "height": 11 } + }, + "stars/star3": { + "star-big": { "width": 44, "height": 60 }, + "star-medium": { "width": 14, "height": 20 }, + "star-small": { "width": 8, "height": 11 } + }, + "stars/star4": { + "star-big": { "width": 44, "height": 60 }, + "star-medium": { "width": 14, "height": 20 }, + "star-small": { "width": 8, "height": 11 } + }, + "stars/star5": { + "star-big": { "width": 44, "height": 60 }, + "star-medium": { "width": 14, "height": 20 }, + "star-small": { "width": 8, "height": 11 } + }, + "stars/star6": { + "star-big": { "width": 44, "height": 60 }, + "star-medium": { "width": 14, "height": 20 }, + "star-small": { "width": 8, "height": 11 } + } + } + } +], +"animations": { + "eyeblink": { + "bones": { + "eyelashes-top-front": { + "translate": [ + { + "curve": [ 0.061, 0, 0.071, -26.84, 0.029, 0, 0.071, 0 ] + }, + { + "time": 0.1, + "x": -26.84, + "curve": [ 0.282, -26.84, 0.244, 0, 0.183, 0, 0.25, 0 ] + }, + { "time": 0.3333 } + ] + }, + "eyelashes-top-back": { + "translate": [ + { + "curve": [ 0.061, 0, 0.071, -22.55, 0.029, 0, 0.071, 0 ] + }, + { + "time": 0.1, + "x": -22.55, + "curve": [ 0.282, -22.55, 0.244, 0, 0.183, 0, 0.25, 0 ] + }, + { "time": 0.3333 } + ] + }, + "eyelashes-down-front": { + "translate": [ + { + "curve": [ 0.061, 0, 0.071, 12.12, 0.029, 0, 0.071, 0 ] + }, + { + "time": 0.1, + "x": 12.12, + "curve": [ 0.282, 12.12, 0.244, 0, 0.183, 0, 0.25, 0 ] + }, + { "time": 0.3333 } + ] + }, + "eyelashes-down-back": { + "translate": [ + { + "curve": [ 0.061, 0, 0.071, 10.12, 0.029, 0, 0.071, 0 ] + }, + { + "time": 0.1, + "x": 10.12, + "curve": [ 0.282, 10.12, 0.244, 0, 0.183, 0, 0.25, 0 ] + }, + { "time": 0.3333 } + ] + }, + "pupil-front": { + "translate": [ + { + "curve": [ 0.061, 0, 0.071, -6.11, 0.029, 0, 0.071, 0 ] + }, + { + "time": 0.1, + "x": -6.11, + "curve": [ 0.282, -6.11, 0.244, 0, 0.183, 0, 0.25, 0 ] + }, + { "time": 0.3333 } + ], + "scale": [ + { + "curve": [ 0.061, 1, 0.071, 0.152, 0.029, 1, 0.071, 1 ] + }, + { + "time": 0.1, + "x": 0.152, + "curve": [ 0.282, 0.152, 0.244, 1, 0.183, 1, 0.25, 1 ] + }, + { "time": 0.3333 } + ] + }, + "pupil-back": { + "translate": [ + { + "curve": [ 0.061, 0, 0.071, -6.11, 0.029, 0, 0.071, 0 ] + }, + { + "time": 0.1, + "x": -6.11, + "curve": [ 0.282, -6.11, 0.244, 0, 0.183, 0, 0.25, 0 ] + }, + { "time": 0.3333 } + ], + "scale": [ + { + "curve": [ 0.061, 1, 0.071, 0.152, 0.029, 1, 0.071, 1 ] + }, + { + "time": 0.1, + "x": 0.152, + "curve": [ 0.282, 0.152, 0.244, 1, 0.183, 1, 0.25, 1 ] + }, + { "time": 0.3333 } + ] + } + } + }, + "eyeblink-long": { + "bones": { + "eyelashes-top-front": { + "translate": [ + { + "curve": [ 0.06, 0, 0.071, -26.84, 0.029, 0, 0.071, 0 ] + }, + { + "time": 0.1, + "x": -26.84, + "curve": [ 0.278, -26.84, 0.246, 0, 0.182, 0, 0.252, 0 ] + }, + { "time": 0.3333, "curve": "stepped" }, + { "time": 4.7 } + ] + }, + "eyelashes-top-back": { + "translate": [ + { + "curve": [ 0.06, 0, 0.071, -22.55, 0.029, 0, 0.071, 0 ] + }, + { + "time": 0.1, + "x": -22.55, + "curve": [ 0.278, -22.55, 0.246, 0, 0.182, 0, 0.252, 0 ] + }, + { "time": 0.3333 } + ] + }, + "eyelashes-down-front": { + "translate": [ + { + "curve": [ 0.06, 0, 0.071, 12.12, 0.029, 0, 0.071, 0 ] + }, + { + "time": 0.1, + "x": 12.12, + "curve": [ 0.278, 12.12, 0.246, 0, 0.182, 0, 0.252, 0 ] + }, + { "time": 0.3333 } + ] + }, + "eyelashes-down-back": { + "translate": [ + { + "curve": [ 0.06, 0, 0.071, 10.12, 0.029, 0, 0.071, 0 ] + }, + { + "time": 0.1, + "x": 10.12, + "curve": [ 0.278, 10.12, 0.246, 0, 0.182, 0, 0.252, 0 ] + }, + { "time": 0.3333 } + ] + }, + "pupil-front": { + "translate": [ + { + "curve": [ 0.06, 0, 0.071, -6.11, 0.029, 0, 0.071, 0 ] + }, + { + "time": 0.1, + "x": -6.11, + "curve": [ 0.278, -6.11, 0.246, 0, 0.182, 0, 0.252, 0 ] + }, + { "time": 0.3333 } + ], + "scale": [ + { + "curve": [ 0.06, 1, 0.071, 0.152, 0.029, 1, 0.071, 1 ] + }, + { + "time": 0.1, + "x": 0.152, + "curve": [ 0.278, 0.152, 0.246, 1, 0.182, 1, 0.252, 1 ] + }, + { "time": 0.3333 } + ] + }, + "pupil-back": { + "translate": [ + { + "curve": [ 0.06, 0, 0.071, -6.11, 0.029, 0, 0.071, 0 ] + }, + { + "time": 0.1, + "x": -6.11, + "curve": [ 0.278, -6.11, 0.246, 0, 0.182, 0, 0.252, 0 ] + }, + { "time": 0.3333 } + ], + "scale": [ + { + "curve": [ 0.06, 1, 0.071, 0.152, 0.029, 1, 0.071, 1 ] + }, + { + "time": 0.1, + "x": 0.152, + "curve": [ 0.278, 0.152, 0.246, 1, 0.182, 1, 0.252, 1 ] + }, + { "time": 0.3333 } + ] + } + } + }, + "stars": { + "slots": { + "stars/star1": { + "attachment": [ + { "time": 0.0667, "name": "star-small" }, + { "time": 0.1333, "name": "star-medium" }, + { "time": 0.2, "name": "star-big" }, + { "time": 0.2667, "name": "star-medium" }, + { "time": 0.3333, "name": "star-small" }, + { "time": 0.4 } + ] + }, + "stars/star2": { + "attachment": [ + { "time": 0.0667, "name": "star-small" }, + { "time": 0.1333, "name": "star-medium" }, + { "time": 0.2, "name": "star-big" }, + { "time": 0.2667, "name": "star-medium" }, + { "time": 0.3333, "name": "star-small" }, + { "time": 0.4 } + ] + }, + "stars/star3": { + "attachment": [ + { "time": 0.0667, "name": "star-small" }, + { "time": 0.1333, "name": "star-medium" }, + { "time": 0.2, "name": "star-big" }, + { "time": 0.2667, "name": "star-medium" }, + { "time": 0.3333, "name": "star-small" }, + { "time": 0.4 } + ] + }, + "stars/star4": { + "attachment": [ + { "time": 0.4, "name": "star-small" }, + { "time": 0.4667, "name": "star-medium" }, + { "time": 0.5333, "name": "star-big" }, + { "time": 0.6, "name": "star-medium" }, + { "time": 0.6667, "name": "star-small" }, + { "time": 0.7333 } + ] + }, + "stars/star5": { + "attachment": [ + { "time": 0.1667, "name": "star-small" }, + { "time": 0.2333, "name": "star-medium" }, + { "time": 0.3, "name": "star-big" }, + { "time": 0.3667, "name": "star-medium" }, + { "time": 0.4333, "name": "star-small" }, + { "time": 0.5 } + ] + }, + "stars/star6": { + "attachment": [ + { "time": 0.4, "name": "star-small" }, + { "time": 0.4667, "name": "star-medium" }, + { "time": 0.5333, "name": "star-big" }, + { "time": 0.6, "name": "star-medium" }, + { "time": 0.6667, "name": "star-small" }, + { "time": 0.7333 } + ] + } + } + }, + "swing": { + "slots": { + "stars/star1": { + "attachment": [ + { "time": 0.0667, "name": "star-small" }, + { "time": 0.1333, "name": "star-medium" }, + { "time": 0.2, "name": "star-big" }, + { "time": 0.2667, "name": "star-medium" }, + { "time": 0.3333, "name": "star-small" }, + { "time": 0.4 }, + { "time": 0.8, "name": "star-small" }, + { "time": 0.8667, "name": "star-medium" }, + { "time": 0.9333, "name": "star-big" }, + { "time": 1, "name": "star-medium" }, + { "time": 1.0667, "name": "star-small" }, + { "time": 1.1333 }, + { "time": 1.5333, "name": "star-small" }, + { "time": 1.6, "name": "star-medium" }, + { "time": 1.6667, "name": "star-big" }, + { "time": 1.7333, "name": "star-medium" }, + { "time": 1.8, "name": "star-small" }, + { "time": 1.8667 } + ] + }, + "stars/star2": { + "attachment": [ + { "time": 0.0667, "name": "star-small" }, + { "time": 0.1333, "name": "star-medium" }, + { "time": 0.2, "name": "star-big" }, + { "time": 0.2667, "name": "star-medium" }, + { "time": 0.3333, "name": "star-small" }, + { "time": 0.4 }, + { "time": 0.8, "name": "star-small" }, + { "time": 0.8667, "name": "star-medium" }, + { "time": 0.9333, "name": "star-big" }, + { "time": 1, "name": "star-medium" }, + { "time": 1.0667, "name": "star-small" }, + { "time": 1.1333 }, + { "time": 1.5333, "name": "star-small" }, + { "time": 1.6, "name": "star-medium" }, + { "time": 1.6667, "name": "star-big" }, + { "time": 1.7333, "name": "star-medium" }, + { "time": 1.8, "name": "star-small" }, + { "time": 1.8667 } + ] + }, + "stars/star3": { + "attachment": [ + { "time": 0.0667, "name": "star-small" }, + { "time": 0.1333, "name": "star-medium" }, + { "time": 0.2, "name": "star-big" }, + { "time": 0.2667, "name": "star-medium" }, + { "time": 0.3333, "name": "star-small" }, + { "time": 0.4 }, + { "time": 0.8, "name": "star-small" }, + { "time": 0.8667, "name": "star-medium" }, + { "time": 0.9333, "name": "star-big" }, + { "time": 1, "name": "star-medium" }, + { "time": 1.0667, "name": "star-small" }, + { "time": 1.1333 }, + { "time": 1.5333, "name": "star-small" }, + { "time": 1.6, "name": "star-medium" }, + { "time": 1.6667, "name": "star-big" }, + { "time": 1.7333, "name": "star-medium" }, + { "time": 1.8, "name": "star-small" }, + { "time": 1.8667 } + ] + }, + "stars/star4": { + "attachment": [ + { "time": 0.4, "name": "star-small" }, + { "time": 0.4667, "name": "star-medium" }, + { "time": 0.5333, "name": "star-big" }, + { "time": 0.6, "name": "star-medium" }, + { "time": 0.6667, "name": "star-small" }, + { "time": 0.7333 }, + { "time": 1.1333, "name": "star-small" }, + { "time": 1.2, "name": "star-medium" }, + { "time": 1.2667, "name": "star-big" }, + { "time": 1.3333, "name": "star-medium" }, + { "time": 1.4, "name": "star-small" }, + { "time": 1.4667 }, + { "time": 1.8667, "name": "star-small" }, + { "time": 1.9333, "name": "star-medium" }, + { "time": 2, "name": "star-big" }, + { "time": 2.0667, "name": "star-medium" }, + { "time": 2.1333, "name": "star-small" }, + { "time": 2.2 } + ] + }, + "stars/star5": { + "attachment": [ + { "time": 0.1667, "name": "star-small" }, + { "time": 0.2333, "name": "star-medium" }, + { "time": 0.3, "name": "star-big" }, + { "time": 0.3667, "name": "star-medium" }, + { "time": 0.4333, "name": "star-small" }, + { "time": 0.5 }, + { "time": 0.9, "name": "star-small" }, + { "time": 0.9667, "name": "star-medium" }, + { "time": 1.0333, "name": "star-big" }, + { "time": 1.1, "name": "star-medium" }, + { "time": 1.1667, "name": "star-small" }, + { "time": 1.2333 }, + { "time": 1.6333, "name": "star-small" }, + { "time": 1.7, "name": "star-medium" }, + { "time": 1.7667, "name": "star-big" }, + { "time": 1.8333, "name": "star-medium" }, + { "time": 1.9, "name": "star-small" }, + { "time": 1.9667 } + ] + }, + "stars/star6": { + "attachment": [ + { "time": 0.4, "name": "star-small" }, + { "time": 0.4667, "name": "star-medium" }, + { "time": 0.5333, "name": "star-big" }, + { "time": 0.6, "name": "star-medium" }, + { "time": 0.6667, "name": "star-small" }, + { "time": 0.7333 }, + { "time": 1.1333, "name": "star-small" }, + { "time": 1.2, "name": "star-medium" }, + { "time": 1.2667, "name": "star-big" }, + { "time": 1.3333, "name": "star-medium" }, + { "time": 1.4, "name": "star-small" }, + { "time": 1.4667 }, + { "time": 1.8667, "name": "star-small" }, + { "time": 1.9333, "name": "star-medium" }, + { "time": 2, "name": "star-big" }, + { "time": 2.0667, "name": "star-medium" }, + { "time": 2.1333, "name": "star-small" }, + { "time": 2.2 } + ] + } + }, + "bones": { + "swing-top": { + "rotate": [ + { + "value": -13.18, + "curve": [ 0.607, -13.18, 0.733, 15.86 ] + }, + { + "time": 1.1, + "value": 15.86, + "curve": [ 1.707, 15.86, 1.833, -13.18 ] + }, + { "time": 2.2, "value": -13.18 } + ] + }, + "swing-bottom": { + "rotate": [ + { + "value": 0.37, + "curve": [ 0.145, -6.53, 0.258, -13.18 ] + }, + { + "time": 0.4333, + "value": -13.18, + "curve": [ 1.04, -13.18, 1.166, 15.86 ] + }, + { + "time": 1.5333, + "value": 15.86, + "curve": [ 1.851, 15.86, 2.043, 7.96 ] + }, + { "time": 2.2, "value": 0.37 } + ] + }, + "body-up": { + "rotate": [ + { + "value": 11.88, + "curve": [ 0.368, 11.88, 0.732, -7.09 ] + }, + { + "time": 1.1, + "value": -7.09, + "curve": [ 1.468, -7.09, 1.832, 11.88 ] + }, + { "time": 2.2, "value": 11.88 } + ] + }, + "neck": { + "rotate": [ + { + "value": -14.54, + "curve": [ 0.357, -14.54, 0.709, 16.44 ] + }, + { + "time": 1.0667, + "value": 16.44, + "curve": [ 1.445, 16.44, 1.822, -14.54 ] + }, + { "time": 2.2, "value": -14.54 } + ] + }, + "face-control": { + "translate": [ + { "y": 14.53 }, + { "time": 1.0333, "x": -1.18, "y": -10.95 }, + { "time": 2.2, "y": 14.53 } + ] + }, + "pupil-front": { + "translate": [ + {}, + { "time": 1.1, "x": -7.23, "y": -2.49 }, + { "time": 2.2 } + ] + }, + "pupil-back": { + "translate": [ + {}, + { "time": 1.1, "x": -7.23, "y": -2.49 }, + { "time": 2.2 } + ] + }, + "eyelashes-top-front": { + "translate": [ + {}, + { "time": 1, "x": -7.38 }, + { "time": 2.2 } + ] + }, + "eyelashes-top-back": { + "translate": [ + {}, + { "time": 1, "x": -7.38 }, + { "time": 2.2 } + ] + }, + "mouth": { + "scale": [ + {}, + { "time": 0.9333, "x": 0.848, "y": 1.067 }, + { "time": 2.2 } + ] + }, + "face": { + "translate": [ + {}, + { "time": 0.6667, "x": -13.93, "y": -16.25 }, + { "time": 1.6, "x": 5.02, "y": -6.3 }, + { "time": 2.2 } + ] + }, + "wing-front-tip": { + "rotate": [ + { + "value": -5.65, + "curve": [ 0.148, -14.43, 0.293, -30.34 ] + }, + { + "time": 0.4667, + "value": -30.34, + "curve": [ 0.661, -30.34, 0.822, -11.79 ] + }, + { "time": 1 }, + { + "time": 1.5, + "value": 33.17, + "curve": [ 1.691, 33.17, 1.864, 0 ] + }, + { + "time": 2.0333, + "curve": [ 2.091, 0, 2.146, -2.29 ] + }, + { "time": 2.2, "value": -5.65 } + ] + }, + "wing-front": { + "rotate": [ + { "value": -28.71 }, + { "time": 1, "value": 12.5 }, + { "time": 2.2, "value": -28.71 } + ], + "scale": [ + { "y": 0.497 }, + { "time": 1 }, + { "time": 2.2, "y": 0.497 } + ] + }, + "wing-back": { + "rotate": [ + { + "value": 31.82, + "curve": [ 0.359, 31.82, 0.667, 15.27 ] + }, + { + "time": 1, + "value": 15.27, + "curve": [ 1.37, 15.27, 1.83, 31.82 ] + }, + { "time": 2.2, "value": 31.82 } + ], + "scale": [ + { + "x": 1.248, + "y": 0.376, + "curve": [ 0.359, 1.248, 0.667, 1, 0.359, 0.376, 0.667, 1 ] + }, + { + "time": 1, + "curve": [ 1.37, 1, 1.83, 1.248, 1.37, 1, 1.83, 0.376 ] + }, + { "time": 2.2, "x": 1.248, "y": 0.376 } + ] + }, + "wing-back-tip": { + "rotate": [ + { + "value": 3.37, + "curve": [ 0.148, 8.61, 0.293, 18.1 ] + }, + { + "time": 0.4667, + "value": 18.1, + "curve": [ 0.661, 18.1, 0.822, 10.98 ] + }, + { "time": 1 }, + { "time": 1.5667, "value": 11.59 }, + { "time": 2.2, "value": 3.37 } + ], + "scale": [ + { + "x": 1.122, + "curve": [ 0.157, 1.173, 0.295, 1.246, 0.157, 1, 0.295, 1 ] + }, + { + "time": 0.4667, + "x": 1.222, + "curve": [ 0.647, 1.198, 0.822, 0.499, 0.647, 1, 0.822, 1 ] + }, + { + "time": 1, + "x": 0.499, + "curve": [ 1.175, 0.499, 2.151, 1.105, 1.175, 1, 2.151, 1 ] + }, + { "time": 2.2, "x": 1.122 } + ] + }, + "cloud": { + "rotate": [ + { + "value": -0.49, + "curve": [ 0.135, -1.47, 0.268, -2.39 ] + }, + { + "time": 0.4, + "value": -2.78, + "curve": [ 0.445, -2.91, 0.489, -3 ] + }, + { + "time": 0.5333, + "value": -3, + "curve": [ 0.867, -3, 1.2, 3 ] + }, + { + "time": 1.5333, + "value": 3, + "curve": [ 1.756, 3, 1.98, 1.16 ] + }, + { "time": 2.2, "value": -0.49 } + ], + "translate": [ + { + "x": -150, + "curve": [ 0.557, -150, 0.55, 146.39, 0.333, 0, 0.667, 0 ] + }, + { + "time": 1, + "x": 150, + "curve": [ 1.668, 155.35, 1.8, -150, 1.4, 0, 1.8, 0 ] + }, + { "time": 2.2, "x": -150 } + ] + }, + "rope-back": { + "translate": [ + {}, + { "time": 1, "y": -1.11 }, + { "time": 2.2 } + ] + }, + "bench-front": { + "translate": [ + {}, + { "time": 1, "y": 120.63 }, + { "time": 2.2 } + ] + }, + "bench-back": { + "translate": [ + {}, + { "time": 1, "x": -11.37 }, + { "time": 2.2 } + ] + }, + "rope-front": { + "translate": [ + {}, + { "time": 1, "y": 91.13 }, + { "time": 2.2 } + ] + } + } + }, + "wind-idle": { + "slots": { + "stars/star1": { + "attachment": [ + { "time": 0.1333, "name": "star-small" }, + { "time": 0.2667, "name": "star-medium" }, + { "time": 0.4, "name": "star-big" }, + { "time": 0.5, "name": "star-medium" }, + { "time": 0.6333, "name": "star-small" }, + { "time": 0.7667 }, + { "time": 1.6667, "name": "star-small" }, + { "time": 1.7333, "name": "star-medium" }, + { "time": 1.8, "name": "star-big" }, + { "time": 1.8667, "name": "star-medium" }, + { "time": 1.9333, "name": "star-small" }, + { "time": 2 }, + { "time": 2.4667, "name": "star-small" }, + { "time": 2.5333, "name": "star-medium" }, + { "time": 2.5667, "name": "star-big" }, + { "time": 2.6333, "name": "star-medium" }, + { "time": 2.7, "name": "star-small" }, + { "time": 2.7667 }, + { "time": 3.4, "name": "star-small" }, + { "time": 3.5333, "name": "star-medium" }, + { "time": 3.6333, "name": "star-big" }, + { "time": 3.7667, "name": "star-medium" }, + { "time": 3.9, "name": "star-small" }, + { "time": 4.0333 }, + { "time": 4.9333, "name": "star-small" }, + { "time": 5, "name": "star-medium" }, + { "time": 5.0667, "name": "star-big" }, + { "time": 5.1333, "name": "star-medium" }, + { "time": 5.2, "name": "star-small" }, + { "time": 5.2667 }, + { "time": 5.7, "name": "star-small" }, + { "time": 5.7667, "name": "star-medium" }, + { "time": 5.8333, "name": "star-big" }, + { "time": 5.9, "name": "star-medium" }, + { "time": 5.9667, "name": "star-small" }, + { "time": 6.0333 }, + { "time": 6.6333, "name": "star-small" }, + { "time": 6.7333, "name": "star-medium" }, + { "time": 6.8667, "name": "star-big" }, + { "time": 7, "name": "star-medium" }, + { "time": 7.1333, "name": "star-small" }, + { "time": 7.2667 }, + { "time": 8.1667, "name": "star-small" }, + { "time": 8.2333, "name": "star-medium" }, + { "time": 8.3, "name": "star-big" }, + { "time": 8.3667, "name": "star-medium" }, + { "time": 8.4333, "name": "star-small" }, + { "time": 8.5 }, + { "time": 8.9333, "name": "star-small" }, + { "time": 9, "name": "star-medium" }, + { "time": 9.0667, "name": "star-big" }, + { "time": 9.1333, "name": "star-medium" }, + { "time": 9.2, "name": "star-small" }, + { "time": 9.2667 } + ] + }, + "stars/star2": { + "attachment": [ + { "time": 0.1333, "name": "star-small" }, + { "time": 0.2667, "name": "star-medium" }, + { "time": 0.4, "name": "star-big" }, + { "time": 0.5, "name": "star-medium" }, + { "time": 0.6333, "name": "star-small" }, + { "time": 0.7667 }, + { "time": 1.6667, "name": "star-small" }, + { "time": 1.7333, "name": "star-medium" }, + { "time": 1.8, "name": "star-big" }, + { "time": 1.8667, "name": "star-medium" }, + { "time": 1.9333, "name": "star-small" }, + { "time": 2 }, + { "time": 2.4667, "name": "star-small" }, + { "time": 2.5333, "name": "star-medium" }, + { "time": 2.5667, "name": "star-big" }, + { "time": 2.6333, "name": "star-medium" }, + { "time": 2.7, "name": "star-small" }, + { "time": 2.7667 }, + { "time": 3.4, "name": "star-small" }, + { "time": 3.5333, "name": "star-medium" }, + { "time": 3.6333, "name": "star-big" }, + { "time": 3.7667, "name": "star-medium" }, + { "time": 3.9, "name": "star-small" }, + { "time": 4.0333 }, + { "time": 4.9333, "name": "star-small" }, + { "time": 5, "name": "star-medium" }, + { "time": 5.0667, "name": "star-big" }, + { "time": 5.1333, "name": "star-medium" }, + { "time": 5.2, "name": "star-small" }, + { "time": 5.2667 }, + { "time": 5.7, "name": "star-small" }, + { "time": 5.7667, "name": "star-medium" }, + { "time": 5.8333, "name": "star-big" }, + { "time": 5.9, "name": "star-medium" }, + { "time": 5.9667, "name": "star-small" }, + { "time": 6.0333 }, + { "time": 6.6333, "name": "star-small" }, + { "time": 6.7333, "name": "star-medium" }, + { "time": 6.8667, "name": "star-big" }, + { "time": 7, "name": "star-medium" }, + { "time": 7.1333, "name": "star-small" }, + { "time": 7.2667 }, + { "time": 8.1667, "name": "star-small" }, + { "time": 8.2333, "name": "star-medium" }, + { "time": 8.3, "name": "star-big" }, + { "time": 8.3667, "name": "star-medium" }, + { "time": 8.4333, "name": "star-small" }, + { "time": 8.5 }, + { "time": 8.9333, "name": "star-small" }, + { "time": 9, "name": "star-medium" }, + { "time": 9.0667, "name": "star-big" }, + { "time": 9.1333, "name": "star-medium" }, + { "time": 9.2, "name": "star-small" }, + { "time": 9.2667 } + ] + }, + "stars/star3": { + "attachment": [ + { "time": 0.1333, "name": "star-small" }, + { "time": 0.2667, "name": "star-medium" }, + { "time": 0.4, "name": "star-big" }, + { "time": 0.5, "name": "star-medium" }, + { "time": 0.6333, "name": "star-small" }, + { "time": 0.7667 }, + { "time": 1.6667, "name": "star-small" }, + { "time": 1.7333, "name": "star-medium" }, + { "time": 1.8, "name": "star-big" }, + { "time": 1.8667, "name": "star-medium" }, + { "time": 1.9333, "name": "star-small" }, + { "time": 2 }, + { "time": 2.4667, "name": "star-small" }, + { "time": 2.5333, "name": "star-medium" }, + { "time": 2.5667, "name": "star-big" }, + { "time": 2.6333, "name": "star-medium" }, + { "time": 2.7, "name": "star-small" }, + { "time": 2.7667 }, + { "time": 3.4, "name": "star-small" }, + { "time": 3.5333, "name": "star-medium" }, + { "time": 3.6333, "name": "star-big" }, + { "time": 3.7667, "name": "star-medium" }, + { "time": 3.9, "name": "star-small" }, + { "time": 4.0333 }, + { "time": 4.9333, "name": "star-small" }, + { "time": 5, "name": "star-medium" }, + { "time": 5.0667, "name": "star-big" }, + { "time": 5.1333, "name": "star-medium" }, + { "time": 5.2, "name": "star-small" }, + { "time": 5.2667 }, + { "time": 5.7, "name": "star-small" }, + { "time": 5.7667, "name": "star-medium" }, + { "time": 5.8333, "name": "star-big" }, + { "time": 5.9, "name": "star-medium" }, + { "time": 5.9667, "name": "star-small" }, + { "time": 6.0333 }, + { "time": 6.6333, "name": "star-small" }, + { "time": 6.7333, "name": "star-medium" }, + { "time": 6.8667, "name": "star-big" }, + { "time": 7, "name": "star-medium" }, + { "time": 7.1333, "name": "star-small" }, + { "time": 7.2667 }, + { "time": 8.1667, "name": "star-small" }, + { "time": 8.2333, "name": "star-medium" }, + { "time": 8.3, "name": "star-big" }, + { "time": 8.3667, "name": "star-medium" }, + { "time": 8.4333, "name": "star-small" }, + { "time": 8.5 }, + { "time": 8.9333, "name": "star-small" }, + { "time": 9, "name": "star-medium" }, + { "time": 9.0667, "name": "star-big" }, + { "time": 9.1333, "name": "star-medium" }, + { "time": 9.2, "name": "star-small" }, + { "time": 9.2667 } + ] + }, + "stars/star4": { + "attachment": [ + { "time": 0.7667, "name": "star-small" }, + { "time": 0.9, "name": "star-medium" }, + { "time": 1.0333, "name": "star-big" }, + { "time": 1.1667, "name": "star-medium" }, + { "time": 1.2667, "name": "star-small" }, + { "time": 1.4 }, + { "time": 2, "name": "star-small" }, + { "time": 2.0667, "name": "star-medium" }, + { "time": 2.1333, "name": "star-big" }, + { "time": 2.2, "name": "star-medium" }, + { "time": 2.2667, "name": "star-small" }, + { "time": 2.3333 }, + { "time": 2.7667, "name": "star-small" }, + { "time": 2.8333, "name": "star-medium" }, + { "time": 2.9, "name": "star-big" }, + { "time": 2.9667, "name": "star-medium" }, + { "time": 3.0333, "name": "star-small" }, + { "time": 3.1 }, + { "time": 4.0333, "name": "star-small" }, + { "time": 4.1667, "name": "star-medium" }, + { "time": 4.3, "name": "star-big" }, + { "time": 4.4333, "name": "star-medium" }, + { "time": 4.5333, "name": "star-small" }, + { "time": 4.6333 }, + { "time": 5.2667, "name": "star-small" }, + { "time": 5.3333, "name": "star-medium" }, + { "time": 5.4, "name": "star-big" }, + { "time": 5.4667, "name": "star-medium" }, + { "time": 5.5333, "name": "star-small" }, + { "time": 5.6 }, + { "time": 6.0333, "name": "star-small" }, + { "time": 6.1, "name": "star-medium" }, + { "time": 6.1667, "name": "star-big" }, + { "time": 6.2333, "name": "star-medium" }, + { "time": 6.3, "name": "star-small" }, + { "time": 6.3667 }, + { "time": 7.2667, "name": "star-small" }, + { "time": 7.4, "name": "star-medium" }, + { "time": 7.5333, "name": "star-big" }, + { "time": 7.6667, "name": "star-medium" }, + { "time": 7.7333, "name": "star-small" }, + { "time": 7.8667 }, + { "time": 8.5, "name": "star-small" }, + { "time": 8.5667, "name": "star-medium" }, + { "time": 8.6333, "name": "star-big" }, + { "time": 8.7, "name": "star-medium" }, + { "time": 8.7333, "name": "star-small" }, + { "time": 8.8 }, + { "time": 9.2667, "name": "star-small" }, + { "time": 9.3333, "name": "star-medium" }, + { "time": 9.4, "name": "star-big" }, + { "time": 9.4667, "name": "star-medium" }, + { "time": 9.5333, "name": "star-small" }, + { "time": 9.6 } + ] + }, + "stars/star5": { + "attachment": [ + { "time": 0.3333, "name": "star-small" }, + { "time": 0.4667, "name": "star-medium" }, + { "time": 0.5667, "name": "star-big" }, + { "time": 0.7, "name": "star-medium" }, + { "time": 0.8333, "name": "star-small" }, + { "time": 0.9667 }, + { "time": 1.7667, "name": "star-small" }, + { "time": 1.8333, "name": "star-medium" }, + { "time": 1.9, "name": "star-big" }, + { "time": 1.9667, "name": "star-medium" }, + { "time": 2.0333, "name": "star-small" }, + { "time": 2.1 }, + { "time": 2.5667, "name": "star-small" }, + { "time": 2.6, "name": "star-medium" }, + { "time": 2.6667, "name": "star-big" }, + { "time": 2.7333, "name": "star-medium" }, + { "time": 2.8, "name": "star-small" }, + { "time": 2.8667 }, + { "time": 3.6, "name": "star-small" }, + { "time": 3.7, "name": "star-medium" }, + { "time": 3.8333, "name": "star-big" }, + { "time": 3.9667, "name": "star-medium" }, + { "time": 4.1, "name": "star-small" }, + { "time": 4.2333 }, + { "time": 5.0333, "name": "star-small" }, + { "time": 5.1, "name": "star-medium" }, + { "time": 5.1667, "name": "star-big" }, + { "time": 5.2333, "name": "star-medium" }, + { "time": 5.3, "name": "star-small" }, + { "time": 5.3667 }, + { "time": 5.8, "name": "star-small" }, + { "time": 5.8667, "name": "star-medium" }, + { "time": 5.9333, "name": "star-big" }, + { "time": 6, "name": "star-medium" }, + { "time": 6.0667, "name": "star-small" }, + { "time": 6.1333 }, + { "time": 6.8, "name": "star-small" }, + { "time": 6.9333, "name": "star-medium" }, + { "time": 7.0667, "name": "star-big" }, + { "time": 7.2, "name": "star-medium" }, + { "time": 7.3333, "name": "star-small" }, + { "time": 7.4667 }, + { "time": 8.2667, "name": "star-small" }, + { "time": 8.3333, "name": "star-medium" }, + { "time": 8.4, "name": "star-big" }, + { "time": 8.4667, "name": "star-medium" }, + { "time": 8.5333, "name": "star-small" }, + { "time": 8.6 }, + { "time": 9.0333, "name": "star-small" }, + { "time": 9.1, "name": "star-medium" }, + { "time": 9.1667, "name": "star-big" }, + { "time": 9.2333, "name": "star-medium" }, + { "time": 9.3, "name": "star-small" }, + { "time": 9.3667 } + ] + }, + "stars/star6": { + "attachment": [ + { "time": 0.7667, "name": "star-small" }, + { "time": 0.9, "name": "star-medium" }, + { "time": 1.0333, "name": "star-big" }, + { "time": 1.1667, "name": "star-medium" }, + { "time": 1.2667, "name": "star-small" }, + { "time": 1.4 }, + { "time": 2, "name": "star-small" }, + { "time": 2.0667, "name": "star-medium" }, + { "time": 2.1333, "name": "star-big" }, + { "time": 2.2, "name": "star-medium" }, + { "time": 2.2667, "name": "star-small" }, + { "time": 2.3333 }, + { "time": 2.7667, "name": "star-small" }, + { "time": 2.8333, "name": "star-medium" }, + { "time": 2.9, "name": "star-big" }, + { "time": 2.9667, "name": "star-medium" }, + { "time": 3.0333, "name": "star-small" }, + { "time": 3.1 }, + { "time": 4.0333, "name": "star-small" }, + { "time": 4.1667, "name": "star-medium" }, + { "time": 4.3, "name": "star-big" }, + { "time": 4.4333, "name": "star-medium" }, + { "time": 4.5333, "name": "star-small" }, + { "time": 4.6333 }, + { "time": 5.2667, "name": "star-small" }, + { "time": 5.3333, "name": "star-medium" }, + { "time": 5.4, "name": "star-big" }, + { "time": 5.4667, "name": "star-medium" }, + { "time": 5.5333, "name": "star-small" }, + { "time": 5.6 }, + { "time": 6.0333, "name": "star-small" }, + { "time": 6.1, "name": "star-medium" }, + { "time": 6.1667, "name": "star-big" }, + { "time": 6.2333, "name": "star-medium" }, + { "time": 6.3, "name": "star-small" }, + { "time": 6.3667 }, + { "time": 7.2667, "name": "star-small" }, + { "time": 7.4, "name": "star-medium" }, + { "time": 7.5333, "name": "star-big" }, + { "time": 7.6667, "name": "star-medium" }, + { "time": 7.7333, "name": "star-small" }, + { "time": 7.8667 }, + { "time": 8.5, "name": "star-small" }, + { "time": 8.5667, "name": "star-medium" }, + { "time": 8.6333, "name": "star-big" }, + { "time": 8.7, "name": "star-medium" }, + { "time": 8.7333, "name": "star-small" }, + { "time": 8.8 }, + { "time": 9.2667, "name": "star-small" }, + { "time": 9.3333, "name": "star-medium" }, + { "time": 9.4, "name": "star-big" }, + { "time": 9.4667, "name": "star-medium" }, + { "time": 9.5333, "name": "star-small" }, + { "time": 9.6 } + ] + } + }, + "bones": { + "body-up": { + "rotate": [ + { + "time": 2.6333, + "curve": [ 2.822, 1.06, 3.011, 3.17 ] + }, + { "time": 3.2, "value": 3.17, "curve": "stepped" }, + { + "time": 9, + "value": 3.17, + "curve": [ 9.2, 3.17, 9.4, 1.06 ] + }, + { + "time": 9.6, + "curve": [ 9.611, -0.06, 9.622, 0 ] + }, + { "time": 9.6333 } + ], + "translate": [ + { + "curve": [ 0.311, -1.37, 0.624, 10, 0.311, 0, 0.624, 0 ] + }, + { + "time": 0.9333, + "x": 10, + "curve": [ 1.691, 10, 2.444, 0, 1.691, 0, 2.444, 0 ] + }, + { + "time": 3.2, + "curve": [ 3.509, 0, 3.824, 10, 3.509, 0, 3.824, 0 ] + }, + { + "time": 4.1333, + "x": 10, + "curve": [ 4.891, 10, 5.642, 3.33, 4.891, 0, 5.642, 0 ] + }, + { "time": 6.4, "curve": "stepped" }, + { + "time": 6.4333, + "curve": [ 6.743, 0, 7.057, 10, 6.743, 0, 7.057, 0 ] + }, + { + "time": 7.3667, + "x": 10, + "curve": [ 8.124, 10, 8.876, 3.33, 8.124, 0, 8.876, 0 ] + }, + { "time": 9.6333 } + ] + }, + "wing-front": { + "rotate": [ + { "time": 0.8333 }, + { "time": 1.7333, "value": -4.1 }, + { "time": 2.6667 }, + { "time": 3.0333, "value": -28.71 }, + { "time": 3.3667, "curve": "stepped" }, + { "time": 3.4667 }, + { "time": 4.0333, "value": -28.71 }, + { "time": 4.7333, "curve": "stepped" }, + { + "time": 5.8667, + "curve": [ 6.256, -1.37, 6.644, -4.1 ] + }, + { + "time": 7.0333, + "value": -4.1, + "curve": [ 7.478, -4.1, 7.922, -1.37 ] + }, + { "time": 8.3667 }, + { "time": 8.9333, "value": -28.71 }, + { "time": 9.6 } + ], + "scale": [ + { "time": 0.8333 }, + { "time": 1.7333, "y": 0.928 }, + { "time": 2.6667 }, + { "time": 3.0333, "y": 0.497 }, + { "time": 3.3667, "curve": "stepped" }, + { "time": 3.4667 }, + { "time": 4.0333, "y": 0.497 }, + { "time": 4.7333, "curve": "stepped" }, + { + "time": 5.8667, + "curve": [ 6.256, 1, 6.644, 1, 6.256, 0.976, 6.644, 0.928 ] + }, + { + "time": 7.0333, + "y": 0.928, + "curve": [ 7.478, 1, 7.922, 1, 7.478, 0.928, 7.922, 0.976 ] + }, + { "time": 8.3667 }, + { "time": 8.9333, "y": 0.497 }, + { "time": 9.6 } + ] + }, + "wing-front-tip": { + "rotate": [ + { "time": 0.9667 }, + { + "time": 2.0667, + "value": -7.42, + "curve": [ 2.097, -3.69, 2.451, -6.54 ] + }, + { "time": 2.6667 }, + { + "time": 2.8333, + "value": 33.17, + "curve": [ 2.891, 33.17, 2.916, 0 ] + }, + { + "time": 2.9667, + "curve": [ 3.029, 0, 3.128, -30.34 ] + }, + { + "time": 3.2, + "value": -30.34, + "curve": [ 3.258, -30.34, 3.317, 0 ] + }, + { "time": 3.3667, "curve": "stepped" }, + { "time": 3.4667 }, + { + "time": 3.6667, + "value": 33.17, + "curve": [ 3.755, 33.17, 3.824, 0 ] + }, + { + "time": 3.9333, + "curve": [ 4.067, 0, 4.245, -30.34 ] + }, + { + "time": 4.4, + "value": -30.34, + "curve": [ 4.525, -30.34, 4.631, 0 ] + }, + { "time": 4.7333, "curve": "stepped" }, + { + "time": 6.1333, + "curve": [ 6.522, -2.47, 7.24, -14.83 ] + }, + { + "time": 7.3, + "value": -7.42, + "curve": [ 7.331, -3.63, 7.969, -6.64 ] + }, + { "time": 8.3667 }, + { + "time": 8.6333, + "value": 33.17, + "curve": [ 8.731, 33.17, 8.78, 0 ] + }, + { + "time": 8.8667, + "curve": [ 8.973, 0, 9.144, -30.34 ] + }, + { + "time": 9.2667, + "value": -30.34, + "curve": [ 9.366, -30.34, 9.485, 0 ] + }, + { "time": 9.6 } + ] + }, + "wing-back-tip": { + "rotate": [ + { "time": 0.9667 }, + { + "time": 2.0667, + "value": 4.42, + "curve": [ 2.097, 2.2, 2.451, 3.9 ] + }, + { "time": 2.6667 }, + { + "time": 2.8667, + "value": -11.49, + "curve": [ 2.87, -11.49, 2.922, 0 ] + }, + { + "time": 2.9667, + "curve": [ 3.029, 0, 3.128, 18.1 ] + }, + { + "time": 3.2, + "value": 18.1, + "curve": [ 3.258, 18.1, 3.317, 0 ] + }, + { "time": 3.3667, "curve": "stepped" }, + { "time": 3.4667 }, + { + "time": 3.7, + "value": -11.49, + "curve": [ 3.705, -11.49, 3.837, 0 ] + }, + { + "time": 3.9333, + "curve": [ 4.067, 0, 4.245, 18.1 ] + }, + { + "time": 4.4, + "value": 18.1, + "curve": [ 4.525, 18.1, 4.631, 0 ] + }, + { "time": 4.7333, "curve": "stepped" }, + { + "time": 6.1333, + "curve": [ 6.522, 1.47, 7.24, 8.85 ] + }, + { + "time": 7.3, + "value": 4.42, + "curve": [ 7.331, 2.17, 7.969, 3.96 ] + }, + { "time": 8.3667 }, + { + "time": 8.6333, + "value": -11.49, + "curve": [ 8.639, -11.49, 8.79, 0 ] + }, + { + "time": 8.8667, + "curve": [ 8.973, 0, 9.144, 18.1 ] + }, + { + "time": 9.2667, + "value": 18.1, + "curve": [ 9.366, 18.1, 9.485, 0 ] + }, + { "time": 9.6 } + ], + "scale": [ + { "time": 0.9667 }, + { + "time": 2.0667, + "x": 1.043, + "curve": [ 2.096, 1.021, 2.451, 1, 2.096, 1, 2.451, 1 ] + }, + { + "time": 2.6667, + "curve": [ 2.718, 1, 2.816, 0.807, 2.718, 1, 2.816, 1 ] + }, + { + "time": 2.8667, + "x": 0.807, + "curve": [ 2.912, 0.807, 2.923, 1.061, 2.912, 1, 2.923, 1 ] + }, + { + "time": 2.9667, + "x": 1.081, + "curve": [ 3.037, 1.112, 3.131, 1.254, 3.037, 1, 3.131, 1 ] + }, + { + "time": 3.2, + "x": 1.222, + "curve": [ 3.254, 1.198, 3.317, 1, 3.254, 1, 3.317, 1 ] + }, + { "time": 3.3667, "curve": "stepped" }, + { + "time": 3.4667, + "curve": [ 3.545, 1, 3.623, 0.807, 3.545, 1, 3.623, 1 ] + }, + { + "time": 3.7, + "x": 0.807, + "curve": [ 3.769, 0.807, 3.84, 1.061, 3.769, 1, 3.84, 1 ] + }, + { + "time": 3.9333, + "x": 1.081, + "curve": [ 4.085, 1.112, 4.252, 1.254, 4.085, 1, 4.252, 1 ] + }, + { + "time": 4.4, + "x": 1.222, + "curve": [ 4.517, 1.198, 4.618, 1, 4.517, 1, 4.618, 1 ] + }, + { "time": 4.7333, "curve": "stepped" }, + { + "time": 6.1333, + "curve": [ 6.522, 1.014, 7.244, 1.085, 6.522, 1, 6.911, 1 ] + }, + { + "time": 7.3, + "x": 1.043, + "curve": [ 7.329, 1.02, 7.969, 1, 7.329, 1, 7.969, 1 ] + }, + { + "time": 8.3667, + "curve": [ 8.454, 1, 8.548, 0.807, 8.454, 1, 8.548, 1 ] + }, + { + "time": 8.6333, + "x": 0.807, + "curve": [ 8.71, 0.807, 8.793, 1.061, 8.71, 1, 8.793, 1 ] + }, + { + "time": 8.8667, + "x": 1.081, + "curve": [ 8.987, 1.112, 9.149, 1.254, 8.987, 1, 9.149, 1 ] + }, + { + "time": 9.2667, + "x": 1.222, + "curve": [ 9.359, 1.198, 9.47, 1, 9.359, 1, 9.47, 1 ] + }, + { "time": 9.6 } + ] + }, + "wing-back": { + "rotate": [ + { "time": 0.8333 }, + { + "time": 1.9333, + "value": 1.94, + "curve": [ 1.967, 0.82, 2.422, 0 ] + }, + { + "time": 2.6667, + "curve": [ 2.778, 0, 2.922, 31.82 ] + }, + { + "time": 3.0333, + "value": 31.82, + "curve": [ 3.141, 31.82, 3.254, 0 ] + }, + { "time": 3.3667, "curve": "stepped" }, + { + "time": 3.4667, + "curve": [ 3.637, 0, 3.795, 31.82 ] + }, + { + "time": 4.0333, + "value": 31.82, + "curve": [ 4.265, 31.82, 4.502, 0 ] + }, + { "time": 4.7333, "curve": "stepped" }, + { + "time": 5.8667, + "curve": [ 6.256, 0.65, 6.975, 3.88 ] + }, + { + "time": 7.0333, + "value": 1.94, + "curve": [ 7.067, 0.82, 7.922, 0 ] + }, + { + "time": 8.3667, + "curve": [ 8.556, 0, 8.744, 31.82 ] + }, + { + "time": 8.9333, + "value": 31.82, + "curve": [ 9.117, 31.82, 9.34, 0 ] + }, + { "time": 9.6 } + ], + "scale": [ + { "time": 0.8333 }, + { + "time": 1.9333, + "x": 1.015, + "y": 0.962, + "curve": [ 1.967, 1.006, 2.422, 1, 1.967, 0.984, 2.422, 1 ] + }, + { + "time": 2.6667, + "curve": [ 2.778, 1, 2.922, 1.248, 2.778, 1, 2.922, 0.376 ] + }, + { + "time": 3.0333, + "x": 1.248, + "y": 0.376, + "curve": [ 3.141, 1.248, 3.254, 1, 3.141, 0.376, 3.254, 1 ] + }, + { "time": 3.3667, "curve": "stepped" }, + { + "time": 3.4667, + "curve": [ 3.637, 1, 3.795, 1.248, 3.637, 1, 3.795, 0.376 ] + }, + { + "time": 4.0333, + "x": 1.248, + "y": 0.376, + "curve": [ 4.265, 1.248, 4.502, 1, 4.265, 0.376, 4.502, 1 ] + }, + { "time": 4.7333, "curve": "stepped" }, + { + "time": 5.8667, + "curve": [ 6.256, 1.005, 6.975, 1.03, 6.256, 0.987, 6.975, 0.924 ] + }, + { + "time": 7.0333, + "x": 1.015, + "y": 0.962, + "curve": [ 7.067, 1.006, 7.922, 1, 7.067, 0.984, 7.922, 1 ] + }, + { + "time": 8.3667, + "curve": [ 8.556, 1, 8.744, 1.248, 8.556, 1, 8.744, 0.376 ] + }, + { + "time": 8.9333, + "x": 1.248, + "y": 0.376, + "curve": [ 9.117, 1.248, 9.34, 1, 9.117, 0.376, 9.34, 1 ] + }, + { "time": 9.6 } + ] + }, + "pupil-front": { + "translate": [ + { + "x": -9.97, + "curve": [ 0.033, -9.97, 0.067, -6.11, 0.033, 0, 0.067, 0 ] + }, + { + "time": 0.1, + "x": -6.11, + "curve": [ 0.282, -6.11, 0.256, -9.97, 0.183, 0, 0.256, 0 ] + }, + { "time": 0.3333, "x": -9.97, "curve": "stepped" }, + { "time": 1.4333, "x": -9.97 }, + { "time": 1.6333, "x": -9.97, "y": 5.36, "curve": "stepped" }, + { "time": 6.4667, "x": -9.97, "y": 5.36 }, + { "time": 6.7667, "x": -9.97 } + ], + "scale": [ + { + "curve": [ 0.033, 1, 0.071, 0.152, 0.033, 1, 0.071, 1 ] + }, + { + "time": 0.1, + "x": 0.152, + "curve": [ 0.282, 0.152, 0.244, 1, 0.183, 1, 0.25, 1 ] + }, + { "time": 0.3333 } + ] + }, + "pupil-back": { + "translate": [ + { + "x": -8.93, + "curve": [ 0.033, -8.93, 0.067, -6.11, 0.033, 0, 0.067, 0 ] + }, + { + "time": 0.1, + "x": -6.11, + "curve": [ 0.282, -6.11, 0.256, -8.93, 0.183, 0, 0.256, 0 ] + }, + { "time": 0.3333, "x": -8.93, "curve": "stepped" }, + { "time": 1.4333, "x": -8.93 }, + { "time": 1.6333, "x": -8.93, "y": 3.83, "curve": "stepped" }, + { "time": 6.4667, "x": -8.93, "y": 3.83 }, + { "time": 6.7667, "x": -8.93 } + ], + "scale": [ + { + "curve": [ 0.033, 1, 0.071, 0.152, 0.033, 1, 0.071, 1 ] + }, + { + "time": 0.1, + "x": 0.152, + "curve": [ 0.282, 0.152, 0.244, 1, 0.183, 1, 0.25, 1 ] + }, + { "time": 0.3333 } + ] + }, + "eyelashes-top-front": { + "translate": [ + { + "x": -15.36, + "y": 1.57, + "curve": [ 0.033, -15.36, 0.067, -26.84, 0.033, 1.57, 0.067, 0 ] + }, + { + "time": 0.1, + "x": -26.84, + "curve": [ 0.282, -26.84, 0.256, -10.38, 0.183, 0, 0.256, 1.06 ] + }, + { "time": 0.3333, "x": -10.38, "y": 1.06, "curve": "stepped" }, + { "time": 8.3667, "x": -10.38, "y": 1.06 }, + { "time": 8.8667, "x": -15.36, "y": 1.57 } + ] + }, + "eyelashes-top-back": { + "translate": [ + { + "x": -14.46, + "y": -3.29, + "curve": [ 0.033, -14.46, 0.067, -22.55, 0.033, -3.29, 0.067, 0 ] + }, + { + "time": 0.1, + "x": -22.55, + "curve": [ 0.282, -22.55, 0.256, -9.45, 0.183, 0, 0.256, -3.29 ] + }, + { "time": 0.3333, "x": -9.45, "y": -3.29, "curve": "stepped" }, + { "time": 8.3667, "x": -9.45, "y": -3.29 }, + { "time": 8.8667, "x": -14.46, "y": -3.29 } + ] + }, + "face-control": { + "translate": [ + { "x": -2.21, "curve": "stepped" }, + { "time": 1.4, "x": -2.21 }, + { "time": 1.8333, "x": -2.21, "y": 11.22 }, + { "time": 2.6, "x": -2.21, "y": 12.66 }, + { "time": 2.8667, "x": -6.06, "y": 13.01 }, + { "time": 3.3, "x": -2.21, "y": 13.4 }, + { "time": 6.6333, "x": -2.21, "y": 11.22 }, + { "time": 6.8, "x": -5.12, "y": 4.99 }, + { "time": 6.9333, "x": -2.21 } + ] + }, + "face": { + "rotate": [ + { "value": -15.25, "curve": "stepped" }, + { + "time": 2.5, + "value": -15.25, + "curve": [ 2.744, -13.13, 2.989, -8.89 ] + }, + { "time": 3.2333, "value": -8.89, "curve": "stepped" }, + { + "time": 8.2, + "value": -8.89, + "curve": [ 8.544, -8.89, 8.889, -15.25 ] + }, + { "time": 9.2333, "value": -15.25 } + ] + }, + "hair-back": { + "rotate": [ + { "value": 12.31, "curve": "stepped" }, + { "time": 2.5, "value": 12.31 }, + { "time": 3.2, "value": 7.32, "curve": "stepped" }, + { "time": 8.5333, "value": 7.32 }, + { "time": 9.5667, "value": 12.31 } + ] + }, + "fringe-side-front": { + "rotate": [ + { "value": 6.43, "curve": "stepped" }, + { "time": 2.5, "value": 6.43 }, + { "time": 3.2, "value": 6.92, "curve": "stepped" }, + { "time": 8.5333, "value": 6.92 }, + { "time": 9.5667, "value": 6.43 } + ] + }, + "fringe-side-back": { + "rotate": [ + { "value": 6.43, "curve": "stepped" }, + { "time": 2.5, "value": 6.43 }, + { "time": 3.2, "value": 6.92, "curve": "stepped" }, + { "time": 8.5333, "value": 6.92 }, + { "time": 9.5667, "value": 6.43 } + ] + }, + "leg-front-down": { + "rotate": [ + { "value": -25.69, "curve": "stepped" }, + { + "time": 2.6333, + "value": -25.69, + "curve": [ 2.967, -22.72, 3.3, -16.78 ] + }, + { "time": 3.6333, "value": -16.78, "curve": "stepped" }, + { + "time": 7.3667, + "value": -16.78, + "curve": [ 7.689, -16.78, 8.011, -22.72 ] + }, + { + "time": 8.3333, + "value": -25.69, + "curve": [ 8.767, -29.68, 9.2, -25.69 ] + }, + { "time": 9.6333, "value": -25.69 } + ] + }, + "leg-back-down": { + "rotate": [ + { "value": -31.75 } + ] + }, + "eyelashes-down-front": { + "translate": [ + { + "curve": [ 0.033, 0, 0.071, 12.12, 0.033, 0, 0.071, 0 ] + }, + { + "time": 0.1, + "x": 12.12, + "curve": [ 0.282, 12.12, 0.244, 0, 0.183, 0, 0.25, 0 ] + }, + { "time": 0.3333 } + ] + }, + "eyelashes-down-back": { + "translate": [ + { + "curve": [ 0.033, 0, 0.071, 10.12, 0.033, 0, 0.071, 0 ] + }, + { + "time": 0.1, + "x": 10.12, + "curve": [ 0.282, 10.12, 0.244, 0, 0.183, 0, 0.25, 0 ] + }, + { "time": 0.3333 } + ] + }, + "swing-top": { + "rotate": [ + { + "curve": [ 0.244, 0, 0.489, 0 ] + }, + { + "time": 0.7333, + "value": -0.11, + "curve": [ 0.989, -0.23, 1.244, -1.74 ] + }, + { + "time": 1.5, + "value": -1.74, + "curve": [ 1.744, -1.74, 1.989, 0.52 ] + }, + { + "time": 2.2333, + "value": 0.52, + "curve": [ 2.389, 0.52, 2.544, -0.61 ] + }, + { + "time": 2.7, + "value": -0.61, + "curve": [ 2.9, -0.61, 3.1, 1.19 ] + }, + { + "time": 3.3, + "value": 1.19, + "curve": [ 3.522, 1.19, 3.744, 1.19 ] + }, + { + "time": 3.9667, + "value": 0.66, + "curve": [ 4.344, -0.24, 4.722, -3.51 ] + }, + { + "time": 5.1, + "value": -3.51, + "curve": [ 5.211, -3.51, 5.322, -3.39 ] + }, + { + "time": 5.4333, + "value": -3.26, + "curve": [ 5.644, -3, 5.856, -2.71 ] + }, + { + "time": 6.0667, + "value": -2.32, + "curve": [ 6.356, -1.77, 6.644, -0.44 ] + }, + { + "time": 6.9333, + "value": -0.44, + "curve": [ 7.111, -0.44, 7.289, -0.82 ] + }, + { + "time": 7.4667, + "value": -0.82, + "curve": [ 7.811, -0.82, 8.156, 4.18 ] + }, + { + "time": 8.5, + "value": 4.18, + "curve": [ 8.867, 4.18, 9.233, 1.39 ] + }, + { + "time": 9.6, + "curve": [ 9.611, -0.04, 9.622, 0 ] + }, + { "time": 9.6333 } + ] + }, + "cloud": { + "translate": [ + { + "curve": [ 0.356, 0, 0.711, -11.64, 0.356, 0, 0.711, 0 ] + }, + { + "time": 1.0667, + "x": -11.64, + "curve": [ 1.5, -11.64, 1.933, 17.3, 1.5, 0, 1.933, 0 ] + }, + { + "time": 2.3667, + "x": 17.3, + "curve": [ 2.944, 17.3, 3.522, 17.3, 2.944, 0, 3.522, 0 ] + }, + { + "time": 4.1, + "x": 13.15, + "curve": [ 4.444, 10.68, 4.789, -11.93, 4.444, 0, 4.789, 0 ] + }, + { + "time": 5.1333, + "x": -12.61, + "curve": [ 5.878, -14.07, 6.622, -14.07, 5.878, 0, 6.622, 0 ] + }, + { + "time": 7.3667, + "x": -14.07, + "curve": [ 7.689, -14.07, 8.011, 19.19, 7.689, 0, 8.011, 0 ] + }, + { + "time": 8.3333, + "x": 19.19, + "curve": [ 8.756, 19.19, 9.178, 6.4, 8.756, 0, 9.178, 0 ] + }, + { + "time": 9.6, + "curve": [ 9.611, -0.17, 9.622, 0, 9.611, 0, 9.622, 0 ] + }, + { "time": 9.6333 } + ] + }, + "arm-front-up-holder": { + "translate": [ + { "time": 2 }, + { "time": 3.6667, "x": -1.79, "y": -23.94, "curve": "stepped" }, + { "time": 7.8667, "x": -1.79, "y": -23.94 }, + { "time": 9.0667 } + ] + }, + "bench-back": { + "translate": [ + { + "x": 8.04, + "curve": [ 0.156, 8.04, 0.311, 0, 0.156, 0, 0.311, 0 ] + }, + { + "time": 0.4667, + "curve": [ 0.822, 0, 1.178, -11.64, 0.822, 0, 1.178, 0 ] + }, + { + "time": 1.5333, + "x": -11.64, + "curve": [ 1.967, -11.64, 2.4, 17.3, 1.967, 0, 2.4, 0 ] + }, + { + "time": 2.8333, + "x": 17.3, + "curve": [ 3.411, 17.3, 3.989, 17.3, 3.411, 0, 3.989, 0 ] + }, + { + "time": 4.5667, + "x": 13.15, + "curve": [ 4.911, 10.68, 5.256, -11.93, 4.911, 0, 5.256, 0 ] + }, + { + "time": 5.6, + "x": -12.61, + "curve": [ 6.344, -14.07, 7.089, -14.07, 6.344, 0, 7.089, 0 ] + }, + { + "time": 7.8333, + "x": -14.07, + "curve": [ 8.156, -14.07, 8.478, 19.19, 8.156, 0, 8.478, 0 ] + }, + { + "time": 8.8, + "x": 19.19, + "curve": [ 9.079, 19.19, 9.267, 8.04, 9.079, 0, 9.357, 0 ] + }, + { "time": 9.6333, "x": 8.04 } + ] + } + }, + "physics": { + "girl/feathers-front": { + "wind": [ + { "value": -15.8 }, + { "time": 0.7667, "value": -33.3 }, + { "time": 1.5333, "curve": "stepped" }, + { "time": 4.9 }, + { "time": 5.5, "value": -19.3 }, + { "time": 5.9667, "value": -5.7 }, + { "time": 6.8, "value": -15.7 }, + { "time": 7.9333 }, + { "time": 8.7667, "value": 8.6 }, + { "time": 9.6333, "value": -15.8 } + ] + }, + "girl/feathers-front-top": { + "wind": [ + { "value": -15.8 }, + { "time": 0.7667, "value": -33.3 }, + { "time": 1.5333, "curve": "stepped" }, + { "time": 4.9 }, + { "time": 5.5, "value": -19.3 }, + { "time": 5.9667, "value": -5.7 }, + { "time": 6.8, "value": -15.7 }, + { "time": 7.9333 }, + { "time": 8.7667, "value": 8.6 }, + { "time": 9.6333, "value": -15.8 } + ] + }, + "girl/hair/fringe-side-back": { + "wind": [ + { "value": -15.8 }, + { "time": 0.7667, "value": -33.3 }, + { "time": 1.5333, "curve": "stepped" }, + { "time": 4.9 }, + { "time": 5.5, "value": -19.3 }, + { "time": 5.9667, "value": -5.7 }, + { "time": 6.8, "value": -15.7 }, + { "time": 7.9333 }, + { "time": 8.7667, "value": 8.6 }, + { "time": 9.6333, "value": -15.8 } + ] + }, + "girl/hair/fringe-side-front": { + "wind": [ + { "value": -15.8 }, + { "time": 0.7667, "value": -33.3 }, + { "time": 1.5333, "curve": "stepped" }, + { "time": 4.9 }, + { "time": 5.5, "value": -19.3 }, + { "time": 5.9667, "value": -5.7 }, + { "time": 6.8, "value": -15.7 }, + { "time": 7.9333 }, + { "time": 8.7667, "value": 8.6 }, + { "time": 9.6333, "value": -15.8 } + ] + }, + "girl/hair/hair-back": { + "wind": [ + { + "value": -4.3, + "curve": [ 0.189, -4.3, 0.378, -14.3 ] + }, + { + "time": 0.5667, + "value": -14.3, + "curve": [ 0.911, -14.3, 1.256, -6.3803 ] + }, + { + "time": 1.6, + "value": -4.3, + "curve": [ 2.1, -1.2803, 2.6, 1 ] + }, + { + "time": 3.1, + "value": 1, + "curve": [ 3.578, 1, 4.056, 1 ] + }, + { + "time": 4.5333, + "curve": [ 4.822, -0.6047, 5.111, -10 ] + }, + { + "time": 5.4, + "value": -10, + "curve": [ 5.667, -10, 5.933, -5 ] + }, + { + "time": 6.2, + "value": -5, + "curve": [ 6.389, -5, 6.578, -7 ] + }, + { + "time": 6.7667, + "value": -7, + "curve": [ 7.178, -7, 7.589, -2.9126 ] + }, + { + "time": 8, + "value": 1, + "curve": [ 8.233, 3.2207, 8.467, 11.4 ] + }, + { + "time": 8.7, + "value": 11.4, + "curve": [ 8.967, 11.4, 9.233, -4.3 ] + }, + { "time": 9.5, "value": -4.3 } + ] + }, + "girl/legs/sock-bow": { + "wind": [ + { "value": -15.8 }, + { "time": 0.7667, "value": -33.3 }, + { "time": 1.5333, "curve": "stepped" }, + { "time": 4.9 }, + { "time": 5.5, "value": -19.3 }, + { "time": 5.9667, "value": -5.7 }, + { "time": 6.8, "value": -15.7 }, + { "time": 7.9333 }, + { "time": 8.7667, "value": 8.6 }, + { "time": 9.6333, "value": -15.8 } + ] + }, + "girl/skirt/skirt-back": { + "wind": [ + {}, + { "time": 0.6, "value": -8.6 }, + { "time": 1.5333, "curve": "stepped" }, + { "time": 4.4 }, + { "time": 5, "value": -7.1, "curve": "stepped" }, + { "time": 6.6333, "value": -7.1 }, + { "time": 8.4333, "value": 7.1 }, + { "time": 9.6 } + ] + }, + "girl/skirt/skirt-front": { + "wind": [ + {}, + { "time": 0.7333, "value": -8.6 }, + { "time": 1.6667, "curve": "stepped" }, + { "time": 4.5333 }, + { "time": 5.1333, "value": -7.1, "curve": "stepped" }, + { "time": 6.8667, "value": -7.1 }, + { "time": 8.2333, "value": 7.1 }, + { "time": 9.6 } + ] + }, + "girl/wings/wing-back": { + "wind": [ + { "value": -15.8 }, + { "time": 0.7667, "value": -33.3 }, + { "time": 1.5333, "curve": "stepped" }, + { "time": 4.9 }, + { "time": 5.5, "value": -19.3 }, + { "time": 5.9667, "value": -5.7 }, + { "time": 6.8, "value": -15.7 }, + { "time": 7.9333 }, + { "time": 8.7667, "value": 8.6 }, + { "time": 9.6333, "value": -15.8 } + ] + }, + "girl/wings/wing-front": { + "wind": [ + { "value": -15.8 }, + { "time": 0.7667, "value": -33.3 }, + { "time": 1.5333, "curve": "stepped" }, + { "time": 4.9 }, + { "time": 5.5, "value": -19.3 }, + { "time": 5.9667, "value": -5.7 }, + { "time": 6.8, "value": -15.7 }, + { "time": 7.9333 }, + { "time": 8.7667, "value": 8.6 }, + { "time": 9.6333, "value": -15.8 } + ] + }, + "": { + "wind": [ + { + "value": -15.8, + "curve": [ 0.256, -15.8, 0.511, -33.3 ] + }, + { + "time": 0.7667, + "value": -33.3, + "curve": [ 1.044, -33.3, 1.322, 0 ] + }, + { + "time": 1.6, + "curve": [ 1.8, 0, 2, -8.6 ] + }, + { + "time": 2.2, + "value": -8.6, + "curve": [ 2.5, -8.6, 2.8, 1 ] + }, + { + "time": 3.1, + "value": 1, + "curve": [ 3.578, 1, 4.056, 0 ] + }, + { "time": 4.5333, "curve": "stepped" }, + { + "time": 4.9, + "curve": [ 5.1, 0, 5.3, -19.3 ] + }, + { + "time": 5.5, + "value": -19.3, + "curve": [ 5.656, -19.3, 5.811, -7.1 ] + }, + { + "time": 5.9667, + "value": -5.7, + "curve": [ 6.044, -5, 6.122, -5 ] + }, + { + "time": 6.2, + "value": -5, + "curve": [ 6.389, -5, 6.578, -7 ] + }, + { + "time": 6.7667, + "value": -7, + "curve": [ 7.156, -7, 7.544, -3.7011 ] + }, + { + "time": 7.9333, + "curve": [ 8.189, 2.4322, 8.444, 11.4 ] + }, + { + "time": 8.7, + "value": 11.4, + "curve": [ 9.011, 11.4, 9.322, -15.8 ] + }, + { "time": 9.6333, "value": -15.8 } + ] + } + } + }, + "wing-flap": { + "bones": { + "body-up": { + "translate": [ + { + "curve": [ 0.222, 0, 0.444, 10, 0.222, 0, 0.444, 0 ] + }, + { + "time": 0.6667, + "x": 10, + "curve": [ 1.211, 10, 1.756, 3.33, 1.211, 0, 1.756, 0 ] + }, + { "time": 2.3 } + ] + }, + "wing-front": { + "rotate": [ + {}, + { "time": 0.6, "value": -28.71 }, + { "time": 1.1333 }, + { "time": 1.7, "value": -28.71 }, + { "time": 2.2667 } + ], + "scale": [ + {}, + { "time": 0.6, "y": 0.497 }, + { "time": 1.1333 }, + { "time": 1.7, "y": 0.497 }, + { "time": 2.2667 } + ] + }, + "wing-front-tip": { + "rotate": [ + {}, + { + "time": 0.2333, + "value": 33.17, + "curve": [ 0.333, 33.17, 0.412, 0 ] + }, + { + "time": 0.5, + "curve": [ 0.608, 0, 0.742, -30.34 ] + }, + { + "time": 0.8667, + "value": -30.34, + "curve": [ 0.968, -30.34, 1.042, -12.9 ] + }, + { "time": 1.1333 }, + { + "time": 1.3667, + "value": 33.17, + "curve": [ 1.466, 33.17, 1.545, 0 ] + }, + { + "time": 1.6333, + "curve": [ 1.741, 0, 1.875, -30.34 ] + }, + { + "time": 2, + "value": -30.34, + "curve": [ 2.101, -30.34, 2.184, 0 ] + }, + { "time": 2.2667 } + ] + }, + "wing-back-tip": { + "rotate": [ + {}, + { + "time": 0.2667, + "value": -11.49, + "curve": [ 0.272, -11.49, 0.422, 0 ] + }, + { + "time": 0.5, + "curve": [ 0.608, 0, 0.742, 18.1 ] + }, + { + "time": 0.8667, + "value": 18.1, + "curve": [ 0.968, 18.1, 1.042, 3.83 ] + }, + { "time": 1.1333 }, + { + "time": 1.4, + "value": -11.49, + "curve": [ 1.406, -11.49, 1.555, 0 ] + }, + { + "time": 1.6333, + "curve": [ 1.741, 0, 1.875, 18.1 ] + }, + { + "time": 2, + "value": 18.1, + "curve": [ 2.101, 18.1, 2.184, 0 ] + }, + { "time": 2.2667 } + ], + "scale": [ + { + "curve": [ 0.089, 1, 0.18, 0.807, 0.089, 1, 0.18, 1 ] + }, + { + "time": 0.2667, + "x": 0.807, + "curve": [ 0.345, 0.807, 0.425, 1.061, 0.345, 1, 0.425, 1 ] + }, + { + "time": 0.5, + "x": 1.081, + "curve": [ 0.622, 1.112, 0.747, 1.254, 0.622, 1, 0.747, 1 ] + }, + { + "time": 0.8667, + "x": 1.222, + "curve": [ 0.961, 1.198, 1.042, 1, 0.961, 1, 1.042, 1 ] + }, + { + "time": 1.1333, + "curve": [ 1.222, 1, 1.313, 0.807, 1.222, 1, 1.313, 1 ] + }, + { + "time": 1.4, + "x": 0.807, + "curve": [ 1.478, 0.807, 1.558, 1.061, 1.478, 1, 1.558, 1 ] + }, + { + "time": 1.6333, + "x": 1.081, + "curve": [ 1.755, 1.112, 1.88, 1.254, 1.755, 1, 1.88, 1 ] + }, + { + "time": 2, + "x": 1.222, + "curve": [ 2.094, 1.198, 2.173, 1, 2.094, 1, 2.173, 1 ] + }, + { "time": 2.2667 } + ] + }, + "wing-back": { + "rotate": [ + { + "curve": [ 0.193, 0, 0.407, 31.82 ] + }, + { + "time": 0.6, + "value": 31.82, + "curve": [ 0.787, 31.82, 0.951, 0 ] + }, + { + "time": 1.1333, + "curve": [ 1.326, 0, 1.507, 31.82 ] + }, + { + "time": 1.7, + "value": 31.82, + "curve": [ 1.887, 31.82, 2.08, 0 ] + }, + { "time": 2.2667 } + ], + "scale": [ + { + "curve": [ 0.193, 1, 0.407, 1.248, 0.193, 1, 0.407, 0.376 ] + }, + { + "time": 0.6, + "x": 1.248, + "y": 0.376, + "curve": [ 0.787, 1.248, 0.951, 1, 0.787, 0.376, 0.951, 1 ] + }, + { + "time": 1.1333, + "curve": [ 1.326, 1, 1.507, 1.248, 1.326, 1, 1.507, 0.376 ] + }, + { + "time": 1.7, + "x": 1.248, + "y": 0.376, + "curve": [ 1.887, 1.248, 2.08, 1, 1.887, 0.376, 2.08, 1 ] + }, + { "time": 2.2667 } + ] + } + } + }, + "wings-and-feet": { + "bones": { + "body-up": { + "translate": [ + { + "curve": [ 0.222, 0, 0.444, 10, 0.222, 0, 0.444, 0 ] + }, + { + "time": 0.6667, + "x": 10, + "curve": [ 1.211, 10, 1.756, 3.33, 1.211, 0, 1.756, 0 ] + }, + { "time": 2.3 } + ] + }, + "wing-front": { + "rotate": [ + {}, + { "time": 0.6, "value": -28.71 }, + { "time": 1.1333 }, + { "time": 1.7, "value": -28.71 }, + { "time": 2.2667 } + ], + "scale": [ + {}, + { "time": 0.6, "y": 0.497 }, + { "time": 1.1333 }, + { "time": 1.7, "y": 0.497 }, + { "time": 2.2667 } + ] + }, + "wing-front-tip": { + "rotate": [ + {}, + { + "time": 0.2333, + "value": 33.17, + "curve": [ 0.333, 33.17, 0.412, 0 ] + }, + { + "time": 0.5, + "curve": [ 0.608, 0, 0.742, -30.34 ] + }, + { + "time": 0.8667, + "value": -30.34, + "curve": [ 0.968, -30.34, 1.042, -12.9 ] + }, + { "time": 1.1333 }, + { + "time": 1.3667, + "value": 33.17, + "curve": [ 1.466, 33.17, 1.545, 0 ] + }, + { + "time": 1.6333, + "curve": [ 1.741, 0, 1.875, -30.34 ] + }, + { + "time": 2, + "value": -30.34, + "curve": [ 2.101, -30.34, 2.184, 0 ] + }, + { "time": 2.2667 } + ] + }, + "wing-back-tip": { + "rotate": [ + {}, + { + "time": 0.2667, + "value": -11.49, + "curve": [ 0.272, -11.49, 0.422, 0 ] + }, + { + "time": 0.5, + "curve": [ 0.608, 0, 0.742, 18.1 ] + }, + { + "time": 0.8667, + "value": 18.1, + "curve": [ 0.968, 18.1, 1.042, 3.83 ] + }, + { "time": 1.1333 }, + { + "time": 1.4, + "value": -11.49, + "curve": [ 1.406, -11.49, 1.555, 0 ] + }, + { + "time": 1.6333, + "curve": [ 1.741, 0, 1.875, 18.1 ] + }, + { + "time": 2, + "value": 18.1, + "curve": [ 2.101, 18.1, 2.184, 0 ] + }, + { "time": 2.2667 } + ], + "scale": [ + { + "curve": [ 0.089, 1, 0.18, 0.807, 0.089, 1, 0.18, 1 ] + }, + { + "time": 0.2667, + "x": 0.807, + "curve": [ 0.345, 0.807, 0.425, 1.061, 0.345, 1, 0.425, 1 ] + }, + { + "time": 0.5, + "x": 1.081, + "curve": [ 0.622, 1.112, 0.747, 1.254, 0.622, 1, 0.747, 1 ] + }, + { + "time": 0.8667, + "x": 1.222, + "curve": [ 0.961, 1.198, 1.042, 1, 0.961, 1, 1.042, 1 ] + }, + { + "time": 1.1333, + "curve": [ 1.222, 1, 1.313, 0.807, 1.222, 1, 1.313, 1 ] + }, + { + "time": 1.4, + "x": 0.807, + "curve": [ 1.478, 0.807, 1.558, 1.061, 1.478, 1, 1.558, 1 ] + }, + { + "time": 1.6333, + "x": 1.081, + "curve": [ 1.755, 1.112, 1.88, 1.254, 1.755, 1, 1.88, 1 ] + }, + { + "time": 2, + "x": 1.222, + "curve": [ 2.094, 1.198, 2.173, 1, 2.094, 1, 2.173, 1 ] + }, + { "time": 2.2667 } + ] + }, + "wing-back": { + "rotate": [ + { + "curve": [ 0.193, 0, 0.407, 31.82 ] + }, + { + "time": 0.6, + "value": 31.82, + "curve": [ 0.787, 31.82, 0.951, 0 ] + }, + { + "time": 1.1333, + "curve": [ 1.326, 0, 1.507, 31.82 ] + }, + { + "time": 1.7, + "value": 31.82, + "curve": [ 1.887, 31.82, 2.08, 0 ] + }, + { "time": 2.2667 } + ], + "scale": [ + { + "curve": [ 0.193, 1, 0.407, 1.248, 0.193, 1, 0.407, 0.376 ] + }, + { + "time": 0.6, + "x": 1.248, + "y": 0.376, + "curve": [ 0.787, 1.248, 0.951, 1, 0.787, 0.376, 0.951, 1 ] + }, + { + "time": 1.1333, + "curve": [ 1.326, 1, 1.507, 1.248, 1.326, 1, 1.507, 0.376 ] + }, + { + "time": 1.7, + "x": 1.248, + "y": 0.376, + "curve": [ 1.887, 1.248, 2.08, 1, 1.887, 0.376, 2.08, 1 ] + }, + { "time": 2.2667 } + ] + }, + "leg-back-down": { + "rotate": [ + { + "value": -15.56, + "curve": [ 0.122, -7.02, 0.244, 8.91 ] + }, + { + "time": 0.3667, + "value": 8.91, + "curve": [ 0.556, 8.91, 0.744, -26.59 ] + }, + { + "time": 0.9333, + "value": -26.59, + "curve": [ 1.133, -26.59, 1.333, 8.91 ] + }, + { + "time": 1.5333, + "value": 8.91, + "curve": [ 1.744, 8.91, 1.956, -20.89 ] + }, + { + "time": 2.1667, + "value": -20.89, + "curve": [ 2.211, -20.89, 2.256, -18.67 ] + }, + { "time": 2.3, "value": -15.56 } + ] + }, + "leg-front-down": { + "rotate": [ + { + "value": 8.91, + "curve": [ 0.189, 8.91, 0.378, -26.59 ] + }, + { + "time": 0.5667, + "value": -26.59, + "curve": [ 0.767, -26.59, 0.967, 8.91 ] + }, + { + "time": 1.1667, + "value": 8.91, + "curve": [ 1.378, 8.91, 1.589, -20.89 ] + }, + { + "time": 1.8, + "value": -20.89, + "curve": [ 1.967, -20.89, 2.133, 8.91 ] + }, + { "time": 2.3, "value": 8.91 } + ] + } + } + } +} +} \ No newline at end of file diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Include/Spine-DepthNormalsPass-URP.hlsl.meta b/Assets/ThirdParty/Spine Examples/Spine Skeletons/celestial-circus/celestial-circus-pro.json.meta similarity index 58% rename from Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Include/Spine-DepthNormalsPass-URP.hlsl.meta rename to Assets/ThirdParty/Spine Examples/Spine Skeletons/celestial-circus/celestial-circus-pro.json.meta index 30d45ec24..6c0f8bd12 100644 --- a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Include/Spine-DepthNormalsPass-URP.hlsl.meta +++ b/Assets/ThirdParty/Spine Examples/Spine Skeletons/celestial-circus/celestial-circus-pro.json.meta @@ -1,7 +1,7 @@ -fileFormatVersion: 2 -guid: 803855a1999ecce4081f5e0fb18c6475 -ShaderIncludeImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: +fileFormatVersion: 2 +guid: 096e0c3bab14ba24580dfb1381b52a86 +TextScriptImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/celestial-circus/celestial-circus-pro_SkeletonData.asset b/Assets/ThirdParty/Spine Examples/Spine Skeletons/celestial-circus/celestial-circus-pro_SkeletonData.asset new file mode 100644 index 000000000..6a61f5d26 --- /dev/null +++ b/Assets/ThirdParty/Spine Examples/Spine Skeletons/celestial-circus/celestial-circus-pro_SkeletonData.asset @@ -0,0 +1,33 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!114 &11400000 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: f1b3b4b945939a54ea0b23d3396115fb, type: 3} + m_Name: celestial-circus-pro_SkeletonData + m_EditorClassIdentifier: + atlasAssets: + - {fileID: 11400000, guid: 7eaea318921ef93428ded0a3c24125e4, type: 2} + scale: 0.01 + skeletonJSON: {fileID: 4900000, guid: 096e0c3bab14ba24580dfb1381b52a86, type: 3} + isUpgradingBlendModeMaterials: 0 + blendModeMaterials: + requiresBlendModeMaterials: 1 + applyAdditiveMaterial: 0 + additiveMaterials: [] + multiplyMaterials: + - pageName: celestial-circus-pma.png + material: {fileID: 2100000, guid: 51ea24e83c232c34994854424cd89413, type: 2} + screenMaterials: [] + skeletonDataModifiers: [] + fromAnimation: [] + toAnimation: [] + duration: [] + defaultMix: 0.2 + controller: {fileID: 9100000, guid: 23d2fdb02d8005143b7cfe3189ed37f3, type: 2} diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/celestial-circus/celestial-circus-pro_SkeletonData.asset.meta b/Assets/ThirdParty/Spine Examples/Spine Skeletons/celestial-circus/celestial-circus-pro_SkeletonData.asset.meta new file mode 100644 index 000000000..12f0df751 --- /dev/null +++ b/Assets/ThirdParty/Spine Examples/Spine Skeletons/celestial-circus/celestial-circus-pro_SkeletonData.asset.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 76d3b704a29fb5a45afe9a0060e0a994 +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 11400000 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/2D/BlendModes.meta b/Assets/ThirdParty/Spine Examples/Spine Skeletons/cloud-pot.meta similarity index 73% rename from Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/2D/BlendModes.meta rename to Assets/ThirdParty/Spine Examples/Spine Skeletons/cloud-pot.meta index b2f5b9420..23ee4fd0d 100644 --- a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/2D/BlendModes.meta +++ b/Assets/ThirdParty/Spine Examples/Spine Skeletons/cloud-pot.meta @@ -1,8 +1,8 @@ -fileFormatVersion: 2 -guid: 13578f887a568d846ab60366a57df135 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: +fileFormatVersion: 2 +guid: 1ee34de73684b624c8cbf866a9e4e28f +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/cloud-pot/cloud-pot-pma.atlas.txt b/Assets/ThirdParty/Spine Examples/Spine Skeletons/cloud-pot/cloud-pot-pma.atlas.txt new file mode 100644 index 000000000..9e401d294 --- /dev/null +++ b/Assets/ThirdParty/Spine Examples/Spine Skeletons/cloud-pot/cloud-pot-pma.atlas.txt @@ -0,0 +1,86 @@ +cloud-pot-pma.png + size: 1024, 512 + filter: Linear, Linear + pma: true + scale: 0.5 +cloud-base-1 + bounds: 2, 300, 233, 210 +cloud-base-10 + bounds: 214, 113, 97, 101 +cloud-base-2 + bounds: 2, 90, 210, 208 +cloud-base-3 + bounds: 237, 346, 175, 164 +cloud-base-4 + bounds: 414, 347, 176, 163 +cloud-base-5 + bounds: 313, 89, 145, 125 +cloud-base-6 + bounds: 744, 374, 161, 136 +cloud-base-7 + bounds: 592, 361, 150, 149 +cloud-base-8 + bounds: 237, 216, 154, 128 +cloud-base-9 + bounds: 907, 402, 107, 108 +cloud-cheeks + bounds: 2, 9, 218, 79 +cloud-eyes-closed + bounds: 744, 350, 132, 22 +cloud-eyes-open + bounds: 592, 333, 133, 26 +cloud-eyes-reflex + bounds: 393, 224, 120, 17 + rotate: 90 +cloud-mouth-closed + bounds: 907, 374, 49, 16 +cloud-mouth-open + bounds: 222, 15, 59, 35 +leaf-big + bounds: 214, 218, 20, 49 +leaf-small + bounds: 958, 373, 17, 30 + rotate: 90 +petal-1 + bounds: 283, 2, 26, 18 +petal-2 + bounds: 283, 22, 28, 17 + rotate: 90 +petal-3 + bounds: 214, 269, 29, 21 + rotate: 90 +pot-base + bounds: 222, 52, 76, 59 +pot-eyes-closed + bounds: 878, 363, 46, 9 +pot-eyes-open + bounds: 222, 2, 40, 11 +pot-mouth-open + bounds: 990, 374, 14, 16 +pot-mouth-pouty + bounds: 300, 93, 18, 10 + rotate: 90 +pot-mouth-smile + bounds: 300, 77, 14, 10 + rotate: 90 +pot-mouth-smile-big + bounds: 878, 352, 20, 9 +rain-blue + bounds: 926, 360, 12, 18 + rotate: 90 +rain-color + bounds: 264, 4, 9, 17 + rotate: 90 +rain-green + bounds: 900, 349, 12, 18 + rotate: 90 +rain-white + bounds: 727, 337, 12, 22 +rain-white-reflex + bounds: 2, 2, 5, 10 + rotate: 90 +stem + bounds: 907, 392, 8, 105 + rotate: 90 +stem-end + bounds: 300, 62, 13, 13 diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Include/Spine-Sprite-DepthNormalsPass-URP.hlsl.meta b/Assets/ThirdParty/Spine Examples/Spine Skeletons/cloud-pot/cloud-pot-pma.atlas.txt.meta similarity index 58% rename from Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Include/Spine-Sprite-DepthNormalsPass-URP.hlsl.meta rename to Assets/ThirdParty/Spine Examples/Spine Skeletons/cloud-pot/cloud-pot-pma.atlas.txt.meta index 0ecd05788..509252a27 100644 --- a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Include/Spine-Sprite-DepthNormalsPass-URP.hlsl.meta +++ b/Assets/ThirdParty/Spine Examples/Spine Skeletons/cloud-pot/cloud-pot-pma.atlas.txt.meta @@ -1,7 +1,7 @@ -fileFormatVersion: 2 -guid: 5070c54df4a943a438cfe0a199b55657 -ShaderIncludeImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: +fileFormatVersion: 2 +guid: 18f84d2a7fafee74ea19c883a5b78915 +TextScriptImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/cloud-pot/cloud-pot-pma.png b/Assets/ThirdParty/Spine Examples/Spine Skeletons/cloud-pot/cloud-pot-pma.png new file mode 100644 index 000000000..6557c449f Binary files /dev/null and b/Assets/ThirdParty/Spine Examples/Spine Skeletons/cloud-pot/cloud-pot-pma.png differ diff --git a/Assets/ThirdParty/spine.timeline-4.1/Documentation/animationstate-track-inspector.png.meta b/Assets/ThirdParty/Spine Examples/Spine Skeletons/cloud-pot/cloud-pot-pma.png.meta similarity index 71% rename from Assets/ThirdParty/spine.timeline-4.1/Documentation/animationstate-track-inspector.png.meta rename to Assets/ThirdParty/Spine Examples/Spine Skeletons/cloud-pot/cloud-pot-pma.png.meta index e9fb2914d..a31b40ced 100644 --- a/Assets/ThirdParty/spine.timeline-4.1/Documentation/animationstate-track-inspector.png.meta +++ b/Assets/ThirdParty/Spine Examples/Spine Skeletons/cloud-pot/cloud-pot-pma.png.meta @@ -1,13 +1,13 @@ fileFormatVersion: 2 -guid: 04051f71b9b3db740a8d236ff80672e7 +guid: dfac7903fff13204b8eb6a7d944eb13a TextureImporter: internalIDToNameTable: [] externalObjects: {} - serializedVersion: 11 + serializedVersion: 12 mipmaps: mipMapMode: 0 enableMipMap: 0 - sRGBTexture: 1 + sRGBTexture: 0 linearTexture: 0 fadeOut: 0 borderMipMap: 0 @@ -20,10 +20,12 @@ TextureImporter: externalNormalMap: 0 heightScale: 0.25 normalMapFilter: 0 + flipGreenChannel: 0 isReadable: 0 streamingMipmaps: 0 streamingMipmapsPriority: 0 vTOnly: 0 + ignoreMasterTextureLimit: 0 grayScaleToAlpha: 0 generateCubemap: 6 cubemapConvolution: 0 @@ -35,13 +37,13 @@ TextureImporter: filterMode: 1 aniso: 1 mipBias: 0 - wrapU: 1 - wrapV: 1 - wrapW: 1 - nPOTScale: 0 + wrapU: 0 + wrapV: 0 + wrapW: 0 + nPOTScale: 1 lightmap: 0 compressionQuality: 50 - spriteMode: 1 + spriteMode: 0 spriteExtrude: 1 spriteMeshType: 1 alignment: 0 @@ -50,9 +52,9 @@ TextureImporter: spriteBorder: {x: 0, y: 0, z: 0, w: 0} spriteGenerateFallbackPhysicsShape: 1 alphaUsage: 1 - alphaIsTransparency: 1 + alphaIsTransparency: 0 spriteTessellationDetail: -1 - textureType: 8 + textureType: 0 textureShape: 1 singleChannelComponent: 0 flipbookRows: 1 @@ -62,35 +64,49 @@ TextureImporter: textureFormatSet: 0 ignorePngGamma: 0 applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 platformSettings: - serializedVersion: 3 buildTarget: DefaultTexturePlatform maxTextureSize: 2048 resizeAlgorithm: 0 textureFormat: -1 - textureCompression: 1 + textureCompression: 0 compressionQuality: 50 crunchedCompression: 0 allowsAlphaSplitting: 0 overridden: 0 androidETC2FallbackOverride: 0 - forceMaximumCompressionQuality_BC6H_BC7: 0 + forceMaximumCompressionQuality_BC6H_BC7: 1 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 0 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 1 spriteSheet: serializedVersion: 2 sprites: [] outline: [] physicsShape: [] bones: [] - spriteID: 5e97eb03825dee720800000000000000 + spriteID: internalID: 0 vertices: [] indices: edges: [] weights: [] secondaryTextures: [] + nameFileIdTable: {} spritePackingTag: pSDRemoveMatte: 0 - pSDShowRemoveMatteOption: 0 userData: assetBundleName: assetBundleVariant: diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/cloud-pot/cloud-pot-pma_Atlas.asset b/Assets/ThirdParty/Spine Examples/Spine Skeletons/cloud-pot/cloud-pot-pma_Atlas.asset new file mode 100644 index 000000000..4e54dcb14 --- /dev/null +++ b/Assets/ThirdParty/Spine Examples/Spine Skeletons/cloud-pot/cloud-pot-pma_Atlas.asset @@ -0,0 +1,19 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!114 &11400000 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: a6b194f808b1af6499c93410e504af42, type: 3} + m_Name: cloud-pot-pma_Atlas + m_EditorClassIdentifier: + textureLoadingMode: 0 + onDemandTextureLoader: {fileID: 0} + atlasFile: {fileID: 4900000, guid: 18f84d2a7fafee74ea19c883a5b78915, type: 3} + materials: + - {fileID: 2100000, guid: 2bbfceb90d2246d44a79b471b9e137a1, type: 2} diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/cloud-pot/cloud-pot-pma_Atlas.asset.meta b/Assets/ThirdParty/Spine Examples/Spine Skeletons/cloud-pot/cloud-pot-pma_Atlas.asset.meta new file mode 100644 index 000000000..304987eb1 --- /dev/null +++ b/Assets/ThirdParty/Spine Examples/Spine Skeletons/cloud-pot/cloud-pot-pma_Atlas.asset.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 0ae329fcd695c314580d275e7990d195 +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 11400000 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/cloud-pot/cloud-pot-pma_Material.mat b/Assets/ThirdParty/Spine Examples/Spine Skeletons/cloud-pot/cloud-pot-pma_Material.mat new file mode 100644 index 000000000..71af2a6a6 --- /dev/null +++ b/Assets/ThirdParty/Spine Examples/Spine Skeletons/cloud-pot/cloud-pot-pma_Material.mat @@ -0,0 +1,45 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!21 &2100000 +Material: + serializedVersion: 8 + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: cloud-pot-pma_Material + m_Shader: {fileID: 4800000, guid: 1e8a610c9e01c3648bac42585e5fc676, type: 3} + m_ValidKeywords: [] + m_InvalidKeywords: + - _USE8NEIGHBOURHOOD_ON + m_LightmapFlags: 4 + m_EnableInstancingVariants: 0 + m_DoubleSidedGI: 0 + m_CustomRenderQueue: -1 + stringTagMap: {} + disabledShaderPasses: [] + m_SavedProperties: + serializedVersion: 3 + m_TexEnvs: + - _MainTex: + m_Texture: {fileID: 2800000, guid: dfac7903fff13204b8eb6a7d944eb13a, type: 3} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + m_Ints: [] + m_Floats: + - _Cutoff: 0.1 + - _Fill: 0 + - _OutlineMipLevel: 0 + - _OutlineOpaqueAlpha: 1 + - _OutlineReferenceTexWidth: 1024 + - _OutlineSmoothness: 1 + - _OutlineWidth: 3 + - _StencilComp: 8 + - _StencilRef: 1 + - _StraightAlphaInput: 0 + - _ThresholdEnd: 0.25 + - _Use8Neighbourhood: 1 + - _UseScreenSpaceOutlineWidth: 0 + m_Colors: + - _OutlineColor: {r: 1, g: 1, b: 0, a: 1} + m_BuildTextureStacks: [] diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/cloud-pot/cloud-pot-pma_Material.mat.meta b/Assets/ThirdParty/Spine Examples/Spine Skeletons/cloud-pot/cloud-pot-pma_Material.mat.meta new file mode 100644 index 000000000..31daa69ae --- /dev/null +++ b/Assets/ThirdParty/Spine Examples/Spine Skeletons/cloud-pot/cloud-pot-pma_Material.mat.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 2bbfceb90d2246d44a79b471b9e137a1 +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 2100000 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/cloud-pot/cloud-pot.skel.bytes b/Assets/ThirdParty/Spine Examples/Spine Skeletons/cloud-pot/cloud-pot.skel.bytes new file mode 100644 index 000000000..d25759cea Binary files /dev/null and b/Assets/ThirdParty/Spine Examples/Spine Skeletons/cloud-pot/cloud-pot.skel.bytes differ diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/cloud-pot/cloud-pot.skel.bytes.meta b/Assets/ThirdParty/Spine Examples/Spine Skeletons/cloud-pot/cloud-pot.skel.bytes.meta new file mode 100644 index 000000000..fbdd86ce8 --- /dev/null +++ b/Assets/ThirdParty/Spine Examples/Spine Skeletons/cloud-pot/cloud-pot.skel.bytes.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 0992bb7553f1e6e46af828752ee4c0dc +TextScriptImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/cloud-pot/cloud-pot_SkeletonData.asset b/Assets/ThirdParty/Spine Examples/Spine Skeletons/cloud-pot/cloud-pot_SkeletonData.asset new file mode 100644 index 000000000..562a5c288 --- /dev/null +++ b/Assets/ThirdParty/Spine Examples/Spine Skeletons/cloud-pot/cloud-pot_SkeletonData.asset @@ -0,0 +1,31 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!114 &11400000 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: f1b3b4b945939a54ea0b23d3396115fb, type: 3} + m_Name: cloud-pot_SkeletonData + m_EditorClassIdentifier: + atlasAssets: + - {fileID: 11400000, guid: 0ae329fcd695c314580d275e7990d195, type: 2} + scale: 0.01 + skeletonJSON: {fileID: 4900000, guid: 0992bb7553f1e6e46af828752ee4c0dc, type: 3} + isUpgradingBlendModeMaterials: 0 + blendModeMaterials: + requiresBlendModeMaterials: 0 + applyAdditiveMaterial: 0 + additiveMaterials: [] + multiplyMaterials: [] + screenMaterials: [] + skeletonDataModifiers: [] + fromAnimation: [] + toAnimation: [] + duration: [] + defaultMix: 0.2 + controller: {fileID: 0} diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/cloud-pot/cloud-pot_SkeletonData.asset.meta b/Assets/ThirdParty/Spine Examples/Spine Skeletons/cloud-pot/cloud-pot_SkeletonData.asset.meta new file mode 100644 index 000000000..04a4753fe --- /dev/null +++ b/Assets/ThirdParty/Spine Examples/Spine Skeletons/cloud-pot/cloud-pot_SkeletonData.asset.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 9dd558761bfa4274584a8e92095c37ab +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 11400000 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/mix-and-match/mix-and-match-pma.atlas.txt b/Assets/ThirdParty/Spine Examples/Spine Skeletons/mix-and-match/mix-and-match-pma.atlas.txt index c2eb27f20..b4cc35fa9 100644 --- a/Assets/ThirdParty/Spine Examples/Spine Skeletons/mix-and-match/mix-and-match-pma.atlas.txt +++ b/Assets/ThirdParty/Spine Examples/Spine Skeletons/mix-and-match/mix-and-match-pma.atlas.txt @@ -4,360 +4,356 @@ mix-and-match-pma.png pma: true scale: 0.5 base-head - bounds: 587, 2, 95, 73 + bounds: 118, 70, 95, 73 boy/arm-front - bounds: 558, 271, 36, 115 + bounds: 831, 311, 36, 115 + rotate: 90 boy/backpack - bounds: 235, 109, 119, 153 + bounds: 249, 357, 119, 153 boy/backpack-pocket - bounds: 328, 73, 34, 62 + bounds: 628, 193, 34, 62 rotate: 90 boy/backpack-strap-front - bounds: 665, 79, 38, 88 -boy/backpack-up - bounds: 395, 364, 21, 70 + bounds: 330, 263, 38, 88 rotate: 90 +boy/backpack-up + bounds: 482, 171, 21, 70 boy/body - bounds: 251, 264, 97, 132 + bounds: 845, 413, 97, 132 rotate: 90 boy/boot-ribbon-front - bounds: 648, 131, 9, 11 + bounds: 234, 304, 9, 11 boy/collar - bounds: 744, 4, 73, 29 + bounds: 471, 243, 73, 29 rotate: 90 boy/ear - bounds: 383, 109, 19, 23 + bounds: 991, 352, 19, 23 rotate: 90 boy/eye-back-low-eyelid - bounds: 739, 284, 17, 6 - rotate: 90 + bounds: 66, 72, 17, 6 boy/eye-back-pupil - bounds: 832, 443, 8, 9 + bounds: 694, 279, 8, 9 rotate: 90 boy/eye-back-up-eyelid - bounds: 558, 264, 23, 5 + bounds: 460, 101, 23, 5 + rotate: 90 boy/eye-back-up-eyelid-back - bounds: 802, 491, 19, 10 + bounds: 979, 414, 19, 10 rotate: 90 boy/eye-front-low-eyelid - bounds: 386, 363, 22, 7 + bounds: 1015, 203, 22, 7 rotate: 90 boy/eye-front-pupil - bounds: 816, 389, 9, 9 + bounds: 309, 50, 9, 9 boy/eye-front-up-eyelid - bounds: 160, 71, 31, 6 - rotate: 90 + bounds: 991, 373, 31, 6 boy/eye-front-up-eyelid-back - bounds: 801, 434, 26, 9 + bounds: 107, 76, 26, 9 rotate: 90 boy/eye-iris-back - bounds: 618, 264, 17, 17 + bounds: 810, 260, 17, 17 boy/eye-iris-front - bounds: 727, 264, 18, 18 + bounds: 902, 230, 18, 18 boy/eye-white-back - bounds: 580, 131, 20, 12 + bounds: 599, 179, 20, 12 boy/eye-white-front - bounds: 510, 130, 27, 13 + bounds: 544, 183, 27, 13 boy/eyebrow-back - bounds: 751, 88, 20, 11 + bounds: 1002, 225, 20, 11 rotate: 90 boy/eyebrow-front - bounds: 483, 130, 25, 11 + bounds: 975, 234, 25, 11 boy/hair-back - bounds: 494, 388, 122, 81 + bounds: 629, 289, 122, 81 rotate: 90 boy/hair-bangs - bounds: 667, 284, 70, 37 + bounds: 505, 180, 70, 37 + rotate: 90 boy/hair-side - bounds: 789, 374, 25, 43 + bounds: 979, 435, 25, 43 + rotate: 90 boy/hand-backfingers - bounds: 467, 364, 19, 21 + bounds: 858, 183, 19, 21 boy/hand-front-fingers - bounds: 488, 364, 19, 21 + bounds: 879, 183, 19, 21 boy/hat - bounds: 615, 417, 93, 56 - rotate: 90 + bounds: 218, 121, 93, 56 boy/leg-front - bounds: 138, 104, 31, 158 + bounds: 85, 104, 31, 158 boy/mouth-close - bounds: 551, 365, 21, 5 - rotate: 90 + bounds: 467, 100, 21, 5 girl-blue-cape/mouth-close - bounds: 551, 365, 21, 5 - rotate: 90 + bounds: 467, 100, 21, 5 girl-spring-dress/mouth-close - bounds: 551, 365, 21, 5 - rotate: 90 + bounds: 467, 100, 21, 5 girl/mouth-close - bounds: 551, 365, 21, 5 - rotate: 90 + bounds: 467, 100, 21, 5 boy/mouth-smile - bounds: 705, 79, 29, 7 -boy/nose - bounds: 836, 473, 17, 10 + bounds: 1015, 258, 29, 7 rotate: 90 +boy/nose + bounds: 323, 79, 17, 10 boy/pompom - bounds: 747, 273, 48, 43 + bounds: 979, 462, 48, 43 rotate: 90 boy/zip - bounds: 648, 144, 14, 23 + bounds: 922, 231, 14, 23 + rotate: 90 girl-blue-cape/back-eyebrow - bounds: 602, 131, 18, 12 + bounds: 527, 106, 18, 12 + rotate: 90 girl-blue-cape/body-dress bounds: 2, 264, 109, 246 girl-blue-cape/body-ribbon - bounds: 615, 283, 50, 38 + bounds: 576, 193, 50, 38 girl-blue-cape/cape-back - bounds: 2, 69, 134, 193 + bounds: 113, 317, 134, 193 girl-blue-cape/cape-back-up - bounds: 386, 387, 123, 106 - rotate: 90 + bounds: 504, 305, 123, 106 girl-blue-cape/cape-ribbon - bounds: 675, 264, 50, 18 + bounds: 396, 118, 50, 18 + rotate: 90 girl-blue-cape/cape-shoulder-back - bounds: 751, 110, 49, 59 + bounds: 420, 243, 49, 59 girl-blue-cape/cape-shoulder-front - bounds: 113, 264, 62, 76 - rotate: 90 + bounds: 2, 2, 62, 76 girl-blue-cape/cape-up-front - bounds: 399, 264, 98, 117 - rotate: 90 + bounds: 118, 145, 98, 117 girl-blue-cape/ear - bounds: 775, 2, 19, 23 + bounds: 837, 181, 19, 23 girl-spring-dress/ear - bounds: 775, 2, 19, 23 + bounds: 837, 181, 19, 23 girl/ear - bounds: 775, 2, 19, 23 + bounds: 837, 181, 19, 23 girl-blue-cape/eye-back-low-eyelid - bounds: 802, 463, 17, 6 + bounds: 810, 252, 17, 6 girl-spring-dress/eye-back-low-eyelid - bounds: 802, 463, 17, 6 + bounds: 810, 252, 17, 6 girl/eye-back-low-eyelid - bounds: 802, 463, 17, 6 + bounds: 810, 252, 17, 6 girl-blue-cape/eye-back-pupil - bounds: 816, 367, 8, 9 + bounds: 309, 40, 8, 9 + rotate: 90 girl-spring-dress/eye-back-pupil - bounds: 816, 367, 8, 9 + bounds: 309, 40, 8, 9 + rotate: 90 girl/eye-back-pupil - bounds: 816, 367, 8, 9 + bounds: 309, 40, 8, 9 + rotate: 90 girl-blue-cape/eye-back-up-eyelid - bounds: 554, 131, 24, 12 + bounds: 573, 179, 24, 12 girl-spring-dress/eye-back-up-eyelid - bounds: 554, 131, 24, 12 + bounds: 573, 179, 24, 12 girl/eye-back-up-eyelid - bounds: 554, 131, 24, 12 + bounds: 573, 179, 24, 12 girl-blue-cape/eye-back-up-eyelid-back - bounds: 832, 453, 17, 11 + bounds: 380, 105, 17, 11 rotate: 90 girl-spring-dress/eye-back-up-eyelid-back - bounds: 832, 453, 17, 11 + bounds: 380, 105, 17, 11 rotate: 90 girl/eye-back-up-eyelid-back - bounds: 832, 453, 17, 11 + bounds: 380, 105, 17, 11 rotate: 90 girl-blue-cape/eye-front-low-eyelid - bounds: 739, 303, 18, 6 + bounds: 1016, 353, 18, 6 rotate: 90 girl-spring-dress/eye-front-low-eyelid - bounds: 739, 303, 18, 6 + bounds: 1016, 353, 18, 6 rotate: 90 girl/eye-front-low-eyelid - bounds: 739, 303, 18, 6 + bounds: 1016, 353, 18, 6 rotate: 90 girl-blue-cape/eye-front-pupil - bounds: 816, 378, 9, 9 + bounds: 363, 94, 9, 9 girl-spring-dress/eye-front-pupil - bounds: 816, 378, 9, 9 + bounds: 363, 94, 9, 9 girl/eye-front-pupil - bounds: 816, 378, 9, 9 + bounds: 363, 94, 9, 9 girl-blue-cape/eye-front-up-eyelid - bounds: 392, 77, 30, 14 + bounds: 679, 413, 30, 14 rotate: 90 girl-spring-dress/eye-front-up-eyelid - bounds: 392, 77, 30, 14 + bounds: 679, 413, 30, 14 rotate: 90 girl/eye-front-up-eyelid - bounds: 392, 77, 30, 14 + bounds: 679, 413, 30, 14 rotate: 90 girl-blue-cape/eye-front-up-eyelid-back - bounds: 455, 130, 26, 11 + bounds: 947, 234, 26, 11 girl-spring-dress/eye-front-up-eyelid-back - bounds: 455, 130, 26, 11 + bounds: 947, 234, 26, 11 girl/eye-front-up-eyelid-back - bounds: 455, 130, 26, 11 + bounds: 947, 234, 26, 11 girl-blue-cape/eye-iris-back - bounds: 637, 264, 17, 17 + bounds: 323, 105, 17, 17 girl-blue-cape/eye-iris-front - bounds: 802, 471, 18, 18 + bounds: 467, 107, 18, 18 girl-blue-cape/eye-white-back - bounds: 596, 264, 20, 16 + bounds: 621, 175, 20, 16 girl-spring-dress/eye-white-back - bounds: 596, 264, 20, 16 + bounds: 621, 175, 20, 16 girl-blue-cape/eye-white-front - bounds: 796, 5, 20, 16 - rotate: 90 + bounds: 643, 175, 20, 16 girl-spring-dress/eye-white-front - bounds: 796, 5, 20, 16 - rotate: 90 + bounds: 643, 175, 20, 16 girl/eye-white-front - bounds: 796, 5, 20, 16 - rotate: 90 + bounds: 643, 175, 20, 16 girl-blue-cape/front-eyebrow - bounds: 608, 149, 18, 12 + bounds: 309, 101, 18, 12 rotate: 90 girl-blue-cape/hair-back - bounds: 508, 145, 117, 98 - rotate: 90 + bounds: 712, 317, 117, 98 girl-blue-cape/hair-bangs - bounds: 673, 419, 91, 40 + bounds: 313, 170, 91, 40 rotate: 90 girl-blue-cape/hair-head-side-back - bounds: 196, 331, 30, 52 - rotate: 90 + bounds: 544, 198, 30, 52 girl-blue-cape/hair-head-side-front - bounds: 738, 323, 41, 42 + bounds: 466, 127, 41, 42 girl-blue-cape/hair-side - bounds: 473, 3, 36, 71 + bounds: 175, 2, 36, 71 + rotate: 90 girl-blue-cape/hand-front-fingers - bounds: 509, 365, 19, 21 + bounds: 902, 207, 19, 21 girl-spring-dress/hand-front-fingers - bounds: 509, 365, 19, 21 + bounds: 902, 207, 19, 21 girl-blue-cape/leg-front - bounds: 168, 72, 30, 158 + bounds: 519, 413, 30, 158 rotate: 90 girl-blue-cape/mouth-smile - bounds: 736, 79, 29, 7 + bounds: 1015, 227, 29, 7 + rotate: 90 girl-spring-dress/mouth-smile - bounds: 736, 79, 29, 7 + bounds: 1015, 227, 29, 7 + rotate: 90 girl/mouth-smile - bounds: 736, 79, 29, 7 + bounds: 1015, 227, 29, 7 + rotate: 90 girl-blue-cape/nose - bounds: 747, 264, 11, 7 + bounds: 342, 82, 11, 7 girl-spring-dress/nose - bounds: 747, 264, 11, 7 + bounds: 342, 82, 11, 7 girl/nose - bounds: 747, 264, 11, 7 + bounds: 342, 82, 11, 7 girl-blue-cape/sleeve-back - bounds: 767, 79, 42, 29 + bounds: 416, 95, 42, 29 girl-blue-cape/sleeve-front - bounds: 408, 76, 52, 119 + bounds: 249, 303, 52, 119 rotate: 90 girl-spring-dress/arm-front - bounds: 596, 282, 17, 111 + bounds: 829, 292, 17, 111 + rotate: 90 girl-spring-dress/back-eyebrow - bounds: 801, 420, 18, 12 + bounds: 309, 81, 18, 12 + rotate: 90 girl-spring-dress/body-up - bounds: 179, 4, 64, 66 + bounds: 66, 2, 64, 66 girl-spring-dress/cloak-down - bounds: 775, 27, 50, 50 + bounds: 758, 227, 50, 50 girl-spring-dress/cloak-up - bounds: 360, 7, 64, 58 - rotate: 90 + bounds: 628, 229, 64, 58 girl-spring-dress/eye-iris-back - bounds: 656, 264, 17, 17 + bounds: 342, 105, 17, 17 girl-spring-dress/eye-iris-front - bounds: 814, 492, 18, 18 + bounds: 487, 107, 18, 18 girl-spring-dress/front-eyebrow - bounds: 822, 472, 18, 12 - rotate: 90 + bounds: 323, 91, 18, 12 girl-spring-dress/hair-back - bounds: 196, 363, 147, 93 - rotate: 90 + bounds: 370, 417, 147, 93 girl-spring-dress/hair-bangs - bounds: 696, 326, 91, 40 - rotate: 90 + bounds: 829, 250, 91, 40 girl-spring-dress/hair-head-side-back - bounds: 529, 76, 30, 52 + bounds: 509, 126, 30, 52 girl-spring-dress/hair-head-side-front - bounds: 781, 323, 41, 42 + bounds: 816, 206, 41, 42 girl-spring-dress/hair-side - bounds: 511, 3, 36, 71 -girl-spring-dress/leg-front - bounds: 171, 104, 30, 158 -girl-spring-dress/neck - bounds: 138, 70, 20, 32 -girl-spring-dress/shoulder-ribbon - bounds: 622, 131, 36, 24 + bounds: 248, 2, 36, 71 rotate: 90 +girl-spring-dress/leg-front + bounds: 831, 381, 30, 158 + rotate: 90 +girl-spring-dress/neck + bounds: 85, 70, 20, 32 +girl-spring-dress/shoulder-ribbon + bounds: 175, 44, 36, 24 girl-spring-dress/skirt - bounds: 113, 328, 182, 81 + bounds: 2, 80, 182, 81 rotate: 90 girl-spring-dress/underskirt - bounds: 2, 2, 175, 65 + bounds: 519, 445, 175, 65 girl/arm-front - bounds: 577, 395, 36, 115 + bounds: 712, 279, 36, 115 + rotate: 90 girl/back-eyebrow - bounds: 834, 492, 18, 12 + bounds: 309, 61, 18, 12 rotate: 90 girl/bag-base - bounds: 191, 264, 62, 58 - rotate: 90 + bounds: 694, 219, 62, 58 girl/bag-strap-front - bounds: 385, 265, 12, 96 + bounds: 370, 304, 12, 96 + rotate: 90 girl/bag-top - bounds: 738, 367, 49, 50 + bounds: 765, 175, 49, 50 girl/body - bounds: 356, 130, 97, 132 + bounds: 370, 318, 97, 132 + rotate: 90 girl/boot-ribbon-front - bounds: 539, 130, 13, 13 + bounds: 323, 64, 13, 13 girl/eye-iris-back - bounds: 821, 424, 17, 17 + bounds: 361, 105, 17, 17 girl/eye-iris-front - bounds: 812, 443, 18, 18 + bounds: 507, 106, 18, 18 girl/eye-white-back - bounds: 814, 5, 20, 16 - rotate: 90 + bounds: 665, 175, 20, 16 girl/front-eyebrow - bounds: 816, 400, 18, 12 - rotate: 90 + bounds: 343, 91, 18, 12 girl/hair-back - bounds: 291, 363, 147, 93 - rotate: 90 + bounds: 696, 417, 147, 93 girl/hair-bangs - bounds: 715, 419, 91, 40 - rotate: 90 + bounds: 922, 247, 91, 40 girl/hair-flap-down-front - bounds: 288, 5, 70, 65 -girl/hair-head-side-back - bounds: 561, 77, 30, 52 -girl/hair-head-side-front - bounds: 757, 419, 41, 42 + bounds: 415, 171, 70, 65 rotate: 90 +girl/hair-head-side-back + bounds: 991, 381, 30, 52 +girl/hair-head-side-front + bounds: 859, 206, 41, 42 girl/hair-patch - bounds: 245, 4, 66, 41 + bounds: 132, 2, 66, 41 rotate: 90 girl/hair-side - bounds: 549, 3, 36, 71 + bounds: 692, 181, 36, 71 + rotate: 90 girl/hair-strand-back-1 - bounds: 684, 3, 58, 74 + bounds: 948, 289, 58, 74 + rotate: 90 girl/hair-strand-back-2 - bounds: 692, 171, 91, 58 + bounds: 355, 170, 91, 58 rotate: 90 girl/hair-strand-back-3 - bounds: 615, 323, 92, 79 - rotate: 90 + bounds: 215, 40, 92, 79 girl/hair-strand-front-1 - bounds: 518, 269, 38, 94 + bounds: 234, 263, 38, 94 + rotate: 90 girl/hair-strand-front-2 - bounds: 593, 79, 70, 50 + bounds: 576, 233, 70, 50 + rotate: 90 girl/hair-strand-front-3 - bounds: 705, 88, 44, 81 + bounds: 313, 124, 44, 81 + rotate: 90 girl/hand-front-fingers - bounds: 530, 365, 19, 21 + bounds: 923, 208, 19, 21 girl/hat - bounds: 608, 169, 93, 82 - rotate: 90 + bounds: 218, 179, 93, 82 girl/leg-front - bounds: 203, 104, 30, 158 + bounds: 831, 349, 30, 158 + rotate: 90 girl/pompom - bounds: 757, 462, 48, 43 - rotate: 90 + bounds: 416, 126, 48, 43 girl/scarf - bounds: 455, 143, 119, 51 - rotate: 90 + bounds: 113, 264, 119, 51 girl/scarf-back - bounds: 420, 2, 72, 51 - rotate: 90 + bounds: 502, 252, 72, 51 girl/zip - bounds: 356, 109, 19, 25 - rotate: 90 + bounds: 816, 179, 19, 25 diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/mix-and-match/mix-and-match-pma.png b/Assets/ThirdParty/Spine Examples/Spine Skeletons/mix-and-match/mix-and-match-pma.png index 1c7c748eb..b286cbfae 100644 Binary files a/Assets/ThirdParty/Spine Examples/Spine Skeletons/mix-and-match/mix-and-match-pma.png and b/Assets/ThirdParty/Spine Examples/Spine Skeletons/mix-and-match/mix-and-match-pma.png differ diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/mix-and-match/mix-and-match-pma.png.meta b/Assets/ThirdParty/Spine Examples/Spine Skeletons/mix-and-match/mix-and-match-pma.png.meta index fdade87ba..3c10ee799 100644 --- a/Assets/ThirdParty/Spine Examples/Spine Skeletons/mix-and-match/mix-and-match-pma.png.meta +++ b/Assets/ThirdParty/Spine Examples/Spine Skeletons/mix-and-match/mix-and-match-pma.png.meta @@ -8,7 +8,7 @@ TextureImporter: mipmaps: mipMapMode: 0 enableMipMap: 0 - sRGBTexture: 1 + sRGBTexture: 0 linearTexture: 0 fadeOut: 0 borderMipMap: 0 diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/mix-and-match/mix-and-match-pma_Material.mat b/Assets/ThirdParty/Spine Examples/Spine Skeletons/mix-and-match/mix-and-match-pma_Material.mat index 6d4ce0834..80edfe796 100644 --- a/Assets/ThirdParty/Spine Examples/Spine Skeletons/mix-and-match/mix-and-match-pma_Material.mat +++ b/Assets/ThirdParty/Spine Examples/Spine Skeletons/mix-and-match/mix-and-match-pma_Material.mat @@ -7,7 +7,7 @@ Material: m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_Name: mix-and-match-pma_Material + m_Name: mix-and-match-pma_material m_Shader: {fileID: 4800000, guid: 1e8a610c9e01c3648bac42585e5fc676, type: 3} m_ValidKeywords: [] m_InvalidKeywords: @@ -28,6 +28,7 @@ Material: m_Ints: [] m_Floats: - _Cutoff: 0.1 + - _Fill: 0 - _OutlineMipLevel: 0 - _OutlineOpaqueAlpha: 1 - _OutlineReferenceTexWidth: 1024 @@ -38,6 +39,7 @@ Material: - _StraightAlphaInput: 0 - _ThresholdEnd: 0.25 - _Use8Neighbourhood: 1 + - _UseScreenSpaceOutlineWidth: 0 m_Colors: - _OutlineColor: {r: 1, g: 1, b: 0, a: 1} m_BuildTextureStacks: [] diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/mix-and-match/mix-and-match-pma_Material.mat.meta b/Assets/ThirdParty/Spine Examples/Spine Skeletons/mix-and-match/mix-and-match-pma_Material.mat.meta index 539425f1d..dd7eb6bad 100644 --- a/Assets/ThirdParty/Spine Examples/Spine Skeletons/mix-and-match/mix-and-match-pma_Material.mat.meta +++ b/Assets/ThirdParty/Spine Examples/Spine Skeletons/mix-and-match/mix-and-match-pma_Material.mat.meta @@ -1,8 +1,7 @@ fileFormatVersion: 2 guid: f68af5332bca5ef49a0bb6a25be1a8e5 -timeCreated: 1601458174 -licenseType: Pro NativeFormatImporter: + externalObjects: {} mainObjectFileID: 2100000 userData: assetBundleName: diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/mix-and-match/mix-and-match-pro.json b/Assets/ThirdParty/Spine Examples/Spine Skeletons/mix-and-match/mix-and-match-pro.json index 9f27b879a..1b98ebbed 100644 --- a/Assets/ThirdParty/Spine Examples/Spine Skeletons/mix-and-match/mix-and-match-pro.json +++ b/Assets/ThirdParty/Spine Examples/Spine Skeletons/mix-and-match/mix-and-match-pro.json @@ -1,7 +1,7 @@ { "skeleton": { - "hash": "5bSWDwjOkqw", - "spine": "4.1.23-beta", + "hash": "tNX0Pe3Kdo0", + "spine": "4.2.22", "x": -240.58, "y": -3.38, "width": 410.36, @@ -11,8 +11,8 @@ }, "bones": [ { "name": "root" }, - { "name": "skeleton-control", "parent": "root", "x": -0.43, "y": 257.36, "color": "ff1111ff" }, - { "name": "hips", "parent": "skeleton-control", "x": 3.06, "y": 29.29, "color": "ffce12ff" }, + { "name": "skeleton-control", "parent": "root", "x": -0.43, "y": 257.36, "color": "ff1111ff", "icon": "arrowsB" }, + { "name": "hips", "parent": "skeleton-control", "x": 3.06, "y": 29.29, "color": "ffce12ff", "icon": "diamond" }, { "name": "body-down", "parent": "hips", @@ -98,8 +98,8 @@ "rotation": -90.56, "x": -51.95, "y": -259.13, - "transform": "noRotationOrReflection", - "color": "d130ffff" + "color": "d130ffff", + "icon": "ik" }, { "name": "leg-up", "parent": "leg-control-front", "length": 144.38, "rotation": -99.42, "y": 0.45, "color": "d130ffff" }, { "name": "leg-down", "parent": "leg-up", "length": 144.38, "rotation": 8.86, "x": 144.38, "color": "d130ffff" }, @@ -111,14 +111,38 @@ { "name": "leg-front-6", "parent": "leg-front-5", "length": 35.95, "x": 35.95, "color": "65127cff" }, { "name": "leg-front-7", "parent": "leg-front-6", "length": 35.95, "x": 35.95, "color": "65127cff" }, { "name": "leg-front-8", "parent": "leg-front-7", "length": 35.95, "x": 35.95, "color": "65127cff" }, - { "name": "head-control", "parent": "head", "rotation": -87.57, "x": 71.99, "y": -39.68, "color": "ffce12ff" }, - { "name": "head-back-control", "parent": "head", "rotation": -87.57, "x": 68.52, "y": 49.17, "color": "ffce12ff" }, - { "name": "features-control", "parent": "head", "rotation": -87.57, "x": 88.9, "y": -37.83, "color": "ff5826ff" }, - { "name": "eye-front", "parent": "features-control", "x": -52.2, "y": -35.32, "color": "ff2e2eff" }, - { "name": "eye-front-iris", "parent": "eye-front", "x": -2.45, "y": 18.5, "color": "ff2e2eff" }, - { "name": "eye-front-up-eyelid-holder", "parent": "eye-front", "x": -23.12, "y": 25.84, "color": "ff2e2eff" }, + { + "name": "head-control", + "parent": "head", + "rotation": -87.57, + "x": 71.99, + "y": -39.68, + "color": "ffce12ff", + "icon": "arrowsB" + }, + { + "name": "head-back-control", + "parent": "head", + "rotation": -87.57, + "x": 68.52, + "y": 49.17, + "color": "ffce12ff", + "icon": "arrowsB" + }, + { + "name": "features-control", + "parent": "head", + "rotation": -87.57, + "x": 88.9, + "y": -37.83, + "color": "ff5826ff", + "icon": "arrowUpDown" + }, + { "name": "eye-front", "parent": "features-control", "x": -52.2, "y": -35.32, "color": "ff2e2eff", "icon": "eye" }, + { "name": "eye-front-iris", "parent": "eye-front", "x": -2.45, "y": 18.5, "color": "ff2e2eff", "icon": "star" }, + { "name": "eye-front-up-eyelid-holder", "parent": "eye-front", "x": -23.12, "y": 25.84, "color": "ff2e2eff", "icon": "arrowUpDown" }, { "name": "eye-front-up-eyelid", "parent": "eye-front-up-eyelid-holder", "length": 24.39, "rotation": 12.94, "color": "ff2e2eff" }, - { "name": "eye-front-low-eyelid-holder", "parent": "eye-front", "x": -14.14, "y": 5.98, "color": "ff2e2eff" }, + { "name": "eye-front-low-eyelid-holder", "parent": "eye-front", "x": -14.14, "y": 5.98, "color": "ff2e2eff", "icon": "arrowUpDown" }, { "name": "eye-front-low-eyelid", "parent": "eye-front-low-eyelid-holder", "length": 17.4, "rotation": -9.9, "color": "ff2e2eff" }, { "name": "eye-front-eyebrow", @@ -129,12 +153,12 @@ "y": 46.78, "color": "ff2e2eff" }, - { "name": "eye-back", "parent": "features-control", "x": 35.89, "y": -33.38, "color": "f64379ff" }, - { "name": "eye-back-up-eyelid-holder", "parent": "eye-back", "x": 13.06, "y": 27.2, "color": "f64379ff" }, + { "name": "eye-back", "parent": "features-control", "x": 35.89, "y": -33.38, "color": "f64379ff", "icon": "eye" }, + { "name": "eye-back-up-eyelid-holder", "parent": "eye-back", "x": 13.06, "y": 27.2, "color": "f64379ff", "icon": "arrowUpDown" }, { "name": "eye-back-up-eyelid", "parent": "eye-back-up-eyelid-holder", "length": 20.8, "rotation": 168.69, "color": "f64379ff" }, - { "name": "eye-back-low-eyelid-holder", "parent": "eye-back", "x": 12.51, "y": 5.71, "color": "f64379ff" }, + { "name": "eye-back-low-eyelid-holder", "parent": "eye-back", "x": 12.51, "y": 5.71, "color": "f64379ff", "icon": "arrowUpDown" }, { "name": "eye-back-low-eyelid", "parent": "eye-back-low-eyelid-holder", "length": 16.37, "rotation": -164.58, "color": "f64379ff" }, - { "name": "eye-back-iris", "parent": "eye-back", "x": -4.9, "y": 17.41, "color": "f64379ff" }, + { "name": "eye-back-iris", "parent": "eye-back", "x": -4.9, "y": 17.41, "color": "f64379ff", "icon": "star" }, { "name": "eye-back-eyebrow", "parent": "eye-back", @@ -180,7 +204,15 @@ "y": -7.09, "color": "ffce12ff" }, - { "name": "hat-base", "parent": "head", "x": 136.74, "y": 38.65, "skin": true, "color": "b131ffff" }, + { + "name": "hat-base", + "parent": "head", + "x": 136.74, + "y": 38.65, + "skin": true, + "color": "b131ffff", + "icon": "arrowLeftRight" + }, { "name": "hat", "parent": "hat-base", @@ -191,8 +223,24 @@ "skin": true, "color": "b131ffff" }, - { "name": "hat-control", "parent": "hat", "x": 65.29, "y": -6.95, "skin": true, "color": "b131ffff" }, - { "name": "pompom-control", "parent": "hat", "x": 150.97, "y": 0.35, "skin": true, "color": "b131ffff" }, + { + "name": "hat-control", + "parent": "hat", + "x": 65.29, + "y": -6.95, + "skin": true, + "color": "b131ffff", + "icon": "arrows" + }, + { + "name": "pompom-control", + "parent": "hat", + "x": 150.97, + "y": 0.35, + "skin": true, + "color": "b131ffff", + "icon": "arrowLeftRight" + }, { "name": "end-arm-control", "parent": "arm-front-down", "length": 26.6, "x": 74.55, "y": 0.24, "color": "ff3636ff" }, { "name": "backpack", @@ -204,7 +252,15 @@ "skin": true, "color": "b57dd9ff" }, - { "name": "backpack-control", "parent": "backpack", "x": 53.83, "y": -119.3, "skin": true, "color": "b57dd9ff" }, + { + "name": "backpack-control", + "parent": "backpack", + "x": 53.83, + "y": -119.3, + "skin": true, + "color": "b57dd9ff", + "icon": "arrows" + }, { "name": "bag", "parent": "body-up", @@ -215,7 +271,15 @@ "skin": true, "color": "e8afe7ff" }, - { "name": "bag-control", "parent": "bag", "x": 84.37, "y": 53.1, "skin": true, "color": "e8afe7ff" }, + { + "name": "bag-control", + "parent": "bag", + "x": 84.37, + "y": 53.1, + "skin": true, + "color": "e8afe7ff", + "icon": "arrows" + }, { "name": "bag-flap", "parent": "bag", @@ -236,7 +300,15 @@ "skin": true, "color": "69ff53ff" }, - { "name": "bag-strap-back", "parent": "arm-front-control", "x": -0.31, "y": 10.97, "skin": true, "color": "e8afe7ff" }, + { + "name": "bag-strap-back", + "parent": "arm-front-control", + "x": -0.31, + "y": 10.97, + "skin": true, + "color": "e8afe7ff", + "icon": "diamondB" + }, { "name": "bag-back-down", "parent": "bag-control", @@ -244,9 +316,18 @@ "x": -31.08, "y": -10.86, "skin": true, - "color": "e8afe7ff" + "color": "e8afe7ff", + "icon": "diamondB" + }, + { + "name": "bag-strap-front", + "parent": "arm-front-control", + "x": 2.82, + "y": -11.88, + "skin": true, + "color": "e8afe7ff", + "icon": "diamondB" }, - { "name": "bag-strap-front", "parent": "arm-front-control", "x": 2.82, "y": -11.88, "skin": true, "color": "e8afe7ff" }, { "name": "bag-back-front", "parent": "bag", @@ -254,7 +335,8 @@ "x": -18.37, "y": 34.05, "skin": true, - "color": "e8afe7ff" + "color": "e8afe7ff", + "icon": "diamondB" }, { "name": "zip-girl", @@ -276,7 +358,15 @@ "skin": true, "color": "ff4cf5ff" }, - { "name": "hair-holder-front", "parent": "body-up", "x": 100.57, "y": 80.62, "skin": true, "color": "06b8d8ff" }, + { + "name": "hair-holder-front", + "parent": "body-up", + "x": 100.57, + "y": 80.62, + "skin": true, + "color": "06b8d8ff", + "icon": "spiral" + }, { "name": "hair-strand-front-1", "parent": "hair-holder-front", @@ -297,7 +387,15 @@ "skin": true, "color": "06b7d875" }, - { "name": "hair-holder-back", "parent": "body-up", "x": 105.21, "y": -48.86, "skin": true, "color": "2a96c6ff" }, + { + "name": "hair-holder-back", + "parent": "body-up", + "x": 105.21, + "y": -48.86, + "skin": true, + "color": "2a96c6ff", + "icon": "spiral" + }, { "name": "hair-strand-back-1", "parent": "hair-holder-back", @@ -350,7 +448,7 @@ }, { "name": "eye-front-pupil", "parent": "eye-front", "x": -3.44, "y": 17.51, "color": "ff2e2eff" }, { "name": "eye-back-pupil", "parent": "eye-back", "x": -5.89, "y": 16.42, "color": "f64379ff" }, - { "name": "eyelid-skin", "parent": "eye-front", "x": 1.06, "y": 41.21, "color": "ff2e2eff" }, + { "name": "eyelid-skin", "parent": "eye-front", "x": 1.06, "y": 41.21, "color": "ff2e2eff", "icon": "arrowUpDown" }, { "name": "arm-back-control", "parent": "body-up", "rotation": -94.33, "x": 73.75, "y": -67.88, "color": "321c9aff" }, { "name": "arm-back-up", @@ -417,8 +515,8 @@ "rotation": -90.56, "x": 38.54, "y": -259.75, - "transform": "noRotationOrReflection", - "color": "d130ffff" + "color": "d130ffff", + "icon": "ik" }, { "name": "leg-up-back", "parent": "leg-control-back", "length": 144.38, "rotation": -92.95, "y": 0.45, "color": "8f0c5bff" }, { "name": "leg-down-back", "parent": "leg-up-back", "length": 144.38, "rotation": 3.48, "x": 144.38, "color": "8f0c5bff" }, @@ -519,9 +617,18 @@ "x": 4.35, "y": -26.24, "skin": true, - "color": "8dff00ff" + "color": "8dff00ff", + "icon": "triangle" + }, + { + "name": "skirt-control-up", + "parent": "skirt-control", + "x": -15.87, + "y": -0.12, + "skin": true, + "color": "09d627ff", + "icon": "triangle" }, - { "name": "skirt-control-up", "parent": "skirt-control", "x": -15.87, "y": -0.12, "skin": true, "color": "09d627ff" }, { "name": "skirt-rotation-back", "parent": "body-up", @@ -542,7 +649,7 @@ "skin": true, "color": "09d627ff" }, - { "name": "skirt-control-middle", "parent": "skirt-control-up", "x": -19.76, "skin": true, "color": "09d627ff" }, + { "name": "skirt-control-middle", "parent": "skirt-control-up", "x": -19.76, "skin": true, "color": "09d627ff", "icon": "triangle" }, { "name": "skirt-control-back", "parent": "skirt-rotation-back", @@ -550,7 +657,8 @@ "x": 148.43, "y": -0.72, "skin": true, - "color": "09d627ff" + "color": "09d627ff", + "icon": "triangle" }, { "name": "skirt-control-front", @@ -559,11 +667,36 @@ "x": 141.99, "y": 2.23, "skin": true, - "color": "09d627ff" + "color": "09d627ff", + "icon": "triangle" + }, + { + "name": "skirt-control-front-down", + "parent": "skirt-control-front", + "x": -45.51, + "y": -13.62, + "skin": true, + "color": "09d627ff", + "icon": "triangle" + }, + { + "name": "skirt-control-back-down", + "parent": "skirt-control-back", + "x": -47.46, + "y": 29.56, + "skin": true, + "color": "09d627ff", + "icon": "triangle" + }, + { + "name": "cape-red-front-inside", + "parent": "body-up", + "x": 32.8, + "y": -12.11, + "skin": true, + "color": "ff539eff", + "icon": "arrowUpDown" }, - { "name": "skirt-control-front-down", "parent": "skirt-control-front", "x": -45.51, "y": -13.62, "skin": true, "color": "09d627ff" }, - { "name": "skirt-control-back-down", "parent": "skirt-control-back", "x": -47.46, "y": 29.56, "skin": true, "color": "09d627ff" }, - { "name": "cape-red-front-inside", "parent": "body-up", "x": 32.8, "y": -12.11, "skin": true, "color": "ff539eff" }, { "name": "cape-front-rotator", "parent": "arm-front-up", @@ -581,7 +714,8 @@ "x": 47.43, "y": -0.24, "skin": true, - "color": "ff539eff" + "color": "ff539eff", + "icon": "arrowUpDown" }, { "name": "shouder-front-transform", "parent": "body-up", "rotation": -94.33, "x": 93.23, "y": 0.49, "color": "ffce12ff" }, { "name": "shoulder-front", "parent": "shouder-front-transform", "x": -43.57, "y": -0.76, "color": "ffce12ff" }, @@ -602,9 +736,18 @@ "x": 45.94, "y": 0.9, "skin": true, - "color": "93006dff" + "color": "93006dff", + "icon": "arrowLeftRight" + }, + { + "name": "cape-red-back-inside", + "parent": "body-up", + "x": 37.71, + "y": -42.92, + "skin": true, + "color": "93006dff", + "icon": "arrowUpDown" }, - { "name": "cape-red-back-inside", "parent": "body-up", "x": 37.71, "y": -42.92, "skin": true, "color": "93006dff" }, { "name": "shoulder-back-transform", "parent": "body-up", "rotation": -4.33, "x": 84.44, "y": -34.31, "color": "ffce12ff" }, { "name": "shoulder-back", "parent": "shoulder-back-transform", "x": 1.09, "y": -39.44, "color": "ffce12ff" }, { @@ -614,7 +757,8 @@ "x": 86.24, "y": -100.16, "skin": true, - "color": "ff7a45ff" + "color": "ff7a45ff", + "icon": "arrowUpDown" }, { "name": "dress-control-leg-down-back", @@ -623,7 +767,8 @@ "x": 86.81, "y": -134.93, "skin": true, - "color": "ff7a45ff" + "color": "ff7a45ff", + "icon": "arrowUpDown" }, { "name": "dress-control-leg-up-front", @@ -632,7 +777,8 @@ "x": -81.34, "y": -100.16, "skin": true, - "color": "ff7a45ff" + "color": "ff7a45ff", + "icon": "arrowUpDown" }, { "name": "dress-control-leg-down-front", @@ -641,7 +787,8 @@ "x": -83.05, "y": -132.65, "skin": true, - "color": "ff7a45ff" + "color": "ff7a45ff", + "icon": "arrowUpDown" }, { "name": "dress-control-foot-front", @@ -650,7 +797,8 @@ "x": -112.69, "y": -254.06, "skin": true, - "color": "ff7a45ff" + "color": "ff7a45ff", + "icon": "arrowUpDown" }, { "name": "dress-control-foot-back", @@ -659,9 +807,18 @@ "x": 97.07, "y": -251.21, "skin": true, - "color": "ff7a45ff" + "color": "ff7a45ff", + "icon": "arrowUpDown" + }, + { + "name": "dress-control-middle", + "parent": "skeleton-control", + "x": -5.53, + "y": -254.06, + "skin": true, + "color": "ff7a45ff", + "icon": "arrowUpDown" }, - { "name": "dress-control-middle", "parent": "skeleton-control", "x": -5.53, "y": -254.06, "skin": true, "color": "ff7a45ff" }, { "name": "sleeve-control-front", "parent": "arm-front-up-7", @@ -670,7 +827,8 @@ "x": 37.64, "y": -41.32, "skin": true, - "color": "5e0202ff" + "color": "5e0202ff", + "icon": "handLeft" }, { "name": "sleeve-control-back", @@ -680,7 +838,8 @@ "x": 25.63, "y": 55.1, "skin": true, - "color": "02045eff" + "color": "02045eff", + "icon": "handLeft" }, { "name": "cape-blue-up", @@ -701,11 +860,51 @@ "skin": true, "color": "1130ff78" }, - { "name": "cape-blue-down-middle", "parent": "cape-blue-down", "x": 168.33, "y": -1.52, "skin": true, "color": "1130ff78" }, - { "name": "cape-blue-down-front", "parent": "cape-blue-down-middle", "x": -19.01, "y": -133.73, "skin": true, "color": "1130ff78" }, - { "name": "cape-blue-down-back", "parent": "cape-blue-down-middle", "x": -10.01, "y": 121.12, "skin": true, "color": "1130ff78" }, - { "name": "cape-blue-middle-front", "parent": "cape-blue-down", "x": 41.13, "y": -101.46, "skin": true, "color": "1130ff78" }, - { "name": "cape-blue-middle-back", "parent": "cape-blue-down", "x": 33.12, "y": 96.5, "skin": true, "color": "1130ff78" }, + { + "name": "cape-blue-down-middle", + "parent": "cape-blue-down", + "x": 168.33, + "y": -1.52, + "skin": true, + "color": "1130ff78", + "icon": "romanII" + }, + { + "name": "cape-blue-down-front", + "parent": "cape-blue-down-middle", + "x": -19.01, + "y": -133.73, + "skin": true, + "color": "1130ff78", + "icon": "romanII" + }, + { + "name": "cape-blue-down-back", + "parent": "cape-blue-down-middle", + "x": -10.01, + "y": 121.12, + "skin": true, + "color": "1130ff78", + "icon": "romanII" + }, + { + "name": "cape-blue-middle-front", + "parent": "cape-blue-down", + "x": 41.13, + "y": -101.46, + "skin": true, + "color": "1130ff78", + "icon": "romanII" + }, + { + "name": "cape-blue-middle-back", + "parent": "cape-blue-down", + "x": 33.12, + "y": 96.5, + "skin": true, + "color": "1130ff78", + "icon": "romanII" + }, { "name": "cape-blue-up-front", "parent": "cape-front-rotator", @@ -713,7 +912,8 @@ "x": 98.31, "y": 4.67, "skin": true, - "color": "1130ff78" + "color": "1130ff78", + "icon": "romanII" }, { "name": "cape-blue-up-back", @@ -722,7 +922,8 @@ "x": 69.6, "y": -16.89, "skin": true, - "color": "1130ff78" + "color": "1130ff78", + "icon": "romanII" }, { "name": "cape-blue-control", @@ -731,9 +932,10 @@ "x": 179.82, "y": -1.71, "skin": true, - "color": "ff11b6ff" + "color": "ff11b6ff", + "icon": "arrows" }, - { "name": "mouth", "parent": "features-control", "x": -0.72, "y": -41.96, "color": "258effff" } + { "name": "mouth", "parent": "features-control", "x": -0.72, "y": -41.96, "color": "258effff", "icon": "mouth" } ], "slots": [ { "name": "sleeve-inner-back", "bone": "arm-back-down", "attachment": "sleeve-inner-back" }, @@ -1188,7 +1390,7 @@ }, { "name": "accessories/backpack", - "bones": [ "backpack-control", "backpack" ], + "bones": [ "backpack", "backpack-control" ], "attachments": { "backpack": { "backpack": { @@ -1262,7 +1464,7 @@ }, { "name": "accessories/bag", - "bones": [ "bag-back-front", "bag-flap", "bag-strap-front", "bag-back-down", "bag-strap-back", "bag", "bag-control" ], + "bones": [ "bag", "bag-back-down", "bag-back-front", "bag-control", "bag-flap", "bag-strap-back", "bag-strap-front" ], "attachments": { "bag-base": { "bag-base": { @@ -1323,7 +1525,7 @@ }, { "name": "accessories/cape-blue", - "bones": [ "cape-blue-up", "cape-front-rotator", "cape-blue-control", "cape-blue-down-middle", "cape-blue-middle-back", "cape-blue-middle-front", "cape-blue-up-front", "cape-back-rotator", "cape-blue-down-back", "cape-blue-down-front", "cape-blue-down", "cape-blue-up-back" ], + "bones": [ "cape-back-rotator", "cape-blue-control", "cape-blue-down", "cape-blue-down-back", "cape-blue-down-front", "cape-blue-down-middle", "cape-blue-middle-back", "cape-blue-middle-front", "cape-blue-up", "cape-blue-up-back", "cape-blue-up-front", "cape-front-rotator" ], "attachments": { "cape-back": { "cape-back": { @@ -1411,7 +1613,7 @@ }, { "name": "accessories/cape-red", - "bones": [ "cape-red-front-inside", "cape-red-front-outside", "cape-front-rotator", "cape-red-back-outside", "cape-back-rotator", "cape-red-back-inside" ], + "bones": [ "cape-back-rotator", "cape-front-rotator", "cape-red-back-inside", "cape-red-back-outside", "cape-red-front-inside", "cape-red-front-outside" ], "attachments": { "cape-red-down": { "cape-red-down": { @@ -1449,7 +1651,7 @@ }, { "name": "accessories/hat-pointy-blue-yellow", - "bones": [ "pompom-control", "hat", "hat-control", "hat-base" ], + "bones": [ "hat", "hat-base", "hat-control", "pompom-control" ], "transform": [ "hat-control" ], "attachments": { "hat": { @@ -1475,7 +1677,7 @@ }, { "name": "accessories/hat-red-yellow", - "bones": [ "pompom-control", "hat", "hat-control", "hat-base" ], + "bones": [ "hat", "hat-base", "hat-control", "pompom-control" ], "transform": [ "hat-control" ], "attachments": { "hat": { @@ -1526,8 +1728,8 @@ }, { "name": "clothes/dress-blue", - "bones": [ "dress-control-leg-down-back", "dress-control-leg-up-back", "sleeve-control-front", "dress-control-leg-down-front", "sleeve-control-back", "dress-control-middle", "dress-control-foot-back", "dress-control-foot-front", "dress-control-leg-up-front" ], - "transform": [ "leg-down-front", "leg-up", "leg-down-back", "leg-down-back-up", "leg-down-down", "leg-up-back" ], + "bones": [ "dress-control-foot-back", "dress-control-foot-front", "dress-control-leg-down-back", "dress-control-leg-down-front", "dress-control-leg-up-back", "dress-control-leg-up-front", "dress-control-middle", "sleeve-control-back", "sleeve-control-front" ], + "transform": [ "leg-down-back", "leg-down-back-up", "leg-down-down", "leg-down-front", "leg-up", "leg-up-back" ], "attachments": { "arm-back": { "arm-back": { @@ -1615,7 +1817,7 @@ }, { "name": "clothes/dress-green", - "bones": [ "skirt-control-front-down", "skirt-control-up", "skirt-control-back-down", "skirt-control", "skirt-control-front", "skirt-control-back", "skirt-control-middle" ], + "bones": [ "skirt-control", "skirt-control-back", "skirt-control-back-down", "skirt-control-front", "skirt-control-front-down", "skirt-control-middle", "skirt-control-up" ], "attachments": { "body-up": { "body-up": { "name": "girl-spring-dress/body-up", "x": 59.16, "y": -14.67, "rotation": -94.33, "width": 128, "height": 131 } @@ -1653,7 +1855,7 @@ }, { "name": "clothes/hoodie-blue-and-scarf", - "bones": [ "zip-girl", "scarf-back" ], + "bones": [ "scarf-back", "zip-girl" ], "attachments": { "arm-back": { "arm-back": { "name": "girl/arm-front", "type": "linkedmesh", "skin": "full-skins/boy", "parent": "arm-back", "width": 71, "height": 229 } @@ -2110,7 +2312,7 @@ }, { "name": "full-skins/boy", - "bones": [ "hat-base", "pompom-control", "hat", "zip-boy", "hat-control", "backpack", "backpack-control" ], + "bones": [ "backpack", "backpack-control", "hat", "hat-base", "hat-control", "pompom-control", "zip-boy" ], "transform": [ "hat-control" ], "attachments": { "arm-back": { @@ -2535,7 +2737,7 @@ }, { "name": "full-skins/girl", - "bones": [ "bag-back-front", "bag-flap", "hair-strand-back-1", "hair-strand-back-3", "hat", "pompom-control", "zip-girl", "bag-strap-front", "hair-holder-front", "scarf-back", "bag-back-down", "hat-control", "bag-strap-back", "hair-strand-front-2", "hair-strand-front-3", "hair-holder-back", "bag", "hair-strand-front-4", "bag-control", "hair-strand-front-1", "hair-strand-back-2", "hat-base" ], + "bones": [ "bag", "bag-back-down", "bag-back-front", "bag-control", "bag-flap", "bag-strap-back", "bag-strap-front", "hair-holder-back", "hair-holder-front", "hair-strand-back-1", "hair-strand-back-2", "hair-strand-back-3", "hair-strand-front-1", "hair-strand-front-2", "hair-strand-front-3", "hair-strand-front-4", "hat", "hat-base", "hat-control", "pompom-control", "scarf-back", "zip-girl" ], "transform": [ "hat-control", "leg-down-back-up", "leg-up-back" ], "attachments": { "arm-back": { @@ -3033,8 +3235,8 @@ }, { "name": "full-skins/girl-blue-cape", - "bones": [ "cape-blue-up", "dress-control-leg-up-front", "dress-control-leg-down-back", "sleeve-control-front", "dress-control-leg-up-back", "cape-front-rotator", "cape-blue-control", "cape-blue-down-middle", "cape-blue-middle-back", "cape-blue-middle-front", "dress-control-leg-down-front", "dress-control-middle", "sleeve-control-back", "cape-blue-up-front", "cape-back-rotator", "cape-blue-down-back", "cape-blue-down-front", "dress-control-foot-back", "cape-blue-down", "dress-control-foot-front", "cape-blue-up-back" ], - "transform": [ "leg-down-front", "leg-up", "leg-down-back", "leg-down-back-up", "leg-down-down", "leg-up-back" ], + "bones": [ "cape-back-rotator", "cape-blue-control", "cape-blue-down", "cape-blue-down-back", "cape-blue-down-front", "cape-blue-down-middle", "cape-blue-middle-back", "cape-blue-middle-front", "cape-blue-up", "cape-blue-up-back", "cape-blue-up-front", "cape-front-rotator", "dress-control-foot-back", "dress-control-foot-front", "dress-control-leg-down-back", "dress-control-leg-down-front", "dress-control-leg-up-back", "dress-control-leg-up-front", "dress-control-middle", "sleeve-control-back", "sleeve-control-front" ], + "transform": [ "leg-down-back", "leg-down-back-up", "leg-down-down", "leg-down-front", "leg-up", "leg-up-back" ], "attachments": { "arm-back": { "arm-back": { @@ -3527,7 +3729,7 @@ }, { "name": "full-skins/girl-spring-dress", - "bones": [ "cape-red-front-inside", "skirt-control-front-down", "cape-red-front-outside", "cape-front-rotator", "skirt-control-back-down", "skirt-control-up", "skirt-rotation-back", "skirt-control", "cape-red-back-outside", "cape-back-rotator", "skirt-rotation-front", "skirt-control-middle", "skirt-control-front", "skirt-control-back", "cape-red-back-inside" ], + "bones": [ "cape-back-rotator", "cape-front-rotator", "cape-red-back-inside", "cape-red-back-outside", "cape-red-front-inside", "cape-red-front-outside", "skirt-control", "skirt-control-back", "skirt-control-back-down", "skirt-control-front", "skirt-control-front-down", "skirt-control-middle", "skirt-control-up", "skirt-rotation-back", "skirt-rotation-front" ], "transform": [ "skirt-rotation-back", "skirt-rotation-front" ], "attachments": { "arm-back": { @@ -4256,7 +4458,7 @@ }, { "name": "hair/long-blue-with-scarf", - "bones": [ "hair-strand-back-1", "hair-strand-back-3", "hair-holder-front", "scarf-back", "hair-strand-front-2", "hair-holder-back", "hair-strand-front-3", "hair-strand-front-1", "hair-strand-front-4", "hair-strand-back-2" ], + "bones": [ "hair-holder-back", "hair-holder-front", "hair-strand-back-1", "hair-strand-back-2", "hair-strand-back-3", "hair-strand-front-1", "hair-strand-front-2", "hair-strand-front-3", "hair-strand-front-4", "scarf-back" ], "attachments": { "ear": { "ear": { "name": "girl/ear", "x": 56.58, "y": 85.63, "rotation": -87.57, "width": 38, "height": 45 } diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/raptor-pro-and-mask/SpriteMask_Mask.png.meta b/Assets/ThirdParty/Spine Examples/Spine Skeletons/raptor-pro-and-mask/SpriteMask_Mask.png.meta index dc81a555c..139c62331 100644 --- a/Assets/ThirdParty/Spine Examples/Spine Skeletons/raptor-pro-and-mask/SpriteMask_Mask.png.meta +++ b/Assets/ThirdParty/Spine Examples/Spine Skeletons/raptor-pro-and-mask/SpriteMask_Mask.png.meta @@ -20,6 +20,7 @@ TextureImporter: externalNormalMap: 0 heightScale: 0.25 normalMapFilter: 0 + flipGreenChannel: 0 isReadable: 0 streamingMipmaps: 0 streamingMipmapsPriority: 0 @@ -63,6 +64,7 @@ TextureImporter: textureFormatSet: 0 ignorePngGamma: 0 applyGammaDecoding: 1 + swizzle: 50462976 cookieLightType: 1 platformSettings: - serializedVersion: 3 @@ -89,30 +91,6 @@ TextureImporter: overridden: 0 androidETC2FallbackOverride: 0 forceMaximumCompressionQuality_BC6H_BC7: 1 - - serializedVersion: 3 - buildTarget: iPhone - maxTextureSize: 2048 - resizeAlgorithm: 0 - textureFormat: -1 - textureCompression: 1 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - androidETC2FallbackOverride: 0 - forceMaximumCompressionQuality_BC6H_BC7: 1 - - serializedVersion: 3 - buildTarget: Android - maxTextureSize: 2048 - resizeAlgorithm: 0 - textureFormat: -1 - textureCompression: 1 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - androidETC2FallbackOverride: 0 - forceMaximumCompressionQuality_BC6H_BC7: 1 - serializedVersion: 3 buildTarget: Server maxTextureSize: 2048 @@ -141,7 +119,6 @@ TextureImporter: nameFileIdTable: {} spritePackingTag: pSDRemoveMatte: 0 - pSDShowRemoveMatteOption: 0 userData: assetBundleName: assetBundleVariant: diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/raptor-pro-and-mask/raptor-pma.atlas.txt b/Assets/ThirdParty/Spine Examples/Spine Skeletons/raptor-pro-and-mask/raptor-pma.atlas.txt index 5b4981c80..456015eaf 100644 --- a/Assets/ThirdParty/Spine Examples/Spine Skeletons/raptor-pro-and-mask/raptor-pma.atlas.txt +++ b/Assets/ThirdParty/Spine Examples/Spine Skeletons/raptor-pro-and-mask/raptor-pma.atlas.txt @@ -4,98 +4,91 @@ raptor-pma.png pma: true scale: 0.5 back-arm - bounds: 829, 88, 46, 25 - rotate: 90 + bounds: 895, 295, 46, 25 back-bracer - bounds: 195, 238, 39, 28 + bounds: 992, 216, 39, 28 rotate: 90 back-hand - bounds: 724, 140, 36, 34 - rotate: 90 + bounds: 594, 58, 36, 34 back-knee - bounds: 760, 131, 49, 67 + bounds: 729, 86, 49, 67 rotate: 90 back-thigh - bounds: 225, 238, 39, 24 - rotate: 90 + bounds: 379, 2, 39, 24 eyes-open - bounds: 975, 204, 47, 45 + bounds: 902, 194, 47, 45 + rotate: 90 front-arm - bounds: 969, 112, 48, 26 + bounds: 945, 306, 48, 26 front-bracer - bounds: 724, 97, 41, 29 - rotate: 90 + bounds: 949, 197, 41, 29 front-hand - bounds: 251, 239, 41, 38 + bounds: 949, 266, 41, 38 front-open-hand - bounds: 856, 76, 43, 44 - rotate: 90 + bounds: 875, 148, 43, 44 front-thigh - bounds: 729, 178, 57, 29 + bounds: 793, 171, 57, 29 rotate: 90 gun - bounds: 894, 251, 107, 103 + bounds: 379, 28, 107, 103 + rotate: 90 gun-nohand - bounds: 764, 241, 105, 102 + bounds: 487, 87, 105, 102 head - bounds: 756, 345, 136, 149 + bounds: 807, 361, 136, 149 lower-leg - bounds: 475, 237, 73, 98 - rotate: 90 + bounds: 827, 195, 73, 98 mouth-grind - bounds: 975, 172, 47, 30 -mouth-smile - bounds: 975, 140, 47, 30 -neck - bounds: 366, 282, 18, 21 -raptor-back-arm - bounds: 636, 97, 82, 86 + bounds: 920, 145, 47, 30 rotate: 90 +mouth-smile + bounds: 992, 257, 47, 30 + rotate: 90 +neck + bounds: 359, 114, 18, 21 +raptor-back-arm + bounds: 653, 142, 82, 86 raptor-body - bounds: 2, 2, 632, 233 + bounds: 2, 277, 632, 233 raptor-front-arm - bounds: 871, 168, 81, 102 + bounds: 484, 4, 81, 102 rotate: 90 raptor-front-leg - bounds: 2, 237, 191, 257 + bounds: 2, 18, 191, 257 raptor-hindleg-back - bounds: 195, 279, 169, 215 + bounds: 636, 295, 169, 215 raptor-horn - bounds: 431, 312, 182, 80 - rotate: 90 + bounds: 195, 22, 182, 80 raptor-horn-back - bounds: 513, 318, 176, 77 + bounds: 945, 334, 176, 77 rotate: 90 raptor-jaw - bounds: 894, 356, 126, 138 + bounds: 359, 137, 126, 138 raptor-jaw-tooth - bounds: 294, 240, 37, 48 + bounds: 895, 322, 37, 48 rotate: 90 raptor-mouth-inside - bounds: 344, 241, 36, 41 + bounds: 949, 228, 36, 41 rotate: 90 raptor-saddle-strap-back - bounds: 575, 242, 54, 74 + bounds: 653, 86, 54, 74 + rotate: 90 raptor-saddle-strap-front - bounds: 764, 182, 57, 95 - rotate: 90 + bounds: 594, 94, 57, 95 raptor-saddle-w-shadow - bounds: 592, 323, 162, 171 + bounds: 195, 104, 162, 171 raptor-tail-shadow - bounds: 366, 305, 189, 63 - rotate: 90 + bounds: 636, 230, 189, 63 raptor-tongue - bounds: 387, 239, 86, 64 + bounds: 807, 295, 86, 64 stirrup-back - bounds: 829, 136, 44, 35 + bounds: 952, 151, 44, 35 rotate: 90 stirrup-front - bounds: 866, 121, 45, 50 - rotate: 90 + bounds: 902, 243, 45, 50 stirrup-strap - bounds: 918, 120, 49, 46 + bounds: 824, 147, 49, 46 torso - bounds: 636, 181, 54, 91 - rotate: 90 + bounds: 737, 137, 54, 91 visor - bounds: 631, 237, 131, 84 + bounds: 487, 191, 131, 84 diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/raptor-pro-and-mask/raptor-pma.png b/Assets/ThirdParty/Spine Examples/Spine Skeletons/raptor-pro-and-mask/raptor-pma.png index 6d0349772..0448b24a6 100644 Binary files a/Assets/ThirdParty/Spine Examples/Spine Skeletons/raptor-pro-and-mask/raptor-pma.png and b/Assets/ThirdParty/Spine Examples/Spine Skeletons/raptor-pro-and-mask/raptor-pma.png differ diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/raptor-pro-and-mask/raptor-pma.png.meta b/Assets/ThirdParty/Spine Examples/Spine Skeletons/raptor-pro-and-mask/raptor-pma.png.meta index 43f3387b1..bed3a691f 100644 --- a/Assets/ThirdParty/Spine Examples/Spine Skeletons/raptor-pro-and-mask/raptor-pma.png.meta +++ b/Assets/ThirdParty/Spine Examples/Spine Skeletons/raptor-pro-and-mask/raptor-pma.png.meta @@ -8,7 +8,7 @@ TextureImporter: mipmaps: mipMapMode: 0 enableMipMap: 0 - sRGBTexture: 1 + sRGBTexture: 0 linearTexture: 0 fadeOut: 0 borderMipMap: 0 diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/raptor-pro-and-mask/raptor-pma_Material.mat b/Assets/ThirdParty/Spine Examples/Spine Skeletons/raptor-pro-and-mask/raptor-pma_Material.mat index 6a5886eba..d14940507 100644 --- a/Assets/ThirdParty/Spine Examples/Spine Skeletons/raptor-pro-and-mask/raptor-pma_Material.mat +++ b/Assets/ThirdParty/Spine Examples/Spine Skeletons/raptor-pro-and-mask/raptor-pma_Material.mat @@ -7,7 +7,7 @@ Material: m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_Name: raptor-pma_Material + m_Name: raptor-pma_material m_Shader: {fileID: 4800000, guid: 1e8a610c9e01c3648bac42585e5fc676, type: 3} m_ValidKeywords: [] m_InvalidKeywords: @@ -28,6 +28,7 @@ Material: m_Ints: [] m_Floats: - _Cutoff: 0.1 + - _Fill: 0 - _OutlineMipLevel: 0 - _OutlineOpaqueAlpha: 1 - _OutlineReferenceTexWidth: 1024 @@ -38,6 +39,7 @@ Material: - _StraightAlphaInput: 0 - _ThresholdEnd: 0.25 - _Use8Neighbourhood: 1 + - _UseScreenSpaceOutlineWidth: 0 m_Colors: - _OutlineColor: {r: 1, g: 1, b: 0, a: 1} m_BuildTextureStacks: [] diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/raptor-pro-and-mask/raptor-pma_Material.mat.meta b/Assets/ThirdParty/Spine Examples/Spine Skeletons/raptor-pro-and-mask/raptor-pma_Material.mat.meta index 3387fe83e..5f9cd8029 100644 --- a/Assets/ThirdParty/Spine Examples/Spine Skeletons/raptor-pro-and-mask/raptor-pma_Material.mat.meta +++ b/Assets/ThirdParty/Spine Examples/Spine Skeletons/raptor-pro-and-mask/raptor-pma_Material.mat.meta @@ -1,8 +1,7 @@ fileFormatVersion: 2 guid: 3d645292a7b9c7547bf7b14caa569410 -timeCreated: 1562070793 -licenseType: Free NativeFormatImporter: + externalObjects: {} mainObjectFileID: 2100000 userData: assetBundleName: diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/raptor-pro-and-mask/raptor-pma_MaterialOutline_OutsideMask.mat b/Assets/ThirdParty/Spine Examples/Spine Skeletons/raptor-pro-and-mask/raptor-pma_MaterialOutline_OutsideMask.mat new file mode 100644 index 000000000..08fa4c4fd --- /dev/null +++ b/Assets/ThirdParty/Spine Examples/Spine Skeletons/raptor-pro-and-mask/raptor-pma_MaterialOutline_OutsideMask.mat @@ -0,0 +1,46 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!21 &2100000 +Material: + serializedVersion: 8 + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: raptor-pma_MaterialOutline_OutsideMask + m_Shader: {fileID: 4800000, guid: 28b5cf4804845fe4b868531fd0bb81d5, type: 3} + m_Parent: {fileID: 0} + m_ModifiedSerializedProperties: 0 + m_ValidKeywords: + - _USE8NEIGHBOURHOOD_ON + m_InvalidKeywords: [] + m_LightmapFlags: 4 + m_EnableInstancingVariants: 0 + m_DoubleSidedGI: 0 + m_CustomRenderQueue: -1 + stringTagMap: {} + disabledShaderPasses: [] + m_LockedProperties: + m_SavedProperties: + serializedVersion: 3 + m_TexEnvs: + - _MainTex: + m_Texture: {fileID: 2800000, guid: c1a5fbc2700be764fa3c6c44b2ed67a0, type: 3} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + m_Ints: [] + m_Floats: + - _Cutoff: 0.1 + - _OutlineMipLevel: 0 + - _OutlineOpaqueAlpha: 1 + - _OutlineReferenceTexWidth: 1024 + - _OutlineSmoothness: 1 + - _OutlineWidth: 2.5 + - _StencilComp: 5 + - _StencilRef: 1 + - _StraightAlphaInput: 0 + - _ThresholdEnd: 0.25 + - _Use8Neighbourhood: 1 + m_Colors: + - _OutlineColor: {r: 1, g: 1, b: 0, a: 1} + m_BuildTextureStacks: [] diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/raptor-pro-and-mask/raptor-pma_MaterialOutline_OutsideMask.mat.meta b/Assets/ThirdParty/Spine Examples/Spine Skeletons/raptor-pro-and-mask/raptor-pma_MaterialOutline_OutsideMask.mat.meta new file mode 100644 index 000000000..b04e2aaf1 --- /dev/null +++ b/Assets/ThirdParty/Spine Examples/Spine Skeletons/raptor-pro-and-mask/raptor-pma_MaterialOutline_OutsideMask.mat.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 2356188fce32f5c4fb7765eceb047114 +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 2100000 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/raptor-pro-and-mask/raptor-pma_MaterialTint.mat b/Assets/ThirdParty/Spine Examples/Spine Skeletons/raptor-pro-and-mask/raptor-pma_MaterialTint.mat new file mode 100644 index 000000000..5ba4aa988 --- /dev/null +++ b/Assets/ThirdParty/Spine Examples/Spine Skeletons/raptor-pro-and-mask/raptor-pma_MaterialTint.mat @@ -0,0 +1,49 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!21 &2100000 +Material: + serializedVersion: 8 + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: raptor-pma_MaterialTint + m_Shader: {fileID: 4800000, guid: 522f03282fd79be47b306e2ef4b593fd, type: 3} + m_Parent: {fileID: 0} + m_ModifiedSerializedProperties: 0 + m_ValidKeywords: [] + m_InvalidKeywords: + - _USE8NEIGHBOURHOOD_ON + m_LightmapFlags: 4 + m_EnableInstancingVariants: 0 + m_DoubleSidedGI: 0 + m_CustomRenderQueue: -1 + stringTagMap: {} + disabledShaderPasses: [] + m_LockedProperties: + m_SavedProperties: + serializedVersion: 3 + m_TexEnvs: + - _MainTex: + m_Texture: {fileID: 2800000, guid: c1a5fbc2700be764fa3c6c44b2ed67a0, type: 3} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + m_Ints: [] + m_Floats: + - _Cutoff: 0.1 + - _DarkColorAlphaAdditive: 0 + - _OutlineMipLevel: 0 + - _OutlineOpaqueAlpha: 1 + - _OutlineReferenceTexWidth: 1024 + - _OutlineSmoothness: 1 + - _OutlineWidth: 2.5 + - _StencilComp: 8 + - _StencilRef: 1 + - _StraightAlphaInput: 0 + - _ThresholdEnd: 0.25 + - _Use8Neighbourhood: 1 + m_Colors: + - _Black: {r: 0, g: 0, b: 0, a: 0} + - _Color: {r: 1, g: 0, b: 0, a: 1} + - _OutlineColor: {r: 1, g: 1, b: 0, a: 1} + m_BuildTextureStacks: [] diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/raptor-pro-and-mask/raptor-pma_MaterialTint.mat.meta b/Assets/ThirdParty/Spine Examples/Spine Skeletons/raptor-pro-and-mask/raptor-pma_MaterialTint.mat.meta new file mode 100644 index 000000000..c4fa926f5 --- /dev/null +++ b/Assets/ThirdParty/Spine Examples/Spine Skeletons/raptor-pro-and-mask/raptor-pma_MaterialTint.mat.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 63cb49ec035f5a8478d2597e35875418 +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 2100000 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/raptor-pro-and-mask/raptor-pma_MaterialTint_OutsideMask.mat b/Assets/ThirdParty/Spine Examples/Spine Skeletons/raptor-pro-and-mask/raptor-pma_MaterialTint_OutsideMask.mat new file mode 100644 index 000000000..bace13940 --- /dev/null +++ b/Assets/ThirdParty/Spine Examples/Spine Skeletons/raptor-pro-and-mask/raptor-pma_MaterialTint_OutsideMask.mat @@ -0,0 +1,49 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!21 &2100000 +Material: + serializedVersion: 8 + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: raptor-pma_MaterialTint_OutsideMask + m_Shader: {fileID: 4800000, guid: 522f03282fd79be47b306e2ef4b593fd, type: 3} + m_Parent: {fileID: 0} + m_ModifiedSerializedProperties: 0 + m_ValidKeywords: [] + m_InvalidKeywords: + - _USE8NEIGHBOURHOOD_ON + m_LightmapFlags: 4 + m_EnableInstancingVariants: 0 + m_DoubleSidedGI: 0 + m_CustomRenderQueue: -1 + stringTagMap: {} + disabledShaderPasses: [] + m_LockedProperties: + m_SavedProperties: + serializedVersion: 3 + m_TexEnvs: + - _MainTex: + m_Texture: {fileID: 2800000, guid: c1a5fbc2700be764fa3c6c44b2ed67a0, type: 3} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + m_Ints: [] + m_Floats: + - _Cutoff: 0.1 + - _DarkColorAlphaAdditive: 0 + - _OutlineMipLevel: 0 + - _OutlineOpaqueAlpha: 1 + - _OutlineReferenceTexWidth: 1024 + - _OutlineSmoothness: 1 + - _OutlineWidth: 2.5 + - _StencilComp: 5 + - _StencilRef: 1 + - _StraightAlphaInput: 0 + - _ThresholdEnd: 0.25 + - _Use8Neighbourhood: 1 + m_Colors: + - _Black: {r: 0, g: 0, b: 0, a: 0} + - _Color: {r: 1, g: 0, b: 0, a: 1} + - _OutlineColor: {r: 1, g: 1, b: 0, a: 1} + m_BuildTextureStacks: [] diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/raptor-pro-and-mask/raptor-pma_MaterialTint_OutsideMask.mat.meta b/Assets/ThirdParty/Spine Examples/Spine Skeletons/raptor-pro-and-mask/raptor-pma_MaterialTint_OutsideMask.mat.meta new file mode 100644 index 000000000..3dac7bcad --- /dev/null +++ b/Assets/ThirdParty/Spine Examples/Spine Skeletons/raptor-pro-and-mask/raptor-pma_MaterialTint_OutsideMask.mat.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: d33029bbf83f260488519251567c0be3 +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 2100000 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/raptor-pro-and-mask/raptor-pro.json b/Assets/ThirdParty/Spine Examples/Spine Skeletons/raptor-pro-and-mask/raptor-pro.json index bd04cccd4..17fc3ae8a 100644 --- a/Assets/ThirdParty/Spine Examples/Spine Skeletons/raptor-pro-and-mask/raptor-pro.json +++ b/Assets/ThirdParty/Spine Examples/Spine Skeletons/raptor-pro-and-mask/raptor-pro.json @@ -1,7 +1,7 @@ { "skeleton": { - "hash": "AAVlM3uJh3s", - "spine": "4.1.23-beta", + "hash": "PlcXzl8RAT8", + "spine": "4.2.22", "x": -809.16, "y": -73.54, "width": 1287.65, @@ -90,7 +90,7 @@ "rotation": -133.55, "x": 232.68, "y": 245.85, - "transform": "noScale", + "inherit": "noScale", "color": "ff3f00ff" }, { @@ -129,8 +129,8 @@ "y": -0.01, "color": "e07800ff" }, - { "name": "back-foot-target", "parent": "root", "x": 33.44, "y": 30.82, "color": "ff3f00ff" }, - { "name": "back-leg-target", "parent": "back-foot-target", "x": -127.51, "y": 75.99, "color": "ff3f00ff" }, + { "name": "back-foot-target", "parent": "root", "x": 33.44, "y": 30.82, "color": "ff3f00ff", "icon": "ik" }, + { "name": "back-leg-target", "parent": "back-foot-target", "x": -127.51, "y": 75.99, "color": "ff3f00ff", "icon": "ik" }, { "name": "back-leg1", "parent": "hip", @@ -174,7 +174,7 @@ "rotation": -6.14, "x": 84.5, "y": -0.35, - "transform": "noRotationOrReflection", + "inherit": "noRotationOrReflection", "color": "e07800ff" }, { @@ -193,7 +193,7 @@ "rotation": 27.78, "x": -0.03, "y": 0.05, - "transform": "noRotationOrReflection", + "inherit": "noRotationOrReflection", "color": "e07800ff" }, { "name": "spineboy-back-foot-target", "parent": "saddle", "x": -30.44, "y": -100.08, "color": "ff3f00ff" }, @@ -231,7 +231,7 @@ "rotation": 11.66, "x": 25.68, "y": -0.77, - "transform": "noScale", + "inherit": "noScale", "color": "e7ff00ff" }, { @@ -309,8 +309,16 @@ "y": 0.2, "color": "15ff00ff" }, - { "name": "front-foot-target", "parent": "root", "rotation": -6.96, "x": -45.8, "y": -28.67, "color": "ff3f00ff" }, - { "name": "front-leg-target", "parent": "front-foot-target", "x": -106.06, "y": 115.58, "color": "ff3f00ff" }, + { + "name": "front-foot-target", + "parent": "root", + "rotation": -6.96, + "x": -45.8, + "y": -28.67, + "color": "ff3f00ff", + "icon": "ik" + }, + { "name": "front-leg-target", "parent": "front-foot-target", "x": -106.06, "y": 115.58, "color": "ff3f00ff", "icon": "ik" }, { "name": "front-leg1", "parent": "hip", @@ -356,7 +364,7 @@ "y": -0.02, "scaleX": 0.731, "scaleY": 0.823, - "transform": "onlyTranslation", + "inherit": "onlyTranslation", "color": "15ff00ff" }, { @@ -387,7 +395,7 @@ "y": -2.77, "scaleX": 1.0004, "scaleY": 1.0004, - "transform": "onlyTranslation", + "inherit": "onlyTranslation", "color": "14ff00ff" }, { "name": "spineboy-front-foot-target", "parent": "saddle", "x": -50.71, "y": -96.93, "color": "ff3f00ff" }, @@ -512,8 +520,24 @@ "y": -0.21, "color": "fff200ff" }, - { "name": "head-control", "parent": "head", "rotation": -95.04, "x": 42.32, "y": -220.33, "color": "219517ff" }, - { "name": "leg-control", "parent": "front-leg1", "rotation": 53.14, "x": 172.97, "y": 4.16, "color": "1d8020ff" } + { + "name": "head-control", + "parent": "head", + "rotation": -95.04, + "x": 42.32, + "y": -220.33, + "color": "219517ff", + "icon": "arrows" + }, + { + "name": "leg-control", + "parent": "front-leg1", + "rotation": 53.14, + "x": 172.97, + "y": 4.16, + "color": "1d8020ff", + "icon": "arrows" + } ], "slots": [ { "name": "back-hand", "bone": "back-hand2", "attachment": "back-hand" }, @@ -657,7 +681,7 @@ "head": { "type": "mesh", "uvs": [ 0.73461, 0.04542, 0.88414, 0.17033, 0.88955, 0.31976, 0.91126, 0.27463, 0.9461, 0.20217, 1, 0.29892, 1, 0.34554, 1, 0.4508, 0.91249, 0.51206, 0.84514, 0.51207, 0.8209, 0.59663, 0.77915, 0.67257, 0.73605, 0.75464, 0.83571, 0.73994, 0.84784, 0.84528, 0.7549, 0.93101, 0.63773, 1, 0.39394, 1, 0.14747, 0.82935, 0, 0.59419, 0, 0.36645, 0.09623, 0.20353, 0.21474, 0.14594, 0.45179, 0.15693, 0.51509, 0.1263, 0.507, 0.07853, 0.42079, 0, 0.56221, 0, 0.19055, 0.39949, 0.27942, 0.31373, 0.79396, 0.479, 0.76029, 0.85997, 0.53421, 0.16964, 0.53207, 0.04286, 0.61949, 0.08784, 0.70424, 0.16685, 0.69053, 0.432, 0.85592, 0.37861, 0.45844, 0.34997, 0.48658, 0.30193, 0.66307, 0.35065, 0.58439, 0.39448, 0.70468, 0.26242, 0.51985, 0.21924 ], - "triangles": [ 23, 24, 32, 32, 24, 34, 35, 34, 0, 34, 25, 33, 34, 24, 25, 33, 27, 34, 34, 27, 0, 25, 26, 33, 33, 26, 27, 32, 35, 42, 35, 0, 1, 32, 34, 35, 36, 40, 37, 40, 42, 37, 37, 42, 2, 40, 43, 42, 2, 42, 1, 43, 32, 42, 42, 35, 1, 7, 37, 6, 37, 2, 6, 6, 2, 5, 2, 3, 5, 3, 4, 5, 8, 37, 7, 10, 36, 30, 10, 11, 36, 15, 16, 31, 18, 12, 17, 38, 18, 28, 12, 31, 16, 12, 41, 36, 41, 12, 18, 41, 18, 38, 38, 28, 29, 15, 31, 14, 12, 16, 17, 14, 31, 13, 31, 12, 13, 18, 19, 28, 12, 36, 11, 19, 20, 28, 29, 28, 21, 38, 39, 41, 28, 20, 21, 39, 43, 40, 38, 29, 39, 21, 22, 29, 29, 22, 39, 22, 23, 39, 39, 23, 43, 43, 23, 32, 41, 39, 40, 10, 30, 9, 41, 40, 36, 8, 9, 37, 9, 30, 37, 30, 36, 37 ], + "triangles": [ 33, 26, 27, 25, 26, 33, 34, 27, 0, 33, 27, 34, 34, 24, 25, 34, 25, 33, 35, 34, 0, 32, 24, 34, 23, 24, 32, 32, 34, 35, 35, 0, 1, 32, 35, 42, 42, 35, 1, 43, 32, 42, 2, 42, 1, 40, 43, 42, 37, 42, 2, 40, 42, 37, 36, 40, 37, 3, 4, 5, 2, 3, 5, 6, 2, 5, 37, 2, 6, 7, 37, 6, 8, 37, 7, 30, 36, 37, 9, 30, 37, 8, 9, 37, 41, 40, 36, 10, 30, 9, 41, 39, 40, 43, 23, 32, 39, 23, 43, 22, 23, 39, 29, 22, 39, 21, 22, 29, 38, 29, 39, 39, 43, 40, 28, 20, 21, 38, 39, 41, 29, 28, 21, 19, 20, 28, 12, 36, 11, 18, 19, 28, 31, 12, 13, 14, 31, 13, 12, 16, 17, 15, 31, 14, 38, 28, 29, 41, 18, 38, 41, 12, 18, 12, 41, 36, 12, 31, 16, 38, 18, 28, 18, 12, 17, 15, 16, 31, 10, 11, 36, 10, 36, 30 ], "vertices": [ 2, 32, 58.33, -14.31, 0.30205, 33, -0.88, -20.72, 0.69795, 3, 30, 69.21, 19.04, 0.07711, 31, 87.24, -25.34, 0.8077, 32, 14.49, -47.57, 0.11518, 3, 29, 43.19, 28.99, 0.10855, 30, 24.81, 15.35, 0.61823, 31, 50.15, -50.03, 0.27322, 1, 30, 38.53, 10.15, 1, 1, 30, 60.57, 1.79, 1, 1, 30, 32.5, -14.23, 1, 1, 30, 18.62, -14.92, 1, 2, 29, 45.01, -20.18, 0.76042, 30, -12.71, -16.48, 0.23958, 1, 28, 166.12, -105.42, 1, 1, 28, 160.05, -88.21, 1, 1, 28, 134.1, -90.39, 1, 1, 28, 108.99, -87.24, 1, 1, 28, 82.04, -84.36, 1, 1, 28, 95.16, -108.38, 1, 1, 28, 66.64, -121.91, 1, 1, 28, 34.17, -106.65, 1, 1, 28, 4.23, -83.54, 1, 1, 28, -17.74, -21.23, 1, 1, 28, 8.01, 58.67, 1, 1, 28, 60.82, 119.66, 1, 1, 28, 124.82, 142.22, 1, 1, 28, 179.28, 133.77, 1, 1, 28, 206.14, 109.19, 1, 3, 28, 224.42, 47.51, 0.55599, 32, 39.26, 67.02, 0.19527, 33, 47.76, 47.19, 0.24873, 3, 28, 238.73, 34.37, 0.20521, 32, 45.19, 48.52, 0.20866, 33, 37.74, 30.54, 0.58612, 2, 32, 59.59, 48.14, 0.05508, 33, 46.95, 19.46, 0.94492, 1, 33, 79.02, 11.41, 1, 1, 33, 46.15, -8.3, 1, 1, 28, 132.71, 90.25, 1, 1, 28, 164.81, 76.03, 1, 1, 28, 164.73, -71.85, 1, 1, 28, 54.62, -100.99, 1, 3, 28, 228.27, 25.19, 0.29316, 32, 31.56, 45.72, 0.3088, 33, 26.66, 38.96, 0.39805, 1, 33, 46.59, 6.85, 1, 2, 32, 51.44, 18.64, 0.07922, 33, 19.38, 6.16, 0.92078, 1, 32, 24.18, 0.23, 1, 1, 28, 168.62, -40.76, 1, 3, 29, 25.61, 19.96, 0.50536, 30, 6.84, 23.59, 0.2645, 31, 30.44, -51.51, 0.23014, 1, 28, 170.76, 26.69, 1, 4, 28, 186.8, 24.26, 0.75057, 31, -2.82, 45.62, 0.07609, 32, -4.94, 65.43, 0.10488, 33, 17.45, 79.4, 0.06845, 1, 31, 10.01, -2.69, 1, 1, 28, 169.6, -9.91, 1, 1, 31, 38.3, 1.56, 1, 4, 28, 213.04, 23.94, 0.43153, 31, 22.88, 50.92, 0.09832, 32, 17.71, 52.17, 0.26174, 33, 22.39, 53.63, 0.20841 ], "hull": 28, "edges": [ 10, 8, 4, 2, 2, 0, 0, 54, 52, 54, 52, 50, 50, 48, 48, 46, 46, 44, 44, 42, 42, 40, 40, 56, 56, 58, 60, 18, 18, 16, 16, 14, 38, 40, 38, 36, 36, 34, 32, 34, 32, 30, 30, 62, 62, 28, 28, 26, 26, 24, 24, 22, 22, 20, 20, 18, 28, 30, 48, 64, 50, 66, 66, 54, 0, 68, 68, 48, 66, 68, 2, 70, 70, 64, 68, 70, 72, 60, 10, 12, 12, 14, 4, 12, 4, 6, 6, 8, 10, 6, 14, 74, 4, 74, 74, 72, 58, 76, 78, 76, 78, 44, 80, 78, 72, 82, 82, 76, 80, 82, 80, 74, 70, 84, 84, 80, 4, 84, 64, 86, 86, 78, 84, 86 ], @@ -679,7 +703,7 @@ "raptor-back-arm": { "type": "mesh", "uvs": [ 0.38712, 0.29362, 0.31383, 0.46513, 0.29243, 0.51522, 0.32476, 0.49311, 0.57587, 0.32139, 0.63255, 0.28263, 0.71632, 0.34508, 0.94948, 0.51888, 0.94948, 0.60129, 1, 0.65257, 1, 0.90624, 0.95463, 0.99934, 0.88957, 0.83205, 0.80295, 0.99999, 0.75236, 0.75696, 0.6654, 0.71301, 0.62289, 0.63243, 0.58195, 0.65032, 0.22479, 0.80641, 0.07792, 0.73315, 0.07825, 0.6655, 0.07985, 0.34307, 0, 0.29728, 0, 0, 0.32335, 0 ], - "triangles": [ 6, 15, 16, 5, 6, 16, 5, 16, 4, 6, 7, 15, 16, 17, 4, 8, 15, 7, 14, 15, 8, 12, 14, 8, 12, 8, 9, 12, 9, 10, 11, 12, 10, 13, 14, 12, 17, 3, 4, 19, 20, 2, 18, 19, 2, 18, 2, 3, 18, 3, 17, 21, 22, 23, 24, 21, 23, 0, 21, 24, 1, 21, 0, 1, 20, 21, 2, 20, 1 ], + "triangles": [ 13, 14, 12, 11, 12, 10, 12, 9, 10, 12, 8, 9, 12, 14, 8, 14, 15, 8, 8, 15, 7, 16, 17, 4, 6, 7, 15, 5, 16, 4, 5, 6, 16, 6, 15, 16, 18, 3, 17, 18, 2, 3, 18, 19, 2, 19, 20, 2, 17, 3, 4, 2, 20, 1, 1, 20, 21, 1, 21, 0, 0, 21, 24, 24, 21, 23, 21, 22, 23 ], "vertices": [ 2, 13, 36.95, 33.31, 0.91667, 14, 68.54, 41.05, 0.08333, 2, 13, 66.02, 20.36, 0.76814, 14, 41.42, 24.4, 0.23186, 2, 13, 74.51, 16.58, 0.64468, 14, 33.5, 19.53, 0.35532, 2, 13, 70.89, 21.97, 0.29072, 14, 40, 19.47, 0.70928, 3, 13, 42.78, 63.9, 0.11484, 14, 90.47, 18.95, 0.60855, 22, -17.2, 9.01, 0.27661, 2, 14, 101.86, 18.84, 0.45956, 22, -14.39, 20.05, 0.54044, 2, 14, 106.48, 2.09, 0.0625, 22, 2.98, 20.56, 0.9375, 1, 22, 51.32, 21.99, 1, 1, 22, 60.41, 11.11, 1, 1, 22, 72.39, 9.62, 1, 1, 22, 100.37, -23.87, 1, 1, 22, 104.96, -40.9, 1, 1, 22, 78.37, -25.62, 1, 1, 22, 86.06, -56.84, 1, 1, 22, 52.92, -30.05, 1, 2, 14, 62.25, -43.93, 0.0625, 22, 37.19, -33.34, 0.9375, 2, 14, 64.89, -28.66, 0.3125, 22, 22.99, -27.14, 0.6875, 2, 14, 57.7, -27.17, 0.30612, 22, 19.84, -33.78, 0.69388, 2, 13, 124.19, 3.84, 0.19395, 14, -5.1, -14.24, 0.80605, 2, 13, 110.78, -19.65, 0.3125, 14, -16.89, 10.11, 0.6875, 2, 13, 99.15, -19.2, 0.51614, 14, -9.94, 19.44, 0.48386, 2, 13, 43.73, -17.04, 0.9375, 14, 23.18, 63.93, 0.0625, 1, 13, 35.41, -29.78, 1, 1, 13, -15.69, -28.02, 1, 1, 13, -13.88, 24.65, 1 ], "hull": 25, "edges": [ 44, 46, 44, 42, 38, 36, 32, 30, 30, 28, 28, 26, 24, 22, 18, 16, 16, 14, 46, 48, 38, 4, 6, 4, 6, 36, 42, 40, 40, 38, 4, 2, 2, 0, 40, 2, 10, 32, 36, 34, 34, 32, 10, 8, 8, 6, 34, 8, 14, 12, 12, 10, 12, 30, 18, 20, 22, 20, 26, 24, 48, 0 ], @@ -691,7 +715,7 @@ "raptor-body": { "type": "mesh", "uvs": [ 0.88305, 0.02794, 0.91758, 0.05592, 0.9497, 0.09133, 0.97573, 0.13213, 0.99055, 0.17339, 0.99759, 0.22987, 0.99678, 0.27226, 0.99353, 0.31287, 0.9839, 0.38477, 0.97956, 0.35307, 0.96687, 0.38782, 0.96442, 0.34841, 0.94742, 0.38391, 0.94489, 0.33238, 0.9386, 0.34808, 0.93784, 0.32559, 0.92667, 0.34333, 0.92539, 0.31538, 0.91182, 0.34989, 0.90925, 0.28963, 0.89984, 0.27929, 0.87514, 0.33979, 0.86225, 0.40838, 0.87429, 0.45818, 0.84272, 0.50226, 0.81998, 0.59622, 0.81697, 0.68641, 0.81951, 0.7069, 0.78696, 0.82183, 0.74283, 0.91135, 0.68699, 0.97585, 0.6244, 1, 0.58849, 1, 0.51466, 1, 0.49121, 0.8368, 0.4727, 0.78488, 0.44707, 0.74644, 0.42472, 0.72176, 0.3966, 0.70938, 0.37043, 0.69548, 0.34684, 0.68416, 0.32377, 0.6759, 0.29877, 0.66711, 0.26827, 0.65566, 0.24021, 0.64447, 0.2154, 0.63308, 0.18745, 0.62026, 0.163, 0.61056, 0.13948, 0.60123, 0.11931, 0.59392, 0.09945, 0.58672, 0.08097, 0.5824, 0.06076, 0.58225, 0.04257, 0.58149, 0.02388, 0.58253, 0, 0.58455, 0, 0.56298, 0.0209, 0.55046, 0.03794, 0.53974, 0.05634, 0.52692, 0.0746, 0.51306, 0.09507, 0.49881, 0.11728, 0.48334, 0.1375, 0.46924, 0.16277, 0.45174, 0.18782, 0.43439, 0.21308, 0.4189, 0.23873, 0.40318, 0.26735, 0.38578, 0.2969, 0.36723, 0.32579, 0.35014, 0.35725, 0.33294, 0.37992, 0.3207, 0.41103, 0.31696, 0.44145, 0.29137, 0.47584, 0.28483, 0.49453, 0.31832, 0.5288, 0.35569, 0.60144, 0.41756, 0.65116, 0.41078, 0.70843, 0.42446, 0.7118, 0.2925, 0.70946, 0.19468, 0.70683, 0.08348, 0.76023, 0.01941, 0.79301, 0, 0.83875, 0, 0.02258, 0.5679, 0.04005, 0.56141, 0.05877, 0.55312, 0.07877, 0.54786, 0.09747, 0.5401, 0.12059, 0.53086, 0.14233, 0.52663, 0.16642, 0.52304, 0.19163, 0.52137, 0.2177, 0.51241, 0.24501, 0.50218, 0.27577, 0.49505, 0.30141, 0.49242, 0.3286, 0.49077, 0.3541, 0.49188, 0.38137, 0.49347, 0.40824, 0.49495, 0.44136, 0.50946, 0.47122, 0.53169, 0.49886, 0.56568, 0.53162, 0.60054, 0.60671, 0.67484, 0.6857, 0.67243, 0.7506, 0.59437, 0.76886, 0.46557, 0.7773, 0.34161, 0.77355, 0.22842, 0.8056, 0.09401, 0.86736, 0.07427, 0.90484, 0.17059, 0.9096, 0.19933, 0.91959, 0.21397, 0.93193, 0.20183, 0.93608, 0.17463, 0.92873, 0.1403, 0.91672, 0.13455, 0.90667, 0.14854, 0.91663, 0.09795, 0.89868, 0.09514, 0.88034, 0.09404, 0.9309, 0.11529, 0.93998, 0.15741, 0.94213, 0.17477, 0.94345, 0.19647, 0.94192, 0.20763, 0.92187, 0.22801, 0.9048, 0.23489, 0.8899, 0.19847, 0.8874, 0.16914, 0.87831, 0.12122, 0.585, 0.84243, 0.63024, 0.8646, 0.68284, 0.85192, 0.72923, 0.80453, 0.75898, 0.76323, 0.78513, 0.70347, 0.78536, 0.6783, 0.78141, 0.59277, 0.94721, 0.11131, 0.96236, 0.1618, 0.96367, 0.19318, 0.95806, 0.21052, 0.976, 0.16763, 0.98026, 0.22172, 0.98039, 0.26467, 0.97933, 0.31612, 0.96394, 0.25896, 0.95648, 0.31982, 0.9432, 0.24678, 0.93886, 0.28792 ], - "triangles": [ 134, 135, 116, 107, 34, 35, 106, 107, 35, 106, 35, 36, 105, 106, 36, 78, 107, 77, 77, 107, 106, 76, 77, 106, 76, 106, 105, 76, 105, 75, 116, 135, 123, 134, 116, 117, 123, 122, 121, 123, 121, 120, 116, 123, 120, 130, 119, 120, 119, 117, 120, 126, 123, 136, 122, 125, 124, 125, 122, 126, 155, 20, 133, 20, 21, 112, 19, 20, 156, 133, 118, 132, 131, 132, 118, 122, 124, 127, 133, 113, 134, 131, 130, 148, 155, 131, 148, 130, 129, 147, 129, 128, 146, 17, 18, 19, 129, 146, 147, 1, 124, 125, 136, 114, 126, 16, 17, 15, 154, 17, 156, 2, 127, 124, 155, 148, 150, 145, 127, 2, 146, 128, 3, 148, 147, 150, 2, 124, 1, 151, 156, 153, 152, 154, 156, 13, 154, 11, 147, 149, 4, 11, 12, 13, 11, 154, 152, 4, 149, 3, 8, 9, 7, 111, 22, 23, 22, 112, 21, 112, 81, 113, 81, 82, 113, 113, 82, 114, 82, 83, 114, 83, 84, 114, 84, 85, 114, 114, 86, 115, 114, 85, 86, 115, 0, 1, 115, 86, 0, 10, 11, 9, 11, 152, 9, 9, 152, 7, 7, 152, 6, 6, 152, 151, 6, 151, 5, 5, 151, 150, 150, 4, 5, 150, 147, 4, 146, 3, 149, 145, 2, 3, 151, 153, 150, 152, 156, 151, 126, 114, 115, 135, 113, 114, 147, 146, 149, 1, 125, 115, 145, 3, 128, 13, 15, 154, 153, 155, 150, 13, 14, 15, 15, 17, 154, 20, 112, 113, 125, 126, 115, 148, 130, 147, 156, 155, 153, 127, 145, 128, 20, 113, 133, 127, 128, 121, 17, 19, 156, 135, 114, 136, 132, 131, 155, 120, 128, 129, 155, 133, 132, 131, 118, 119, 118, 117, 119, 156, 20, 155, 131, 119, 130, 133, 117, 118, 130, 120, 129, 122, 123, 126, 117, 116, 120, 121, 122, 127, 120, 121, 128, 113, 135, 134, 135, 136, 123, 133, 134, 117, 24, 111, 23, 111, 112, 22, 111, 80, 112, 112, 80, 81, 110, 107, 78, 30, 139, 29, 139, 140, 29, 29, 140, 28, 140, 108, 109, 140, 141, 28, 28, 141, 27, 27, 141, 142, 140, 109, 141, 141, 109, 142, 142, 26, 27, 142, 143, 26, 142, 109, 143, 26, 143, 25, 109, 110, 143, 110, 144, 143, 143, 144, 25, 109, 108, 110, 110, 79, 80, 79, 110, 78, 25, 144, 24, 110, 111, 144, 110, 80, 111, 144, 111, 24, 108, 34, 107, 30, 31, 138, 138, 31, 32, 138, 32, 137, 32, 33, 137, 33, 34, 137, 138, 139, 30, 138, 137, 139, 139, 137, 140, 108, 140, 137, 137, 34, 108, 110, 108, 107, 37, 105, 36, 104, 105, 37, 104, 37, 38, 38, 103, 104, 105, 104, 75, 103, 73, 104, 104, 73, 74, 75, 104, 74, 38, 39, 103, 39, 102, 103, 40, 102, 39, 101, 102, 40, 73, 103, 72, 101, 71, 102, 72, 103, 102, 72, 102, 71, 101, 40, 41, 100, 101, 41, 100, 41, 42, 100, 42, 99, 69, 100, 99, 71, 101, 70, 69, 70, 100, 101, 100, 70, 42, 43, 99, 99, 43, 98, 43, 44, 98, 98, 44, 97, 98, 97, 67, 99, 98, 68, 68, 98, 67, 99, 68, 69, 44, 45, 97, 97, 45, 96, 45, 46, 96, 96, 46, 95, 96, 95, 65, 97, 96, 66, 96, 65, 66, 97, 66, 67, 46, 47, 95, 95, 47, 94, 47, 48, 94, 94, 48, 93, 94, 93, 63, 95, 94, 64, 94, 63, 64, 95, 64, 65, 48, 49, 93, 93, 49, 92, 92, 49, 91, 49, 50, 91, 91, 61, 92, 93, 92, 62, 92, 61, 62, 93, 62, 63, 50, 90, 91, 51, 89, 90, 50, 51, 90, 51, 52, 89, 89, 59, 90, 59, 60, 90, 90, 60, 91, 60, 61, 91, 55, 87, 54, 55, 56, 87, 54, 87, 53, 52, 88, 89, 87, 88, 53, 52, 53, 88, 56, 57, 87, 87, 57, 88, 57, 58, 88, 88, 58, 89, 58, 59, 89 ], + "triangles": [ 134, 135, 116, 76, 105, 75, 76, 106, 105, 76, 77, 106, 77, 107, 106, 78, 107, 77, 105, 106, 36, 106, 35, 36, 106, 107, 35, 107, 34, 35, 133, 134, 117, 135, 136, 123, 113, 135, 134, 120, 121, 128, 121, 122, 127, 117, 116, 120, 122, 123, 126, 130, 120, 129, 133, 117, 118, 131, 119, 130, 156, 20, 155, 118, 117, 119, 131, 118, 119, 155, 133, 132, 120, 128, 129, 132, 131, 155, 135, 114, 136, 17, 19, 156, 127, 128, 121, 20, 113, 133, 127, 145, 128, 156, 155, 153, 148, 130, 147, 125, 126, 115, 20, 112, 113, 15, 17, 154, 13, 14, 15, 153, 155, 150, 13, 15, 154, 145, 3, 128, 1, 125, 115, 147, 146, 149, 135, 113, 114, 126, 114, 115, 152, 156, 151, 151, 153, 150, 145, 2, 3, 146, 3, 149, 150, 147, 4, 150, 4, 5, 5, 151, 150, 6, 151, 5, 6, 152, 151, 7, 152, 6, 9, 152, 7, 11, 152, 9, 10, 11, 9, 115, 86, 0, 115, 0, 1, 114, 85, 86, 114, 86, 115, 84, 85, 114, 83, 84, 114, 82, 83, 114, 113, 82, 114, 81, 82, 113, 112, 81, 113, 22, 112, 21, 111, 22, 23, 8, 9, 7, 4, 149, 3, 11, 154, 152, 11, 12, 13, 147, 149, 4, 13, 154, 11, 152, 154, 156, 151, 156, 153, 2, 124, 1, 148, 147, 150, 146, 128, 3, 145, 127, 2, 155, 148, 150, 2, 127, 124, 154, 17, 156, 16, 17, 15, 136, 114, 126, 1, 124, 125, 129, 146, 147, 17, 18, 19, 129, 128, 146, 130, 129, 147, 155, 131, 148, 131, 130, 148, 133, 113, 134, 122, 124, 127, 131, 132, 118, 133, 118, 132, 19, 20, 156, 20, 21, 112, 155, 20, 133, 125, 122, 126, 122, 125, 124, 126, 123, 136, 119, 117, 120, 130, 119, 120, 116, 123, 120, 123, 121, 120, 123, 122, 121, 134, 116, 117, 116, 135, 123, 112, 80, 81, 111, 80, 112, 111, 112, 22, 24, 111, 23, 144, 111, 24, 110, 80, 111, 110, 111, 144, 25, 144, 24, 79, 110, 78, 110, 79, 80, 109, 108, 110, 143, 144, 25, 110, 144, 143, 109, 110, 143, 26, 143, 25, 142, 109, 143, 142, 143, 26, 142, 26, 27, 141, 109, 142, 140, 109, 141, 27, 141, 142, 28, 141, 27, 140, 141, 28, 140, 108, 109, 29, 140, 28, 139, 140, 29, 30, 139, 29, 110, 107, 78, 110, 108, 107, 137, 34, 108, 108, 140, 137, 139, 137, 140, 138, 137, 139, 138, 139, 30, 33, 34, 137, 32, 33, 137, 138, 32, 137, 138, 31, 32, 30, 31, 138, 108, 34, 107, 75, 104, 74, 104, 73, 74, 103, 73, 104, 105, 104, 75, 38, 103, 104, 104, 37, 38, 104, 105, 37, 37, 105, 36, 72, 102, 71, 72, 103, 102, 101, 71, 102, 73, 103, 72, 101, 102, 40, 40, 102, 39, 39, 102, 103, 38, 39, 103, 101, 100, 70, 69, 70, 100, 71, 101, 70, 69, 100, 99, 100, 42, 99, 100, 41, 42, 100, 101, 41, 101, 40, 41, 99, 68, 69, 68, 98, 67, 99, 98, 68, 98, 97, 67, 98, 44, 97, 43, 44, 98, 99, 43, 98, 42, 43, 99, 97, 66, 67, 96, 65, 66, 97, 96, 66, 96, 95, 65, 96, 46, 95, 45, 46, 96, 97, 45, 96, 44, 45, 97, 95, 64, 65, 94, 63, 64, 95, 94, 64, 94, 93, 63, 94, 48, 93, 47, 48, 94, 95, 47, 94, 46, 47, 95, 93, 62, 63, 92, 61, 62, 93, 92, 62, 91, 61, 92, 49, 50, 91, 92, 49, 91, 93, 49, 92, 48, 49, 93, 60, 61, 91, 90, 60, 91, 59, 60, 90, 89, 59, 90, 51, 52, 89, 50, 51, 90, 51, 89, 90, 50, 90, 91, 58, 59, 89, 88, 58, 89, 57, 58, 88, 87, 57, 88, 56, 57, 87, 52, 53, 88, 87, 88, 53, 52, 88, 89, 54, 87, 53, 55, 56, 87, 55, 87, 54 ], "vertices": [ 2, 8, 142.31, -163.1, 0.91085, 74, -65.79, 94.58, 0.08915, 2, 8, 129.87, -206.92, 0.78514, 74, -21.05, 86.04, 0.21486, 2, 8, 113.94, -247.72, 0.77045, 74, 21, 73.75, 0.22955, 2, 8, 95.41, -280.88, 0.81697, 74, 55.65, 58.2, 0.18303, 2, 8, 76.47, -299.85, 0.92186, 74, 76.21, 41, 0.07814, 2, 8, 50.32, -309.1, 0.93376, 74, 87.72, 15.77, 0.06624, 2, 8, 30.6, -308.34, 0.9245, 74, 88.7, -3.95, 0.0755, 2, 8, 11.66, -304.47, 0.91842, 74, 86.51, -23.15, 0.08158, 2, 8, -21.93, -292.74, 0.98449, 74, 77.77, -57.64, 0.01551, 2, 8, -7.26, -287.07, 0.90726, 74, 70.83, -43.53, 0.09274, 2, 8, -23.63, -271.23, 0.89469, 74, 56.49, -61.23, 0.10531, 2, 8, -5.35, -267.89, 0.87252, 74, 51.57, -43.31, 0.12748, 2, 8, -22.13, -246.63, 0.90956, 74, 31.85, -61.9, 0.09044, 2, 8, 1.79, -243.11, 0.79155, 74, 26.25, -38.38, 0.20845, 2, 8, -5.62, -235.26, 0.80291, 74, 19.09, -46.44, 0.19709, 2, 8, 4.82, -234.16, 0.75452, 74, 17.07, -36.14, 0.24548, 2, 8, -3.61, -220.15, 0.7702, 74, 3.85, -45.77, 0.2298, 2, 8, 9.36, -218.37, 0.69443, 74, 0.94, -33, 0.30557, 2, 8, -6.91, -201.42, 0.7716, 74, -14.51, -50.7, 0.2284, 2, 8, 21.07, -197.82, 0.52991, 74, -20.56, -23.15, 0.47009, 2, 8, 25.72, -185.86, 0.48384, 74, -32.88, -19.56, 0.51616, 3, 8, -2.82, -155.01, 0.49549, 54, 99.81, 14.95, 0.1998, 74, -61.14, -50.76, 0.30472, 3, 8, -34.92, -139.14, 0.52773, 54, 107.98, -19.92, 0.45684, 74, -74.17, -84.14, 0.01543, 2, 8, -57.88, -154.65, 0.552, 54, 134.55, -27.77, 0.448, 4, 6, 214.38, -86.5, 0.416, 7, 12.5, -126.76, 0.24294, 8, -78.89, -115.02, 0.17462, 54, 117.33, -69.19, 0.16644, 3, 6, 164.81, -103.2, 0.46938, 7, -35.73, -106.53, 0.34058, 54, 123.6, -121.11, 0.19004, 3, 6, 135.98, -133.89, 0.80096, 7, -77.65, -110.49, 0.11639, 54, 147.79, -155.59, 0.08264, 3, 6, 132.63, -143.37, 0.82428, 7, -86.43, -115.4, 0.10285, 54, 156.4, -160.78, 0.07287, 1, 6, 67.3, -160.11, 1, 2, 2, 226.09, -123.55, 0.23474, 6, -2.28, -158.53, 0.76526, 3, 2, 156.49, -155.76, 0.52831, 6, -76.36, -138.65, 0.37693, 1, 172.42, -169.15, 0.09477, 3, 2, 77.76, -169.48, 0.67731, 6, -145.59, -98.75, 0.09201, 1, 92.8, -175.99, 0.23068, 3, 2, 32.4, -170.91, 0.60686, 61, -141.38, 131.19, 0.07586, 1, 47.48, -173.48, 0.31728, 3, 2, -60.88, -173.87, 0.39257, 61, -55.62, 167.98, 0.26021, 1, -45.7, -168.32, 0.34722, 4, 62, -58.53, 122.52, 0.02965, 2, -92.91, -98.95, 0.15809, 61, 1.54, 109.92, 0.56291, 1, -71.11, -90.91, 0.24934, 5, 63, -87.14, 125.38, 0.01694, 62, -30.38, 104.17, 0.12049, 2, -117.05, -75.56, 0.06243, 61, 32.55, 96.96, 0.67353, 1, -93.12, -65.52, 0.12661, 5, 63, -54.56, 107.85, 0.06533, 62, 5.17, 93.91, 0.35431, 2, -149.99, -58.72, 0.01512, 61, 69.37, 93.3, 0.52081, 1, -124.48, -45.88, 0.04444, 4, 64, -91.18, 96.68, 0.02003, 63, -26.17, 96.68, 0.17282, 62, 35.28, 88.98, 0.56052, 61, 99.87, 93.89, 0.24663, 4, 64, -55.58, 91.31, 0.08871, 63, 9.43, 91.31, 0.37251, 62, 71.21, 91.24, 0.43883, 61, 134.8, 102.61, 0.09995, 5, 65, -80.72, 91.6, 0.01487, 64, -22.44, 85.2, 0.21852, 63, 42.57, 85.2, 0.55905, 62, 104.89, 92.27, 0.18543, 61, 167.74, 109.71, 0.02213, 4, 65, -51.3, 84.41, 0.07099, 64, 7.44, 80.26, 0.46092, 63, 72.45, 80.26, 0.39268, 62, 135.14, 93.74, 0.07541, 4, 65, -22.46, 78.67, 0.2126, 64, 36.63, 76.74, 0.62934, 63, 101.64, 76.74, 0.13917, 62, 164.42, 96.46, 0.01889, 4, 66, -61.72, 72.53, 0.05014, 65, 8.81, 72.53, 0.49668, 64, 68.28, 72.99, 0.41049, 63, 133.29, 72.99, 0.04268, 3, 66, -23.6, 64.7, 0.21233, 65, 46.93, 64.7, 0.64547, 64, 106.89, 68.09, 0.1422, 4, 67, -56.68, 59.57, 0.00497, 66, 11.45, 57.2, 0.56359, 65, 81.98, 57.2, 0.40675, 64, 142.41, 63.26, 0.0247, 4, 68, -88.32, 52.48, 0.00856, 67, -26.06, 50.98, 0.14719, 66, 42.4, 49.87, 0.68541, 65, 112.93, 49.87, 0.15884, 4, 68, -53.99, 42.22, 0.05573, 67, 8.43, 41.3, 0.39231, 66, 77.27, 41.61, 0.51595, 65, 147.8, 41.61, 0.036, 5, 69, -79.08, 32.17, 0.00731, 68, -23.87, 33.95, 0.20888, 67, 38.69, 33.54, 0.55959, 66, 107.81, 35.1, 0.21646, 65, 178.34, 35.1, 0.00775, 5, 69, -49.94, 24.87, 0.05717, 68, 5.1, 25.99, 0.4278, 67, 67.79, 26.07, 0.45737, 66, 137.19, 28.83, 0.05638, 65, 207.72, 28.83, 0.00128, 5, 70, -74, 19.39, 0.00687, 69, -24.91, 18.93, 0.21088, 68, 29.98, 19.49, 0.5528, 67, 92.78, 19.99, 0.22286, 66, 162.41, 23.77, 0.00659, 4, 70, -49.4, 13.39, 0.05569, 69, -0.28, 13.08, 0.44113, 68, 54.48, 13.08, 0.43894, 67, 117.38, 14, 0.06424, 4, 70, -26.39, 8.9, 0.21474, 69, 22.77, 8.73, 0.56103, 68, 77.42, 8.22, 0.21699, 67, 140.4, 9.52, 0.00724, 3, 70, -1, 6.11, 0.49366, 69, 48.17, 6.1, 0.44664, 68, 102.76, 5.01, 0.05971, 3, 70, 21.83, 3.3, 0.77042, 69, 71.02, 3.44, 0.22113, 68, 125.54, 1.84, 0.00845, 2, 70, 45.36, 1.27, 0.92172, 69, 94.56, 1.55, 0.07828, 2, 70, 75.48, -1.02, 0.98437, 69, 124.7, -0.54, 0.01563, 2, 70, 74.41, -10.99, 0.98712, 69, 123.69, -10.52, 0.01288, 2, 70, 47.53, -13.96, 0.9286, 69, 96.83, -13.66, 0.0714, 3, 70, 25.58, -16.62, 0.78026, 69, 74.89, -16.46, 0.21218, 68, 128.96, -18.15, 0.00756, 4, 70, 1.81, -20.07, 0.50456, 69, 51.15, -20.06, 0.43841, 68, 105.14, -21.21, 0.05555, 67, 168.62, -19.43, 0.00148, 4, 70, -21.82, -24.02, 0.2241, 69, 27.54, -24.16, 0.55698, 68, 81.45, -24.77, 0.20577, 67, 144.99, -23.39, 0.01316, 5, 70, -48.25, -27.85, 0.06037, 69, 1.14, -28.15, 0.44261, 68, 54.96, -28.17, 0.41953, 67, 118.56, -27.24, 0.07662, 66, 190.11, -22.36, 8.7E-4, 5, 70, -76.93, -32.01, 0.00843, 69, -27.52, -32.49, 0.21461, 68, 26.21, -31.86, 0.52853, 67, 89.88, -31.41, 0.23794, 66, 161.62, -27.71, 0.01048, 5, 69, -53.61, -36.45, 0.05984, 68, 0.04, -35.22, 0.4064, 67, 63.76, -35.22, 0.46847, 66, 135.68, -32.58, 0.06423, 65, 206.21, -32.58, 0.00106, 5, 69, -86.21, -41.34, 0.00821, 68, -32.66, -39.38, 0.19546, 67, 31.14, -39.93, 0.57299, 66, 103.28, -38.62, 0.21339, 65, 173.81, -38.62, 0.00994, 4, 68, -65.07, -43.5, 0.05047, 67, -1.2, -44.59, 0.45101, 66, 71.16, -44.6, 0.43746, 65, 141.69, -44.6, 0.06106, 4, 68, -97.64, -46.72, 0.00724, 67, -33.71, -48.36, 0.20423, 66, 38.83, -49.7, 0.58773, 65, 109.36, -49.7, 0.2008, 4, 67, -66.72, -52.2, 0.05217, 66, 6, -54.89, 0.45622, 65, 76.53, -54.89, 0.46325, 64, 145.49, -48.91, 0.02835, 3, 66, -30.62, -60.6, 0.17334, 65, 39.91, -60.6, 0.683, 64, 109.41, -57.39, 0.14366, 4, 66, -68.46, -66.77, 0.0295, 65, 2.07, -66.77, 0.50408, 64, 72.15, -66.42, 0.40417, 63, 137.16, -66.42, 0.06225, 4, 65, -34.88, -72.32, 0.18739, 64, 35.73, -74.76, 0.58778, 63, 100.73, -74.76, 0.2056, 62, 195.5, -51.82, 0.01923, 4, 65, -75.09, -77.7, 0.04676, 64, -3.96, -83.19, 0.39617, 63, 61.05, -83.19, 0.48167, 62, 158.49, -68.43, 0.07539, 3, 64, -32.54, -89.19, 0.14427, 63, 32.47, -89.19, 0.63908, 62, 131.82, -80.33, 0.21665, 4, 64, -71.85, -91.35, 0.04785, 63, -6.84, -91.35, 0.40108, 62, 93.85, -90.74, 0.50635, 61, 189.98, -72.27, 0.04472, 3, 63, -45.16, -103.67, 0.17783, 62, 58.99, -110.86, 0.68949, 61, 159.33, -98.37, 0.13269, 4, 63, -88.59, -107.18, 0.06196, 62, 17.28, -123.46, 0.5382, 2, -120.43, 156.97, 0.01597, 61, 120.58, -118.3, 0.38387, 4, 63, -112.39, -91.86, 0.01664, 62, -9.21, -113.51, 0.31712, 2, -96.32, 142.15, 0.06918, 61, 92.73, -113.3, 0.59706, 3, 62, -55.3, -106.16, 0.18947, 2, -52.49, 126.15, 0.211, 61, 46.08, -114.41, 0.59953, 3, 2, 40.2, 100.3, 0.70054, 6, -1.56, 132.44, 0.1247, 61, -49.65, -124.17, 0.17476, 2, 2, 102.91, 105.44, 0.48476, 6, 49.88, 96.2, 0.51524, 2, 6, 102.97, 46.59, 0.55391, 7, 16.89, 46.74, 0.44609, 2, 7, 77.99, 53.82, 0.34839, 8, 16.46, 51.73, 0.65161, 1, 8, 61.91, 55.28, 1, 1, 8, 113.57, 59.28, 1, 2, 8, 144.24, -7.82, 0.89352, 74, -220.64, 82.87, 0.10648, 2, 8, 153.81, -49.13, 0.88, 74, -180.33, 96.03, 0.12, 2, 8, 154.57, -106.94, 0.91167, 74, -122.81, 101.86, 0.08833, 2, 70, 46.28, -5.67, 0.88974, 69, 95.52, -5.38, 0.11026, 3, 70, 24, -6.32, 0.78319, 69, 73.25, -6.17, 0.21288, 68, 127.55, -7.82, 0.00393, 3, 70, 0.06, -7.63, 0.4984, 69, 49.31, -7.63, 0.45067, 68, 103.59, -8.74, 0.05093, 4, 70, -25.34, -7.36, 0.21021, 69, 23.92, -7.52, 0.57916, 68, 78.21, -8.06, 0.20281, 67, 141.46, -6.74, 0.00782, 4, 70, -49.23, -8.43, 0.05008, 69, 0.04, -8.74, 0.44936, 68, 54.3, -8.74, 0.44109, 67, 117.57, -7.82, 0.05946, 5, 70, -78.74, -9.59, 0.00411, 69, -29.46, -10.08, 0.20704, 68, 24.78, -9.42, 0.55388, 67, 88.06, -9, 0.22906, 66, 158.89, -5.38, 0.0059, 4, 69, -57, -9.28, 0.05054, 68, -2.74, -7.99, 0.42931, 67, 60.53, -8.04, 0.46828, 66, 131.34, -5.55, 0.05187, 5, 69, -87.47, -7.89, 0.00416, 68, -33.16, -5.91, 0.19066, 67, 30.07, -6.47, 0.59281, 66, 100.84, -5.23, 0.20446, 65, 171.37, -5.23, 0.00791, 4, 68, -64.88, -2.76, 0.04806, 67, -1.7, -3.86, 0.44622, 66, 68.99, -3.93, 0.45724, 65, 139.52, -3.93, 0.04848, 4, 68, -98.1, -2.85, 0.00302, 67, -34.91, -4.51, 0.16897, 66, 35.83, -5.93, 0.6491, 65, 106.36, -5.93, 0.17891, 3, 67, -69.74, -5.58, 0.03488, 66, 1.08, -8.43, 0.4896, 65, 71.61, -8.43, 0.47552, 4, 67, -108.75, -4.75, 0.00424, 66, -37.94, -9.2, 0.16984, 65, 32.59, -9.2, 0.69137, 64, 98.21, -6.7, 0.13455, 2, 65, 0.17, -8.31, 0.52543, 64, 65.82, -8.27, 0.47457, 3, 65, -34.17, -6.83, 0.18477, 64, 31.46, -9.41, 0.62696, 63, 96.47, -9.41, 0.18827, 4, 65, -66.3, -4.22, 0.01263, 64, -0.78, -9.24, 0.46677, 63, 64.23, -9.24, 0.48853, 62, 146, 4.52, 0.03206, 3, 64, -35.25, -8.87, 0.22735, 63, 29.76, -8.87, 0.65577, 62, 112.23, -2.39, 0.11689, 4, 64, -69.22, -8.55, 0.02776, 63, -4.21, -8.55, 0.41215, 62, 78.95, -9.25, 0.52977, 61, 160.59, 5.18, 0.03032, 3, 63, -46.14, -2.26, 0.12876, 62, 36.63, -11.94, 0.70822, 61, 119.45, -5.12, 0.16302, 3, 63, -84, 7.67, 0.04548, 62, -2.46, -10.23, 0.46291, 61, 80.69, -10.51, 0.4916, 4, 62, -40.04, -2.56, 0.20066, 2, -87.22, 27.36, 0.04102, 61, 42.35, -9.75, 0.69947, 1, -54.47, 34.43, 0.05884, 4, 62, -84, 4.08, 0.06346, 2, -45.32, 12.47, 0.1335, 61, -2.09, -11.18, 0.66178, 1, -14.03, 15.96, 0.14126, 1, 2, 50.64, -19.06, 1, 2, 2, 150.39, -14.78, 0.14978, 6, 9.3, -26.52, 0.85022, 2, 6, 96.28, -48.49, 0.94283, 7, -50.98, -20.17, 0.05717, 4, 6, 151.36, -15.54, 0.1938, 7, 12.13, -31.86, 0.65264, 54, 35.04, -116.47, 0.10585, 74, -188.88, -122.43, 0.0477, 4, 7, 70.75, -31.76, 0.42196, 8, -5.28, -31.36, 0.19392, 54, 5.95, -65.58, 0.22877, 74, -184.09, -64, 0.15534, 3, 8, 47.28, -25.92, 0.60156, 54, -31.67, -28.46, 0.26709, 74, -194.09, -12.11, 0.13136, 3, 8, 110.31, -65.62, 0.66779, 54, -41.11, 45.43, 0.13197, 74, -160.06, 54.14, 0.20024, 2, 8, 120.51, -143.55, 0.72576, 74, -83.35, 71.14, 0.27424, 2, 8, 76.35, -191.51, 0.55039, 74, -31.7, 31.36, 0.44961, 2, 8, 63.06, -197.7, 0.57574, 74, -24.37, 18.67, 0.42426, 2, 8, 56.42, -210.42, 0.59162, 74, -11.11, 13.17, 0.40838, 2, 8, 62.27, -225.94, 0.54866, 74, 3.83, 20.37, 0.45134, 2, 8, 74.99, -231.02, 0.55882, 74, 7.78, 33.48, 0.44118, 2, 8, 90.83, -221.52, 0.5372, 74, -3.08, 48.42, 0.4628, 2, 8, 93.3, -206.31, 0.54037, 74, -18.44, 49.55, 0.45963, 2, 8, 86.63, -193.69, 0.56061, 74, -30.43, 41.8, 0.43939, 2, 8, 110.32, -205.97, 0.55507, 74, -20.28, 66.47, 0.44493, 2, 8, 111.33, -183.27, 0.52695, 74, -42.98, 65.49, 0.47305, 2, 8, 111.53, -160.07, 0.56797, 74, -66.1, 63.65, 0.43203, 2, 8, 102.49, -224.1, 0.57026, 74, -1.52, 60.27, 0.42974, 2, 8, 83.06, -235.84, 0.54683, 74, 11.87, 41.94, 0.45317, 2, 8, 75.02, -238.67, 0.5345, 74, 15.4, 34.18, 0.4655, 2, 8, 64.95, -240.47, 0.52774, 74, 18.07, 24.31, 0.47226, 2, 8, 59.74, -238.59, 0.52019, 74, 16.66, 18.96, 0.47981, 2, 8, 49.93, -213.38, 0.51178, 74, -7.59, 6.97, 0.48822, 2, 8, 46.45, -191.85, 0.53448, 74, -28.74, 1.61, 0.46552, 2, 8, 63.13, -172.79, 0.45609, 74, -49.18, 16.56, 0.54391, 2, 8, 76.73, -169.46, 0.47244, 74, -53.69, 29.81, 0.52756, 2, 8, 98.86, -157.68, 0.53514, 74, -67.37, 50.82, 0.46486, 3, 2, 25.68, -97.82, 0.63735, 61, -108.45, 65.59, 0.06216, 1, 47.13, -100.08, 0.30049, 3, 2, 83.15, -106.32, 0.72603, 6, -100.98, -53.7, 0.09811, 1, 103.65, -113.53, 0.17585, 3, 2, 149.42, -98.32, 0.50192, 6, -44.98, -90.03, 0.42892, 1, 170.36, -111.32, 0.06917, 2, 2, 207.34, -74.44, 0.18186, 6, 14.79, -108.81, 0.81814, 2, 2, 244.31, -54.06, 0.05649, 6, 56.23, -116.86, 0.94351, 2, 6, 99.39, -115.34, 0.92692, 7, -92.84, -72.39, 0.07308, 3, 6, 106.83, -106.29, 0.84981, 7, -81.28, -70.52, 0.08915, 54, 114.85, -178.52, 0.06104, 4, 6, 127.4, -71.89, 0.69313, 7, -43.11, -58.31, 0.19154, 54, 85.35, -151.38, 0.10631, 74, -167.16, -179.69, 0.00902, 2, 8, 104.61, -244.7, 0.66844, 74, 18.8, 64.19, 0.33156, 2, 8, 81.39, -264.16, 0.67294, 74, 40.23, 42.76, 0.32706, 2, 8, 66.82, -266.01, 0.65456, 74, 43.35, 28.41, 0.34544, 2, 8, 58.66, -259.02, 0.64393, 74, 37.11, 19.68, 0.35607, 2, 8, 78.9, -281.43, 0.75776, 74, 57.66, 41.81, 0.24224, 2, 8, 53.83, -287.14, 0.77384, 74, 65.54, 17.33, 0.22616, 2, 8, 33.86, -287.57, 0.80091, 74, 67.72, -2.53, 0.19909, 2, 8, 9.92, -286.55, 0.89717, 74, 68.81, -26.47, 0.10283, 2, 8, 36.24, -266.75, 0.70023, 74, 46.78, -1.99, 0.29977, 2, 8, 7.82, -257.69, 0.78734, 74, 40.25, -31.09, 0.21266, 2, 8, 41.56, -240.46, 0.5741, 74, 20.12, 1.01, 0.4259, 2, 8, 22.36, -235.22, 0.62581, 74, 16.58, -18.58, 0.37419 ], "hull": 87, "edges": [ 110, 108, 108, 106, 106, 104, 104, 102, 102, 100, 88, 86, 86, 84, 84, 82, 82, 80, 80, 78, 78, 76, 76, 74, 74, 72, 72, 70, 70, 68, 68, 66, 110, 112, 112, 114, 114, 116, 116, 118, 118, 120, 120, 122, 96, 98, 98, 100, 92, 94, 94, 96, 88, 90, 90, 92, 126, 128, 128, 130, 130, 132, 132, 134, 134, 136, 136, 138, 138, 140, 140, 142, 142, 144, 144, 146, 146, 148, 148, 150, 150, 152, 152, 154, 122, 124, 124, 126, 174, 176, 176, 178, 178, 180, 180, 182, 182, 184, 184, 186, 186, 188, 188, 190, 190, 192, 192, 194, 194, 196, 196, 198, 198, 200, 200, 202, 202, 204, 130, 190, 132, 192, 128, 188, 126, 186, 124, 184, 122, 182, 120, 180, 118, 178, 116, 176, 90, 192, 92, 190, 94, 188, 96, 186, 98, 184, 100, 182, 102, 180, 104, 178, 106, 176, 134, 194, 136, 196, 88, 194, 86, 196, 198, 84, 82, 200, 202, 80, 78, 204, 206, 76, 74, 208, 72, 210, 212, 70, 68, 214, 198, 138, 140, 200, 142, 202, 144, 204, 146, 206, 208, 148, 150, 210, 152, 212, 154, 214, 64, 66, 62, 64, 62, 60, 60, 58, 58, 56, 56, 54, 54, 52, 52, 50, 50, 48, 48, 46, 46, 44, 44, 42, 42, 40, 40, 38, 38, 36, 36, 34, 34, 32, 32, 30, 30, 28, 28, 26, 26, 24, 24, 22, 22, 20, 20, 18, 18, 16, 16, 14, 14, 12, 12, 10, 10, 8, 8, 6, 6, 4, 4, 2, 2, 0, 0, 172, 170, 172, 170, 168, 168, 166, 166, 164, 164, 162, 162, 160, 160, 158, 158, 156, 156, 154, 232, 234, 234, 236, 236, 238, 238, 240, 240, 242, 242, 244, 244, 246, 246, 232, 248, 250, 250, 252, 248, 254, 254, 256, 256, 258, 258, 260, 260, 262, 262, 264, 264, 266, 266, 268, 268, 270, 270, 272 ], @@ -703,7 +727,7 @@ "raptor-front-arm": { "type": "mesh", "uvs": [ 0.39563, 0.1396, 0.38771, 0.30213, 0.31231, 0.41784, 0.27287, 0.47836, 0.33389, 0.4507, 0.5488, 0.35329, 0.64093, 0.31153, 0.73024, 0.3653, 1, 0.5277, 1, 0.86607, 0.93243, 1, 0.86176, 0.80967, 0.75576, 0.99765, 0.71748, 1, 0.70276, 0.77443, 0.62032, 0.73448, 0.58793, 0.64519, 0.53561, 0.6582, 0.13449, 0.75798, 0, 0.69219, 0.01846, 0.56358, 0.05499, 0.30918, 0, 0.27863, 0, 0.12423, 0, 0, 0.19596, 0, 0.40243, 0, 0.24536, 0.19241, 0.21679, 0.0811 ], - "triangles": [ 6, 7, 16, 6, 16, 5, 15, 16, 7, 7, 14, 15, 8, 14, 7, 11, 14, 8, 11, 8, 9, 12, 14, 11, 13, 14, 12, 10, 11, 9, 17, 4, 5, 16, 17, 5, 18, 19, 3, 18, 3, 4, 18, 4, 17, 0, 28, 26, 23, 25, 28, 23, 24, 25, 27, 28, 0, 27, 23, 28, 1, 27, 0, 21, 22, 27, 21, 27, 1, 2, 21, 1, 2, 20, 21, 3, 20, 2, 19, 20, 3, 27, 22, 23, 28, 25, 26 ], + "triangles": [ 10, 11, 9, 13, 14, 12, 12, 14, 11, 11, 8, 9, 11, 14, 8, 8, 14, 7, 7, 14, 15, 15, 16, 7, 6, 16, 5, 6, 7, 16, 18, 4, 17, 18, 3, 4, 18, 19, 3, 16, 17, 5, 17, 4, 5, 28, 25, 26, 27, 22, 23, 19, 20, 3, 3, 20, 2, 2, 20, 21, 2, 21, 1, 21, 27, 1, 21, 22, 27, 1, 27, 0, 27, 23, 28, 27, 28, 0, 23, 24, 25, 23, 25, 28, 0, 28, 26 ], "vertices": [ 2, 38, 9.24, 26.77, 0.808, 6, 85.19, -98.03, 0.192, 1, 38, 35.87, 35.63, 1, 2, 38, 61.98, 28.62, 0.84641, 39, 40.04, 38.85, 0.15359, 2, 38, 77.67, 27.28, 0.34921, 39, 34.62, 24.06, 0.65079, 3, 38, 73.77, 39.05, 0.10938, 39, 47.01, 24.74, 0.78124, 48, -42.17, -19.42, 0.10938, 2, 39, 86.98, 31.25, 0.65079, 48, -25.75, 17.61, 0.34921, 2, 39, 103.84, 34.49, 0.34375, 48, -19.24, 33.5, 0.65625, 2, 39, 114.05, 19.51, 0.10938, 48, -1.12, 33.84, 0.89062, 1, 48, 53.62, 34.88, 1, 1, 48, 96.03, -19.16, 1, 1, 48, 104.2, -47.32, 1, 1, 48, 71.34, -23.98, 1, 1, 48, 81.39, -64.61, 1, 1, 48, 76.81, -68.82, 1, 1, 48, 46.66, -34.26, 1, 2, 39, 73.14, -45.77, 0.10938, 48, 31.14, -36.12, 0.89062, 2, 39, 73.98, -26.91, 0.34375, 48, 15.82, -25.1, 0.65625, 2, 39, 65.11, -26.69, 0.65079, 48, 10.78, -32.4, 0.34921, 3, 38, 134.76, 4.51, 0.10938, 39, -2.35, -25.03, 0.78124, 48, -27.52, -87.96, 0.10938, 2, 38, 121.45, -16.1, 0.34921, 39, -18.74, -6.77, 0.65079, 2, 38, 96.94, -14.98, 0.84641, 39, -11.21, 16.58, 0.15359, 1, 38, 45.47, -17.43, 1, 1, 38, 47.64, -32.91, 1, 2, 38, 12.11, -34.27, 0.536, 6, 40.33, -56.53, 0.464, 2, 38, -2.57, -46.21, 0.536, 6, 42.42, -37.73, 0.464, 2, 38, -7.4, -14.83, 0.472, 6, 67.87, -56.7, 0.528, 2, 38, -12.49, 18.22, 0.664, 6, 94.68, -76.69, 0.336, 1, 38, 18.79, 4.26, 1, 2, 38, 0.95, -1.4, 0.512, 6, 71.34, -72.13, 0.488 ], "hull": 27, "edges": [ 38, 36, 32, 30, 30, 28, 28, 26, 24, 26, 24, 22, 22, 20, 20, 18, 18, 16, 44, 42, 38, 6, 38, 40, 40, 42, 6, 4, 4, 2, 40, 4, 8, 6, 36, 8, 32, 12, 42, 2, 52, 0, 0, 2, 16, 14, 14, 12, 30, 14, 36, 34, 34, 32, 12, 10, 10, 8, 34, 10, 48, 50, 50, 52, 44, 46, 46, 48, 50, 56, 56, 54 ], @@ -715,7 +739,7 @@ "raptor-front-leg": { "type": "mesh", "uvs": [ 0.55117, 0.17818, 0.6279, 0.36027, 0.66711, 0.4533, 0.6488, 0.51528, 0.53554, 0.56894, 0.32335, 0.66947, 0.28674, 0.72087, 0.32539, 0.80401, 0.36258, 0.80144, 0.42056, 0.79744, 0.61015, 0.78436, 0.73352, 0.81335, 0.84813, 0.84029, 1, 0.93855, 0.732, 0.92345, 0.62439, 0.91738, 0.72813, 1, 0.58574, 1, 0.47086, 0.98249, 0.36708, 0.96668, 0.26307, 0.95082, 0.16267, 0.93552, 0.03859, 0.72238, 0, 0.66947, 0.0374, 0.62999, 0.1647, 0.49563, 0.23732, 0.45681, 0.2702, 0.43923, 0.28064, 0.43365, 0.223, 0.40571, 0.12565, 0.35851, 0, 0.2976, 0, 0.1524, 0, 0, 0.32132, 0, 0.32222, 0.22778, 0.44931, 0.38031, 0.47664, 0.44362, 0.4615, 0.47375, 0.35106, 0.53247, 0.20091, 0.65257, 0.18528, 0.72148, 0.25222, 0.86314, 0.30942, 0.88124, 0.55694, 0.89613, 0.55858, 0.89208, 0.47493, 0.8534, 0.6059, 0.91526, 0.39706, 0.8913, 0.1323, 0.09352, 0.36997, 0.45346, 0.37163, 0.43828, 0.32516, 0.39424, 0.2376, 0.34426, 0.34066, 0.47415, 0.51677, 0.90503, 0.07821, 0.26333, 0.05796, 0.13086, 0.09601, 0.05963, 0.29303, 0.03825 ], - "triangles": [ 14, 12, 13, 14, 11, 12, 14, 15, 11, 11, 15, 10, 55, 44, 47, 44, 45, 47, 10, 15, 45, 15, 47, 45, 55, 46, 44, 44, 46, 45, 45, 46, 10, 46, 9, 10, 48, 9, 46, 48, 8, 9, 16, 17, 15, 17, 47, 15, 18, 55, 17, 17, 55, 47, 19, 48, 18, 18, 48, 55, 20, 43, 19, 19, 43, 48, 48, 46, 55, 48, 43, 8, 21, 42, 20, 20, 42, 43, 21, 41, 42, 21, 22, 41, 43, 7, 8, 43, 42, 7, 42, 6, 7, 42, 41, 6, 23, 24, 22, 22, 24, 41, 41, 40, 6, 41, 24, 40, 6, 40, 5, 5, 39, 4, 5, 40, 39, 39, 26, 54, 39, 40, 26, 24, 25, 40, 40, 25, 26, 39, 38, 4, 4, 38, 3, 39, 50, 38, 39, 54, 50, 38, 37, 3, 3, 37, 2, 26, 27, 54, 54, 27, 50, 50, 51, 38, 38, 51, 37, 27, 28, 50, 50, 28, 51, 56, 57, 49, 32, 33, 57, 57, 58, 49, 57, 33, 58, 49, 58, 59, 59, 58, 34, 34, 58, 33, 59, 34, 0, 32, 57, 56, 37, 1, 2, 51, 36, 37, 37, 36, 1, 28, 52, 51, 51, 52, 36, 28, 29, 52, 29, 53, 52, 29, 30, 53, 36, 52, 35, 52, 53, 35, 36, 0, 1, 36, 35, 0, 31, 56, 30, 30, 56, 53, 53, 56, 35, 31, 32, 56, 56, 49, 35, 35, 59, 0, 49, 59, 35 ], + "triangles": [ 48, 8, 9, 48, 9, 46, 46, 9, 10, 45, 46, 10, 44, 46, 45, 55, 46, 44, 15, 47, 45, 10, 15, 45, 44, 45, 47, 55, 44, 47, 11, 15, 10, 14, 15, 11, 14, 11, 12, 14, 12, 13, 48, 43, 8, 48, 46, 55, 19, 43, 48, 20, 43, 19, 18, 48, 55, 19, 48, 18, 17, 55, 47, 18, 55, 17, 17, 47, 15, 16, 17, 15, 22, 24, 41, 23, 24, 22, 42, 41, 6, 42, 6, 7, 43, 42, 7, 43, 7, 8, 21, 22, 41, 21, 41, 42, 20, 42, 43, 21, 42, 20, 50, 28, 51, 27, 28, 50, 38, 51, 37, 50, 51, 38, 54, 27, 50, 26, 27, 54, 3, 37, 2, 38, 37, 3, 39, 54, 50, 39, 50, 38, 4, 38, 3, 39, 38, 4, 40, 25, 26, 24, 25, 40, 39, 40, 26, 39, 26, 54, 5, 40, 39, 5, 39, 4, 6, 40, 5, 41, 24, 40, 41, 40, 6, 59, 34, 0, 34, 58, 33, 59, 58, 34, 49, 58, 59, 57, 33, 58, 57, 58, 49, 32, 33, 57, 56, 57, 49, 49, 59, 35, 35, 59, 0, 56, 49, 35, 31, 32, 56, 53, 56, 35, 30, 56, 53, 31, 56, 30, 36, 35, 0, 36, 0, 1, 52, 53, 35, 36, 52, 35, 29, 30, 53, 29, 53, 52, 28, 29, 52, 51, 52, 36, 28, 52, 51, 37, 36, 1, 51, 36, 37, 37, 1, 2, 32, 57, 56 ], "vertices": [ 2, 42, 128.03, 88.47, 0.85041, 1, 158.83, -71.92, 0.14959, 2, 42, 219.55, 53.15, 0.77988, 43, -48.05, -38.59, 0.22012, 2, 42, 266.31, 35.11, 0.53545, 43, -36.73, 10.22, 0.46455, 2, 42, 286.89, 9.8, 0.35167, 43, -14.56, 34.15, 0.64833, 2, 42, 281.55, -41.24, 0.09228, 43, 36.71, 36, 0.90772, 3, 42, 271.54, -136.86, 0.05787, 43, 132.77, 39.48, 0.71426, 44, 35, 78.76, 0.22788, 3, 43, 158.22, 55.17, 0.5308, 44, 52.66, 54.64, 0.38143, 45, 7.02, 85.54, 0.08776, 4, 43, 167.14, 99.49, 0.22977, 44, 97.55, 49.25, 0.37788, 45, 28.72, 45.88, 0.15198, 46, -21.26, 49.99, 0.24037, 4, 44, 102.57, 62.61, 0.26558, 45, 42.51, 49.56, 0.17568, 46, -7.07, 51.4, 0.22874, 47, -58.17, 28.03, 0.33001, 4, 44, 109.72, 83.4, 0.11934, 45, 64.09, 55.24, 0.13984, 46, 15.13, 53.52, 0.16668, 47, -36.1, 31.19, 0.57414, 1, 47, 35.81, 41.81, 1, 1, 47, 83.66, 29.43, 1, 1, 47, 128.11, 17.93, 1, 1, 47, 188.73, -29.42, 1, 2, 46, 145.37, -10.99, 0.34248, 47, 84.02, -27.11, 0.65752, 2, 46, 93.3, -7.6, 0.48, 47, 44.87, -26.18, 0.52, 2, 46, 133.18, -49.83, 0.776, 47, 86.69, -66.48, 0.224, 2, 46, 78.79, -50.15, 0.768, 47, 32.38, -69.36, 0.232, 2, 46, 35.36, -41.46, 0.88989, 47, -9.88, -62.73, 0.11011, 1, 46, -4.92, -33.56, 1, 3, 44, 155.05, -5.14, 0.35918, 45, 17.88, -32.51, 0.30633, 46, -44.62, -25.61, 0.3345, 4, 43, 254.98, 126.28, 0.10155, 44, 131.22, -36.21, 0.54212, 45, -21.25, -31.18, 0.20873, 46, -83.02, -17.98, 0.1476, 3, 43, 240.34, 7.81, 0.25587, 44, 11.94, -30.99, 0.61615, 45, -86.32, 68.91, 0.12798, 2, 43, 239.27, -23.1, 0.45486, 44, -18.96, -32.37, 0.54514, 3, 42, 187.65, -209.74, 0.09777, 43, 216.67, -33.36, 0.58893, 44, -30.98, -10.65, 0.3133, 2, 42, 163.86, -128.68, 0.19603, 43, 139.75, -68.26, 0.80397, 3, 42, 165.75, -94.49, 0.3178, 43, 105.59, -71.26, 0.67648, 75, -80.8, -39.34, 0.00571, 3, 42, 166.4, -79.07, 0.45961, 43, 90.23, -72.77, 0.53468, 75, -67.92, -34.74, 0.00571, 3, 42, 166.49, -74.17, 0.53171, 43, 85.43, -73.29, 0.45686, 75, -64.13, -33.63, 0.01143, 3, 42, 141.54, -82.47, 0.7272, 43, 97.13, -96.82, 0.26709, 75, -86.02, -21.18, 0.00571, 3, 42, 99.76, -97.08, 0.84471, 43, 117.34, -136.23, 0.14529, 75, -123.07, 1.78, 0.01, 2, 42, 45.01, -114.56, 0.83615, 1, -51.09, -135.29, 0.16385, 2, 42, -16.21, -74.77, 0.53, 1, -42.95, -58.39, 0.47, 1, 1, -52.66, 17.56, 1, 1, 1, 70.07, 18.78, 1, 2, 42, 93.55, 4.14, 0.84985, 75, -47.66, 63.53, 0.15015, 3, 42, 185.14, -6.67, 0.69958, 43, 15.99, -64.28, 0.22749, 75, 0.73, -14.59, 0.07292, 3, 42, 217.11, -18.75, 0.50337, 43, 23.47, -30.93, 0.48663, 75, 9.65, -46.32, 0.01, 2, 42, 225.64, -32.92, 0.32528, 43, 36.31, -20.51, 0.67472, 3, 42, 223, -84.74, 0.2007, 43, 87.97, -15.86, 0.79322, 75, -43.91, -82.01, 0.00607, 3, 42, 235.62, -168.07, 0.08091, 43, 168.7, 8.29, 0.57148, 44, 6.75, 40.47, 0.34761, 3, 43, 191.8, 35.81, 0.32545, 44, 36.01, 19.63, 0.57243, 45, -31.15, 78.74, 0.10211, 4, 43, 206.64, 111.54, 0.10808, 44, 112.69, 10.83, 0.52068, 45, 6.26, 11.23, 0.23518, 46, -49.03, 19.43, 0.13606, 3, 44, 130.61, 26.42, 0.35068, 45, 29.36, 5.72, 0.28241, 46, -27.13, 10.26, 0.36691, 2, 46, 67.47, 3.17, 0.384, 47, 18.56, -16.63, 0.616, 1, 47, 19.07, -14.52, 1, 2, 46, 36.01, 24.95, 0.384, 47, -13.89, 3.64, 0.616, 2, 46, 86.23, -6.55, 0.488, 47, 37.76, -25.46, 0.512, 4, 44, 151.19, 56, 0.22879, 45, 65.44, 5.56, 0.18425, 46, 8.45, 4.28, 0.45492, 47, 0, 0, 0.13205, 3, 42, -9.28, -17.51, 0.21934, 1, 7.72, -30.86, 0.74243, 75, -126.22, 130.87, 0.03823, 3, 42, 195.91, -53.82, 0.42127, 43, 61.12, -47.06, 0.57302, 75, -30.92, -46.02, 0.00571, 3, 42, 190.1, -48.45, 0.52927, 43, 56.62, -53.56, 0.46502, 75, -29.84, -39.6, 0.00571, 3, 42, 161.27, -48.26, 0.74345, 43, 60.44, -82.13, 0.18733, 75, -47.3, -19.14, 0.06922, 3, 42, 120.38, -58.54, 0.78619, 43, 76.31, -121.19, 0.13381, 75, -79.81, 7.32, 0.08, 3, 42, 197.37, -69.23, 0.33416, 43, 76.18, -43.47, 0.66185, 75, -43.15, -54, 0.00398, 4, 44, 167.22, 97.41, 0.10303, 45, 97.38, 0.84, 0.08297, 46, 54.09, -2.79, 0.51764, 47, 4.74, -23.22, 0.29636, 3, 42, 49.5, -83.17, 0.65468, 1, -17.26, -114.16, 0.26246, 75, -142.18, 45.76, 0.08286, 3, 42, -9.83, -51.31, 0.41164, 1, -21.43, -46.95, 0.57122, 75, -153.07, 111.17, 0.01714, 2, 42, -31.44, -20.43, 0.27617, 1, -6.57, -12.31, 0.72383, 3, 42, 0.92, 47.46, 0.40628, 1, 68.18, -4.06, 0.57468, 75, -69.72, 165.13, 0.01904 ], "hull": 35, "edges": [ 46, 44, 44, 42, 32, 34, 32, 30, 26, 24, 14, 12, 12, 10, 6, 4, 66, 68, 0, 68, 46, 48, 48, 50, 40, 42, 16, 14, 58, 56, 4, 2, 2, 0, 10, 8, 8, 6, 78, 80, 80, 82, 82, 84, 84, 86, 86, 96, 16, 18, 18, 20, 38, 40, 62, 64, 64, 66, 100, 102, 102, 104, 58, 60, 60, 62, 106, 104, 54, 56, 50, 52, 52, 54, 108, 100, 78, 76, 76, 74, 72, 74, 72, 70, 70, 98, 92, 90, 56, 102, 100, 54, 52, 108, 58, 104, 60, 106, 76, 6, 74, 4, 72, 2, 78, 8, 92, 20, 92, 88, 88, 94, 90, 30, 94, 30, 26, 28, 28, 30, 20, 22, 22, 24, 28, 22, 34, 36, 36, 38, 94, 110, 110, 96, 36, 110, 110, 88, 60, 112, 112, 114, 114, 116, 116, 118, 118, 0 ], @@ -727,7 +751,7 @@ "raptor-hindleg-back": { "type": "mesh", "uvs": [ 0.45041, 0.09352, 0.56934, 0.23361, 0.65294, 0.47297, 0.66354, 0.50822, 0.63175, 0.54255, 0.32384, 0.69723, 0.30069, 0.73876, 0.27934, 0.77704, 0.30417, 0.83513, 0.31059, 0.85014, 0.34101, 0.85047, 0.45165, 0.85164, 0.59556, 0.81882, 0.91177, 0.92548, 1, 1, 0.56337, 0.96427, 0.4835, 0.98261, 0.29879, 0.98027, 0.22808, 0.98389, 0.15998, 0.98738, 0.15424, 0.95547, 0.13895, 0.87048, 0.07371, 0.78726, 0, 0.753, 0, 0.7049, 0, 0.671, 0.11876, 0.64653, 0.16535, 0.5266, 0.28496, 0.47398, 0.29011, 0.45774, 0.29427, 0.4446, 0.20635, 0.40396, 0.06129, 0.33691, 0, 0.25247, 0, 0, 0.30793, 0, 0.276, 0.20262, 0.40398, 0.31122, 0.48439, 0.45964, 0.48318, 0.48384, 0.47029, 0.51062, 0.22698, 0.67328, 0.17142, 0.7242, 0.17122, 0.78242, 0.22996, 0.89469, 0.24677, 0.90829, 0.28672, 0.9146, 0.46583, 0.91414 ], - "triangles": [ 15, 13, 14, 16, 47, 15, 15, 12, 13, 15, 47, 12, 18, 46, 17, 18, 45, 46, 17, 47, 16, 17, 46, 47, 47, 10, 11, 47, 46, 10, 47, 11, 12, 45, 18, 19, 44, 45, 20, 20, 45, 19, 20, 21, 44, 46, 9, 10, 46, 45, 9, 45, 44, 9, 21, 43, 44, 44, 8, 9, 44, 7, 8, 44, 43, 7, 21, 22, 43, 43, 22, 42, 43, 42, 7, 22, 23, 24, 24, 42, 22, 7, 42, 6, 42, 41, 6, 6, 41, 5, 24, 26, 42, 42, 26, 41, 24, 25, 26, 5, 40, 4, 5, 41, 40, 41, 28, 40, 26, 27, 41, 41, 27, 28, 40, 39, 4, 28, 29, 40, 40, 29, 39, 4, 39, 3, 39, 2, 3, 29, 30, 39, 39, 38, 2, 39, 30, 38, 38, 1, 2, 30, 37, 38, 38, 37, 1, 30, 31, 37, 31, 36, 37, 31, 32, 36, 32, 33, 36, 37, 0, 1, 37, 36, 0, 33, 34, 36, 36, 35, 0, 36, 34, 35 ], + "triangles": [ 15, 47, 12, 15, 12, 13, 16, 47, 15, 15, 13, 14, 47, 11, 12, 47, 46, 10, 47, 10, 11, 17, 46, 47, 17, 47, 16, 18, 45, 46, 18, 46, 17, 22, 23, 24, 43, 42, 7, 43, 22, 42, 21, 22, 43, 44, 43, 7, 44, 7, 8, 44, 8, 9, 21, 43, 44, 45, 44, 9, 46, 45, 9, 46, 9, 10, 20, 21, 44, 20, 45, 19, 44, 45, 20, 45, 18, 19, 40, 29, 39, 28, 29, 40, 40, 39, 4, 41, 27, 28, 26, 27, 41, 41, 28, 40, 5, 41, 40, 5, 40, 4, 24, 25, 26, 42, 26, 41, 24, 26, 42, 6, 41, 5, 42, 41, 6, 7, 42, 6, 24, 42, 22, 36, 34, 35, 36, 35, 0, 33, 34, 36, 37, 36, 0, 37, 0, 1, 32, 33, 36, 31, 32, 36, 31, 36, 37, 30, 31, 37, 38, 37, 1, 30, 37, 38, 38, 1, 2, 39, 30, 38, 39, 38, 2, 29, 30, 39, 39, 2, 3, 4, 39, 3 ], "vertices": [ 1, 17, 53.94, 69.16, 1, 1, 17, 126.23, 67.31, 1, 2, 17, 226.42, 31.14, 0.9375, 18, -30.88, -1.11, 0.0625, 2, 17, 240.84, 25.33, 0.7, 18, -25.65, 13.52, 0.3, 2, 17, 246.67, 8.06, 0.3, 18, -8.61, 20.02, 0.7, 3, 17, 240.82, -115.25, 0.0625, 18, 114.81, 19.01, 0.875, 19, 9.48, 59.16, 0.0625, 2, 18, 131.07, 29.69, 0.7, 19, 22.12, 44.36, 0.3, 2, 18, 146.07, 39.54, 0.3, 19, 33.76, 30.71, 0.7, 3, 18, 152.6, 65.01, 0.12567, 19, 59.85, 27.41, 0.75203, 20, 15.86, 48.05, 0.1223, 2, 19, 66.6, 26.56, 0.82916, 20, 16.73, 41.31, 0.17084, 3, 19, 71.2, 35.76, 0.64716, 20, 26.79, 39.17, 0.1317, 21, -67.33, 18.96, 0.22114, 3, 19, 87.93, 69.21, 0.0625, 20, 63.37, 31.39, 0.675, 21, -30.18, 23.3, 0.2625, 2, 20, 113.82, 35.72, 0.10381, 21, 16.23, 43.56, 0.89619, 1, 21, 128.14, 12.02, 1, 1, 21, 161.85, -15.82, 1, 1, 21, 13.52, -19.72, 1, 2, 20, 62.98, -25.82, 0.7, 21, -12.23, -31.02, 0.3, 3, 19, 115.12, -1.34, 0.08333, 20, 1.94, -12.66, 0.83333, 21, -74.27, -38.11, 0.08333, 2, 19, 106.11, -23.53, 0.3, 20, -21.81, -9.53, 0.7, 2, 19, 97.44, -44.91, 0.7, 20, -44.67, -6.51, 0.3, 2, 19, 84.26, -40.69, 0.9375, 20, -43.91, 7.3, 0.0625, 1, 19, 49.19, -29.47, 1, 2, 18, 206.75, 5.37, 0.13333, 19, 7.44, -33.78, 0.86667, 2, 18, 219.64, -20.52, 0.36111, 19, -16.64, -49.81, 0.63889, 2, 18, 208.41, -37.83, 0.72083, 19, -35.22, -40.82, 0.27917, 2, 18, 200.49, -50.03, 0.91667, 19, -48.31, -34.49, 0.08333, 1, 18, 161.11, -36.98, 1, 2, 17, 150.1, -116.77, 0.08333, 18, 119.88, -71.55, 0.91667, 2, 17, 154.99, -70.72, 0.42846, 18, 73.68, -68.48, 0.57154, 2, 17, 150.31, -65.27, 0.35605, 18, 68.43, -73.37, 0.64395, 2, 17, 146.52, -60.87, 0.59148, 18, 64.18, -77.33, 0.40852, 2, 17, 115.13, -75.09, 0.8446, 18, 79.61, -108.13, 0.1554, 1, 17, 63.33, -98.54, 1, 1, 17, 21.78, -94.56, 1, 1, 17, -66.69, -32.05, 1, 1, 17, -6.63, 52.97, 1, 1, 17, 58.15, -6.01, 1, 1, 17, 121.17, 2.44, 1, 1, 17, 188.87, -12.1, 1, 2, 17, 197.12, -18.43, 0.7, 18, 19.79, -28.44, 0.3, 2, 17, 203.99, -28.62, 0.3, 18, 29.7, -21.18, 0.7, 1, 18, 136.67, -7.43, 1, 2, 18, 164.32, 0.67, 0.7, 19, -2.53, 7.74, 0.3, 2, 18, 177.98, 21.58, 0.25, 19, 19.92, -3.2, 0.75, 1, 19, 71.94, -6.3, 1, 2, 19, 79.66, -3.72, 0.7, 20, -9.29, 21.05, 0.3, 2, 19, 87.98, 7.26, 0.3125, 20, 3.43, 15.76, 0.6875, 2, 20, 62.84, 4.16, 0.72917, 21, -21.96, -2.67, 0.27083 ], "hull": 36, "edges": [ 66, 68, 66, 64, 56, 54, 54, 52, 52, 50, 46, 44, 44, 42, 34, 32, 32, 30, 30, 28, 28, 26, 26, 24, 24, 22, 10, 8, 8, 6, 6, 4, 4, 2, 2, 0, 68, 70, 0, 70, 46, 48, 48, 50, 14, 12, 12, 10, 60, 58, 58, 56, 42, 40, 40, 38, 18, 16, 16, 14, 22, 20, 20, 18, 38, 36, 36, 34, 60, 62, 62, 64, 68, 72, 72, 74, 74, 76, 76, 78, 78, 80, 80, 82, 82, 84, 84, 86, 16, 88, 86, 88, 18, 90, 90, 38, 88, 90, 20, 92, 92, 36, 90, 92, 92, 94, 94, 22, 94, 32, 30, 24, 88, 40, 86, 14, 84, 12, 82, 10, 82, 52, 48, 84, 44, 86, 78, 6, 4, 76, 80, 8, 80, 56, 58, 78, 76, 60 ], @@ -739,7 +763,7 @@ "raptor-horn": { "type": "mesh", "uvs": [ 0.23202, 0, 0.36456, 0.3051, 0.37967, 0.28578, 0.42983, 0.41504, 0.48255, 0.4592, 0.49181, 0.37558, 0.54262, 0.43364, 0.62744, 0.22373, 0.72685, 0.20157, 0.71155, 0.10296, 0.7437, 0.12629, 0.87154, 0.32694, 0.92655, 0.58847, 0.95146, 0.58291, 1, 0.79797, 0.99855, 0.91608, 0.95668, 0.9066, 0.89548, 0.84052, 0.85745, 0.71568, 0.81176, 0.71081, 0.79146, 0.64162, 0.7146, 0.66948, 0.70308, 0.72109, 0.66405, 0.91955, 0.57139, 1, 0.51265, 1, 0.40749, 0.94178, 0.34499, 0.80186, 0.24959, 0.49467, 0.23945, 0.4213, 0.15768, 0.37748, 0.10301, 0.43856, 0.0716, 0.54182, 0.0635, 0.72333, 0.0968, 0.78581, 0.19705, 0.70312, 0.20849, 0.70702, 0.13611, 0.87184, 0.0794, 0.95675, 0.03745, 0.92784, 0, 0.72707, 0, 0.49239, 0.01821, 0.37577, 0.08924, 0.16005, 0.2217, 0.08591, 0.21231, 0.02037, 0.21551, 0, 0.93395, 0.7495, 0.84078, 0.47214, 0.76078, 0.46484, 0.71616, 0.58482, 0.55373, 0.75879, 0.45392, 0.65487, 0.35185, 0.54621 ], - "triangles": [ 17, 18, 47, 0, 45, 46, 44, 45, 0, 8, 9, 10, 1, 44, 0, 8, 10, 11, 30, 43, 44, 29, 30, 44, 31, 42, 43, 1, 29, 44, 30, 31, 43, 4, 5, 6, 49, 8, 11, 48, 49, 11, 28, 29, 1, 32, 42, 31, 41, 42, 32, 53, 28, 1, 12, 48, 11, 49, 50, 7, 49, 7, 8, 6, 7, 50, 20, 49, 48, 50, 49, 20, 52, 3, 4, 6, 50, 51, 21, 50, 20, 18, 19, 20, 48, 18, 20, 48, 47, 18, 21, 22, 50, 32, 40, 41, 33, 40, 32, 47, 48, 12, 22, 51, 50, 4, 6, 51, 52, 4, 51, 47, 13, 14, 53, 27, 28, 1, 2, 3, 53, 1, 3, 37, 34, 35, 37, 35, 36, 16, 47, 14, 17, 47, 16, 23, 51, 22, 39, 40, 33, 39, 33, 34, 38, 39, 34, 53, 52, 27, 52, 53, 3, 25, 26, 52, 26, 27, 52, 37, 38, 34, 51, 25, 52, 24, 25, 51, 23, 24, 51, 47, 12, 13, 15, 16, 14 ], + "triangles": [ 15, 16, 14, 47, 12, 13, 23, 24, 51, 24, 25, 51, 51, 25, 52, 37, 38, 34, 26, 27, 52, 25, 26, 52, 52, 53, 3, 53, 52, 27, 38, 39, 34, 39, 33, 34, 39, 40, 33, 23, 51, 22, 17, 47, 16, 16, 47, 14, 37, 35, 36, 37, 34, 35, 53, 1, 3, 1, 2, 3, 53, 27, 28, 47, 13, 14, 52, 4, 51, 4, 6, 51, 22, 51, 50, 47, 48, 12, 33, 40, 32, 32, 40, 41, 21, 22, 50, 48, 47, 18, 48, 18, 20, 18, 19, 20, 21, 50, 20, 6, 50, 51, 52, 3, 4, 50, 49, 20, 20, 49, 48, 6, 7, 50, 49, 7, 8, 49, 50, 7, 12, 48, 11, 53, 28, 1, 41, 42, 32, 32, 42, 31, 28, 29, 1, 48, 49, 11, 49, 8, 11, 4, 5, 6, 30, 31, 43, 1, 29, 44, 31, 42, 43, 29, 30, 44, 30, 43, 44, 8, 10, 11, 1, 44, 0, 8, 9, 10, 44, 45, 0, 0, 45, 46, 17, 18, 47 ], "vertices": [ 1, 34, 281.61, 81.74, 1, 1, 34, 213.35, 84.72, 1, 1, 34, 211.41, 78.74, 1, 2, 34, 184.08, 81.47, 0.99749, 74, -201.91, 110.55, 0.00251, 1, 34, 165.27, 73.64, 1, 1, 34, 171.82, 61.6, 1, 2, 34, 152.01, 55.86, 0.99978, 74, -160.92, 112.71, 2.2E-4, 2, 34, 152.05, 10.45, 0.99, 74, -134.51, 149.65, 0.01, 2, 34, 127.93, -16.63, 0.98888, 74, -99.14, 157.63, 0.01112, 2, 34, 142.65, -24.37, 0.97775, 74, -106.6, 172.5, 0.02225, 2, 34, 131.57, -29.57, 0.9788, 74, -94.56, 170.26, 0.0212, 2, 34, 75.83, -37.63, 0.97359, 74, -44.55, 144.38, 0.02641, 2, 34, 32.94, -20.65, 0.93, 74, -19.57, 105.6, 0.07, 2, 34, 26.9, -27.43, 0.9, 74, -10.71, 107.6, 0.1, 2, 34, -9.24, -14.28, 0.86, 74, 11.02, 75.86, 0.14, 2, 34, -21.6, -0.12, 0.78, 74, 12.83, 57.16, 0.22, 2, 34, -9.42, 9.08, 0.84, 74, -2.43, 56.76, 0.16, 2, 34, 14.03, 16.44, 0.88122, 74, -25.78, 64.43, 0.11878, 2, 34, 37.64, 11.23, 0.93, 74, -41.95, 82.41, 0.07, 2, 34, 50.35, 21.92, 0.94, 74, -58.5, 81.12, 0.06, 2, 34, 63.22, 18.84, 0.95957, 74, -67.18, 91.12, 0.04043, 2, 34, 80.71, 41.03, 0.99714, 74, -94.31, 83.25, 0.00286, 1, 34, 78.21, 49.9, 1, 1, 34, 67.2, 82.69, 1, 1, 34, 83.22, 114.91, 1, 1, 34, 98.88, 129.38, 1, 1, 34, 133.2, 148.49, 1, 1, 34, 164.96, 147.54, 1, 1, 34, 223.55, 135.17, 1, 1, 34, 234.17, 129.11, 1, 1, 34, 260.7, 144.13, 1, 1, 34, 268.68, 164.73, 1, 1, 34, 265.91, 184.53, 1, 1, 34, 248.48, 207.72, 1, 1, 34, 232.86, 206.82, 1, 1, 34, 215.06, 172.46, 1, 1, 34, 211.59, 170.1, 1, 1, 34, 213.1, 207.18, 1, 1, 34, 219.05, 231.06, 1, 1, 34, 233.36, 238.02, 1, 1, 34, 265.01, 223.8, 1, 1, 34, 290.33, 196.4, 1, 1, 34, 298.06, 178.29, 1, 1, 34, 302.4, 135.6, 1, 1, 34, 275.09, 94.31, 1, 1, 34, 284.66, 88.97, 1, 1, 34, 286.01, 85.81, 1, 2, 34, 13.6, -3.66, 0.93, 74, -13.73, 80.52, 0.07, 1, 34, 68.37, -13.1, 1, 2, 34, 90.48, 5.75, 0.995, 74, -81.72, 117.62, 0.005, 2, 34, 89.43, 30.76, 0.995, 74, -95.42, 96.68, 0.005, 1, 34, 113.96, 91.09, 1, 1, 34, 151.78, 103.55, 1, 1, 34, 190.72, 116, 1 ], "hull": 47, "edges": [ 0, 92, 0, 2, 2, 4, 4, 6, 6, 8, 8, 10, 10, 12, 12, 14, 14, 16, 18, 20, 20, 22, 22, 24, 24, 26, 26, 28, 30, 32, 32, 34, 36, 38, 38, 40, 40, 42, 42, 44, 44, 46, 46, 48, 48, 50, 50, 52, 52, 54, 54, 56, 56, 58, 60, 62, 62, 64, 64, 66, 66, 68, 68, 70, 70, 72, 72, 74, 74, 76, 76, 78, 78, 80, 80, 82, 82, 84, 84, 86, 86, 88, 88, 90, 90, 92, 28, 30, 16, 18, 34, 36, 58, 60, 96, 94, 96, 98, 98, 100 ], @@ -754,7 +778,7 @@ "raptor-jaw": { "type": "mesh", "uvs": [ 0.43611, 0.10281, 0.50457, 0.26446, 0.59673, 0.37777, 0.69416, 0.49754, 0.79771, 0.54917, 0.91149, 0.59812, 1, 0.63619, 0.99305, 0.85625, 0.67606, 1, 0.39521, 1, 0.19457, 0.89404, 0.2161, 0.6497, 0, 0.46112, 0, 0, 0.26125, 1.0E-5, 0.19457, 0.29385, 0.60678, 0.81243, 0.42896, 0.88938, 0.86006, 0.80271, 0.64788, 0.93008, 0.58349, 0.62419, 0.41196, 0.69752, 0.46153, 0.51921, 0.35989, 0.3664, 0.32564, 0.54238 ], - "triangles": [ 15, 14, 0, 1, 23, 0, 12, 13, 15, 15, 13, 14, 8, 18, 7, 7, 18, 6, 18, 5, 6, 8, 19, 18, 17, 21, 16, 23, 15, 0, 24, 15, 23, 21, 20, 16, 21, 22, 20, 21, 24, 22, 24, 23, 22, 2, 22, 23, 20, 22, 3, 22, 2, 3, 2, 23, 1, 11, 24, 21, 4, 16, 20, 16, 4, 18, 17, 16, 19, 19, 16, 18, 18, 4, 5, 4, 20, 3, 9, 10, 17, 8, 9, 19, 9, 17, 19, 10, 21, 17, 10, 11, 21, 11, 12, 24, 12, 15, 24 ], + "triangles": [ 1, 23, 0, 15, 14, 0, 15, 13, 14, 12, 13, 15, 12, 15, 24, 11, 12, 24, 10, 11, 21, 10, 21, 17, 9, 17, 19, 8, 9, 19, 9, 10, 17, 4, 20, 3, 18, 4, 5, 19, 16, 18, 17, 16, 19, 16, 4, 18, 4, 16, 20, 11, 24, 21, 2, 23, 1, 22, 2, 3, 20, 22, 3, 2, 22, 23, 24, 23, 22, 21, 24, 22, 21, 22, 20, 21, 20, 16, 24, 15, 23, 23, 15, 0, 17, 21, 16, 8, 19, 18, 18, 5, 6, 7, 18, 6, 8, 18, 7 ], "vertices": [ 2, 54, 28.47, 75.44, 0.40489, 74, -91.22, 43.02, 0.59511, 2, 54, 66.98, 65.83, 0.54061, 74, -64.96, 13.27, 0.45939, 2, 54, 98.09, 68.86, 0.67457, 74, -37.62, -1.88, 0.32543, 2, 54, 132.32, 71.81, 0.77891, 74, -7.76, -18.87, 0.22109, 2, 54, 163.31, 76.98, 0.78694, 74, 20.7, -32.2, 0.21306, 2, 54, 190.52, 90.03, 0.78631, 74, 50.51, -36.88, 0.21369, 2, 54, 210.32, 100.44, 0.86507, 74, 72.72, -39.54, 0.13493, 1, 54, 238.9, 67.81, 1, 2, 54, 234.83, 1.64, 0.98898, 74, 36.86, -134.8, 0.01102, 2, 54, 173.67, -58.3, 0.98603, 74, -47.5, -149.48, 0.01397, 1, 54, 125.49, -79.1, 1, 2, 54, 87.8, -40.51, 0.77481, 74, -108.13, -86.11, 0.22519, 3, 54, -5.59, -78.2, 0.30353, 8, -21.32, -18.84, 0.63716, 74, -202.55, -73.18, 0.05931, 2, 8, 106.45, -6.22, 0.98571, 74, -224.49, 48.7, 0.01429, 2, 8, 95.42, -85.63, 0.62475, 74, -144.43, 44.69, 0.37525, 2, 54, 24.89, 6.25, 0.63522, 74, -133.42, -11.92, 0.36478, 2, 54, 177.48, 5.6, 0.7446, 74, -8.12, -99.01, 0.2554, 2, 54, 160.25, -36.54, 0.86286, 74, -46.21, -123.95, 0.13714, 2, 54, 216.48, 51.69, 0.84606, 74, 50.14, -83.17, 0.15394, 2, 54, 213.42, 2.58, 0.92571, 74, 19.76, -121.89, 0.07429, 2, 54, 138.62, 31.33, 0.63037, 74, -25.53, -55.78, 0.36963, 2, 54, 124.75, -11.2, 0.73167, 74, -61.07, -82.94, 0.26833, 2, 54, 102.54, 22.8, 0.5705, 74, -60.08, -42.34, 0.4295, 2, 54, 61.9, 25.79, 0.54075, 74, -91.85, -16.83, 0.45925, 2, 54, 86.18, -5.32, 0.63768, 74, -89.5, -56.22, 0.36232 ], "hull": 15, "edges": [ 24, 26, 24, 22, 22, 20, 20, 18, 18, 16, 8, 6, 2, 0, 26, 28, 0, 28, 26, 30, 24, 30, 30, 0, 14, 16, 14, 12, 8, 32, 32, 34, 8, 10, 10, 12, 2, 4, 4, 6 ], @@ -767,7 +791,7 @@ "type": "mesh", "path": "raptor-jaw", "uvs": [ 0.43611, 0.10281, 0.50457, 0.26446, 0.69416, 0.49754, 0.79771, 0.54917, 1, 0.63619, 0.99305, 0.85625, 0.67606, 1, 0.39521, 1, 0.19457, 0.89404, 0.2161, 0.6497, 0, 0.46112, 0, 0, 0.26125, 1.0E-5, 0.19457, 0.29385, 0.60678, 0.81243, 0.42896, 0.88938 ], - "triangles": [ 13, 11, 12, 10, 11, 13, 13, 12, 0, 13, 0, 1, 9, 13, 1, 9, 1, 2, 10, 13, 9, 14, 9, 2, 14, 2, 3, 5, 3, 4, 14, 3, 5, 15, 9, 14, 8, 9, 15, 7, 8, 15, 6, 14, 5, 15, 14, 6, 7, 15, 6 ], + "triangles": [ 10, 11, 13, 13, 11, 12, 7, 15, 6, 15, 14, 6, 6, 14, 5, 7, 8, 15, 8, 9, 15, 15, 9, 14, 14, 3, 5, 5, 3, 4, 14, 2, 3, 14, 9, 2, 10, 13, 9, 9, 1, 2, 9, 13, 1, 13, 0, 1, 13, 12, 0 ], "vertices": [ 2, 54, 28.9, 96.24, 0.84, 74, -73.48, 56.29, 0.16, 2, 54, 65.84, 86.82, 0.84002, 74, -48.4, 27.58, 0.15998, 2, 54, 125.41, 92.66, 0.88641, 74, 3.97, -1.4, 0.11359, 2, 54, 151.38, 98.09, 0.83356, 74, 28.44, -11.66, 0.16644, 2, 54, 191.91, 121, 0.85174, 74, 74.81, -15.78, 0.14826, 2, 54, 227.3, 89.29, 0.83919, 74, 85.97, -61.97, 0.16081, 2, 54, 223.4, 25.16, 0.94641, 74, 46.37, -112.58, 0.05359, 2, 54, 176.27, -33.76, 0.77848, 74, -25.86, -134.36, 0.22152, 2, 54, 132.75, -53.77, 0.70055, 74, -73.05, -126.15, 0.29945, 2, 54, 94.17, -16.26, 0.68436, 74, -83.54, -73.38, 0.31564, 3, 54, 19.52, -38.44, 0.28887, 8, -3.76, -62.46, 0.60639, 74, -154.63, -56.39, 0.10474, 1, 8, 98.59, -46.15, 1, 2, 8, 110.02, -102.65, 0.84736, 74, -123.17, 57.1, 0.15264, 2, 54, 31.25, 29.22, 0.82334, 74, -109.57, -0.23, 0.17666, 2, 54, 171.54, 28.72, 0.86269, 74, 5.69, -80.23, 0.13731, 2, 54, 161.87, -12.64, 0.71096, 74, -25.74, -108.8, 0.28904 ], "hull": 13, "edges": [ 20, 22, 20, 18, 18, 16, 16, 14, 14, 12, 6, 4, 4, 2, 2, 0, 22, 24, 0, 24, 22, 26, 20, 26, 26, 0, 10, 12, 6, 8, 10, 8, 6, 28, 28, 30 ], @@ -779,7 +803,7 @@ "raptor-mouth-inside": { "type": "mesh", "uvs": [ 1, 0.29017, 0.37217, 1, 0, 1, 0, 0, 1, 0 ], - "triangles": [ 1, 2, 3, 0, 1, 3, 3, 4, 0 ], + "triangles": [ 1, 2, 3, 3, 4, 0, 0, 1, 3 ], "vertices": [ 1, 8, 26.56, -211.68, 1, 1, 54, 130.45, -7.83, 1, 1, 54, 109.72, -24.21, 1, 1, 8, 47.22, -139.7, 1, 1, 8, 50.33, -210.63, 1 ], "hull": 5, "edges": [ 4, 6, 6, 8, 2, 4, 0, 8, 2, 0 ], @@ -809,7 +833,7 @@ "raptor-tongue": { "type": "mesh", "uvs": [ 0.35242, 0.21561, 0.4794, 0.44246, 0.62072, 0.61177, 0.80563, 0.75374, 1, 0.90297, 1, 1, 0.8971, 1, 0.72055, 0.92255, 0.50668, 0.82872, 0.30402, 0.70725, 0.10537, 0.57889, 0, 0.50622, 0, 0, 0.26225, 0 ], - "triangles": [ 7, 8, 3, 6, 7, 3, 4, 6, 3, 6, 4, 5, 8, 7, 6, 9, 1, 2, 8, 9, 2, 9, 10, 1, 8, 2, 3, 0, 11, 12, 0, 12, 13, 10, 11, 0, 1, 10, 0 ], + "triangles": [ 6, 4, 5, 7, 3, 6, 6, 3, 4, 7, 2, 3, 8, 2, 7, 2, 8, 1, 8, 9, 1, 1, 9, 0, 9, 10, 0, 10, 11, 0, 0, 12, 13, 0, 11, 12 ], "vertices": [ 2, 71, 3.64, 27.05, 0.6875, 72, -47.27, 33.88, 0.3125, 3, 71, 39.1, 19.46, 0.3125, 72, -13.42, 20.87, 0.625, 73, -51.54, 33.38, 0.0625, 3, 71, 71.56, 19.03, 0.0625, 72, 18.59, 15.4, 0.625, 73, -21.56, 20.92, 0.3125, 2, 72, 55.03, 16.86, 0.3125, 73, 14.29, 14.24, 0.6875, 2, 72, 93.34, 18.4, 0.08333, 73, 51.98, 7.21, 0.91667, 1, 73, 56.09, -4.51, 1, 2, 72, 85.07, -1.49, 0.08333, 73, 39.49, -10.33, 0.91667, 2, 72, 54.23, -9.18, 0.3125, 73, 7.71, -10.97, 0.6875, 3, 71, 75.14, -14.72, 0.0625, 72, 16.87, -18.5, 0.625, 73, -30.77, -11.74, 0.3125, 3, 71, 38.8, -25.81, 0.3125, 72, -20.75, -23.8, 0.625, 73, -68.63, -8.54, 0.0625, 2, 71, 2.4, -35.78, 0.6875, 72, -58.25, -27.99, 0.3125, 2, 71, -17.29, -40.63, 0.91667, 72, -78.46, -29.72, 0.08333, 1, 71, -59.92, 8.19, 1, 2, 71, -26.14, 37.69, 0.91667, 72, -75.02, 49.02, 0.08333 ], "hull": 14, "edges": [ 22, 24, 10, 12, 10, 8, 24, 26, 16, 4, 18, 16, 2, 4, 18, 2, 22, 20, 0, 26, 20, 0, 0, 2, 12, 14, 14, 16, 4, 6, 6, 8, 14, 6, 20, 18 ], @@ -821,7 +845,7 @@ "raptor-jaw-tooth": { "type": "mesh", "uvs": [ 1, 1, 0, 1, 0, 0, 1, 0 ], - "triangles": [ 1, 2, 3, 1, 3, 0 ], + "triangles": [ 1, 3, 0, 1, 2, 3 ], "vertices": [ 1, 54, 275.87, 107.8, 1, 2, 54, 235.58, 46.93, 0.94857, 74, -85.57, -171.76, 0.05143, 2, 54, 155.53, 99.92, 0.94, 74, -56.06, -80.4, 0.06, 1, 54, 195.82, 160.79, 1 ], "hull": 4, "edges": [ 0, 2, 2, 4, 4, 6, 0, 6 ], @@ -842,7 +866,7 @@ "stirrup-strap": { "type": "mesh", "uvs": [ 0.36823, 0.27894, 0.45738, 0.38897, 0.54452, 0.49652, 0.67872, 0.59135, 0.81977, 0.69102, 1, 0.77344, 1, 1, 0.77957, 1, 0.6373, 0.8163, 0.53364, 0.72349, 0.40534, 0.60861, 0.30886, 0.52535, 0.2105, 0.44048, 0, 0.26245, 0, 0, 0.30637, 0, 0.20242, 0.23001 ], - "triangles": [ 2, 10, 1, 9, 10, 2, 9, 2, 3, 8, 9, 3, 8, 3, 4, 7, 8, 4, 7, 4, 5, 7, 5, 6, 16, 14, 15, 13, 14, 16, 16, 15, 0, 12, 16, 0, 12, 0, 1, 13, 16, 12, 11, 12, 1, 10, 11, 1 ], + "triangles": [ 7, 5, 6, 7, 4, 5, 7, 8, 4, 8, 3, 4, 8, 9, 3, 9, 2, 3, 9, 10, 2, 2, 10, 1, 10, 11, 1, 11, 12, 1, 13, 16, 12, 12, 0, 1, 12, 16, 0, 16, 15, 0, 13, 14, 16, 16, 14, 15 ], "vertices": [ 2, 59, 24.72, 8.04, 0.80345, 60, -17.42, 11.02, 0.19655, 2, 59, 37.95, 8.04, 0.59979, 60, -4.37, 8.87, 0.40021, 2, 59, 50.88, 8.05, 0.36895, 60, 8.39, 6.77, 0.63105, 2, 59, 65.92, 12.27, 0.17748, 60, 23.92, 8.48, 0.82252, 2, 59, 81.73, 16.71, 0.05943, 60, 40.24, 10.28, 0.94057, 2, 59, 98.83, 25.04, 0.0121, 60, 58.47, 15.72, 0.9879, 2, 59, 114.44, 11.58, 0.00191, 60, 71.67, -0.11, 0.99809, 2, 59, 100.47, -4.61, 0.01818, 60, 55.25, -13.81, 0.98182, 2, 59, 78.8, -4.14, 0.07488, 60, 33.95, -9.81, 0.92512, 2, 59, 65.83, -6.24, 0.2028, 60, 20.81, -9.77, 0.7972, 2, 59, 49.79, -8.84, 0.39972, 60, 4.56, -9.71, 0.60028, 2, 59, 37.94, -10.97, 0.62658, 60, -7.48, -9.89, 0.37342, 2, 59, 25.86, -13.15, 0.82035, 60, -19.76, -10.07, 0.17965, 2, 59, 0.25, -18.03, 0.95289, 60, -45.82, -10.7, 0.04711, 2, 59, -17.84, -2.43, 0.9771, 60, -61.11, 7.64, 0.0229, 2, 59, 1.58, 20.07, 0.94775, 60, -38.29, 26.68, 0.05225, 2, 59, 10.84, -1.24, 0.9771, 60, -32.63, 4.14, 0.0229 ], "hull": 16, "edges": [ 28, 30, 30, 0, 12, 10, 8, 10, 12, 14, 14, 16, 26, 28, 24, 26, 26, 32, 32, 30, 20, 22, 22, 24, 0, 2, 2, 4, 4, 6, 6, 8, 16, 18, 18, 20 ], @@ -854,7 +878,7 @@ "raptor-tail-shadow": { "type": "mesh", "uvs": [ 1, 0.50387, 0.89276, 1, 0.82069, 0.96993, 0.72927, 0.92231, 0.64083, 0.87624, 0.54988, 0.83667, 0.47106, 0.80022, 0.40123, 0.7783, 0.32238, 0.75321, 0.25301, 0.73107, 0.20375, 0.71883, 0.11753, 0.71414, 0, 0.72519, 0, 0.66338, 0.10358, 0.57282, 0.18201, 0.5128, 0.23534, 0.47512, 0.30555, 0.4281, 0.37968, 0.37769, 0.44858, 0.3281, 0.51987, 0.2798, 0.61007, 0.21367, 0.70725, 0.14608, 0.80109, 0.08082, 0.90134, 0 ], - "triangles": [ 10, 11, 14, 13, 14, 11, 10, 14, 15, 12, 13, 11, 9, 10, 15, 8, 9, 16, 9, 15, 16, 8, 16, 17, 7, 8, 17, 6, 7, 18, 7, 17, 18, 6, 18, 19, 5, 6, 19, 4, 20, 21, 4, 5, 20, 5, 19, 20, 2, 22, 23, 3, 21, 22, 4, 21, 3, 3, 22, 2, 23, 24, 0, 23, 0, 2, 1, 2, 0 ], + "triangles": [ 12, 13, 11, 10, 14, 15, 13, 14, 11, 10, 11, 14, 8, 16, 17, 9, 15, 16, 8, 9, 16, 9, 10, 15, 6, 18, 19, 7, 17, 18, 6, 7, 18, 7, 8, 17, 5, 19, 20, 4, 5, 20, 4, 20, 21, 5, 6, 19, 3, 22, 2, 4, 21, 3, 3, 21, 22, 2, 22, 23, 1, 2, 0, 23, 0, 2, 23, 24, 0 ], "vertices": [ 1, 65, -0.16, 6.41, 1, 2, 65, 42.4, 61.67, 0.7548, 66, -28.13, 61.67, 0.2452, 2, 65, 69.28, 56.16, 0.53679, 66, -1.25, 56.16, 0.46321, 3, 65, 103.42, 48.48, 0.13235, 66, 32.89, 48.48, 0.82952, 67, -35.63, 49.98, 0.03813, 3, 65, 136.1, 39.06, 0.00439, 66, 65.57, 39.06, 0.62467, 67, -3.36, 39.23, 0.37094, 3, 66, 99.5, 32, 0.0995, 67, 30.26, 30.79, 0.87982, 68, -32.35, 31.34, 0.02068, 3, 66, 129.1, 26.76, 4.6E-4, 67, 59.61, 24.34, 0.57172, 68, -3.11, 24.4, 0.42782, 2, 67, 85.42, 18.44, 0.04275, 68, 22.59, 18.06, 0.95725, 2, 68, 51.63, 10.96, 0.64526, 69, -3.07, 10.89, 0.35474, 2, 68, 77.16, 4.61, 0.00246, 69, 22.59, 5.12, 0.99754, 2, 69, 40.97, 2.02, 0.84959, 70, -8.23, 2.08, 0.15041, 1, 70, 23.84, -2.64, 1, 1, 70, 68.09, -5.25, 1, 1, 70, 68.64, -7.05, 1, 1, 70, 29.23, -12.51, 1, 2, 69, 48.26, -18.17, 0.57427, 70, -1.07, -18.16, 0.42573, 1, 69, 27.9, -20.81, 1, 2, 68, 55.03, -24.11, 0.40024, 69, 1.11, -24.1, 0.59976, 3, 67, 90.24, -26.6, 0.00715, 68, 26.65, -27.06, 0.98709, 69, -27.19, -27.68, 0.00576, 2, 67, 63.89, -30.1, 0.5083, 68, 0.25, -30.11, 0.4917, 3, 66, 108.32, -33.03, 0.01005, 67, 36.41, -34.55, 0.9784, 68, -27.3, -34.09, 0.01155, 2, 66, 74.22, -38.09, 0.50429, 67, 2.13, -38.21, 0.49571, 3, 65, 107.88, -44.01, 0.04245, 66, 37.35, -44.01, 0.94684, 67, -34.96, -42.61, 0.01071, 2, 65, 72.14, -50.49, 0.52154, 66, 1.61, -50.49, 0.47846, 2, 65, 33.89, -58.82, 0.93522, 66, -36.64, -58.82, 0.06478 ], "hull": 25, "edges": [ 20, 22, 22, 24, 24, 26, 26, 28, 28, 30, 30, 20, 30, 32, 18, 20, 32, 18, 34, 32, 16, 18, 34, 16, 14, 36, 16, 14, 34, 36, 38, 36, 12, 14, 38, 12, 40, 38, 10, 12, 40, 10, 2, 4, 46, 4, 42, 8, 8, 10, 40, 42, 46, 44, 44, 42, 4, 6, 6, 8, 44, 6, 2, 0, 0, 48, 46, 48 ], diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/2D/Include.meta b/Assets/ThirdParty/Spine Examples/Spine Skeletons/sack.meta similarity index 73% rename from Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/2D/Include.meta rename to Assets/ThirdParty/Spine Examples/Spine Skeletons/sack.meta index d7498ea54..fe5e800dc 100644 --- a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/2D/Include.meta +++ b/Assets/ThirdParty/Spine Examples/Spine Skeletons/sack.meta @@ -1,8 +1,8 @@ -fileFormatVersion: 2 -guid: a693acdf2b15846428ba98907cda56ce -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: +fileFormatVersion: 2 +guid: eb2bbd372658604438ac37c4c74f60bf +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/sack/sack-pma.atlas.txt b/Assets/ThirdParty/Spine Examples/Spine Skeletons/sack/sack-pma.atlas.txt new file mode 100644 index 000000000..2861b744d --- /dev/null +++ b/Assets/ThirdParty/Spine Examples/Spine Skeletons/sack/sack-pma.atlas.txt @@ -0,0 +1,11 @@ +sack-pma.png + size: 512, 512 + filter: Linear, Linear + pma: true + scale: 0.5 +cape-back + bounds: 237, 149, 260, 260 +cape-front + bounds: 237, 43, 200, 104 +sack + bounds: 2, 2, 233, 407 diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/sack/sack-pma.atlas.txt.meta b/Assets/ThirdParty/Spine Examples/Spine Skeletons/sack/sack-pma.atlas.txt.meta new file mode 100644 index 000000000..cd389d8ac --- /dev/null +++ b/Assets/ThirdParty/Spine Examples/Spine Skeletons/sack/sack-pma.atlas.txt.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 1dc38ecd5f6cd4d44b03112afab74e15 +TextScriptImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/sack/sack-pma.png b/Assets/ThirdParty/Spine Examples/Spine Skeletons/sack/sack-pma.png new file mode 100644 index 000000000..edaa7600a Binary files /dev/null and b/Assets/ThirdParty/Spine Examples/Spine Skeletons/sack/sack-pma.png differ diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/sack/sack-pma.png.meta b/Assets/ThirdParty/Spine Examples/Spine Skeletons/sack/sack-pma.png.meta new file mode 100644 index 000000000..1b1bbb94b --- /dev/null +++ b/Assets/ThirdParty/Spine Examples/Spine Skeletons/sack/sack-pma.png.meta @@ -0,0 +1,112 @@ +fileFormatVersion: 2 +guid: 5ae3e6da1d1624c459c35e9c30a29251 +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 12 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 0 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMasterTextureLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 0 + wrapV: 0 + wrapW: 0 + nPOTScale: 1 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 0 + spriteTessellationDetail: -1 + textureType: 0 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 0 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 1 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 0 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 1 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + spritePackingTag: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/sack/sack-pma_Atlas.asset b/Assets/ThirdParty/Spine Examples/Spine Skeletons/sack/sack-pma_Atlas.asset new file mode 100644 index 000000000..b3cea9bad --- /dev/null +++ b/Assets/ThirdParty/Spine Examples/Spine Skeletons/sack/sack-pma_Atlas.asset @@ -0,0 +1,19 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!114 &11400000 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: a6b194f808b1af6499c93410e504af42, type: 3} + m_Name: sack-pma_Atlas + m_EditorClassIdentifier: + textureLoadingMode: 0 + onDemandTextureLoader: {fileID: 0} + atlasFile: {fileID: 4900000, guid: 1dc38ecd5f6cd4d44b03112afab74e15, type: 3} + materials: + - {fileID: 2100000, guid: 31fdf99bddb097348b5d1c4fd7166630, type: 2} diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/sack/sack-pma_Atlas.asset.meta b/Assets/ThirdParty/Spine Examples/Spine Skeletons/sack/sack-pma_Atlas.asset.meta new file mode 100644 index 000000000..41b85e431 --- /dev/null +++ b/Assets/ThirdParty/Spine Examples/Spine Skeletons/sack/sack-pma_Atlas.asset.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: bb2ceeeca665532498044aaadd73ba8f +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 11400000 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/Dragon/dragon_dragon6.mat b/Assets/ThirdParty/Spine Examples/Spine Skeletons/sack/sack-pma_Material.mat similarity index 86% rename from Assets/ThirdParty/Spine Examples/Spine Skeletons/Dragon/dragon_dragon6.mat rename to Assets/ThirdParty/Spine Examples/Spine Skeletons/sack/sack-pma_Material.mat index 4c788ac03..cadcbd41e 100644 --- a/Assets/ThirdParty/Spine Examples/Spine Skeletons/Dragon/dragon_dragon6.mat +++ b/Assets/ThirdParty/Spine Examples/Spine Skeletons/sack/sack-pma_Material.mat @@ -7,7 +7,7 @@ Material: m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_Name: dragon_dragon6 + m_Name: sack-pma_Material m_Shader: {fileID: 4800000, guid: 1e8a610c9e01c3648bac42585e5fc676, type: 3} m_ValidKeywords: [] m_InvalidKeywords: @@ -22,12 +22,13 @@ Material: serializedVersion: 3 m_TexEnvs: - _MainTex: - m_Texture: {fileID: 2800000, guid: a87fe78b999f42f459397732f7c75303, type: 3} + m_Texture: {fileID: 2800000, guid: 5ae3e6da1d1624c459c35e9c30a29251, type: 3} m_Scale: {x: 1, y: 1} m_Offset: {x: 0, y: 0} m_Ints: [] m_Floats: - _Cutoff: 0.1 + - _Fill: 0 - _OutlineMipLevel: 0 - _OutlineOpaqueAlpha: 1 - _OutlineReferenceTexWidth: 1024 @@ -38,6 +39,7 @@ Material: - _StraightAlphaInput: 0 - _ThresholdEnd: 0.25 - _Use8Neighbourhood: 1 + - _UseScreenSpaceOutlineWidth: 0 m_Colors: - _OutlineColor: {r: 1, g: 1, b: 0, a: 1} m_BuildTextureStacks: [] diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/sack/sack-pma_Material.mat.meta b/Assets/ThirdParty/Spine Examples/Spine Skeletons/sack/sack-pma_Material.mat.meta new file mode 100644 index 000000000..da365c6f8 --- /dev/null +++ b/Assets/ThirdParty/Spine Examples/Spine Skeletons/sack/sack-pma_Material.mat.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 31fdf99bddb097348b5d1c4fd7166630 +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 2100000 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/sack/sack-pro.skel.bytes b/Assets/ThirdParty/Spine Examples/Spine Skeletons/sack/sack-pro.skel.bytes new file mode 100644 index 000000000..831a77301 Binary files /dev/null and b/Assets/ThirdParty/Spine Examples/Spine Skeletons/sack/sack-pro.skel.bytes differ diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/sack/sack-pro.skel.bytes.meta b/Assets/ThirdParty/Spine Examples/Spine Skeletons/sack/sack-pro.skel.bytes.meta new file mode 100644 index 000000000..93c30661c --- /dev/null +++ b/Assets/ThirdParty/Spine Examples/Spine Skeletons/sack/sack-pro.skel.bytes.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: fdb1f6ac0750f5d48bb2e67a120df3b3 +TextScriptImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/sack/sack-pro_SkeletonData.asset b/Assets/ThirdParty/Spine Examples/Spine Skeletons/sack/sack-pro_SkeletonData.asset new file mode 100644 index 000000000..653797aa6 --- /dev/null +++ b/Assets/ThirdParty/Spine Examples/Spine Skeletons/sack/sack-pro_SkeletonData.asset @@ -0,0 +1,31 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!114 &11400000 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: f1b3b4b945939a54ea0b23d3396115fb, type: 3} + m_Name: sack-pro_SkeletonData + m_EditorClassIdentifier: + atlasAssets: + - {fileID: 11400000, guid: bb2ceeeca665532498044aaadd73ba8f, type: 2} + scale: 0.01 + skeletonJSON: {fileID: 4900000, guid: fdb1f6ac0750f5d48bb2e67a120df3b3, type: 3} + isUpgradingBlendModeMaterials: 0 + blendModeMaterials: + requiresBlendModeMaterials: 0 + applyAdditiveMaterial: 0 + additiveMaterials: [] + multiplyMaterials: [] + screenMaterials: [] + skeletonDataModifiers: [] + fromAnimation: [] + toAnimation: [] + duration: [] + defaultMix: 0.2 + controller: {fileID: 0} diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/sack/sack-pro_SkeletonData.asset.meta b/Assets/ThirdParty/Spine Examples/Spine Skeletons/sack/sack-pro_SkeletonData.asset.meta new file mode 100644 index 000000000..5b0e7405a --- /dev/null +++ b/Assets/ThirdParty/Spine Examples/Spine Skeletons/sack/sack-pro_SkeletonData.asset.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 4f6372c21601bf94c9d0190a95e561c2 +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 11400000 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Include.meta b/Assets/ThirdParty/Spine Examples/Spine Skeletons/snowglobe.meta similarity index 73% rename from Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Include.meta rename to Assets/ThirdParty/Spine Examples/Spine Skeletons/snowglobe.meta index bc2dcc814..321b68ca8 100644 --- a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Include.meta +++ b/Assets/ThirdParty/Spine Examples/Spine Skeletons/snowglobe.meta @@ -1,8 +1,8 @@ -fileFormatVersion: 2 -guid: 3f208c2c2b68f534a8bd3bb54d2debab -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: +fileFormatVersion: 2 +guid: 6a147eddff473b742a95883ccaeb9ae9 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/snowglobe/snowglobe-pma.atlas.txt b/Assets/ThirdParty/Spine Examples/Spine Skeletons/snowglobe/snowglobe-pma.atlas.txt new file mode 100644 index 000000000..fda6cd335 --- /dev/null +++ b/Assets/ThirdParty/Spine Examples/Spine Skeletons/snowglobe/snowglobe-pma.atlas.txt @@ -0,0 +1,210 @@ +snowglobe-pma.png + size: 1024, 1024 + filter: Linear, Linear + pma: true + scale: 0.5 +arm-down-r + bounds: 884, 129, 76, 53 +arm-up-l + bounds: 718, 23, 49, 114 + rotate: 90 +arm-up-r + bounds: 867, 69, 58, 104 + rotate: 90 +blue-present-base + bounds: 884, 883, 126, 139 +eye-reflex-l + bounds: 991, 347, 12, 13 +eye-reflex-r + bounds: 867, 129, 10, 12 + rotate: 90 +eye-white-l + bounds: 987, 697, 35, 43 +eye-white-r + bounds: 560, 2, 34, 48 +eyelashes-l + bounds: 982, 2, 32, 40 +gift-base + bounds: 884, 335, 125, 105 + rotate: 90 +gift-decoration + bounds: 518, 2, 48, 40 + rotate: 90 +globe-borders + bounds: 2, 141, 880, 881 +glove-l + bounds: 982, 44, 40, 61 +glove-shadow-l + bounds: 991, 403, 28, 57 +glove-shadow-r + bounds: 960, 204, 38, 62 + rotate: 90 +green-present-base + bounds: 138, 13, 126, 139 + rotate: 90 +hair-front + bounds: 884, 590, 150, 101 + rotate: 90 +hair-side + bounds: 995, 574, 27, 53 +hair-strand-2 + bounds: 987, 629, 26, 66 +hair-strand-5 + bounds: 690, 7, 25, 47 +hair-strand-6 + bounds: 995, 507, 14, 35 +head-base + bounds: 2, 4, 134, 135 +leg-down-l + bounds: 596, 3, 92, 51 +leg-up-l + bounds: 718, 74, 65, 147 + rotate: 90 +leg-up-l-fuzzy + bounds: 834, 2, 73, 65 +leg-up-r + bounds: 576, 56, 83, 140 + rotate: 90 +leg-up-r-fuzzy + bounds: 909, 2, 65, 71 + rotate: 90 +mouth + bounds: 991, 362, 39, 13 + rotate: 90 +neck-scarf + bounds: 279, 25, 142, 114 +nose + bounds: 995, 488, 17, 14 + rotate: 90 +nose-shadow + bounds: 299, 8, 15, 15 +red-present-base + bounds: 884, 742, 126, 139 +scarf-end-l + bounds: 884, 462, 126, 109 + rotate: 90 +scarf-end-r + bounds: 423, 52, 151, 87 +scarf-ribbon-middle-r + bounds: 960, 244, 62, 89 +scarf-shadow + bounds: 884, 184, 149, 74 + rotate: 90 +shoe-l + bounds: 973, 107, 49, 95 +shoe-r + bounds: 423, 6, 44, 93 + rotate: 90 +shoelace + bounds: 279, 2, 21, 18 + rotate: 90 +snow + bounds: 995, 544, 27, 28 +string + bounds: 138, 6, 5, 53 + rotate: 90 + +snowglobe-pma_2.png + size: 1024, 1024 + filter: Linear, Linear + pma: true + scale: 0.5 +arm-down-l + bounds: 884, 579, 56, 54 +arm-down-l-fuzzy + bounds: 884, 635, 57, 59 +arm-down-r-fuzzy + bounds: 884, 696, 61, 66 +blue-present-decoration + bounds: 884, 216, 41, 40 +green-present-decoration + bounds: 884, 216, 41, 40 +ear-l + bounds: 884, 527, 55, 50 +ear-r + bounds: 291, 94, 45, 66 + rotate: 90 +eyelashes-r + bounds: 2, 2, 32, 47 + rotate: 90 +globe-texture-strong + bounds: 2, 141, 880, 881 +glove-fingers-l + bounds: 884, 361, 39, 51 +glove-fingers-r + bounds: 884, 469, 41, 56 +glove-r + bounds: 76, 36, 44, 65 + rotate: 90 +hair-strand-1 + bounds: 359, 102, 37, 65 + rotate: 90 +hair-strand-3 + bounds: 884, 414, 40, 53 +hair-strand-4 + bounds: 939, 893, 37, 69 +iris-l + bounds: 884, 173, 40, 41 +iris-r + bounds: 143, 39, 40, 41 +leg-down-r + bounds: 2, 36, 72, 103 +pupil-l + bounds: 51, 2, 32, 32 +pupil-r + bounds: 85, 2, 32, 32 +red-present-decoration + bounds: 426, 99, 41, 40 +scarf-pompom-l + bounds: 884, 309, 50, 46 + rotate: 90 +scarf-pompom-r + bounds: 884, 258, 49, 47 + rotate: 90 +scarf-ribbon-bottom-l + bounds: 884, 856, 106, 53 + rotate: 90 +scarf-ribbon-bottom-r + bounds: 76, 82, 105, 57 +scarf-ribbon-middle-l + bounds: 884, 764, 63, 90 +scarf-ribbon-top-l + bounds: 884, 964, 105, 58 +scarf-ribbon-top-r + bounds: 183, 86, 106, 53 + +snowglobe-pma_3.png + size: 1024, 1024 + filter: Linear, Linear + pma: true + scale: 0.5 +globe-texture + bounds: 2, 2, 880, 881 + +snowglobe-pma_4.png + size: 1024, 1024 + filter: Linear, Linear + pma: true + scale: 0.5 +elf-shadow + bounds: 2, 2, 395, 158 +globe-reflections + bounds: 2, 162, 646, 835 +globe-shadow + bounds: 650, 77, 920, 366 + rotate: 90 +hat + bounds: 399, 7, 153, 221 + rotate: 90 + +snowglobe-pma_5.png + size: 1024, 1024 + filter: Linear, Linear + pma: true + scale: 0.5 +body + bounds: 710, 569, 139, 151 +globe-base-back + bounds: 2, 2, 606, 258 +globe-base-front + bounds: 2, 262, 706, 458 diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/snowglobe/snowglobe-pma.atlas.txt.meta b/Assets/ThirdParty/Spine Examples/Spine Skeletons/snowglobe/snowglobe-pma.atlas.txt.meta new file mode 100644 index 000000000..ee7e25d77 --- /dev/null +++ b/Assets/ThirdParty/Spine Examples/Spine Skeletons/snowglobe/snowglobe-pma.atlas.txt.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 3468b7c9da7e9b442a522d337ab1fe7c +TextScriptImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/snowglobe/snowglobe-pma.png b/Assets/ThirdParty/Spine Examples/Spine Skeletons/snowglobe/snowglobe-pma.png new file mode 100644 index 000000000..2ac2bc34a Binary files /dev/null and b/Assets/ThirdParty/Spine Examples/Spine Skeletons/snowglobe/snowglobe-pma.png differ diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/snowglobe/snowglobe-pma.png.meta b/Assets/ThirdParty/Spine Examples/Spine Skeletons/snowglobe/snowglobe-pma.png.meta new file mode 100644 index 000000000..5373e6fc6 --- /dev/null +++ b/Assets/ThirdParty/Spine Examples/Spine Skeletons/snowglobe/snowglobe-pma.png.meta @@ -0,0 +1,112 @@ +fileFormatVersion: 2 +guid: fde4ea38b31cbd34284ee37e5551e9f2 +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 12 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 0 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMasterTextureLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 0 + wrapV: 0 + wrapW: 0 + nPOTScale: 1 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 0 + spriteTessellationDetail: -1 + textureType: 0 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 0 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 1 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 0 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 1 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + spritePackingTag: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/snowglobe/snowglobe-pma_2.png b/Assets/ThirdParty/Spine Examples/Spine Skeletons/snowglobe/snowglobe-pma_2.png new file mode 100644 index 000000000..a0bfc0869 Binary files /dev/null and b/Assets/ThirdParty/Spine Examples/Spine Skeletons/snowglobe/snowglobe-pma_2.png differ diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/snowglobe/snowglobe-pma_2.png.meta b/Assets/ThirdParty/Spine Examples/Spine Skeletons/snowglobe/snowglobe-pma_2.png.meta new file mode 100644 index 000000000..bc07c7131 --- /dev/null +++ b/Assets/ThirdParty/Spine Examples/Spine Skeletons/snowglobe/snowglobe-pma_2.png.meta @@ -0,0 +1,112 @@ +fileFormatVersion: 2 +guid: cc0f9572f8b6d464ba456492b6ca33d5 +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 12 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 0 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMasterTextureLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 0 + wrapV: 0 + wrapW: 0 + nPOTScale: 1 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 0 + spriteTessellationDetail: -1 + textureType: 0 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 0 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 1 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 0 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 1 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + spritePackingTag: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/snowglobe/snowglobe-pma_3.png b/Assets/ThirdParty/Spine Examples/Spine Skeletons/snowglobe/snowglobe-pma_3.png new file mode 100644 index 000000000..5d5878a36 Binary files /dev/null and b/Assets/ThirdParty/Spine Examples/Spine Skeletons/snowglobe/snowglobe-pma_3.png differ diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/snowglobe/snowglobe-pma_3.png.meta b/Assets/ThirdParty/Spine Examples/Spine Skeletons/snowglobe/snowglobe-pma_3.png.meta new file mode 100644 index 000000000..2854cf959 --- /dev/null +++ b/Assets/ThirdParty/Spine Examples/Spine Skeletons/snowglobe/snowglobe-pma_3.png.meta @@ -0,0 +1,112 @@ +fileFormatVersion: 2 +guid: ebcb43b2e6993674bb76468fbe631604 +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 12 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 0 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMasterTextureLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 0 + wrapV: 0 + wrapW: 0 + nPOTScale: 1 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 0 + spriteTessellationDetail: -1 + textureType: 0 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 0 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 1 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 0 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 1 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + spritePackingTag: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/snowglobe/snowglobe-pma_4.png b/Assets/ThirdParty/Spine Examples/Spine Skeletons/snowglobe/snowglobe-pma_4.png new file mode 100644 index 000000000..75341c7d2 Binary files /dev/null and b/Assets/ThirdParty/Spine Examples/Spine Skeletons/snowglobe/snowglobe-pma_4.png differ diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/snowglobe/snowglobe-pma_4.png.meta b/Assets/ThirdParty/Spine Examples/Spine Skeletons/snowglobe/snowglobe-pma_4.png.meta new file mode 100644 index 000000000..d80e48e90 --- /dev/null +++ b/Assets/ThirdParty/Spine Examples/Spine Skeletons/snowglobe/snowglobe-pma_4.png.meta @@ -0,0 +1,112 @@ +fileFormatVersion: 2 +guid: ee794275af753d9479a2e00dfed719d8 +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 12 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 0 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMasterTextureLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 0 + wrapV: 0 + wrapW: 0 + nPOTScale: 1 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 0 + spriteTessellationDetail: -1 + textureType: 0 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 0 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 1 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 0 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 1 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + spritePackingTag: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/snowglobe/snowglobe-pma_5.png b/Assets/ThirdParty/Spine Examples/Spine Skeletons/snowglobe/snowglobe-pma_5.png new file mode 100644 index 000000000..d26cbaa87 Binary files /dev/null and b/Assets/ThirdParty/Spine Examples/Spine Skeletons/snowglobe/snowglobe-pma_5.png differ diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/snowglobe/snowglobe-pma_5.png.meta b/Assets/ThirdParty/Spine Examples/Spine Skeletons/snowglobe/snowglobe-pma_5.png.meta new file mode 100644 index 000000000..f6b2b429c --- /dev/null +++ b/Assets/ThirdParty/Spine Examples/Spine Skeletons/snowglobe/snowglobe-pma_5.png.meta @@ -0,0 +1,112 @@ +fileFormatVersion: 2 +guid: 2193d62b6eff5284caf4f1599a1f5615 +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 12 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 0 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMasterTextureLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 0 + wrapV: 0 + wrapW: 0 + nPOTScale: 1 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 0 + spriteTessellationDetail: -1 + textureType: 0 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 0 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 1 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 0 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 1 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + spritePackingTag: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/snowglobe/snowglobe-pma_Atlas.asset b/Assets/ThirdParty/Spine Examples/Spine Skeletons/snowglobe/snowglobe-pma_Atlas.asset new file mode 100644 index 000000000..58a2128f9 --- /dev/null +++ b/Assets/ThirdParty/Spine Examples/Spine Skeletons/snowglobe/snowglobe-pma_Atlas.asset @@ -0,0 +1,23 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!114 &11400000 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: a6b194f808b1af6499c93410e504af42, type: 3} + m_Name: snowglobe-pma_Atlas + m_EditorClassIdentifier: + textureLoadingMode: 0 + onDemandTextureLoader: {fileID: 0} + atlasFile: {fileID: 4900000, guid: 3468b7c9da7e9b442a522d337ab1fe7c, type: 3} + materials: + - {fileID: 2100000, guid: bc273223b04e8cb4dbbc77a27f38cc65, type: 2} + - {fileID: 2100000, guid: c0f19210b249a30418ba777c6dbdd1f3, type: 2} + - {fileID: 2100000, guid: decd34b04cd07554a9bcd2e85dde7b03, type: 2} + - {fileID: 2100000, guid: 2944e525a4bfee14b8c5067246eb3e39, type: 2} + - {fileID: 2100000, guid: 30c7a85032064f0468da374e72de22b0, type: 2} diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/snowglobe/snowglobe-pma_Atlas.asset.meta b/Assets/ThirdParty/Spine Examples/Spine Skeletons/snowglobe/snowglobe-pma_Atlas.asset.meta new file mode 100644 index 000000000..eeee8f15b --- /dev/null +++ b/Assets/ThirdParty/Spine Examples/Spine Skeletons/snowglobe/snowglobe-pma_Atlas.asset.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: b9e4a2caef534b644a5daf4e4b7da32a +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 11400000 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/snowglobe/snowglobe-pma_snowglobe-pma.mat b/Assets/ThirdParty/Spine Examples/Spine Skeletons/snowglobe/snowglobe-pma_snowglobe-pma.mat new file mode 100644 index 000000000..0b0633053 --- /dev/null +++ b/Assets/ThirdParty/Spine Examples/Spine Skeletons/snowglobe/snowglobe-pma_snowglobe-pma.mat @@ -0,0 +1,45 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!21 &2100000 +Material: + serializedVersion: 8 + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: snowglobe-pma_snowglobe-pma + m_Shader: {fileID: 4800000, guid: 1e8a610c9e01c3648bac42585e5fc676, type: 3} + m_ValidKeywords: [] + m_InvalidKeywords: + - _USE8NEIGHBOURHOOD_ON + m_LightmapFlags: 4 + m_EnableInstancingVariants: 0 + m_DoubleSidedGI: 0 + m_CustomRenderQueue: -1 + stringTagMap: {} + disabledShaderPasses: [] + m_SavedProperties: + serializedVersion: 3 + m_TexEnvs: + - _MainTex: + m_Texture: {fileID: 2800000, guid: fde4ea38b31cbd34284ee37e5551e9f2, type: 3} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + m_Ints: [] + m_Floats: + - _Cutoff: 0.1 + - _Fill: 0 + - _OutlineMipLevel: 0 + - _OutlineOpaqueAlpha: 1 + - _OutlineReferenceTexWidth: 1024 + - _OutlineSmoothness: 1 + - _OutlineWidth: 3 + - _StencilComp: 8 + - _StencilRef: 1 + - _StraightAlphaInput: 0 + - _ThresholdEnd: 0.25 + - _Use8Neighbourhood: 1 + - _UseScreenSpaceOutlineWidth: 0 + m_Colors: + - _OutlineColor: {r: 1, g: 1, b: 0, a: 1} + m_BuildTextureStacks: [] diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/snowglobe/snowglobe-pma_snowglobe-pma.mat.meta b/Assets/ThirdParty/Spine Examples/Spine Skeletons/snowglobe/snowglobe-pma_snowglobe-pma.mat.meta new file mode 100644 index 000000000..883133f45 --- /dev/null +++ b/Assets/ThirdParty/Spine Examples/Spine Skeletons/snowglobe/snowglobe-pma_snowglobe-pma.mat.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: bc273223b04e8cb4dbbc77a27f38cc65 +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 2100000 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/snowglobe/snowglobe-pma_snowglobe-pma_2.mat b/Assets/ThirdParty/Spine Examples/Spine Skeletons/snowglobe/snowglobe-pma_snowglobe-pma_2.mat new file mode 100644 index 000000000..eaca80657 --- /dev/null +++ b/Assets/ThirdParty/Spine Examples/Spine Skeletons/snowglobe/snowglobe-pma_snowglobe-pma_2.mat @@ -0,0 +1,45 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!21 &2100000 +Material: + serializedVersion: 8 + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: snowglobe-pma_snowglobe-pma_2 + m_Shader: {fileID: 4800000, guid: 1e8a610c9e01c3648bac42585e5fc676, type: 3} + m_ValidKeywords: [] + m_InvalidKeywords: + - _USE8NEIGHBOURHOOD_ON + m_LightmapFlags: 4 + m_EnableInstancingVariants: 0 + m_DoubleSidedGI: 0 + m_CustomRenderQueue: -1 + stringTagMap: {} + disabledShaderPasses: [] + m_SavedProperties: + serializedVersion: 3 + m_TexEnvs: + - _MainTex: + m_Texture: {fileID: 2800000, guid: cc0f9572f8b6d464ba456492b6ca33d5, type: 3} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + m_Ints: [] + m_Floats: + - _Cutoff: 0.1 + - _Fill: 0 + - _OutlineMipLevel: 0 + - _OutlineOpaqueAlpha: 1 + - _OutlineReferenceTexWidth: 1024 + - _OutlineSmoothness: 1 + - _OutlineWidth: 3 + - _StencilComp: 8 + - _StencilRef: 1 + - _StraightAlphaInput: 0 + - _ThresholdEnd: 0.25 + - _Use8Neighbourhood: 1 + - _UseScreenSpaceOutlineWidth: 0 + m_Colors: + - _OutlineColor: {r: 1, g: 1, b: 0, a: 1} + m_BuildTextureStacks: [] diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/snowglobe/snowglobe-pma_snowglobe-pma_2.mat.meta b/Assets/ThirdParty/Spine Examples/Spine Skeletons/snowglobe/snowglobe-pma_snowglobe-pma_2.mat.meta new file mode 100644 index 000000000..90bb0adfc --- /dev/null +++ b/Assets/ThirdParty/Spine Examples/Spine Skeletons/snowglobe/snowglobe-pma_snowglobe-pma_2.mat.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: c0f19210b249a30418ba777c6dbdd1f3 +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 2100000 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/snowglobe/snowglobe-pma_snowglobe-pma_3.mat b/Assets/ThirdParty/Spine Examples/Spine Skeletons/snowglobe/snowglobe-pma_snowglobe-pma_3.mat new file mode 100644 index 000000000..2bdd32b98 --- /dev/null +++ b/Assets/ThirdParty/Spine Examples/Spine Skeletons/snowglobe/snowglobe-pma_snowglobe-pma_3.mat @@ -0,0 +1,45 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!21 &2100000 +Material: + serializedVersion: 8 + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: snowglobe-pma_snowglobe-pma_3 + m_Shader: {fileID: 4800000, guid: 1e8a610c9e01c3648bac42585e5fc676, type: 3} + m_ValidKeywords: [] + m_InvalidKeywords: + - _USE8NEIGHBOURHOOD_ON + m_LightmapFlags: 4 + m_EnableInstancingVariants: 0 + m_DoubleSidedGI: 0 + m_CustomRenderQueue: -1 + stringTagMap: {} + disabledShaderPasses: [] + m_SavedProperties: + serializedVersion: 3 + m_TexEnvs: + - _MainTex: + m_Texture: {fileID: 2800000, guid: ebcb43b2e6993674bb76468fbe631604, type: 3} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + m_Ints: [] + m_Floats: + - _Cutoff: 0.1 + - _Fill: 0 + - _OutlineMipLevel: 0 + - _OutlineOpaqueAlpha: 1 + - _OutlineReferenceTexWidth: 1024 + - _OutlineSmoothness: 1 + - _OutlineWidth: 3 + - _StencilComp: 8 + - _StencilRef: 1 + - _StraightAlphaInput: 0 + - _ThresholdEnd: 0.25 + - _Use8Neighbourhood: 1 + - _UseScreenSpaceOutlineWidth: 0 + m_Colors: + - _OutlineColor: {r: 1, g: 1, b: 0, a: 1} + m_BuildTextureStacks: [] diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/snowglobe/snowglobe-pma_snowglobe-pma_3.mat.meta b/Assets/ThirdParty/Spine Examples/Spine Skeletons/snowglobe/snowglobe-pma_snowglobe-pma_3.mat.meta new file mode 100644 index 000000000..288cf2599 --- /dev/null +++ b/Assets/ThirdParty/Spine Examples/Spine Skeletons/snowglobe/snowglobe-pma_snowglobe-pma_3.mat.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: decd34b04cd07554a9bcd2e85dde7b03 +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 2100000 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/snowglobe/snowglobe-pma_snowglobe-pma_4-Multiply.mat b/Assets/ThirdParty/Spine Examples/Spine Skeletons/snowglobe/snowglobe-pma_snowglobe-pma_4-Multiply.mat new file mode 100644 index 000000000..c7664cc5b --- /dev/null +++ b/Assets/ThirdParty/Spine Examples/Spine Skeletons/snowglobe/snowglobe-pma_snowglobe-pma_4-Multiply.mat @@ -0,0 +1,53 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!21 &2100000 +Material: + serializedVersion: 8 + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: snowglobe-pma_snowglobe-pma_4-Multiply + m_Shader: {fileID: 4800000, guid: 8bdcdc7ee298e594a9c20c61d25c33b6, type: 3} + m_Parent: {fileID: 0} + m_ModifiedSerializedProperties: 0 + m_ValidKeywords: [] + m_InvalidKeywords: + - _USE8NEIGHBOURHOOD_ON + m_LightmapFlags: 4 + m_EnableInstancingVariants: 0 + m_DoubleSidedGI: 0 + m_CustomRenderQueue: -1 + stringTagMap: {} + disabledShaderPasses: [] + m_LockedProperties: + m_SavedProperties: + serializedVersion: 3 + m_TexEnvs: + - : + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _MainTex: + m_Texture: {fileID: 2800000, guid: ee794275af753d9479a2e00dfed719d8, type: 3} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + m_Ints: [] + m_Floats: + - : 0 + - _Cutoff: 0.1 + - _OutlineMipLevel: 0 + - _OutlineOpaqueAlpha: 1 + - _OutlineReferenceTexWidth: 1024 + - _OutlineSmoothness: 1 + - _OutlineWidth: 3 + - _StencilComp: 8 + - _StencilRef: 1 + - _StraightAlphaInput: 0 + - _ThresholdEnd: 0.25 + - _Use8Neighbourhood: 1 + m_Colors: + - : {r: 0, g: 2.018574, b: 1e-45, a: 0.000007110106} + - _Color: {r: 1, g: 1, b: 1, a: 1} + - _OutlineColor: {r: 1, g: 1, b: 0, a: 1} + m_BuildTextureStacks: [] diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/snowglobe/snowglobe-pma_snowglobe-pma_4-Multiply.mat.meta b/Assets/ThirdParty/Spine Examples/Spine Skeletons/snowglobe/snowglobe-pma_snowglobe-pma_4-Multiply.mat.meta new file mode 100644 index 000000000..036a8b93e --- /dev/null +++ b/Assets/ThirdParty/Spine Examples/Spine Skeletons/snowglobe/snowglobe-pma_snowglobe-pma_4-Multiply.mat.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 457f3020c684d35468371a3d1f701bf5 +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 2100000 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/snowglobe/snowglobe-pma_snowglobe-pma_4.mat b/Assets/ThirdParty/Spine Examples/Spine Skeletons/snowglobe/snowglobe-pma_snowglobe-pma_4.mat new file mode 100644 index 000000000..6ca7a3e4c --- /dev/null +++ b/Assets/ThirdParty/Spine Examples/Spine Skeletons/snowglobe/snowglobe-pma_snowglobe-pma_4.mat @@ -0,0 +1,45 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!21 &2100000 +Material: + serializedVersion: 8 + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: snowglobe-pma_snowglobe-pma_4 + m_Shader: {fileID: 4800000, guid: 1e8a610c9e01c3648bac42585e5fc676, type: 3} + m_ValidKeywords: [] + m_InvalidKeywords: + - _USE8NEIGHBOURHOOD_ON + m_LightmapFlags: 4 + m_EnableInstancingVariants: 0 + m_DoubleSidedGI: 0 + m_CustomRenderQueue: -1 + stringTagMap: {} + disabledShaderPasses: [] + m_SavedProperties: + serializedVersion: 3 + m_TexEnvs: + - _MainTex: + m_Texture: {fileID: 2800000, guid: ee794275af753d9479a2e00dfed719d8, type: 3} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + m_Ints: [] + m_Floats: + - _Cutoff: 0.1 + - _Fill: 0 + - _OutlineMipLevel: 0 + - _OutlineOpaqueAlpha: 1 + - _OutlineReferenceTexWidth: 1024 + - _OutlineSmoothness: 1 + - _OutlineWidth: 3 + - _StencilComp: 8 + - _StencilRef: 1 + - _StraightAlphaInput: 0 + - _ThresholdEnd: 0.25 + - _Use8Neighbourhood: 1 + - _UseScreenSpaceOutlineWidth: 0 + m_Colors: + - _OutlineColor: {r: 1, g: 1, b: 0, a: 1} + m_BuildTextureStacks: [] diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/snowglobe/snowglobe-pma_snowglobe-pma_4.mat.meta b/Assets/ThirdParty/Spine Examples/Spine Skeletons/snowglobe/snowglobe-pma_snowglobe-pma_4.mat.meta new file mode 100644 index 000000000..d36563ae5 --- /dev/null +++ b/Assets/ThirdParty/Spine Examples/Spine Skeletons/snowglobe/snowglobe-pma_snowglobe-pma_4.mat.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 2944e525a4bfee14b8c5067246eb3e39 +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 2100000 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/snowglobe/snowglobe-pma_snowglobe-pma_5.mat b/Assets/ThirdParty/Spine Examples/Spine Skeletons/snowglobe/snowglobe-pma_snowglobe-pma_5.mat new file mode 100644 index 000000000..b8897f919 --- /dev/null +++ b/Assets/ThirdParty/Spine Examples/Spine Skeletons/snowglobe/snowglobe-pma_snowglobe-pma_5.mat @@ -0,0 +1,45 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!21 &2100000 +Material: + serializedVersion: 8 + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: snowglobe-pma_snowglobe-pma_5 + m_Shader: {fileID: 4800000, guid: 1e8a610c9e01c3648bac42585e5fc676, type: 3} + m_ValidKeywords: [] + m_InvalidKeywords: + - _USE8NEIGHBOURHOOD_ON + m_LightmapFlags: 4 + m_EnableInstancingVariants: 0 + m_DoubleSidedGI: 0 + m_CustomRenderQueue: -1 + stringTagMap: {} + disabledShaderPasses: [] + m_SavedProperties: + serializedVersion: 3 + m_TexEnvs: + - _MainTex: + m_Texture: {fileID: 2800000, guid: 2193d62b6eff5284caf4f1599a1f5615, type: 3} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + m_Ints: [] + m_Floats: + - _Cutoff: 0.1 + - _Fill: 0 + - _OutlineMipLevel: 0 + - _OutlineOpaqueAlpha: 1 + - _OutlineReferenceTexWidth: 1024 + - _OutlineSmoothness: 1 + - _OutlineWidth: 3 + - _StencilComp: 8 + - _StencilRef: 1 + - _StraightAlphaInput: 0 + - _ThresholdEnd: 0.25 + - _Use8Neighbourhood: 1 + - _UseScreenSpaceOutlineWidth: 0 + m_Colors: + - _OutlineColor: {r: 1, g: 1, b: 0, a: 1} + m_BuildTextureStacks: [] diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/snowglobe/snowglobe-pma_snowglobe-pma_5.mat.meta b/Assets/ThirdParty/Spine Examples/Spine Skeletons/snowglobe/snowglobe-pma_snowglobe-pma_5.mat.meta new file mode 100644 index 000000000..8438f2d52 --- /dev/null +++ b/Assets/ThirdParty/Spine Examples/Spine Skeletons/snowglobe/snowglobe-pma_snowglobe-pma_5.mat.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 30c7a85032064f0468da374e72de22b0 +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 2100000 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/snowglobe/snowglobe-pro.skel.bytes b/Assets/ThirdParty/Spine Examples/Spine Skeletons/snowglobe/snowglobe-pro.skel.bytes new file mode 100644 index 000000000..a7a825479 Binary files /dev/null and b/Assets/ThirdParty/Spine Examples/Spine Skeletons/snowglobe/snowglobe-pro.skel.bytes differ diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/snowglobe/snowglobe-pro.skel.bytes.meta b/Assets/ThirdParty/Spine Examples/Spine Skeletons/snowglobe/snowglobe-pro.skel.bytes.meta new file mode 100644 index 000000000..b6c292019 --- /dev/null +++ b/Assets/ThirdParty/Spine Examples/Spine Skeletons/snowglobe/snowglobe-pro.skel.bytes.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 3c5679bf3b085444a862aa6d3ebe97ad +TextScriptImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/snowglobe/snowglobe-pro_SkeletonData.asset b/Assets/ThirdParty/Spine Examples/Spine Skeletons/snowglobe/snowglobe-pro_SkeletonData.asset new file mode 100644 index 000000000..5868ce417 --- /dev/null +++ b/Assets/ThirdParty/Spine Examples/Spine Skeletons/snowglobe/snowglobe-pro_SkeletonData.asset @@ -0,0 +1,33 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!114 &11400000 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: f1b3b4b945939a54ea0b23d3396115fb, type: 3} + m_Name: snowglobe-pro_SkeletonData + m_EditorClassIdentifier: + atlasAssets: + - {fileID: 11400000, guid: b9e4a2caef534b644a5daf4e4b7da32a, type: 2} + scale: 0.01 + skeletonJSON: {fileID: 4900000, guid: 3c5679bf3b085444a862aa6d3ebe97ad, type: 3} + isUpgradingBlendModeMaterials: 0 + blendModeMaterials: + requiresBlendModeMaterials: 1 + applyAdditiveMaterial: 0 + additiveMaterials: [] + multiplyMaterials: + - pageName: snowglobe-pma_4.png + material: {fileID: 2100000, guid: 457f3020c684d35468371a3d1f701bf5, type: 2} + screenMaterials: [] + skeletonDataModifiers: [] + fromAnimation: [] + toAnimation: [] + duration: [] + defaultMix: 0.2 + controller: {fileID: 0} diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/snowglobe/snowglobe-pro_SkeletonData.asset.meta b/Assets/ThirdParty/Spine Examples/Spine Skeletons/snowglobe/snowglobe-pro_SkeletonData.asset.meta new file mode 100644 index 000000000..dc84ba948 --- /dev/null +++ b/Assets/ThirdParty/Spine Examples/Spine Skeletons/snowglobe/snowglobe-pro_SkeletonData.asset.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 9f9df402d4f49864aa437e785eb16524 +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 11400000 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/spineboy-pro/spineboy-pro.json b/Assets/ThirdParty/Spine Examples/Spine Skeletons/spineboy-pro/spineboy-pro.json index 1ea41c3f7..64b4b086c 100644 --- a/Assets/ThirdParty/Spine Examples/Spine Skeletons/spineboy-pro/spineboy-pro.json +++ b/Assets/ThirdParty/Spine Examples/Spine Skeletons/spineboy-pro/spineboy-pro.json @@ -1,7 +1,7 @@ { "skeleton": { - "hash": "MBDs/ftbFOk", - "spine": "4.1.23-beta", + "hash": "a+YTUe6ARJY", + "spine": "4.2.22", "x": -190.61, "y": -7.99, "width": 419.76, @@ -58,7 +58,7 @@ "rotation": -0.85, "x": 51.17, "y": 0.24, - "transform": "noRotationOrReflection", + "inherit": "noRotationOrReflection", "color": "ff000dff" }, { "name": "board-ik", "parent": "root", "x": -131.78, "y": 69.09, "color": "ff3f00ff" }, @@ -161,7 +161,7 @@ "rotation": -1.68, "x": 41.42, "y": -0.09, - "transform": "noRotationOrReflection", + "inherit": "noRotationOrReflection", "color": "00ff04ff" }, { @@ -238,8 +238,8 @@ "y": -0.04, "color": "e0da19ff" }, - { "name": "hoverboard-thruster-front", "parent": "hoverboard-controller", "rotation": -29.2, "x": 95.77, "y": -2.99, "transform": "noRotationOrReflection" }, - { "name": "hoverboard-thruster-rear", "parent": "hoverboard-controller", "rotation": -29.2, "x": -76.47, "y": -4.88, "transform": "noRotationOrReflection" }, + { "name": "hoverboard-thruster-front", "parent": "hoverboard-controller", "rotation": -29.2, "x": 95.77, "y": -2.99, "inherit": "noRotationOrReflection" }, + { "name": "hoverboard-thruster-rear", "parent": "hoverboard-controller", "rotation": -29.2, "x": -76.47, "y": -4.88, "inherit": "noRotationOrReflection" }, { "name": "hoverglow-front", "parent": "hoverboard-thruster-front", "rotation": 0.17, "x": -1.78, "y": -37.79 }, { "name": "hoverglow-rear", "parent": "hoverboard-thruster-rear", "rotation": 0.17, "x": 1.06, "y": -35.66 }, { "name": "muzzle", "parent": "rear-bracer", "rotation": 3.06, "x": 242.34, "y": 34.26, "color": "ffb900ff" }, diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/spineboy-pro/spineboy-pro.png b/Assets/ThirdParty/Spine Examples/Spine Skeletons/spineboy-pro/spineboy-pro.png index 307419941..a709dd363 100644 Binary files a/Assets/ThirdParty/Spine Examples/Spine Skeletons/spineboy-pro/spineboy-pro.png and b/Assets/ThirdParty/Spine Examples/Spine Skeletons/spineboy-pro/spineboy-pro.png differ diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/spineboy-pro/spineboy-pro.png.meta b/Assets/ThirdParty/Spine Examples/Spine Skeletons/spineboy-pro/spineboy-pro.png.meta index 0646af93a..01e828494 100644 --- a/Assets/ThirdParty/Spine Examples/Spine Skeletons/spineboy-pro/spineboy-pro.png.meta +++ b/Assets/ThirdParty/Spine Examples/Spine Skeletons/spineboy-pro/spineboy-pro.png.meta @@ -8,7 +8,7 @@ TextureImporter: mipmaps: mipMapMode: 0 enableMipMap: 0 - sRGBTexture: 1 + sRGBTexture: 0 linearTexture: 0 fadeOut: 0 borderMipMap: 0 diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/spineboy-pro/spineboy-pro_Material.mat b/Assets/ThirdParty/Spine Examples/Spine Skeletons/spineboy-pro/spineboy-pro_Material.mat index 440f2f080..47f2d2813 100644 --- a/Assets/ThirdParty/Spine Examples/Spine Skeletons/spineboy-pro/spineboy-pro_Material.mat +++ b/Assets/ThirdParty/Spine Examples/Spine Skeletons/spineboy-pro/spineboy-pro_Material.mat @@ -7,7 +7,7 @@ Material: m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_Name: spineboy-pro_Material + m_Name: spineboy-pro_material m_Shader: {fileID: 4800000, guid: 1e8a610c9e01c3648bac42585e5fc676, type: 3} m_ValidKeywords: [] m_InvalidKeywords: @@ -28,6 +28,7 @@ Material: m_Ints: [] m_Floats: - _Cutoff: 0.1 + - _Fill: 0 - _OutlineMipLevel: 0 - _OutlineOpaqueAlpha: 1 - _OutlineReferenceTexWidth: 1024 @@ -38,6 +39,7 @@ Material: - _StraightAlphaInput: 0 - _ThresholdEnd: 0.25 - _Use8Neighbourhood: 1 + - _UseScreenSpaceOutlineWidth: 0 m_Colors: - _OutlineColor: {r: 1, g: 1, b: 0, a: 1} m_BuildTextureStacks: [] diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/spineboy-pro/spineboy-pro_Material.mat.meta b/Assets/ThirdParty/Spine Examples/Spine Skeletons/spineboy-pro/spineboy-pro_Material.mat.meta index b712320cc..e7f373c29 100644 --- a/Assets/ThirdParty/Spine Examples/Spine Skeletons/spineboy-pro/spineboy-pro_Material.mat.meta +++ b/Assets/ThirdParty/Spine Examples/Spine Skeletons/spineboy-pro/spineboy-pro_Material.mat.meta @@ -1,8 +1,7 @@ fileFormatVersion: 2 guid: f89bbf05902e77242a3ad20f3c927353 -timeCreated: 1560699470 -licenseType: Free NativeFormatImporter: + externalObjects: {} mainObjectFileID: 2100000 userData: assetBundleName: diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/spineboy-unity/Equips/goggles-normal.png.meta b/Assets/ThirdParty/Spine Examples/Spine Skeletons/spineboy-unity/Equips/goggles-normal.png.meta index 742cdd039..1c9a0cc3f 100644 --- a/Assets/ThirdParty/Spine Examples/Spine Skeletons/spineboy-unity/Equips/goggles-normal.png.meta +++ b/Assets/ThirdParty/Spine Examples/Spine Skeletons/spineboy-unity/Equips/goggles-normal.png.meta @@ -20,6 +20,7 @@ TextureImporter: externalNormalMap: 0 heightScale: 0.25 normalMapFilter: 0 + flipGreenChannel: 0 isReadable: 1 streamingMipmaps: 0 streamingMipmapsPriority: 0 @@ -63,6 +64,7 @@ TextureImporter: textureFormatSet: 0 ignorePngGamma: 0 applyGammaDecoding: 1 + swizzle: 50462976 cookieLightType: 1 platformSettings: - serializedVersion: 3 @@ -113,18 +115,6 @@ TextureImporter: overridden: 0 androidETC2FallbackOverride: 0 forceMaximumCompressionQuality_BC6H_BC7: 1 - - serializedVersion: 3 - buildTarget: iPhone - maxTextureSize: 2048 - resizeAlgorithm: 0 - textureFormat: -1 - textureCompression: 0 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - androidETC2FallbackOverride: 0 - forceMaximumCompressionQuality_BC6H_BC7: 1 - serializedVersion: 3 buildTarget: Server maxTextureSize: 2048 @@ -153,7 +143,6 @@ TextureImporter: nameFileIdTable: {} spritePackingTag: pSDRemoveMatte: 0 - pSDShowRemoveMatteOption: 0 userData: assetBundleName: assetBundleVariant: diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/spineboy-unity/Equips/goggles-tactical.png.meta b/Assets/ThirdParty/Spine Examples/Spine Skeletons/spineboy-unity/Equips/goggles-tactical.png.meta index d1dbe4da3..e836dcdde 100644 --- a/Assets/ThirdParty/Spine Examples/Spine Skeletons/spineboy-unity/Equips/goggles-tactical.png.meta +++ b/Assets/ThirdParty/Spine Examples/Spine Skeletons/spineboy-unity/Equips/goggles-tactical.png.meta @@ -20,6 +20,7 @@ TextureImporter: externalNormalMap: 0 heightScale: 0.25 normalMapFilter: 0 + flipGreenChannel: 0 isReadable: 1 streamingMipmaps: 0 streamingMipmapsPriority: 0 @@ -63,6 +64,7 @@ TextureImporter: textureFormatSet: 0 ignorePngGamma: 0 applyGammaDecoding: 1 + swizzle: 50462976 cookieLightType: 1 platformSettings: - serializedVersion: 3 @@ -113,18 +115,6 @@ TextureImporter: overridden: 0 androidETC2FallbackOverride: 0 forceMaximumCompressionQuality_BC6H_BC7: 1 - - serializedVersion: 3 - buildTarget: iPhone - maxTextureSize: 2048 - resizeAlgorithm: 0 - textureFormat: -1 - textureCompression: 0 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - androidETC2FallbackOverride: 0 - forceMaximumCompressionQuality_BC6H_BC7: 1 - serializedVersion: 3 buildTarget: Server maxTextureSize: 2048 @@ -153,7 +143,6 @@ TextureImporter: nameFileIdTable: {} spritePackingTag: pSDRemoveMatte: 0 - pSDShowRemoveMatteOption: 0 userData: assetBundleName: assetBundleVariant: diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/spineboy-unity/Equips/gun-freeze.png.meta b/Assets/ThirdParty/Spine Examples/Spine Skeletons/spineboy-unity/Equips/gun-freeze.png.meta index cb93787b6..376717ee8 100644 --- a/Assets/ThirdParty/Spine Examples/Spine Skeletons/spineboy-unity/Equips/gun-freeze.png.meta +++ b/Assets/ThirdParty/Spine Examples/Spine Skeletons/spineboy-unity/Equips/gun-freeze.png.meta @@ -20,6 +20,7 @@ TextureImporter: externalNormalMap: 0 heightScale: 0.25 normalMapFilter: 0 + flipGreenChannel: 0 isReadable: 1 streamingMipmaps: 0 streamingMipmapsPriority: 0 @@ -63,6 +64,7 @@ TextureImporter: textureFormatSet: 0 ignorePngGamma: 0 applyGammaDecoding: 1 + swizzle: 50462976 cookieLightType: 1 platformSettings: - serializedVersion: 3 @@ -113,18 +115,6 @@ TextureImporter: overridden: 0 androidETC2FallbackOverride: 0 forceMaximumCompressionQuality_BC6H_BC7: 1 - - serializedVersion: 3 - buildTarget: iPhone - maxTextureSize: 2048 - resizeAlgorithm: 0 - textureFormat: -1 - textureCompression: 0 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - androidETC2FallbackOverride: 0 - forceMaximumCompressionQuality_BC6H_BC7: 1 - serializedVersion: 3 buildTarget: Server maxTextureSize: 2048 @@ -153,7 +143,6 @@ TextureImporter: nameFileIdTable: {} spritePackingTag: pSDRemoveMatte: 0 - pSDShowRemoveMatteOption: 0 userData: assetBundleName: assetBundleVariant: diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/spineboy-unity/Equips/gun-normal.png.meta b/Assets/ThirdParty/Spine Examples/Spine Skeletons/spineboy-unity/Equips/gun-normal.png.meta index 6174758c3..3f91a9aa7 100644 --- a/Assets/ThirdParty/Spine Examples/Spine Skeletons/spineboy-unity/Equips/gun-normal.png.meta +++ b/Assets/ThirdParty/Spine Examples/Spine Skeletons/spineboy-unity/Equips/gun-normal.png.meta @@ -20,6 +20,7 @@ TextureImporter: externalNormalMap: 0 heightScale: 0.25 normalMapFilter: 0 + flipGreenChannel: 0 isReadable: 1 streamingMipmaps: 0 streamingMipmapsPriority: 0 @@ -63,6 +64,7 @@ TextureImporter: textureFormatSet: 0 ignorePngGamma: 0 applyGammaDecoding: 1 + swizzle: 50462976 cookieLightType: 1 platformSettings: - serializedVersion: 3 @@ -113,18 +115,6 @@ TextureImporter: overridden: 0 androidETC2FallbackOverride: 0 forceMaximumCompressionQuality_BC6H_BC7: 1 - - serializedVersion: 3 - buildTarget: iPhone - maxTextureSize: 2048 - resizeAlgorithm: 0 - textureFormat: -1 - textureCompression: 0 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - androidETC2FallbackOverride: 0 - forceMaximumCompressionQuality_BC6H_BC7: 1 - serializedVersion: 3 buildTarget: Server maxTextureSize: 2048 @@ -153,7 +143,6 @@ TextureImporter: nameFileIdTable: {} spritePackingTag: pSDRemoveMatte: 0 - pSDShowRemoveMatteOption: 0 userData: assetBundleName: assetBundleVariant: diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/spineboy-unity/spineboy-unity.json b/Assets/ThirdParty/Spine Examples/Spine Skeletons/spineboy-unity/spineboy-unity.json index 1c93b8e4c..09f37913c 100644 --- a/Assets/ThirdParty/Spine Examples/Spine Skeletons/spineboy-unity/spineboy-unity.json +++ b/Assets/ThirdParty/Spine Examples/Spine Skeletons/spineboy-unity/spineboy-unity.json @@ -1,7 +1,7 @@ { "skeleton": { - "hash": "fJ3tj/bl3Iw", - "spine": "4.1.23-beta", + "hash": "XrCABmFcV0A", + "spine": "4.2.22", "x": -221.22, "y": -8.55, "width": 371.09, @@ -68,7 +68,7 @@ "rotation": -2.21, "x": 78.69, "y": 1.6, - "transform": "noScale", + "inherit": "noScale", "color": "00ff04ff" }, { diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/spineboy-unity/spineboy.atlas.txt b/Assets/ThirdParty/Spine Examples/Spine Skeletons/spineboy-unity/spineboy.atlas.txt index b1ebac5bd..b5eb27791 100644 --- a/Assets/ThirdParty/Spine Examples/Spine Skeletons/spineboy-unity/spineboy.atlas.txt +++ b/Assets/ThirdParty/Spine Examples/Spine Skeletons/spineboy-unity/spineboy.atlas.txt @@ -3,69 +3,63 @@ spineboy.png filter: Linear, Linear pma: true eye_indifferent - bounds: 2, 460, 93, 89 + bounds: 550, 694, 93, 89 eye_surprised - bounds: 462, 492, 93, 89 + bounds: 834, 856, 93, 89 front_bracer - bounds: 907, 472, 58, 80 - rotate: 90 + bounds: 678, 774, 58, 80 front_fist_closed - bounds: 652, 499, 75, 82 -front_fist_open - bounds: 729, 470, 86, 87 + bounds: 466, 593, 75, 82 rotate: 90 +front_fist_open + bounds: 550, 605, 86, 87 front_foot - bounds: 2, 551, 126, 69 + bounds: 550, 785, 126, 69 front_foot_bend1 - bounds: 952, 689, 128, 70 + bounds: 375, 492, 128, 70 rotate: 90 front_foot_bend2 - bounds: 911, 594, 108, 93 + bounds: 275, 330, 108, 93 + rotate: 90 front_shin - bounds: 766, 735, 82, 184 - rotate: 90 + bounds: 466, 670, 82, 184 front_thigh - bounds: 249, 572, 48, 112 - rotate: 90 + bounds: 214, 208, 48, 112 front_upper_arm - bounds: 363, 566, 54, 97 - rotate: 90 + bounds: 214, 109, 54, 97 goggles - bounds: 466, 583, 261, 166 + bounds: 466, 856, 261, 166 gun - bounds: 766, 819, 210, 203 + bounds: 2, 117, 210, 203 head - bounds: 466, 751, 271, 298 - rotate: 90 + bounds: 2, 322, 271, 298 mouth_grind - bounds: 355, 505, 93, 59 + bounds: 929, 896, 93, 59 mouth_oooo - bounds: 557, 522, 93, 59 + bounds: 929, 835, 93, 59 mouth_smile - bounds: 557, 461, 93, 59 + bounds: 447, 532, 93, 59 muzzle bounds: 2, 622, 462, 400 neck - bounds: 978, 986, 36, 41 - rotate: 90 + bounds: 796, 819, 36, 41 rear_bracer - bounds: 652, 441, 56, 72 - rotate: 90 + bounds: 738, 788, 56, 72 rear_foot - bounds: 909, 532, 113, 60 + bounds: 2, 2, 113, 60 + rotate: 90 rear_foot_bend1 - bounds: 130, 554, 117, 66 + bounds: 64, 49, 117, 66 rear_foot_bend2 - bounds: 130, 469, 103, 83 + bounds: 729, 862, 103, 83 rear_shin - bounds: 729, 558, 75, 178 + bounds: 729, 947, 75, 178 rotate: 90 rear_thigh - bounds: 249, 505, 65, 104 + bounds: 909, 957, 65, 104 rotate: 90 rear_upper_arm - bounds: 818, 509, 47, 87 + bounds: 447, 483, 47, 87 rotate: 90 torso - bounds: 729, 635, 98, 180 - rotate: 90 + bounds: 275, 440, 98, 180 diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/spineboy-unity/spineboy.png b/Assets/ThirdParty/Spine Examples/Spine Skeletons/spineboy-unity/spineboy.png index 68b1e7fe6..ae295f636 100644 Binary files a/Assets/ThirdParty/Spine Examples/Spine Skeletons/spineboy-unity/spineboy.png and b/Assets/ThirdParty/Spine Examples/Spine Skeletons/spineboy-unity/spineboy.png differ diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/spineboy-unity/spineboy.png.meta b/Assets/ThirdParty/Spine Examples/Spine Skeletons/spineboy-unity/spineboy.png.meta index fb9020746..69f5595ae 100644 --- a/Assets/ThirdParty/Spine Examples/Spine Skeletons/spineboy-unity/spineboy.png.meta +++ b/Assets/ThirdParty/Spine Examples/Spine Skeletons/spineboy-unity/spineboy.png.meta @@ -35,7 +35,7 @@ TextureImporter: mipmaps: mipMapMode: 0 enableMipMap: 0 - sRGBTexture: 1 + sRGBTexture: 0 linearTexture: 0 fadeOut: 0 borderMipMap: 0 diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/spineboy-unity/spineboy_Material.mat b/Assets/ThirdParty/Spine Examples/Spine Skeletons/spineboy-unity/spineboy_Material.mat index 54974c464..440bde4d6 100644 --- a/Assets/ThirdParty/Spine Examples/Spine Skeletons/spineboy-unity/spineboy_Material.mat +++ b/Assets/ThirdParty/Spine Examples/Spine Skeletons/spineboy-unity/spineboy_Material.mat @@ -7,12 +7,12 @@ Material: m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_Name: spineboy_Material - m_Shader: {fileID: 4800000, guid: 522f03282fd79be47b306e2ef4b593fd, type: 3} + m_Name: spineboy_material + m_Shader: {fileID: 4800000, guid: 1e8a610c9e01c3648bac42585e5fc676, type: 3} m_ValidKeywords: [] m_InvalidKeywords: - _USE8NEIGHBOURHOOD_ON - m_LightmapFlags: 5 + m_LightmapFlags: 4 m_EnableInstancingVariants: 0 m_DoubleSidedGI: 0 m_CustomRenderQueue: -1 @@ -27,26 +27,19 @@ Material: m_Offset: {x: 0, y: 0} m_Ints: [] m_Floats: - - PixelSnap: 0 - - _CloakPhase: 0 - _Cutoff: 0.1 - - _DarkColorAlphaAdditive: 0 - - _FillPhase: 0 + - _Fill: 0 - _OutlineMipLevel: 0 - _OutlineOpaqueAlpha: 1 - _OutlineReferenceTexWidth: 1024 - _OutlineSmoothness: 1 - _OutlineWidth: 3 - - _RefractionStrength: 0.01 - _StencilComp: 8 - _StencilRef: 1 - _StraightAlphaInput: 0 - _ThresholdEnd: 0.25 - _Use8Neighbourhood: 1 - - _node_3476: 0 + - _UseScreenSpaceOutlineWidth: 0 m_Colors: - - _Black: {r: 0, g: 0, b: 0, a: 0} - - _Color: {r: 1, g: 1, b: 1, a: 1} - - _FillColor: {r: 1, g: 1, b: 1, a: 1} - _OutlineColor: {r: 1, g: 1, b: 0, a: 1} m_BuildTextureStacks: [] diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/spineboy-unity/spineboy_Material.mat.meta b/Assets/ThirdParty/Spine Examples/Spine Skeletons/spineboy-unity/spineboy_Material.mat.meta index fbbc1eff3..e6763b76a 100644 --- a/Assets/ThirdParty/Spine Examples/Spine Skeletons/spineboy-unity/spineboy_Material.mat.meta +++ b/Assets/ThirdParty/Spine Examples/Spine Skeletons/spineboy-unity/spineboy_Material.mat.meta @@ -1,8 +1,8 @@ fileFormatVersion: 2 guid: 1455e88fdb81ccc45bdeaedd657bad4d -timeCreated: 1489559535 -licenseType: Free NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 2100000 userData: assetBundleName: assetBundleVariant: diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/square32.png.meta b/Assets/ThirdParty/Spine Examples/Spine Skeletons/square32.png.meta index a099e6d68..1c17a46e1 100644 --- a/Assets/ThirdParty/Spine Examples/Spine Skeletons/square32.png.meta +++ b/Assets/ThirdParty/Spine Examples/Spine Skeletons/square32.png.meta @@ -20,6 +20,7 @@ TextureImporter: externalNormalMap: 0 heightScale: 0.25 normalMapFilter: 0 + flipGreenChannel: 0 isReadable: 0 streamingMipmaps: 0 streamingMipmapsPriority: 0 @@ -63,6 +64,7 @@ TextureImporter: textureFormatSet: 0 ignorePngGamma: 0 applyGammaDecoding: 1 + swizzle: 50462976 cookieLightType: 1 platformSettings: - serializedVersion: 3 @@ -89,30 +91,6 @@ TextureImporter: overridden: 0 androidETC2FallbackOverride: 0 forceMaximumCompressionQuality_BC6H_BC7: 0 - - serializedVersion: 3 - buildTarget: iPhone - maxTextureSize: 2048 - resizeAlgorithm: 0 - textureFormat: -1 - textureCompression: 1 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - androidETC2FallbackOverride: 0 - forceMaximumCompressionQuality_BC6H_BC7: 0 - - serializedVersion: 3 - buildTarget: Android - maxTextureSize: 2048 - resizeAlgorithm: 0 - textureFormat: -1 - textureCompression: 1 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - androidETC2FallbackOverride: 0 - forceMaximumCompressionQuality_BC6H_BC7: 0 - serializedVersion: 3 buildTarget: Server maxTextureSize: 2048 @@ -141,7 +119,6 @@ TextureImporter: nameFileIdTable: {} spritePackingTag: pSDRemoveMatte: 0 - pSDShowRemoveMatteOption: 0 userData: assetBundleName: assetBundleVariant: diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/whirlyblendmodes/whirlyblendmodes.json b/Assets/ThirdParty/Spine Examples/Spine Skeletons/whirlyblendmodes/whirlyblendmodes.json index d28fab0de..f8f021b2e 100644 --- a/Assets/ThirdParty/Spine Examples/Spine Skeletons/whirlyblendmodes/whirlyblendmodes.json +++ b/Assets/ThirdParty/Spine Examples/Spine Skeletons/whirlyblendmodes/whirlyblendmodes.json @@ -1,7 +1,7 @@ { "skeleton": { - "hash": "d53R1Ina68Q", - "spine": "4.1.23-beta", + "hash": "tfwPbA2MCzE", + "spine": "4.2.22", "x": -252.71, "y": -232.55, "width": 456.71, diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/whirlyblendmodes/whirlyblendmodes.png b/Assets/ThirdParty/Spine Examples/Spine Skeletons/whirlyblendmodes/whirlyblendmodes.png index aa45d5cc0..cf85243fc 100644 Binary files a/Assets/ThirdParty/Spine Examples/Spine Skeletons/whirlyblendmodes/whirlyblendmodes.png and b/Assets/ThirdParty/Spine Examples/Spine Skeletons/whirlyblendmodes/whirlyblendmodes.png differ diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/whirlyblendmodes/whirlyblendmodes.png.meta b/Assets/ThirdParty/Spine Examples/Spine Skeletons/whirlyblendmodes/whirlyblendmodes.png.meta index 3e5040bd4..41d565c5a 100644 --- a/Assets/ThirdParty/Spine Examples/Spine Skeletons/whirlyblendmodes/whirlyblendmodes.png.meta +++ b/Assets/ThirdParty/Spine Examples/Spine Skeletons/whirlyblendmodes/whirlyblendmodes.png.meta @@ -8,7 +8,7 @@ TextureImporter: mipmaps: mipMapMode: 0 enableMipMap: 0 - sRGBTexture: 1 + sRGBTexture: 0 linearTexture: 0 fadeOut: 0 borderMipMap: 0 diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/whirlyblendmodes/whirlyblendmodes_Material.mat b/Assets/ThirdParty/Spine Examples/Spine Skeletons/whirlyblendmodes/whirlyblendmodes_Material.mat index eea8f90ed..534c25981 100644 --- a/Assets/ThirdParty/Spine Examples/Spine Skeletons/whirlyblendmodes/whirlyblendmodes_Material.mat +++ b/Assets/ThirdParty/Spine Examples/Spine Skeletons/whirlyblendmodes/whirlyblendmodes_Material.mat @@ -7,7 +7,7 @@ Material: m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_Name: whirlyblendmodes_Material + m_Name: whirlyblendmodes_material m_Shader: {fileID: 4800000, guid: 1e8a610c9e01c3648bac42585e5fc676, type: 3} m_ValidKeywords: [] m_InvalidKeywords: @@ -28,6 +28,7 @@ Material: m_Ints: [] m_Floats: - _Cutoff: 0.1 + - _Fill: 0 - _OutlineMipLevel: 0 - _OutlineOpaqueAlpha: 1 - _OutlineReferenceTexWidth: 1024 @@ -38,6 +39,7 @@ Material: - _StraightAlphaInput: 0 - _ThresholdEnd: 0.25 - _Use8Neighbourhood: 1 + - _UseScreenSpaceOutlineWidth: 0 m_Colors: - _OutlineColor: {r: 1, g: 1, b: 0, a: 1} m_BuildTextureStacks: [] diff --git a/Assets/ThirdParty/Spine Examples/Spine Skeletons/whirlyblendmodes/whirlyblendmodes_Material.mat.meta b/Assets/ThirdParty/Spine Examples/Spine Skeletons/whirlyblendmodes/whirlyblendmodes_Material.mat.meta index 2fc691676..71598bab1 100644 --- a/Assets/ThirdParty/Spine Examples/Spine Skeletons/whirlyblendmodes/whirlyblendmodes_Material.mat.meta +++ b/Assets/ThirdParty/Spine Examples/Spine Skeletons/whirlyblendmodes/whirlyblendmodes_Material.mat.meta @@ -1,8 +1,7 @@ fileFormatVersion: 2 guid: e162c08da1abc294cb851248f51dfc40 -timeCreated: 1538613637 -licenseType: Pro NativeFormatImporter: + externalObjects: {} mainObjectFileID: 2100000 userData: assetBundleName: diff --git a/Assets/ThirdParty/Spine/CHANGELOG.md b/Assets/ThirdParty/Spine/CHANGELOG.md index 008685689..f49421a3c 100644 --- a/Assets/ThirdParty/Spine/CHANGELOG.md +++ b/Assets/ThirdParty/Spine/CHANGELOG.md @@ -1,1365 +1,1806 @@ -# 4.1 +# 4.2 ## C -* **Additions** - * Support for sequences. - * Support for `shortestRotation` in animation state. See https://github.com/esotericsoftware/spine-runtimes/issues/2027. - * Added CMake parameter `SPINE_SANITIZE` which will enable sanitizers on macOS and Linux. - * Added `SPINE_MAJOR_VERSION`, `SPINE_MINOR_VERSION`, and `SPINE_VERSION_STRING`. Parsing skeleton .JSON and .skel files will report an error if the skeleton version does not match the runtime version. -* **Breaking changes** - * `spRegionAttachment` and `spMeshAttachment` now contain a `spTextureRegion*` instead of encoding region fields directly. - * `sp_AttachmentLoader_newRegionAttachment()` and `spAttachmentLoader_newMeshAttachment()` now take an additional `Sequence*` parameter. - * `spMeshAttachment_updateUVs()` was renamed to `spMeshAttachment_updateRegion()`. - * `spRegionAttachment_updateOffset()` was renamed to `spRegionAttachment_updateRegion()`, `spRegionAttachment_setUVs()` was merged into `spRegionAttachment_updateRegion()`. - * `spSlot_getAttachmentTime()` and `spSlot_setAttachmentTime()` have been removed. - * `spVertexAttachment->deformAttachment` was renamed to `spVertexAttachment->timelineAttachment`. - * `spSkeleton_update()` has been removed. - * `spSkeleton->time` has been removed. - * `spVertexEffect` has been removed. + +- **Additions** + - Added physics support + - Added `spPhysicsConstraintTimeline` and `spPhysicsConstraintResetTimeline` + - Added `spPhysics` to be passed to `spSkeleton_updateWorldTransform()` + - Added `spSkeletonData_findPhysicsConstraint()` to query a physics constraint by name + - Added `spSkeleton_findPhysicsConstraint()` to query a physics constraint by name + - Added `spSkeleton_physicsTranslate()` to translate all physics constraints by some distances in the skeleton coordinate system + - Added `spSkeleton_physicsRotate()` to rotate all physics constraints by some distances in the skeleton coordinate system + - Added `spSkeleton::time` to keep track of time for physics simulations + - See also breaking changes for `spSkeleton_updateWorldTransform()` and the requirement to call `spSkeleton_update()` to advance + pyhsics each frame. + - Added `spInheritTimeline` + - Added [`spTrackEntry::alphaAttachmentThreshold`](http://esotericsoftware.com/spine-api-reference#TrackEntry-alphaAttachmentThreshold) + - Removed `const` qualifiers where appropriate + - Added `spTrackEntry_setMixDuration()` to set the mix duration in conjunction with a delay + - Added `spTrackEntry_wasApplied()` to check if the entry has been applied + - Added `spBone_worldToParent()` to transform coordinates from world space to the parent space of a bone + - Added `spBone_localToParent()` to transform coordinates from a bone's local space to its parent space + - Added non essential fields `icon` and `visible` to `spBoneData` + - Added non essential fields `path` and `visible` to `spSlotData` +- **Breaking changes** + - Renamed `spTrackEntry::attachmentThreshold` to `spTrackEntry::mixAttachmentThreshold` + - Renamed `spTrackEntry::drawOrderThreshold` to `spTrackEntry::mixDrawOrdertThreshold` + - Renamed `spTransformMode` to `spInherit` and all `SP_TRANSFORMMODE_*` enums to `SP_INHERIT_*` + - Changed `spMeshAttachment::edges` from `int *` to `unsigned short *` + - You must call `spSkeleton_update(delta)` before calling `spSkeleton_updateWorldTransform()` if the frame time has advanced. This is needed to update physics accordingly + - `spSkeleton_updateWorldTransform()` takes an additional `spPhysics` parameter. See the `spPhysics` documentation for information on what the different enum values do ### SFML - * Updated example to use SFML 2.5.1. - * Added dragon example. + +- Added physics examples +- `SkeletonDrawable::update()` now takes an additional `spPhysics physics` parameter that specifies how physics should be updated + +### SDL + +- `spSkeletonDrawable_update()` now takes an additional `spPhysics physics` parameter that specifies how physics should be updated ## C++ -* **Additions** - * Support for sequences. - * Support for `shortestRotation` in animation state. See https://github.com/esotericsoftware/spine-runtimes/issues/2027. - * Added CMake parameter `SPINE_SANITIZE` which will enable sanitizers on macOS and Linux. - * Added `SPINE_MAJOR_VERSION`, `SPINE_MINOR_VERSION`, and `SPINE_VERSION_STRING`. Parsing skeleton .JSON and .skel files will report an error if the skeleton version does not match the runtime version. - * Added `SkeletonBounds::getBoundingBox()`, `SkeletonBounds::getPolygons()`, and `SkeletonBounds::getBoundingBoxes()`. -* **Breaking changes** - * `RegionAttachment` and `MeshAttachment` no longer implement `HasRendererObject`. - * `RegionAttachment` and `MeshAttachment` now contain a `TextureRegion*` instead of encoding region fields directly. - * `AttachmentLoader::newRegionAttachment()` and `AttachmentLoader::newMeshAttachment()` now take an additional `Sequence*` parameter. - * `MeshAttachment::updateUVs()` was renamed to `MeshAttachment::updateRegion()`. - * `RegionAttachment::updateOffset()` was renamed to `RegionAttachment::updateRegion()`, `RegionAttachment::setUVs()` was merged into `updateRegion()`. - * `Slot::getAttachmentTime()` and `Slot::setAttachmentTime()` have been removed. - * `VertexAttachment::getDeformAttachment()` was renamed to `VertexAttachment::getTimelineAttachment()`. - * `Skeleton::update()` has been removed. - * `Skeleton::getTime()` has been removed. - * `VertexEffect` has been removed. + +- Added physics support + - Added `PhysicsConstraintXXXTimeline` and `PhysicsConstraintResetTimeline` + - Added `Physics` to be passed to `Skeleton::updateWorldTransform()` + - Added `SkeletonData::findPhysicsConstraint()` and `SkeletonData::getPhysicsConstraints()` to query physics constraints + - Added `Skeleton::findPhysicsConstraint()` and `Skeleton::getPhysicsConstraints()` to query physics constraints + - Added `Skeleton::physicsTranslate()` to translate all physics constraints by some distances in the skeleton coordinate system + - Added `Skeleton::physicsRotate()` to rotate all physics constraints by some distances in the skeleton coordinate system + - Added `Skeleton::time` to keep track of time for physics simulations + - See also breaking changes for `Skeleton::updateWorldTransform()` and the requirement to call `Skeleton::update()` to advance + pyhsics each frame. +- Added `InheritTimeline` +- Added [`TrackEntry::_alphaAttachmentThreshold`](http://esotericsoftware.com/spine-api-reference#TrackEntry-alphaAttachmentThreshold) +- Added `TrackEntry::setMixDuration()` to set the mix duration in conjunction with a delay +- Added `TrackEntry::wasApplied()` to check if the entry has been applied +- Added `Bone::worldToParent()` to transform coordinates from world space to the parent space of a bone +- Added `Bone::localToParent()` to transform coordinates from a bone's local space to its parent space +- Added non essential fields `icon` and `visible` to `BoneData` +- Added non essential fields `path` and `visible` to `SlotData` +- Added `setToSetupPose()` to all contraint classes +- **Breaking changes** + - Renamed `TrackEntry::attachmentThreshold` to `TrackEntry::mixAttachmentThreshold` + - Renamed `TrackEntry::drawOrderThreshold` to `TrackEntry::mixDrawOrdertThreshold` + - Renamed `TransformMode` to `Inherit` and all `TransformMode_*` enums to `Inherit_*` + - You must call `Skeleton::update(delta)` before calling `Skeleton::updateWorldTransform()` if the frame time has advanced. This is needed to update physics accordingly + - `Skeleton::updateWorldTransform()` takes an additional `Physics` parameter. See the `Physics` documentation for information on what the different enum values do + - All `Updatable` sub-classes like `Bone` and constraints now take an additional `Physics` parameter for their `update()` methods ### Cocos2d-x +- Added physics example +- Improved build system and build documentation + ### SFML - * Updated example to use SFML 2.5.1. - * Added dragon example. + +- `SkeletonDrawable::update()` now takes an additional `Physics physics` parameter that specifies how physics should be updated + +### SDL + +- `SkeletonDrawable::update()` now takes an additional `Physics physics` parameter that specifies how physics should be updated ### UE4 - * Updated example project to UE 4.27 -## C# ## +- **Breaking**: Renamed runtime folder from `spine-ue4` to `spine-ue` +- **Breaking**: Renamed plugin `SpinePlugin`. You must update your project's `Build.cs` file accordingly +- **Breaking**: Starting with Unreal Engine 5.3 imported `.skel`/`.json` and `.atlas` files in the same folder must NOT have a common prefix. E.g. `skeleton.json` and `skeleton.atlas` will not work. Make sure to rename at least one of the two files so there is no prefix collision, e.g. `skeleton-data.json` and `skeleton.atlas`. +- Added compatibility with UE 5.3 +- Added more example maps +- Added blueprint-callable methods `PhysicsTranslate()`, `PhysicsRotate()` and `ResetPhysicsConstraints()` (which will reset all physics constraints in the skeleton) to `SpineSkeletonComponent` and `SpineWidget`. -* **Additions** - * Full support for sequences. - * Support for `shortestRotation` in animation state. See https://github.com/esotericsoftware/spine-runtimes/issues/2027. - * `RegionAttachment` and `MeshAttachment` now provide a `Region` property. Use this property instead of the removed `RendererObject` property (see section *Breaking Changes* below). +### Godot -* **Breaking changes** - * Removed `RendererObject` property from `RegionAttachment` and `MeshAttachment`. Use `attachment.Region` property instead. Removed removed `IHasRendererObject` interface. Use `IHasTextureRegion` instead. - * Replaced `RegionAttachment.UpdateOffset` and `MeshAttachment.UpdateUVs` with `Attachment.UpdateRegion`. The caller must ensure that the attachment's region is not `null`. - * Removed `AttachmentRegionExtensions` methods `Attachment.SetRegion`, `MeshAttachment.SetRegion` and `RegionAttachment.SetRegion(region, update)`. Use `attachment.Region = region; if (update) attachment.UpdateRegion()` instead. - * `AttachmentLoader.NewRegionAttachment()` and `AttachmentLoader.NewMeshAttachment()` take an additional `Sequence` parameter. - * `VertexAttachment.DeformAttachment` property has been replaced with `VertexAttachment.TimelineAttachment`. - * `RegionAttachment.ComputeWorldVertices()` takes a `Slot` instead of a `Bone` as the first argument. - * Removed `Skeleton.Update(float deltaTime)` method. - * Removed `Slot.AttachmentTime` property. - * Removed extension method `AtlasRegion.GetSpineAtlasRect()` parameter `includeRotate` (with default value `true`). Most likely this method was never used with `includeRotate=false` in user code so no changes are required. - * `AtlasRegion.PackedWidth` and `AtlasRegion.PackedHeight` are swapped compared to 4.0 when packing rotation is equal to 90 degrees. Most likely this property was never accessed in user code so no changes are required. +- **Breaking**: Renamed `TrackEntry.set_attachment_threshold` and `TrackEntry.get_attachment_threshold` to `TrackEntry.set_mix_attachment_threshold` and `TrackEntry.get_mix_attachment_threshold` +- **Breaking**: Renamed `TrackEntry.set_draw_order_threshold` and `TrackEntry.get_draw_order_threshold` to `TrackEntry.set_mix_draw_order_threshold` and `TrackEntry.get_mix_draw_order_threshold` +- **BReaking**: `SpineSkeleton.update_world_transform` takes an additional `physics` parameter that specifies how physics should be updated +- Added compatibility for Godot 4.1, 4.2 and C#, see builds at [https://esotericsoftware.com/spine-godot](https://esotericsoftware.com/spine-godot) +- Added physics examples +- Added `SpineBone.world_to_parent` to transform coordinates from world space to the parent space of a bone +- Added `SpineBone.local_to_parent` to transform coordinates from a bone's local space to its parent space +- Physics support + - Added `SpineBone.get_inherit`/`SpineBone.set_inherit` + - Added `SpinePhysicsConstraint` and `SpinePhysicsConstraintData` + - Added `SpineSkeleton.update()` to advance the physics time + - ADded `SpineSkeleton.get_time`/`SpineSkeleton.set_time` to access the physics time + - Added `SpineSkeleton.physics_translate()` to translate all physics constraints by some distances in the skeleton coordinate system + - Added `SpineSkeleton.physics_rotate()` to rotate all physics constraints by some distances in the skeleton coordinate system + - Added `SpineSkeleotnDataResource.set_reference_scale`/`SpineSkeletonDataResource.get_reference_scale` to access the reference scale of the loaded skeleton data +- Added [`TrackEntry.set_alpha_attachment_threshold`](http://esotericsoftware.com/spine-api-reference#TrackEntry-alphaAttachmentThreshold) +- Added `TrackEntry.set_mix_duration_and_delay()` to set the mix duration in conjunction with a delay +- Added `TrackEntry::was_applied()` to check if the entry has been applied + +## C# + +- **Additions** + + - Added [`TrackEntry.AlphaAttachmentThreshold`](http://esotericsoftware.com/spine-api-reference#TrackEntry-alphaAttachmentThreshold). + +- **Breaking changes** + - Renamed `TrackEntry` `AttachmentThreshold` to `MixAttachmentThreshold`, renamed `DrawOrderThreshold` to `MixDrawOrderThreshold`. + - Changed signature of `Skeleton.UpdateWorldTransform()` to `UpdateWorldTransform(Skeleton.Physics physics)`. The default replacement for `skeleton.UpdateWorldTransform()` calls is `skeleton.UpdateWorldTransform(Skeleton.Physics.Update)`. If you are certain that a subsequent call to `skeleton.UpdateWorldTransform(Skeleton.Physics.Update)` follows in the same frame, you can pass `Skeleton.Physics.Pose` as argument instead of `Skeleton.Physics.Update`. ### Unity -* **Officially supported Unity versions are 2017.1-2023.1**. +- **Officially supported Unity versions are 2017.1-6000.0**. -* **Additions** - * `SpineAtlasAsset.CreateRuntimeInstance` methods now provide an optional `newCustomTextureLoader` parameter (defaults to `null`) which can be set to e.g. `(a) => new YourCustomTextureLoader(a)` to use your own `TextureLoader` subclass instead of `MaterialsTextureLoader`. - * `SkeletonAnimation`, `SkeletonMecanim` and `SkeletonGraphic` now provide an Inspector parameter `Advanced` - `Animation Update` with modes `In Update` **(previous behaviour, the default)**, `In FixedUpdate` and `Manual Update`. This allows to update animation in `FixedUpdate` when using the `SkeletonRootMotion` component (which is the recommended combination now, issuing a warning otherwise). The reason is that when root motion leads to a collision with a physics collider, it can introduce jittery excess movement when updating animation in `Update` due to more `Update` calls following a single `FixedUpdate` call. - * Added `SkeletonRootMotion` properties `PreviousRigidbodyRootMotion` and `AdditionalRigidbody2DMovement`. Setting or querying these movement vectors can be necessary when multiple scripts call `Rigidbody2D.MovePosition` on the same object where the last call overwrites the effect of preceding ones. - * `BoneFollower` and `BoneFollowerGraphic` now provide an additional `Follow Parent World Scale` parameter to allow following simple scale of parent bones (rotated/skewed scale can't be supported). - * Improved `Advanced - Fix Prefab Override MeshFilter` property for `SkeletonRenderer` (and subclasses`SkeletonAnimation` and `SkeletonMecanim`), now providing an additional option to use a global value which can be set in `Edit - Preferences - Spine`. - * Timeline naming improvements: `Spine AnimationState Clip` Inspector parameter `Custom Duration` changed and inverted to `Default Mix Duration` for more clarity. Shortened all Timeline add track menu entries from: `Spine.Unity.Playables - ` to `Spine - `, `Spine Animation State Track` to `SkeletonAnimation Track`, `Spine AnimationState Graphic Track` to `SkeletonGraphic Track`, and `Spine Skeleton Flip Track` to `Skeleton Flip Track`. - * Timeline track appearance and Inspector: Tracks now show icons and track colors to make them easier to distinguish. When a Track is selected, the Inspector now shows an editable track name which was previously only editable at the Timeline asset. - * Added example component `SkeletonRenderTexture` to render a `SkeletonRenderer` to a `RenderTexture`, mainly for proper transparency. Added an example scene named `RenderTexture FadeOut Transparency` that demonstrates usage for a fadeout transparency effect. - * Added another fadeout example component named `SkeletonRenderTextureFadeout` which takes over transparency fadeout when enabled. You can use this component as-is, attach it in disabled state and enable it to start a fadeout effect. - * Timeline clips now offer an additional `Alpha` parameter for setting a custom constant mix alpha value other than 1.0, just as `TrackEntry.Alpha`. Defaults to 1.0. - * `GetRemappedClone` copying from `Sprite` now provides additional `pmaCloneTextureFormat` and `pmaCloneMipmaps` parameters to explicitly specify the texture format of a newly created PMA texture. - * Spine property Inspector fields (`Animation Name`, `Bone Name`, `Slot` and similar) now display the name in red when the respective animation/bone/etc no longer exists at the skeleton data. This may be helpful when such items have been renamed or deleted. - * Added `UnscaledTime` property at `SkeletonAnimation` as well, behaving like `SkeletonGraphic.UnscaledTime`. If enabled, AnimationState uses unscaled game time (`Time.unscaledDeltaTime`), running animations independent of e.g. game pause (`Time.timeScale`). - * `SkeletonAnimation`, `SkeletonMecanim` and `SkeletonGraphic` now provide an additional `OnAnimationRebuild` callback delegate which is issued after both the skeleton and the animation state have been initialized. - * Timeline `SkeletonAnimation Track` and `SkeletonGraphic Track` now provide an `Unscaled Time` property. Whenever starting a new animation clip of this track, `SkeletonAnimation.UnscaledTime` or `SkeletonGraphic.UnscaledTime` will be set to this value. This allows you to play back Timeline clips either in normal game time or unscaled game time. Note that `PlayableDirector.UpdateMethod` is ignored and replaced by this property, which allows more fine-granular control per Timeline track. - * Added `SkeletonRootMotion` callback delegates `ProcessRootMotionOverride` and `PhysicsUpdateRootMotionOverride` to customize how root motion is applied. The new property `disableOnOverride` determines whether the callback will be issued in addition or instead of normally applying root motion. Added property `rootMotionScaleRotation` to allow scaling rotational root-motion to match e.g. a 90 degree rotation to a custom target angle. - * Added outline shader parameter `Advanced - Opaque Alpha` which can be used to exclude problematic semi-transparent areas, which may receive an undesired large outline color overlay otherwise. - * Added Spine Preferences setting `Prefabs` - `Optimize Preview Meshes`. When enabled, Spine prefab preview meshes will be removed in a pre-build step to reduce build size. This increases build time as all prefabs in the project will be processed. Defaults to false to not slow down builds substantially every time. - * Added Spine Preferences setting `Reload SkeletonData after Play`. When enabled, the shared `SkeletonData` of all skeletons in the active scene is reloaded (from the `.json` or `.skel.bytes` file) after exiting play-mode. You can disable this setting to avoid the reloading delay if you can ensure that there are no (accidental) modifications to the shared `SkeletonData` during play-mode (otherwise it would carry over its effect into subsequent plays). Defaults to `true` (the safe setting), which maintains existing behaviour. - * Added `SkeletonAnimationMulti` sample component methods `SetActiveSkeleton(int index)` and getter property `SkeletonAnimations` to more easily apply changes at all SkeletonAnimation instances instead of only the active one. - * PMA textures now have `sRGB (Color Texture)` disabled by default, the preset template `PMATexturePreset.preset` has been adjusted accordingly. As PMA textures are only allowed with Gamma color space, `sRGB (Color Texture)` shall be disabled to prevent border artifacts when mipmaps are enabled. In Gamma color space having this setting disabled has no drawbacks, only benefits. - * `SkeletonRenderTexture` and `SkeletonGraphicRenderTexture` components now support automatic down-scaling when required size on screen exceeds `Max Render Texture Size`. - * Added `Spine/SkeletonGraphic Fill` shader to provide functionality of `Spine/Skeleton Fill` shader for `SkeletonGraphic`. - * Lit Spine URP shaders (`Universal Render Pipeline/Spine/Sprite` and `Universal Render Pipeline/Spine/Skeleton Lit`) now support `Forward+` rendering path as introduced by Unity 2022.2 and URP version 14. - * `SkeletonGraphic` now supports automatic scaling based on its `RectTransform` bounds. Automatic scaling can be enabled by setting the added `Layout Scale Mode` Inspector property to either `Width Controls Height`, `Height Controls Width`, `FitInParent` or `EnvelopeParent`. It is set to `None` by default to keep previous behaviour and avoid breaking existing projects. To modify the reference layout bounds, hit the additional `Edit Layout Bounds` toggle button to switch into edit mode, adjust the bounds or hit `Match RectTransform with Mesh`, and hit the button again when done adjusting. The skeleton will now be scaled accordingly to fit the reference layout bounds to the object's `RectTransform`. - * Added previously missing unlit URP 2D shader variant, available under `Universal Render Pipeline/2D/Spine/Skeleton`. - * Added support for light cookies at `Universal Render Pipeline/Spine/Sprite` shader. - * Timeline extension package: An additional Spine preferences parameter `Timeline` - `Default Mix Duration` has been added, setting newly added `SpineAnimationStateClip` clips accordingly, defaults to false. This Spine preferences parameter can be enabled to default to the previous behaviour before this update. - * Tint Black: Added support for [Tint Black](http://en.esotericsoftware.com/spine-slots#Tint-black) functionality at all Spine URP shaders (2D and 3D shaders) and at all standard pipeline `Spine/Sprite` shaders. This feature can be enabled via the `Tint Black` material parameter in the Inspector. Note: The URP Sprite shaders provided in the Spine URP Shaders extension UPM package require the latest version of the spine-unity runtime (package version 4.1.12, 2023-05-31 or newer) to display the added material parameters in the Inspector GUI. - * Added `SkeletonGraphic.MeshScale` property to allow access to calculated mesh scale. `MeshScale` is based on (1) Canvas pixels per unit, and (2) `RectTransform` bounds when using `Layout Scale Mode` other than `None` at `SkeletonGraphic` which scales the skeleton mesh to fit the parent `RectTransform` bounds accordingly. - * Added `updateSeparatorPartScale` property to `SkeletonGraphic` to let render separator parts follow the scale (lossy scale) of the `SkeletonGraphic` GameObject. Defaults to `false` to maintain existing behaviour. - * Added experimental `EditorSkeletonPlayer` component to allow Editor playback of the initial animation set at `SkeletonAnimation` or `SkeletonGraphic` components. Add this component to your skeleton GameObject to enable the in-editor animation preview. Allows configurations for continuous playback when selected, deselected, and alternative single-frame preview by setting `Fixed Track Time` to any value other than 0. Limitations: At skeletons with variable material count the Inspector preview may be too unresponsive. It is then recommended to disable the `EditorSkeletonPlayer` component (at the top of the Inspector) to make it responsive again, then you can disable `Play When Selected` and re-enable the component to preview playback only when deselected. - * Added example component `RenderCombinedMesh` to render a combined mesh of multiple meshes or submeshes. This is required by `OutlineOnly` shaders to render a combined outline when using `SkeletonRenderSeparator` or multiple atlas pages which would normally lead to outlines around individual parts. To add a combined outline to your SkeletenRenderer: - 1) Add a child GameObject and move it a bit back (e.g. position Z = 0.01). - 2) Add a `RenderCombinedMesh` component, provided in the `Spine Examples/Scripts/Sample Components` directory. - 3) Copy the original material, add *_Outline* to its name and set the shader to your outline-only shader like `Universal Render Pipeline/Spine/Outline/Skeleton-OutlineOnly` or `Spine/Outline/OutlineOnly-ZWrite`. - 4) Assign this *_Outline* material at the new child GameObject's `MeshRenderer` component. - If you are using `SkeletonRenderSeparator` and need to enable and disable the `SkeletonRenderSeparator` component at runtime, you can increase the `RenderCombinedMesh` `Reference Renderers` array by one and assign the `SkeletonRenderer` itself at the last entry after the parts renderers. Disabled `MeshRenderer` components will be skipped when combining the final mesh, so the combined mesh is automatically filled from the desired active renderers. - * Timeline extension package: Added static `EditorEvent` callback to allow editor scripts to react to animation events outside of play-mode. Register to the events via `Spine.Unity.Playables.SpineAnimationStateMixerBehaviour.EditorEvent += YourCallback;`. - * URP Shaders: Added `Depth Write` property to shaders `Universal Render Pipeline/Spine/Skeleton` and `Universal Render Pipeline/Spine/Skeleton Lit`. Defaults to false to maintain existing behaviour. - * Added `Animation Update` mode (called `UpdateTiming` in code) `In Late Update` for `SkeletonAnimation`, `SkeletonMecanim` and `SkeletonGraphic`. This allows you to update the `SkeletonMecanim` skeleton in the same frame that the Mecanim Animator updated its state, which happens between `Update` and `LateUpdate`. - * URP Shaders: Added URP "Blend Mode" shader variants for both URP 3D and URP 2D renderers. They are listed under shader name "Universal Render Pipeline/Spine/Blend Modes/" and "Universal Render Pipeline/2D/Spine/Blend Modes/" respectively. - * URP Shaders: Added support for [Tint Black](http://en.esotericsoftware.com/spine-slots#Tint-black) functionality at "Blend Modes" Spine URP shaders (2D and 3D shaders). +- **Additions** -* **Breaking changes** - * Made `SkeletonGraphic.unscaledTime` parameter protected, use the new property `UnscaledTime` instead. - * `SkeletonGraphic` `OnRebuild` callback delegate is now issued after the skeleton has been initialized, before the `AnimationState` component is initialized. This makes behaviour consistent with `SkeletonAnimation` and `SkeletonMecanim` component behaviour. Use the new callback `OnAnimationRebuild` if you want to receive a callback after the `SkeletonGraphic` `AnimationState` has been initialized. + - `OnPostProcessVertices` callback parameter `MeshGeneratorBuffers` now provides access to `uv2Buffer` and `uv3Buffer` properties of `MeshGenerator`, automatically allocating buffers upon access if `tintBlack` is disabled. This allows for passing own vertex data to a shader on second and third uv channels. + - Added `Spine/SkeletonGraphic Grayscale` shader to provide a basic grayscale shader for SkeletonGraphic as well. SkeletonGraphic Material `SkeletonGraphicDefaultGrayscale` uses this shader and can be assigned at `SkeletonGraphic` components as usual. + - `SkeletonGraphic` now supports automatic scaling based on its `RectTransform` bounds. Automatic scaling can be enabled by setting the added `Layout Scale Mode` Inspector property to either `Width Controls Height`, `Height Controls Width`, `FitInParent` or `EnvelopeParent`. It is set to `None` by default to keep previous behaviour and avoid breaking existing projects. To modify the reference layout bounds, hit the additional `Edit Layout Bounds` toggle button to switch into edit mode, adjust the bounds or hit `Match RectTransform with Mesh`, and hit the button again when done adjusting. The skeleton will now be scaled accordingly to fit the reference layout bounds to the object's `RectTransform`. + - Added previously missing unlit URP 2D shader variant, available under `Universal Render Pipeline/2D/Spine/Skeleton`. + - Added support for light cookies at `Universal Render Pipeline/Spine/Sprite` shader. + - Timeline extension package: An additional Spine preferences parameter `Timeline` - `Default Mix Duration` has been added, setting newly added `SpineAnimationStateClip` clips accordingly, defaults to false. This Spine preferences parameter can be enabled to default to the previous behaviour before this update. + - Tint Black: Added support for [Tint Black](http://en.esotericsoftware.com/spine-slots#Tint-black) functionality at all Spine URP shaders (2D and 3D shaders) and at all standard pipeline `Spine/Sprite` shaders. This feature can be enabled via the `Tint Black` material parameter in the Inspector. Note: The URP Sprite shaders provided in the Spine URP Shaders extension UPM package require the latest version of the spine-unity runtime (package version 4.1.12, 2023-05-31 or newer) to display the added material parameters in the Inspector GUI. + - Added `SkeletonGraphic.MeshScale` property to allow access to calculated mesh scale. `MeshScale` is based on (1) Canvas pixels per unit, and (2) `RectTransform` bounds when using `Layout Scale Mode` other than `None` at `SkeletonGraphic` which scales the skeleton mesh to fit the parent `RectTransform` bounds accordingly. + - Added `updateSeparatorPartScale` property to `SkeletonGraphic` to let render separator parts follow the scale (lossy scale) of the `SkeletonGraphic` GameObject. Defaults to `false` to maintain existing behaviour. + - Added experimental `EditorSkeletonPlayer` component to allow Editor playback of the initial animation set at `SkeletonAnimation` or `SkeletonGraphic` components. Add this component to your skeleton GameObject to enable the in-editor animation preview. Allows configurations for continuous playback when selected, deselected, and alternative single-frame preview by setting `Fixed Track Time` to any value other than 0. Limitations: At skeletons with variable material count the Inspector preview may be too unresponsive. It is then recommended to disable the `EditorSkeletonPlayer` component (at the top of the Inspector) to make it responsive again, then you can disable `Play When Selected` and re-enable the component to preview playback only when deselected. + - Added example component `RenderCombinedMesh` to render a combined mesh of multiple meshes or submeshes. This is required by `OutlineOnly` shaders to render a combined outline when using `SkeletonRenderSeparator` or multiple atlas pages which would normally lead to outlines around individual parts. To add a combined outline to your SkeletenRenderer: + 1. Add a child GameObject and move it a bit back (e.g. position Z = 0.01). + 2. Add a `RenderCombinedMesh` component, provided in the `Spine Examples/Scripts/Sample Components` directory. + 3. Copy the original material, add _\_Outline_ to its name and set the shader to your outline-only shader like `Universal Render Pipeline/Spine/Outline/Skeleton-OutlineOnly` or `Spine/Outline/OutlineOnly-ZWrite`. + 4. Assign this _\_Outline_ material at the new child GameObject's `MeshRenderer` component. + If you are using `SkeletonRenderSeparator` and need to enable and disable the `SkeletonRenderSeparator` component at runtime, you can increase the `RenderCombinedMesh` `Reference Renderers` array by one and assign the `SkeletonRenderer` itself at the last entry after the parts renderers. Disabled `MeshRenderer` components will be skipped when combining the final mesh, so the combined mesh is automatically filled from the desired active renderers. + - Timeline extension package: Added static `EditorEvent` callback to allow editor scripts to react to animation events outside of play-mode. Register to the events via `Spine.Unity.Playables.SpineAnimationStateMixerBehaviour.EditorEvent += YourCallback;`. + - URP Shaders: Added `Depth Write` property to shaders `Universal Render Pipeline/Spine/Skeleton` and `Universal Render Pipeline/Spine/Skeleton Lit`. Defaults to false to maintain existing behaviour. + - Added `Animation Update` mode (called `UpdateTiming` in code) `In Late Update` for `SkeletonAnimation`, `SkeletonMecanim` and `SkeletonGraphic`. This allows you to update the `SkeletonMecanim` skeleton in the same frame that the Mecanim Animator updated its state, which happens between `Update` and `LateUpdate`. + - URP Shaders: Added URP "Blend Mode" shader variants for both URP 3D and URP 2D renderers. They are listed under shader name "Universal Render Pipeline/Spine/Blend Modes/" and "Universal Render Pipeline/2D/Spine/Blend Modes/" respectively. + - URP Shaders: Added support for [Tint Black](http://en.esotericsoftware.com/spine-slots#Tint-black) functionality at "Blend Modes" Spine URP shaders (2D and 3D shaders). + - PhysicsConstraints: Skeleton GameObjects now automatically apply Transform translation and rotation to the skeleton's `PhysicsConstraints`. You can disable applying translation or rotation at the Skeleton component Inspector under `Advanced - Physics Inheritance` by setting `Position` to (0,0)and `Rotation` to 0, or by setting the properties `physicsPositionInheritanceFactor` to `Vector2.zero` and `physicsRotationInheritanceFactor` to `0` at the skeleton component via code. + - Added `Physics Constraints` example scene (located in `Spine Examples/Other Examples`) together with `celestial-circus` example skeleton assets. This scene demonstrates Transform movement automatically affecting physics constraints of a skeleton. + - PhysicsConstraints: Skeleton components now allow you to use relative instead of world-space Transform movement by assigning a Transform (typically the parent) to the new `Movement relative to` property. Leave this property at `null` (the default) to use world-space Transform movement for physics. + - PhysicsConstraints: Added Spine Preferences settings `Editor Instantiation` - `Physics Inheritance` - `Default Position` and `Default Rotation` to initialize skeletons physics settings with the desired Transform position and rotation inheritance factors when added to a scene via drag-and-drop. + - SkeletonGraphic: Added Tint Black blend mode shaders `Spine/SkeletonGraphic Tint Black Additive`, `Spine/SkeletonGraphic Tint Black Multiply` and `Spine/SkeletonGraphic Tint Black Screen`. + - SkeletonGraphic: Added pre-defined SkeletonGraphic material sets for main workflow parameters in folders `spine-unity/Materials` instead of requiring manual copies: + `SkeletonGraphic-PMATexture` containing materials for premultiplied-alpha texture workflow (`Straight Alpha Texture` disabled) and `SkeletonGraphic-StaightAlphaTexture` containing materials for straight alpha texture workflow (`Straight Alpha Texture` enabled). These directories contain a set of materials with `CanvasGroup Compatible` disabled for usage with `Advanced - PMA Vertex Color` enabled at the component. Each directory also provides a subdirectory `CanvasGroupCompatible` with materials with `CanvasGroup Compatible` enabled for usage with `CanvasGroup` alpha (requiring `Advanced - PMA Vertex Color` disabled at the component). + - SkeletonGraphic: Added auto-detect functionality for parameters `Advanced` - `Tint Black`, `CanvasGroup Compatible` and `PMA Vertex Color`. If unsure which settings are correct, hit the `Detect` button next to each parameter, in top to bottom order, or the `Detect Settings` to detect all three. Also added automatic material assignment via a `Detect Material` button in the `Advanced` section and a `Detect` button next to the `Material` property at the top of the component Inspector, as well as next to the `Blend Mode Materials` section when using multiple canvas renderers with blend modes. The suitable material is selected based on these three settings, combined with texture settings (PMA or straight alpha texture settings). If you receive incorrect results, likely your texture settings are incorrectly setup for your PMA or Straight alpha texture export settings. + - `SkeletonRenderTexture` example components now provide a `shaderPasses` parameter to customize which passes are rendered to the `RenderTexture`. It defaults to `-1` for all passes to keep the existing behaviour. You might want to set it to `0` to only render the first pass e.g. to avoid issues when using a URP shader at the original skeleton. + - `SkeletonGraphicRenderTexture` example component now also received a `quadMaterial` property, defaulting to the newly added Material asset `RenderQuadGraphicMaterial` which applies proper premultiplied-alpha blending of the render texture. The `quadMaterial` member variable was moved from `SkeletonRenderTexture` to the common base class `SkeletonRenderTextureBase`. + - All Spine Outline shaders, including the URP outline shader, now provide an additional parameter `Width in Screen Space`. Enable it to keep the outline width constant in screen space instead of texture space. Requires more expensive computations, so enable only where necessary. Defaults to `disabled` to maintain existing behaviour. + - Added support for BlendModeMaterials at runtime instantiation from files via an additional method `SkeletonDataAsset.SetupRuntimeBlendModeMaterials`. See example scene `Spine Examples/Other Examples/Instantiate from Script` for a usage example. + - SkeletonGraphic: You can now offset the skeleton mesh relative to the pivot via a newly added green circle handle. This allows you to e.g. frame only the face of a skeleton inside a masked frame. Previously offsetting the pivot downwards fails when `Layout Scale Mode` scales the mesh smaller and towards the pivot (e.g. the feet) and thus out of the frame. Now you can keep the pivot in the center of the `RectTransform` while offsetting only the mesh downwards, keeping the desired skeleton area (e.g. the face) centered while resizing. Moving the new larger green circle handle moves the mesh offset, while moving the blue pivot circle handle moves the pivot as usual. + - `Universal Render Pipeline/Spine/Skeleton` shader now performs proper alpha-testing when `Depth Write` is enabled, using the existing `Shadow alpha cutoff` parameter. + - `SkeletonRootMotion` components now provide a public `Initialize()` method which is automatically called when calling `skeletonAnimation.Initialize(true)` to update the necessary skeleton references. If a different root bone shall be used, be sure to set `skeletonRootMotion.rootMotionBoneName` before calling `skeletonAnimation.Initialize(true)`. + - Skeleton Mecanim: Added new `Mix Mode` `Match`. When selected, Spine animation weights are calculated to best match the provided Mecanim clip weights. This mix mode is recommended on any layer using blend tree nodes. + - URP Shaders: Added `ZWrite` variant of outline shader `Universal Render Pipeline/Spine/Outline/Skeleton-OutlineOnly ZWrite`. Suitable for e.g. depth of field (DoF) effect where writing to the depth buffer is required. Note that for DoF effect, `Render Queue` needs to be set to `Alpha Test`. + - SkeletonGraphic: Exposed `SetScaledPivotOffset` as public method outside of the editor to support programatically moving mesh offsets at runtime based on mesh bounds. + - SkeletonMecanim: Added `Scene Preview` option to preview an Animation Clip for e.g. easier event placement. When enabled, the Animation Clip selected in the Animation window is previewed in the Scene and Game views. Lock the `SkeletonMecanim` Inspector window, open the Animation window and select the Animation Clip. Then in the Animation window scrub through the timeline to see the current animation frame previewed. + - `Universal Render Pipeline/Spine/Skeleton Lit` shader now supports [Adaptive Probe Volumes (APV)](https://docs.unity3d.com/6000.0/Documentation/Manual/urp/probevolumes-concept.html) introduced in Unity 6. The shader also provides a new material property `APV per Pixel` to either calculate APV lighting contribution per pixel (the default) or per vertex. + - `Universal Render Pipeline/Spine/Sprite` shader now also supports [Adaptive Probe Volumes (APV)](https://docs.unity3d.com/6000.0/Documentation/Manual/urp/probevolumes-concept.html) introduced in Unity 6. APV lighting contribution is automatically calculated per pixel. + - All Spine Outline shaders, including the URP outline shaders, now provide an additional parameter `Fill`. Enable it to also fill the opaque area inside the outline with the outline color. Prevents a semi-transparent gap between outline and skeleton. Defaults to `disabled` to maintain existing behaviour. + - Added example component `RenderExistingMeshGraphic` (similar to `RenderExistingMesh`) to render a `SkeletonGraphic` mesh again with different materials. This might be required by e.g. URP and SkeletonGraphic outline shaders skipping additional render passes. To add a second outline variant of your SkeletonGraphic: + 1. Add a GameObject at the same hierarchy level as the reference SkeletonGraphic and move it before the reference SkeletonGraphic to render behind. + 2. Add a `RenderExistingMeshGraphic` component. + 3. In the `RenderExistingMeshGraphic` component Inspector at `Reference Skeleton Graphic` assign the original `SkeletonGraphic` object. + 4. At `Replacement Material` assign e.g. the included _SkeletonGraphicDefaultOutline_ material to replace all materials with this material. Alternatively, if `Multiple CanvasRenderers` is enabled at the reference SkeletonGraphic, you can add entries to the `Replacement Materials` list and at each entry assign the original SkeletonGraphic material (e.g. _SkeletonGraphicDefault_) to be replaced and the respective `Replacement Material` (e.g. _SkeletonGraphicDefaultOutline_). -* **Changes of default values** +- **Breaking changes** -* **Deprecated** - * Shader macro `RETURN_UNLIT_IF_ADDITIVE_SLOT` in `spine-unity/Shaders/Sprite/CGIncludes/ShaderShared.cginc` has been deprecated and will be removed in spine-unity 4.2. Use RETURN_UNLIT_IF_ADDITIVE_SLOT_TINT instead. + - Changed `SpineShaderWithOutlineGUI` outline related methods from `private` to `protected virtual` to allow for custom shader GUI subclasses to switch to different outline shaders. + - Changed `BoneFollower` and `BoneFollowerGraphic` methods `LateUpdate` and `Initialize` to `virtual` to allow easier overriding for e.g. positional offset in custom subclasses. + - `MeshGenerator` received a new optimization option to avoid rendering fully transparent attachments at slot alpha 0 by default. Comment out `#define SLOT_ALPHA_DISABLES_ATTACHMENT` in `MeshGenerator.cs` to revert to previous behaviour. You may only need this option disabled when utilizing a custom shader which uses vertex color alpha for purposes other than transparency. + - PhysicsConstraints: bool properties `ApplyTranslationToPhysics` and `ApplyRotationToPhysics` were changed to `Vector2 PhysicsPositionInheritanceFactor` and `float PhysicsRotationInheritanceFactor` to allow the Transform movement the be scaled by a factor before being applied to the skeleton. You can set the properties to `Vector2.zero` and `0` respectively to disable applying any Transform movement at all. The `Advanced` Inspector section `Physics Constraints` was renamed to `Physics Inheritance`, the properties in the section are now called `Position` and `Rotation`. + - SkeletonGraphic Materials: Since the addition of new material sets for the `CanvasGroupCompatible` parameters, the default SkeletonGraphic materials all have `CanvasGroup Compatible` disabled. Please assign the respective material from the `CanvasGroupCompatible` material subdirectory if you want `CanvasGroup Compatible` enabled at your SkeletonGraphic. + - SkeletonGraphic: The parameter `SkeletonGraphic.MeshGenerator.settings.canvasGroupTintBlack` was changed to `canvasGroupCompatible` to help with auto-detecting correct Vertex Data and Material settings. Set the parameter to true if the SkeletonGraphic component is located below a `CanvasGroup` component. The parameter value is automatically migrated from `canvasGroupTintBlack`. + - Inspector: String attribute `SpineSkin()` now allows to include `` in the list of parameters. Previously the `includeNone=true` parameter of the `SpineSkin()` attribute defaulted to `true` but was ignored. Now it defaults to `false` and has an effect on the list. Only the Inspector GUI is affected by this behaviour change. + - `SkeletonGraphicRenderTexture` example component: `protected RawImage quadRawImage` was changed to `protected SkeletonSubmeshGraphic quadMaskableGraphic` for a bugfix. This is only relevant for subclasses of `SkeletonGraphicRenderTexture` or when querying the `RawImage` component via e.g. `skeletonGraphicRenderTexture.quad.GetComponent()`. + - Fixed a bug where when Linear color space is used and `PMA vertex colors` enabled, additive slots add a too dark (too transparent) color value. If you want the old incorrect behaviour (darker additive slots) or are not using Linear but Gamma color space, you can comment-out the define `LINEAR_COLOR_SPACE_FIX_ADDITIVE_ALPHA` in `MeshGenerator.cs` to deactivate the fix or just to skip unnecessary instructions. + - Fixed SkeletonRootMotion components ignoring parent bone scale when set by transform constraints. Using applied scale of parent bone now. If you need the old behaviour, comment out the line `#define USE_APPLIED_PARENT_SCALE` in SkeletonRootMotionBase.cs. + - Fixed SkeletonUtility callback update order when used with SkeletonRootMotion components so that the position when following a bone is updated after SkeletonRootMotion clears root-bone position. The order of SkeletonUtilityBone callbacks is changed to be later to achieve this. This is a breaking change in the unlikely case that you are using SkeletonRootMotion together with SkeletonUtility and subscribed to `UpdateLocal`, `UpdateWorld` or `UpdateComplete` yourself and relied on a certain callback order. One solution is to then resubscribe your own callback events accordingly by calling + `.UpdateLocal -= Callback; .UpdateLocal += Callback;`. -* **Restructuring (Non-Breaking)** - * Moved Spine URP Shaders Examples directory from the main package directory to Samples which can be installed via the Unity Package Manager. To import, select the `Spine Universal RP Shaders` package in the Package Manager window, expand `Samples` at the bottom and hit `Import` next to `Examples`. This follows the standard [samples guideline](https://docs.unity3d.com/Manual/cus-samples.html) and prevents warning messages about unexpectedly altered immutable assets. +- **Changes of default values** + +- **Deprecated** + +- **Restructuring (Non-Breaking)** ### XNA/MonoGame -* **Breaking change**: Removed spine-xna in favor of spine-monogame. See https://github.com/EsotericSoftware/spine-runtimes/issues/1949 -* Added new spine-monogame solution. See [spine-monogame/README.md](spine-monogame/README.md) for updated instructions on how to use spine-monogame. + +- **Additions** + - Apply external movement to physics: If you are not directly modifying `Skeleton.X` or `Skeleton.Y`, you can apply external game object movement to skeleton physics as follows: + Add a `Vector2 lastPosition;` member variable to your class interacting with the skeleton. Then call e.g. the following code each frame: + ``` + Vector2 currentPosition = ; + Vector2 externalPositionDelta = currentPosition - lastPosition; + skeleton.PhysicsTranslate(externalPositionDelta.x, externalPositionDelta.y); + lastPosition = currentPosition; + ``` ## Java -* **Additions** - * Support for `shortestRotation` in animation state. See https://github.com/esotericsoftware/spine-runtimes/issues/2027. - * Support for sequences. -* **Breaking changes** - * `AttachmentLoader#newRegionAttachment()` and `AttachmentLoader#newMeshAttachment()` take an additional `Sequence` parameter. - * `Slot#setAttachmentTime()` and `Slot#getAttachmentTime()` have been removed. - * `VertexAttachment#setDeformAttachment()` and `VertexAttachment#getDeformAttachment()` have been replaced with `VertexAttachment#setTimelineAttachment()` and `VertexAttachment#getTimelineAttachment()`. - * `RegionAttachment#updateOffset()` has been renamed to `RegionAttachment#updateRegion()`. The caller must ensure that the attachment's region is not `null`. - * `RegionAttachment#computeWorldVertices()` takes a `Slot` instead of a `Bone` as the first argument. - * `VertexEffect` has been removed. +- Added physics support + - Added `PhysicsConstraintXXXTimeline` and `PhysicsConstraintResetTimeline` + - Added `Physics` to be passed to `Skeleton#updateWorldTransform()` + - Added `SkeletonData#findPhysicsConstraint()` and `SkeletonData#getPhysicsConstraints()` to query physics constraints + - Added `Skeleton#findPhysicsConstraint()` and `Skeleton#getPhysicsConstraints()` to query physics constraints + - Added `Skeleton#physicsTranslate()` to translate all physics constraints by some distances in the skeleton coordinate system + - Added `Skeleton#physicsRotate()` to rotate all physics constraints by some distances in the skeleton coordinate system + - Added `Skeleton#time` and respective setters/getters to keep track of time for physics simulations + - See also breaking changes for `Skeleton#updateWorldTransform()` and the requirement to call `Skeleton#update()` to advance + pyhsics each frame. +- Added `InheritTimeline` +- Added [`TrackEntry#alphaAttachmentThreshold`](http://esotericsoftware.com/spine-api-reference#TrackEntry-alphaAttachmentThreshold) +- Added `TrackEntry#setMixDuration()` to set the mix duration in conjunction with a delay +- Added `TrackEntry#wasApplied()` to check if the entry has been applied +- Added `Bone#worldToParent()` to transform coordinates from world space to the parent space of a bone +- Added `Bone#localToParent()` to transform coordinates from a bone's local space to its parent space +- Added non essential fields `icon` and `visible` to `BoneData` +- Added non essential fields `path` and `visible` to `SlotData` +- Added `setToSetupPose()` to all contraint classes +- **Breaking changes** + - Renamed `TrackEntry#attachmentThreshold` to `TrackEntry#mixAttachmentThreshold` along with respective getters/settesr + - Renamed `TrackEntry::drawOrderThreshold` to `TrackEntry#mixDrawOrdertThreshold` along with respective getters/settesr + - Renamed `TransformMode` to `Inherit` and all `TransformMode_*` enums to `Inherit_*` + - You must call `Skeleton#update(delta)` before calling `Skeleton#updateWorldTransform()` if the frame time has advanced. This is needed to update physics accordingly + - `Skeleton#updateWorldTransform()` takes an additional `Physics` parameter. See the `Physics` documentation for information on what the different enum values do + - All `Updatable` sub-classes like `Bone` and constraints now take an additional `Physics` parameter for their `update()` methods ### libGDX -* `spine-libgdx`, `spine-libgdx-tests`, and `spine-skeletonviewer` are now fully Gradle-ified. -* `spine-skeletonviewer` now supports quickly loading skeletons by dragging and dropping `.json` or `.skel` skeleton files onto the window. + +- Added physics examples ## Typescript/Javascript -* **Additions** - * full support for sequences. - * Added `Promise` based `AssetManager.loadAll()`. Allows synchronous waiting via `await assetManager.loadAll()`, simplifying loader logic in applications. - * Support for `shortestRotation` in animation state. See https://github.com/esotericsoftware/spine-runtimes/issues/2027. - * Full support for sequences. -* **Breaking changes** - * `AttachmentLoader#newRegionAttachment()` and `AttachmentLoader#newMeshAttachment()` take an additional `Sequence` parameter. - * `Slot#attachmentTime` and has been removed. - * `VertexAttachment#deformAttachment` has been replaced with `VertexAttachment#timelineAttachment`. - * `RegionAttachment#updateOffset()` has been renamed to `RegionAttachment#updateRegion()`. The caller must ensure that the attachment's region is not `null`. - * `RegionAttachment#computeWorldVertices()` takes a `Slot` instead of a `Bone` as the first argument. - * Removed `PlayerEditor`. - * `VertexEffect` has been removed. - * Removed `RegionAttachment.rendererObject`. - * Renamed `TextureRegion.renderObject` to `TextureRegion.texture`. +- Added physics support + - Added `PhysicsConstraintXXXTimeline` and `PhysicsConstraintResetTimeline` + - Added `Physics` to be passed to `Skeleton#updateWorldTransform()` + - Added `SkeletonData#findPhysicsConstraint()` and `SkeletonData#getPhysicsConstraints()` to query physics constraints + - Added `Skeleton#findPhysicsConstraint()` and `Skeleton#getPhysicsConstraints()` to query physics constraints + - Added `Skeleton#physicsTranslate()` to translate all physics constraints by some distances in the skeleton coordinate system + - Added `Skeleton#physicsRotate()` to rotate all physics constraints by some distances in the skeleton coordinate system + - Added `Skeleton#time` and respective setters/getters to keep track of time for physics simulations + - See also breaking changes for `Skeleton#updateWorldTransform()` and the requirement to call `Skeleton#update()` to advance + pyhsics each frame. +- Added `InheritTimeline` +- Added [`TrackEntry#alphaAttachmentThreshold`](http://esotericsoftware.com/spine-api-reference#TrackEntry-alphaAttachmentThreshold) +- Added `TrackEntry#setMixDuration()` to set the mix duration in conjunction with a delay +- Added `TrackEntry#wasApplied()` to check if the entry has been applied +- Added `Bone#worldToParent()` to transform coordinates from world space to the parent space of a bone +- Added `Bone#localToParent()` to transform coordinates from a bone's local space to its parent space +- Added non essential fields `icon` and `visible` to `BoneData` +- Added non essential fields `path` and `visible` to `SlotData` +- Added `setToSetupPose()` to all contraint classes +- **Breaking changes** + - Renamed `TrackEntry#attachmentThreshold` to `TrackEntry#mixAttachmentThreshold` along with respective getters/settesr + - Renamed `TrackEntry::drawOrderThreshold` to `TrackEntry#mixDrawOrdertThreshold` along with respective getters/settesr + - Renamed `TransformMode` to `Inherit` and all `TransformMode_*` enums to `Inherit_*` + - You must call `Skeleton#update(delta)` before calling `Skeleton#updateWorldTransform()` if the frame time has advanced. This is needed to update physics accordingly + - `Skeleton#updateWorldTransform()` takes an additional `Physics` parameter. See the `Physics` documentation for information on what the different enum values do + - All `Updatable` sub-classes like `Bone` and constraints now take an additional `Physics` parameter for their `update()` methods ### WebGL backend - * `PolygonBatcher` can now disable culling automatically if the static variable `PolygonBatcher.disableCulling` is set to true. - * Added `SpineCanvas`, a simpler way to render a scene via spine-webgl. See `spine-ts/spine-webgl/examples/barebones.html` and `spine-ts/spine-webgl/examples/mix-and-match.html`. - * Added `SpineCanavs.dispose()` to halt the updating and rendering of the canvas. + +- Added physics examples ### Canvas backend - * Improved example. + +### CanvasKit backend + +- Added spine-canvaskit runtime. See https://esotericsoftware.com/spine-canvaskit ### Three.js backend - * Added orbital controls to THREJS example. - * `SkeletonMesh` takes an optional `SkeletonMeshMaterialCustomizer`, allowing modification of materials used by `SkeletonMesh`. - * Added `SkeletonMeshMaterial.alphaTest`, when > 0, alpha testing will be performed and fragments will not be written to the depth buffer, if depth writes are enabled. + +- Added physics support ### Player - * Added `SpinePlayer.dispose()` to explicitely dispose of all resources the player holds on to. + +- Added physics support +- Added `scale` field to configuration which defines the scale to load the skeleton at +- Added `updateWorldTransform` field to configuration which expects a function that updates the skeleton. Defaults to player.skeleton.updateWorldTransform(spine.Physics.update) +- Added `skeleton` to `SpinePlayerConfig` to specify the URL of the skeleton .json or .skel file. Deprecated `jsonURL` and `binaryURL`. The old fields can still be used, but will be removed in Spine 4.3 +- Added `atlas` to `SpinePlayerConfig` to specify the URL of the .atlas file. Deprecated `atlasURL`. The old field can still be used, but will be removed in Spine 4.3. + +### Pixi + +- Added spine-pixi runtime, also backported to Spine 4.1. See https://esotericsoftware.com/spine-pixi + +### Phaser + +- Added spine-phaser runtime, also backported to Spine 4.1. See https://esotericsoftware.com/spine-phaser + +## Haxe + +- Added spine-haxe runtime, also backported to Spine 4.1. See https://esotericsoftware.com/spine-haxe + +## Flutter + +- Added spine-flutter runtime, also backported to Spine 4.1. See https://esotericsoftware.com/spine-flutter + +# 4.1 + +## C + +- **Additions** + - Support for sequences. + - Support for `shortestRotation` in animation state. See https://github.com/esotericsoftware/spine-runtimes/issues/2027. + - Added CMake parameter `SPINE_SANITIZE` which will enable sanitizers on macOS and Linux. + - Added `SPINE_MAJOR_VERSION`, `SPINE_MINOR_VERSION`, and `SPINE_VERSION_STRING`. Parsing skeleton .JSON and .skel files will report an error if the skeleton version does not match the runtime version. +- **Breaking changes** + - `spRegionAttachment` and `spMeshAttachment` now contain a `spTextureRegion*` instead of encoding region fields directly. + - `sp_AttachmentLoader_newRegionAttachment()` and `spAttachmentLoader_newMeshAttachment()` now take an additional `Sequence*` parameter. + - `spMeshAttachment_updateUVs()` was renamed to `spMeshAttachment_updateRegion()`. + - `spRegionAttachment_updateOffset()` was renamed to `spRegionAttachment_updateRegion()`, `spRegionAttachment_setUVs()` was merged into `spRegionAttachment_updateRegion()`. + - `spSlot_getAttachmentTime()` and `spSlot_setAttachmentTime()` have been removed. + - `spVertexAttachment->deformAttachment` was renamed to `spVertexAttachment->timelineAttachment`. + - `spSkeleton_update()` has been removed. + - `spSkeleton->time` has been removed. + - `spVertexEffect` has been removed. + +### SFML + +- Updated example to use SFML 2.5.1. +- Added dragon example. + +## C++ + +- **Additions** + - Support for sequences. + - Support for `shortestRotation` in animation state. See https://github.com/esotericsoftware/spine-runtimes/issues/2027. + - Added CMake parameter `SPINE_SANITIZE` which will enable sanitizers on macOS and Linux. + - Added `SPINE_MAJOR_VERSION`, `SPINE_MINOR_VERSION`, and `SPINE_VERSION_STRING`. Parsing skeleton .JSON and .skel files will report an error if the skeleton version does not match the runtime version. + - Added `SkeletonBounds::getBoundingBox()`, `SkeletonBounds::getPolygons()`, and `SkeletonBounds::getBoundingBoxes()`. +- **Breaking changes** + - `RegionAttachment` and `MeshAttachment` no longer implement `HasRendererObject`. + - `RegionAttachment` and `MeshAttachment` now contain a `TextureRegion*` instead of encoding region fields directly. + - `AttachmentLoader::newRegionAttachment()` and `AttachmentLoader::newMeshAttachment()` now take an additional `Sequence*` parameter. + - `MeshAttachment::updateUVs()` was renamed to `MeshAttachment::updateRegion()`. + - `RegionAttachment::updateOffset()` was renamed to `RegionAttachment::updateRegion()`, `RegionAttachment::setUVs()` was merged into `updateRegion()`. + - `Slot::getAttachmentTime()` and `Slot::setAttachmentTime()` have been removed. + - `VertexAttachment::getDeformAttachment()` was renamed to `VertexAttachment::getTimelineAttachment()`. + - `Skeleton::update()` has been removed. + - `Skeleton::getTime()` has been removed. + - `VertexEffect` has been removed. + +### Cocos2d-x +- Renamed `SkeletonRenderer` to `SkeletonRendererCocos2dX` to avoid name clash with spine-cpp class. + +### SFML + +- Updated example to use SFML 2.5.1. +- Added dragon example. + +### UE4 + +- Updated example project to UE 4.27 + +## C# + +- **Additions** + + - Full support for sequences. + - Support for `shortestRotation` in animation state. See https://github.com/esotericsoftware/spine-runtimes/issues/2027. + - `RegionAttachment` and `MeshAttachment` now provide a `Region` property. Use this property instead of the removed `RendererObject` property (see section _Breaking Changes_ below). + +- **Breaking changes** + - Removed `RendererObject` property from `RegionAttachment` and `MeshAttachment`. Use `attachment.Region` property instead. Removed removed `IHasRendererObject` interface. Use `IHasTextureRegion` instead. + - Replaced `RegionAttachment.UpdateOffset` and `MeshAttachment.UpdateUVs` with `Attachment.UpdateRegion`. The caller must ensure that the attachment's region is not `null`. + - Removed `AttachmentRegionExtensions` methods `Attachment.SetRegion`, `MeshAttachment.SetRegion` and `RegionAttachment.SetRegion(region, update)`. Use `attachment.Region = region; if (update) attachment.UpdateRegion()` instead. + - `AttachmentLoader.NewRegionAttachment()` and `AttachmentLoader.NewMeshAttachment()` take an additional `Sequence` parameter. + - `VertexAttachment.DeformAttachment` property has been replaced with `VertexAttachment.TimelineAttachment`. + - `RegionAttachment.ComputeWorldVertices()` takes a `Slot` instead of a `Bone` as the first argument. + - Removed `Skeleton.Update(float deltaTime)` method. + - Removed `Slot.AttachmentTime` property. + - Removed extension method `AtlasRegion.GetSpineAtlasRect()` parameter `includeRotate` (with default value `true`). Most likely this method was never used with `includeRotate=false` in user code so no changes are required. + - `AtlasRegion.PackedWidth` and `AtlasRegion.PackedHeight` are swapped compared to 4.0 when packing rotation is equal to 90 degrees. Most likely this property was never accessed in user code so no changes are required. + +### Unity + +- **Officially supported Unity versions are 2017.1-2023.1**. + +- **Additions** + + - `SpineAtlasAsset.CreateRuntimeInstance` methods now provide an optional `newCustomTextureLoader` parameter (defaults to `null`) which can be set to e.g. `(a) => new YourCustomTextureLoader(a)` to use your own `TextureLoader` subclass instead of `MaterialsTextureLoader`. + - `SkeletonAnimation`, `SkeletonMecanim` and `SkeletonGraphic` now provide an Inspector parameter `Advanced` - `Animation Update` with modes `In Update` **(previous behaviour, the default)**, `In FixedUpdate` and `Manual Update`. This allows to update animation in `FixedUpdate` when using the `SkeletonRootMotion` component (which is the recommended combination now, issuing a warning otherwise). The reason is that when root motion leads to a collision with a physics collider, it can introduce jittery excess movement when updating animation in `Update` due to more `Update` calls following a single `FixedUpdate` call. + - Added `SkeletonRootMotion` properties `PreviousRigidbodyRootMotion` and `AdditionalRigidbody2DMovement`. Setting or querying these movement vectors can be necessary when multiple scripts call `Rigidbody2D.MovePosition` on the same object where the last call overwrites the effect of preceding ones. + - `BoneFollower` and `BoneFollowerGraphic` now provide an additional `Follow Parent World Scale` parameter to allow following simple scale of parent bones (rotated/skewed scale can't be supported). + - Improved `Advanced - Fix Prefab Override MeshFilter` property for `SkeletonRenderer` (and subclasses`SkeletonAnimation` and `SkeletonMecanim`), now providing an additional option to use a global value which can be set in `Edit - Preferences - Spine`. + - Timeline naming improvements: `Spine AnimationState Clip` Inspector parameter `Custom Duration` changed and inverted to `Default Mix Duration` for more clarity. Shortened all Timeline add track menu entries from: `Spine.Unity.Playables - ` to `Spine - `, `Spine Animation State Track` to `SkeletonAnimation Track`, `Spine AnimationState Graphic Track` to `SkeletonGraphic Track`, and `Spine Skeleton Flip Track` to `Skeleton Flip Track`. + - Timeline track appearance and Inspector: Tracks now show icons and track colors to make them easier to distinguish. When a Track is selected, the Inspector now shows an editable track name which was previously only editable at the Timeline asset. + - Added example component `SkeletonRenderTexture` to render a `SkeletonRenderer` to a `RenderTexture`, mainly for proper transparency. Added an example scene named `RenderTexture FadeOut Transparency` that demonstrates usage for a fadeout transparency effect. + - Added another fadeout example component named `SkeletonRenderTextureFadeout` which takes over transparency fadeout when enabled. You can use this component as-is, attach it in disabled state and enable it to start a fadeout effect. + - Timeline clips now offer an additional `Alpha` parameter for setting a custom constant mix alpha value other than 1.0, just as `TrackEntry.Alpha`. Defaults to 1.0. + - `GetRemappedClone` copying from `Sprite` now provides additional `pmaCloneTextureFormat` and `pmaCloneMipmaps` parameters to explicitly specify the texture format of a newly created PMA texture. + - Spine property Inspector fields (`Animation Name`, `Bone Name`, `Slot` and similar) now display the name in red when the respective animation/bone/etc no longer exists at the skeleton data. This may be helpful when such items have been renamed or deleted. + - Added `UnscaledTime` property at `SkeletonAnimation` as well, behaving like `SkeletonGraphic.UnscaledTime`. If enabled, AnimationState uses unscaled game time (`Time.unscaledDeltaTime`), running animations independent of e.g. game pause (`Time.timeScale`). + - `SkeletonAnimation`, `SkeletonMecanim` and `SkeletonGraphic` now provide an additional `OnAnimationRebuild` callback delegate which is issued after both the skeleton and the animation state have been initialized. + - Timeline `SkeletonAnimation Track` and `SkeletonGraphic Track` now provide an `Unscaled Time` property. Whenever starting a new animation clip of this track, `SkeletonAnimation.UnscaledTime` or `SkeletonGraphic.UnscaledTime` will be set to this value. This allows you to play back Timeline clips either in normal game time or unscaled game time. Note that `PlayableDirector.UpdateMethod` is ignored and replaced by this property, which allows more fine-granular control per Timeline track. + - Added `SkeletonRootMotion` callback delegates `ProcessRootMotionOverride` and `PhysicsUpdateRootMotionOverride` to customize how root motion is applied. The new property `disableOnOverride` determines whether the callback will be issued in addition or instead of normally applying root motion. Added property `rootMotionScaleRotation` to allow scaling rotational root-motion to match e.g. a 90 degree rotation to a custom target angle. + - Added outline shader parameter `Advanced - Opaque Alpha` which can be used to exclude problematic semi-transparent areas, which may receive an undesired large outline color overlay otherwise. + - Added Spine Preferences setting `Prefabs` - `Optimize Preview Meshes`. When enabled, Spine prefab preview meshes will be removed in a pre-build step to reduce build size. This increases build time as all prefabs in the project will be processed. Defaults to false to not slow down builds substantially every time. + - Added Spine Preferences setting `Reload SkeletonData after Play`. When enabled, the shared `SkeletonData` of all skeletons in the active scene is reloaded (from the `.json` or `.skel.bytes` file) after exiting play-mode. You can disable this setting to avoid the reloading delay if you can ensure that there are no (accidental) modifications to the shared `SkeletonData` during play-mode (otherwise it would carry over its effect into subsequent plays). Defaults to `true` (the safe setting), which maintains existing behaviour. + - Added `SkeletonAnimationMulti` sample component methods `SetActiveSkeleton(int index)` and getter property `SkeletonAnimations` to more easily apply changes at all SkeletonAnimation instances instead of only the active one. + - PMA textures now have `sRGB (Color Texture)` disabled by default, the preset template `PMATexturePreset.preset` has been adjusted accordingly. As PMA textures are only allowed with Gamma color space, `sRGB (Color Texture)` shall be disabled to prevent border artifacts when mipmaps are enabled. In Gamma color space having this setting disabled has no drawbacks, only benefits. + - `SkeletonRenderTexture` and `SkeletonGraphicRenderTexture` components now support automatic down-scaling when required size on screen exceeds `Max Render Texture Size`. + - Added `Spine/SkeletonGraphic Fill` shader to provide functionality of `Spine/Skeleton Fill` shader for `SkeletonGraphic`. + - Lit Spine URP shaders (`Universal Render Pipeline/Spine/Sprite` and `Universal Render Pipeline/Spine/Skeleton Lit`) now support `Forward+` rendering path as introduced by Unity 2022.2 and URP version 14. + - `SkeletonGraphic` now supports automatic scaling based on its `RectTransform` bounds. Automatic scaling can be enabled by setting the added `Layout Scale Mode` Inspector property to either `Width Controls Height`, `Height Controls Width`, `FitInParent` or `EnvelopeParent`. It is set to `None` by default to keep previous behaviour and avoid breaking existing projects. To modify the reference layout bounds, hit the additional `Edit Layout Bounds` toggle button to switch into edit mode, adjust the bounds or hit `Match RectTransform with Mesh`, and hit the button again when done adjusting. The skeleton will now be scaled accordingly to fit the reference layout bounds to the object's `RectTransform`. + - Added previously missing unlit URP 2D shader variant, available under `Universal Render Pipeline/2D/Spine/Skeleton`. + - Added support for light cookies at `Universal Render Pipeline/Spine/Sprite` shader. + - Timeline extension package: An additional Spine preferences parameter `Timeline` - `Default Mix Duration` has been added, setting newly added `SpineAnimationStateClip` clips accordingly, defaults to false. This Spine preferences parameter can be enabled to default to the previous behaviour before this update. + - Tint Black: Added support for [Tint Black](http://en.esotericsoftware.com/spine-slots#Tint-black) functionality at all Spine URP shaders (2D and 3D shaders) and at all standard pipeline `Spine/Sprite` shaders. This feature can be enabled via the `Tint Black` material parameter in the Inspector. Note: The URP Sprite shaders provided in the Spine URP Shaders extension UPM package require the latest version of the spine-unity runtime (package version 4.1.12, 2023-05-31 or newer) to display the added material parameters in the Inspector GUI. + - Added `SkeletonGraphic.MeshScale` property to allow access to calculated mesh scale. `MeshScale` is based on (1) Canvas pixels per unit, and (2) `RectTransform` bounds when using `Layout Scale Mode` other than `None` at `SkeletonGraphic` which scales the skeleton mesh to fit the parent `RectTransform` bounds accordingly. + - Added `updateSeparatorPartScale` property to `SkeletonGraphic` to let render separator parts follow the scale (lossy scale) of the `SkeletonGraphic` GameObject. Defaults to `false` to maintain existing behaviour. + - Added experimental `EditorSkeletonPlayer` component to allow Editor playback of the initial animation set at `SkeletonAnimation` or `SkeletonGraphic` components. Add this component to your skeleton GameObject to enable the in-editor animation preview. Allows configurations for continuous playback when selected, deselected, and alternative single-frame preview by setting `Fixed Track Time` to any value other than 0. Limitations: At skeletons with variable material count the Inspector preview may be too unresponsive. It is then recommended to disable the `EditorSkeletonPlayer` component (at the top of the Inspector) to make it responsive again, then you can disable `Play When Selected` and re-enable the component to preview playback only when deselected. + - Added example component `RenderCombinedMesh` to render a combined mesh of multiple meshes or submeshes. This is required by `OutlineOnly` shaders to render a combined outline when using `SkeletonRenderSeparator` or multiple atlas pages which would normally lead to outlines around individual parts. To add a combined outline to your SkeletenRenderer: + 1. Add a child GameObject and move it a bit back (e.g. position Z = 0.01). + 2. Add a `RenderCombinedMesh` component, provided in the `Spine Examples/Scripts/Sample Components` directory. + 3. Copy the original material, add _\_Outline_ to its name and set the shader to your outline-only shader like `Universal Render Pipeline/Spine/Outline/Skeleton-OutlineOnly` or `Spine/Outline/OutlineOnly-ZWrite`. + 4. Assign this _\_Outline_ material at the new child GameObject's `MeshRenderer` component. + If you are using `SkeletonRenderSeparator` and need to enable and disable the `SkeletonRenderSeparator` component at runtime, you can increase the `RenderCombinedMesh` `Reference Renderers` array by one and assign the `SkeletonRenderer` itself at the last entry after the parts renderers. Disabled `MeshRenderer` components will be skipped when combining the final mesh, so the combined mesh is automatically filled from the desired active renderers. + - Timeline extension package: Added static `EditorEvent` callback to allow editor scripts to react to animation events outside of play-mode. Register to the events via `Spine.Unity.Playables.SpineAnimationStateMixerBehaviour.EditorEvent += YourCallback;`. + - URP Shaders: Added `Depth Write` property to shaders `Universal Render Pipeline/Spine/Skeleton` and `Universal Render Pipeline/Spine/Skeleton Lit`. Defaults to false to maintain existing behaviour. + - Added `Animation Update` mode (called `UpdateTiming` in code) `In Late Update` for `SkeletonAnimation`, `SkeletonMecanim` and `SkeletonGraphic`. This allows you to update the `SkeletonMecanim` skeleton in the same frame that the Mecanim Animator updated its state, which happens between `Update` and `LateUpdate`. + - URP Shaders: Added URP "Blend Mode" shader variants for both URP 3D and URP 2D renderers. They are listed under shader name "Universal Render Pipeline/Spine/Blend Modes/" and "Universal Render Pipeline/2D/Spine/Blend Modes/" respectively. + - URP Shaders: Added support for [Tint Black](http://en.esotericsoftware.com/spine-slots#Tint-black) functionality at "Blend Modes" Spine URP shaders (2D and 3D shaders). + +- **Breaking changes** + + - Made `SkeletonGraphic.unscaledTime` parameter protected, use the new property `UnscaledTime` instead. + - `SkeletonGraphic` `OnRebuild` callback delegate is now issued after the skeleton has been initialized, before the `AnimationState` component is initialized. This makes behaviour consistent with `SkeletonAnimation` and `SkeletonMecanim` component behaviour. Use the new callback `OnAnimationRebuild` if you want to receive a callback after the `SkeletonGraphic` `AnimationState` has been initialized. + - Changed name of prefab skeleton meshes stored at prefabs from `Skeleton Prefab Mesh "name"` to `Skeleton Prefab Mesh [name]` to avoid issues with quotes in mesh asset names (see [this issue](https://github.com/EsotericSoftware/spine-runtimes/issues/2572)). Likely this change poses no problems at all, however if you are parsing the prefab's mesh name for whatever reason, be sure to adjust the pattern accordingly. + +- **Changes of default values** + +- **Deprecated** + + - Shader macro `RETURN_UNLIT_IF_ADDITIVE_SLOT` in `spine-unity/Shaders/Sprite/CGIncludes/ShaderShared.cginc` has been deprecated and will be removed in spine-unity 4.2. Use RETURN_UNLIT_IF_ADDITIVE_SLOT_TINT instead. + +- **Restructuring (Non-Breaking)** + - Moved Spine URP Shaders Examples directory from the main package directory to Samples which can be installed via the Unity Package Manager. To import, select the `Spine Universal RP Shaders` package in the Package Manager window, expand `Samples` at the bottom and hit `Import` next to `Examples`. This follows the standard [samples guideline](https://docs.unity3d.com/Manual/cus-samples.html) and prevents warning messages about unexpectedly altered immutable assets. + +### XNA/MonoGame + +- **Breaking change**: Removed spine-xna in favor of spine-monogame. See https://github.com/EsotericSoftware/spine-runtimes/issues/1949 +- Added new spine-monogame solution. See [spine-monogame/README.md](spine-monogame/README.md) for updated instructions on how to use spine-monogame. + +## Java + +- **Additions** + - Support for `shortestRotation` in animation state. See https://github.com/esotericsoftware/spine-runtimes/issues/2027. + - Support for sequences. +- **Breaking changes** + - `AttachmentLoader#newRegionAttachment()` and `AttachmentLoader#newMeshAttachment()` take an additional `Sequence` parameter. + - `Slot#setAttachmentTime()` and `Slot#getAttachmentTime()` have been removed. + - `VertexAttachment#setDeformAttachment()` and `VertexAttachment#getDeformAttachment()` have been replaced with `VertexAttachment#setTimelineAttachment()` and `VertexAttachment#getTimelineAttachment()`. + - `RegionAttachment#updateOffset()` has been renamed to `RegionAttachment#updateRegion()`. The caller must ensure that the attachment's region is not `null`. + - `RegionAttachment#computeWorldVertices()` takes a `Slot` instead of a `Bone` as the first argument. + - `VertexEffect` has been removed. + +### libGDX + +- `spine-libgdx`, `spine-libgdx-tests`, and `spine-skeletonviewer` are now fully Gradle-ified. +- `spine-skeletonviewer` now supports quickly loading skeletons by dragging and dropping `.json` or `.skel` skeleton files onto the window. + +## Typescript/Javascript + +- **Additions** + - full support for sequences. + - Added `Promise` based `AssetManager.loadAll()`. Allows synchronous waiting via `await assetManager.loadAll()`, simplifying loader logic in applications. + - Support for `shortestRotation` in animation state. See https://github.com/esotericsoftware/spine-runtimes/issues/2027. + - Full support for sequences. +- **Breaking changes** + - `AttachmentLoader#newRegionAttachment()` and `AttachmentLoader#newMeshAttachment()` take an additional `Sequence` parameter. + - `Slot#attachmentTime` and has been removed. + - `VertexAttachment#deformAttachment` has been replaced with `VertexAttachment#timelineAttachment`. + - `RegionAttachment#updateOffset()` has been renamed to `RegionAttachment#updateRegion()`. The caller must ensure that the attachment's region is not `null`. + - `RegionAttachment#computeWorldVertices()` takes a `Slot` instead of a `Bone` as the first argument. + - Removed `PlayerEditor`. + - `VertexEffect` has been removed. + - Removed `RegionAttachment.rendererObject`. + - Renamed `TextureRegion.renderObject` to `TextureRegion.texture`. + +### WebGL backend + +- `PolygonBatcher` can now disable culling automatically if the static variable `PolygonBatcher.disableCulling` is set to true. +- Added `SpineCanvas`, a simpler way to render a scene via spine-webgl. See `spine-ts/spine-webgl/examples/barebones.html` and `spine-ts/spine-webgl/examples/mix-and-match.html`. +- Added `SpineCanavs.dispose()` to halt the updating and rendering of the canvas. + +### Canvas backend + +- Improved example. + +### Three.js backend + +- Added orbital controls to THREJS example. +- `SkeletonMesh` takes an optional `SkeletonMeshMaterialCustomizer`, allowing modification of materials used by `SkeletonMesh`. +- Added `SkeletonMeshMaterial.alphaTest`, when > 0, alpha testing will be performed and fragments will not be written to the depth buffer, if depth writes are enabled. + +### Player + +- Added `SpinePlayer.dispose()` to explicitely dispose of all resources the player holds on to. # 4.0 ## AS3 + **NOTE: Spine 4.0 will be the last release supporting spine-as3. Starting from Spine 4.1, spine-as3 will no longer be supported or maintained.** -* Switched projects from FDT to Visual Studio Code. See updated `README.md` files for instructions. -* Expose non-essential colors on bones, bounding box, clipping, and path attachments. -* Timeline API has been extended to support component-wise timelines exported by Spine 4.0. -* Added `AnimationState.clearNext()` which removes the given `TrackEntry` and all entries after it. -* Added support for texture atlas key value pairs, see `AtlasRegion.names` and `AtlasRegion.values`. -* Added support for reverse animation playback via `TrackEntry.reverse`. -* Added proportional spacing mode support for path constraints. -* Added support for uniform scaling for two bone IK. -* Fixed applying a constraint reverting changes from other constraints. + +- Switched projects from FDT to Visual Studio Code. See updated `README.md` files for instructions. +- Expose non-essential colors on bones, bounding box, clipping, and path attachments. +- Timeline API has been extended to support component-wise timelines exported by Spine 4.0. +- Added `AnimationState.clearNext()` which removes the given `TrackEntry` and all entries after it. +- Added support for texture atlas key value pairs, see `AtlasRegion.names` and `AtlasRegion.values`. +- Added support for reverse animation playback via `TrackEntry.reverse`. +- Added proportional spacing mode support for path constraints. +- Added support for uniform scaling for two bone IK. +- Fixed applying a constraint reverting changes from other constraints. ### Starling + **NOTE: Spine 4.0 will be the last release supporting spine-starling. Starting from Spine 4.1, spine-starling will no longer be supported or maintained.** -* Switched projects from FDT to Visual Studio Code. See updated `README.md` files for instructions. -* Updated to Starling 2.6 and Air SDK 33. + +- Switched projects from FDT to Visual Studio Code. See updated `README.md` files for instructions. +- Updated to Starling 2.6 and Air SDK 33. ## C -* **Breaking change:** Removed `SPINE_SHORT_NAMES` define and C++ constructors. -* Timeline API has been extended to support component-wise timelines exported by Spine 4.0. -* Added `spAnimationState_clearNext()` which removes the given `spTrackEntry` and all entries after it. -* Added support for texture atlas key value pairs, see `spAtlasRegion.keyValues`. -* Added support for reverse animation playback via `spTrackEntry.reverse`. -* Added proportional spacing mode support for path constraints. -* Added support for uniform scaling for two bone IK. -* Fixed applying a constraint reverting changes from other constraints. + +- **Breaking change:** Removed `SPINE_SHORT_NAMES` define and C++ constructors. +- Timeline API has been extended to support component-wise timelines exported by Spine 4.0. +- Added `spAnimationState_clearNext()` which removes the given `spTrackEntry` and all entries after it. +- Added support for texture atlas key value pairs, see `spAtlasRegion.keyValues`. +- Added support for reverse animation playback via `spTrackEntry.reverse`. +- Added proportional spacing mode support for path constraints. +- Added support for uniform scaling for two bone IK. +- Fixed applying a constraint reverting changes from other constraints. ### Cocos2d-Objc + **NOTE: Spine 4.0 will be the last release supporting spine-cocos2d-objc. Starting from Spine 4.1, spine-cocos2d-objc will no longer be supported or maintained.** ### SFML -* Added `ikDemo()` in `main.cpp`. to illustrate how to drive a bone and IK chain through mouse movement. + +- Added `ikDemo()` in `main.cpp`. to illustrate how to drive a bone and IK chain through mouse movement. ## C++ -* Removed dependency on STL throughout the code base, cutting down on the LOC that need parsing by 66%. -* Exposed `x` and `y` on `SkeletonData` through getters and setters. -* Expose non-essential colors on bones, bounding box, clipping, and path attachments. -* Timeline API has been extended to support component-wise timelines exported by Spine 4.0. -* Added `AnimationState.clearNext()` which removes the given `TrackEntry` and all entries after it. -* Added support for texture atlas key value pairs, see `AtlasRegion.names` and `AtlasRegion.values`. -* Added support for reverse animation playback via `TrackEntry.reverse`. -* Added proportional spacing mode support for path constraints. -* Added support for uniform scaling for two bone IK. -* Fixed applying a constraint reverting changes from other constraints. -* spine-cpp now requires C++11. + +- Removed dependency on STL throughout the code base, cutting down on the LOC that need parsing by 66%. +- Exposed `x` and `y` on `SkeletonData` through getters and setters. +- Expose non-essential colors on bones, bounding box, clipping, and path attachments. +- Timeline API has been extended to support component-wise timelines exported by Spine 4.0. +- Added `AnimationState.clearNext()` which removes the given `TrackEntry` and all entries after it. +- Added support for texture atlas key value pairs, see `AtlasRegion.names` and `AtlasRegion.values`. +- Added support for reverse animation playback via `TrackEntry.reverse`. +- Added proportional spacing mode support for path constraints. +- Added support for uniform scaling for two bone IK. +- Fixed applying a constraint reverting changes from other constraints. +- spine-cpp now requires C++11. ### Cocos2d-x -* Added `IKExample` scene to illustrate how to drive a bone and IK chain through mouse movement. -* Added `SkeletonAnimation::setPreUpdateWorldTransformsListener()` and `SkeletonAnimation::setPostUpdateWorldTransformsListener()`. This allows users to modify bone transforms and other skeleton properties before and after the world transforms of all bones are calculated. See the `IKExample` for a usage example. + +- Added `IKExample` scene to illustrate how to drive a bone and IK chain through mouse movement. +- Added `SkeletonAnimation::setPreUpdateWorldTransformsListener()` and `SkeletonAnimation::setPostUpdateWorldTransformsListener()`. This allows users to modify bone transforms and other skeleton properties before and after the world transforms of all bones are calculated. See the `IKExample` for a usage example. ### SFML -* Added `ikDemo()` in `main.cpp`. to illustrate how to drive a bone and IK chain through mouse movement. + +- Added `ikDemo()` in `main.cpp`. to illustrate how to drive a bone and IK chain through mouse movement. ### UE4 -* `SpineWidget` now supports the full widget transform, including rendering scale/shear. -* Materials on `SkeletonRendererComponent` are now blueprint read and writeable. This allows setting dynamic material instances at runtime. -* Added `InitialSkin` property to `USpineWidget`. This allows previewing different skins in the UMG Designer. Initial skins can still be overridden via blueprint events such as `On Initialized`. -* **Breaking change:** `SpineWidget` no longer has the `Scale` property. Instead the size x/y properties can be used. -* Added `SetSlotColor` on `USpineSkeletonComponent` to easily set the color of a slot via blueprints. -* Changed mixes set on an `SkeletonDataAsset` will now be applied to instances of `USpineSkeletonComponent`. -* Generated normals are now correctly flipped for back faces. -* Modifying parent materials updates material instances accordingly. -* Only `.json` files that are actually encoding Spine skeletons will be loaded. Other `.json` files will be left to other importers. -* Updated example project to UE 4.27. +- `SpineWidget` now supports the full widget transform, including rendering scale/shear. +- Materials on `SkeletonRendererComponent` are now blueprint read and writeable. This allows setting dynamic material instances at runtime. +- Added `InitialSkin` property to `USpineWidget`. This allows previewing different skins in the UMG Designer. Initial skins can still be overridden via blueprint events such as `On Initialized`. +- **Breaking change:** `SpineWidget` no longer has the `Scale` property. Instead the size x/y properties can be used. +- Added `SetSlotColor` on `USpineSkeletonComponent` to easily set the color of a slot via blueprints. +- Changed mixes set on an `SkeletonDataAsset` will now be applied to instances of `USpineSkeletonComponent`. +- Generated normals are now correctly flipped for back faces. +- Modifying parent materials updates material instances accordingly. +- Only `.json` files that are actually encoding Spine skeletons will be loaded. Other `.json` files will be left to other importers. +- Updated example project to UE 4.27. -## C# ## -* Timeline API has been extended to support component-wise timelines exported by Spine 4.0. -* Added `AnimationState.clearNext()` which removes the given `TrackEntry` and all entries after it. -* Added support for texture atlas key value pairs, see `AtlasRegion.names` and `AtlasRegion.values`. -* Added support for reverse animation playback via `TrackEntry.Reverse`. -* Added proportional spacing mode support for path constraints. -* Added support for uniform scaling for two bone IK. -* Fixed applying a constraint reverting changes from other constraints. -* **Breaking change:** Removed `SkeletonData` and `Skeleton` methods: `FindBoneIndex`, `FindSlotIndex`. Bones and slots have an `Index` field that should be used instead. Be sure to check for e.g. `bone == null` accordingly before accessing `bone.Index`. +## C# + +- Timeline API has been extended to support component-wise timelines exported by Spine 4.0. +- Added `AnimationState.clearNext()` which removes the given `TrackEntry` and all entries after it. +- Added support for texture atlas key value pairs, see `AtlasRegion.names` and `AtlasRegion.values`. +- Added support for reverse animation playback via `TrackEntry.Reverse`. +- Added proportional spacing mode support for path constraints. +- Added support for uniform scaling for two bone IK. +- Fixed applying a constraint reverting changes from other constraints. +- **Breaking change:** Removed `SkeletonData` and `Skeleton` methods: `FindBoneIndex`, `FindSlotIndex`. Bones and slots have an `Index` field that should be used instead. Be sure to check for e.g. `bone == null` accordingly before accessing `bone.Index`. ### Unity -* **Officially supported Unity versions are 2017.1-2022.1**. -* **Breaking changes** - * Removed all `Spine.Unity.AttachmentTools.SkinUtilities` Skin extension methods. These have become obsoleted and error-prone since the introduction of the new Skin API in 3.8. To fix any compile errors, replace any usage of `Skin` extension methods with their counterparts, e.g. replace occurrances of `skin.AddAttachments()` with `skin.AddSkin()`. Please see the example scene `Mix and Match Skins` on how to use the new Skin API to combine skins, or the updated old example scenes `Mix and Match` and `Mix and Match Equip` on how you can update an existing project using the old workflow. If you are using `skeletonAnimation.Skeleton.UnshareSkin()` in your code, you can replace it with `Skin customSkin = new Skin("custom skin"); customSkin.AddSkin(skeletonAnimation.Skeleton.Skin);`. - * `Skin.GetAttachments()` has been replaced by `Skin.Attachments`, returning an `ICollection`. This makes access more consistent and intuitive. To fix any compile errors, replace any occurrances of `Skin.GetAttachments()` by `Skin.Attachments`. - * Removed redundant `Spine.Unity.AttachmentTools.AttachmentCloneExtensions` extension methods `Attachment.GetCopy()` and `Attachment.GetLinkedMesh()`. To fix any compile errors, replace any occurrances with `Attachment.Copy()` and `Attachment.NewLinkedMesh()`. - * Removed `Spine.Unity.AttachmentTools.AttachmentRegionExtensions` extension methods `Attachment.GetRegion()`. Use `Attachment.RendererObject as AtlasRegion` instead. - * Removed redundant `Spine.SkeletonExtensions` extension methods: +- **Officially supported Unity versions are 2017.1-2022.1**. +- **Breaking changes** + + - Removed all `Spine.Unity.AttachmentTools.SkinUtilities` Skin extension methods. These have become obsoleted and error-prone since the introduction of the new Skin API in 3.8. To fix any compile errors, replace any usage of `Skin` extension methods with their counterparts, e.g. replace occurrances of `skin.AddAttachments()` with `skin.AddSkin()`. Please see the example scene `Mix and Match Skins` on how to use the new Skin API to combine skins, or the updated old example scenes `Mix and Match` and `Mix and Match Equip` on how you can update an existing project using the old workflow. If you are using `skeletonAnimation.Skeleton.UnshareSkin()` in your code, you can replace it with `Skin customSkin = new Skin("custom skin"); customSkin.AddSkin(skeletonAnimation.Skeleton.Skin);`. + - `Skin.GetAttachments()` has been replaced by `Skin.Attachments`, returning an `ICollection`. This makes access more consistent and intuitive. To fix any compile errors, replace any occurrances of `Skin.GetAttachments()` by `Skin.Attachments`. + - Removed redundant `Spine.Unity.AttachmentTools.AttachmentCloneExtensions` extension methods `Attachment.GetCopy()` and `Attachment.GetLinkedMesh()`. To fix any compile errors, replace any occurrances with `Attachment.Copy()` and `Attachment.NewLinkedMesh()`. + - Removed `Spine.Unity.AttachmentTools.AttachmentRegionExtensions` extension methods `Attachment.GetRegion()`. Use `Attachment.RendererObject as AtlasRegion` instead. + - Removed redundant `Spine.SkeletonExtensions` extension methods: Replace: - * `Skeleton.SetPropertyToSetupPose()` - * `Skeleton.SetDrawOrderToSetupPose()` - * `Skeleton.SetSlotAttachmentsToSetupPose()` - * `Skeleton.SetSlotAttachmentToSetupPose()` + + - `Skeleton.SetPropertyToSetupPose()` + - `Skeleton.SetDrawOrderToSetupPose()` + - `Skeleton.SetSlotAttachmentsToSetupPose()` + - `Skeleton.SetSlotAttachmentToSetupPose()` with `Skeleton.SetSlotsToSetupPose()`. Replace: - * `Slot.SetColorToSetupPose()` - * `Slot.SetAttachmentToSetupPose()` + + - `Slot.SetColorToSetupPose()` + - `Slot.SetAttachmentToSetupPose()` with `Slot.SetToSetupPose()`. Also removed less commonly used extension methods: `TrackEntry.AllowImmediateQueue()`, `Animation.SetKeyedItemsToSetupPose()` and `Attachment.IsRenderable()`. - * **`SkeletonGraphic` now no longer uses a `RawImage` component at each submesh renderer** GameObject when `allowMultipleCanvasRenderers` is true. Instead, a new custom component `SkeletonSubmeshGraphic` is used which is more resource friendly. Replacement of these components will be performed automatically through editor scripting, saving scenes or prefabs will persist the upgrade. - * **Linear color space:** Previously Slot colors were not displayed the same in Unity as in the Spine Editor. This is now fixed at all shaders, including URP and LWRP shaders. See section *Additions* below for more details. If you have tweaked Slot colors to look correct in `Linear` color space in Unity but incorrect in Spine, you might want to adjust the tweaked colors. Slot colors displayed in Unity should now match colors displayed in the Spine Editor when configured to display as `Linear` color space in the Spine Editor Settings. - * **Additive Slots have always been lit** before they were written to the target buffer. Now all lit shaders provide an additional parameter `Light Affects Additive` which defaults to `false`, as it is the more intuitive default value. You can enable the old behaviour by setting this parameter to `true`. - * **Corrected blending behaviour of all `Sprite` shaders** in `Premultiply Alpha` blend mode (including URP and LWRP packages). Previously vertex color alpha was premultiplied again, even though `Premultiply Alpha` blend mode assumes PMA texture and PMA vertex color input. Slot-alpha blending will thus be correctly lighter after upgrading to 4.0. If you have compensated this problem by disabling `Advanced - PMA Vertex Colors` you can now re-enable this parameter, also allowing for rendering Additive slots in a single pass. - * **Corrected all `Outline` shaders outline thickness** when `Advanced - Sample 8 Neighbourhood` is disabled (thus using `4 Neighbourhood`). Previously weighting was incorrectly thick (4x as thick) compared to 8 neighbourhood, now it is more consistent. This might require adjustment of all your outline materials where `Sample 8 Neighbourhood` is disabled to restore the previous outline thickness, by adjusting the `Outline Threshold` parameter through adding a `/4` to make the threshold 4 times smaller. - * Reverted changes: `BoneFollower` property `followLocalScale` has intermediately been renamed to `followScale` but was renamed back to `followLocalScale`. Serialized values (scenes and prefabs) will automatically be upgraded, only code accessing `followScale` needs to be adapted. - * Fixed Timeline not pausing (and resuming) clip playback on Director pause, this is now the default behaviour. If you require the old behaviour (e.g. to continue playing an idle animation during Director pause), there is now an additional parameter `Don't Pause with Director` provided that can be enabled for each Timeline clip. - * Fixed Timeline `Spine AnimationState Clips` ignoring empty space on the Timeline after a clip's end. Timeline clips now also offer `Don't End with Clip` and `Clip End Mix Out Duration` parameters if you prefer the old behaviour of previous versions. By default when empty space follows the clip on the timeline, the empty animation is set on the track with a MixDuration of `Clip End Mix Out Duration`. Set `Don't End with Clip` to `true` to continue playing the clip's animation instead and mimic the old 3.8 behaviour. If you prefer pausing the animation instead of mixing out to the empty animation, set `Clip End Mix Out Duration` to a value less than 0, then the animation is paused instead. + - **`SkeletonGraphic` now no longer uses a `RawImage` component at each submesh renderer** GameObject when `allowMultipleCanvasRenderers` is true. Instead, a new custom component `SkeletonSubmeshGraphic` is used which is more resource friendly. Replacement of these components will be performed automatically through editor scripting, saving scenes or prefabs will persist the upgrade. + - **Linear color space:** Previously Slot colors were not displayed the same in Unity as in the Spine Editor. This is now fixed at all shaders, including URP and LWRP shaders. See section _Additions_ below for more details. If you have tweaked Slot colors to look correct in `Linear` color space in Unity but incorrect in Spine, you might want to adjust the tweaked colors. Slot colors displayed in Unity should now match colors displayed in the Spine Editor when configured to display as `Linear` color space in the Spine Editor Settings. + - **Additive Slots have always been lit** before they were written to the target buffer. Now all lit shaders provide an additional parameter `Light Affects Additive` which defaults to `false`, as it is the more intuitive default value. You can enable the old behaviour by setting this parameter to `true`. + - **Corrected blending behaviour of all `Sprite` shaders** in `Premultiply Alpha` blend mode (including URP and LWRP packages). Previously vertex color alpha was premultiplied again, even though `Premultiply Alpha` blend mode assumes PMA texture and PMA vertex color input. Slot-alpha blending will thus be correctly lighter after upgrading to 4.0. If you have compensated this problem by disabling `Advanced - PMA Vertex Colors` you can now re-enable this parameter, also allowing for rendering Additive slots in a single pass. + - **Corrected all `Outline` shaders outline thickness** when `Advanced - Sample 8 Neighbourhood` is disabled (thus using `4 Neighbourhood`). Previously weighting was incorrectly thick (4x as thick) compared to 8 neighbourhood, now it is more consistent. This might require adjustment of all your outline materials where `Sample 8 Neighbourhood` is disabled to restore the previous outline thickness, by adjusting the `Outline Threshold` parameter through adding a `/4` to make the threshold 4 times smaller. + - Reverted changes: `BoneFollower` property `followLocalScale` has intermediately been renamed to `followScale` but was renamed back to `followLocalScale`. Serialized values (scenes and prefabs) will automatically be upgraded, only code accessing `followScale` needs to be adapted. + - Fixed Timeline not pausing (and resuming) clip playback on Director pause, this is now the default behaviour. If you require the old behaviour (e.g. to continue playing an idle animation during Director pause), there is now an additional parameter `Don't Pause with Director` provided that can be enabled for each Timeline clip. + - Fixed Timeline `Spine AnimationState Clips` ignoring empty space on the Timeline after a clip's end. Timeline clips now also offer `Don't End with Clip` and `Clip End Mix Out Duration` parameters if you prefer the old behaviour of previous versions. By default when empty space follows the clip on the timeline, the empty animation is set on the track with a MixDuration of `Clip End Mix Out Duration`. Set `Don't End with Clip` to `true` to continue playing the clip's animation instead and mimic the old 3.8 behaviour. If you prefer pausing the animation instead of mixing out to the empty animation, set `Clip End Mix Out Duration` to a value less than 0, then the animation is paused instead. -* **Additions and Improvements** - * Additional **Fix Draw Order** parameter at SkeletonRenderer, defaults to `disabled` (previous behaviour). +- **Additions and Improvements** + + - Additional **Fix Draw Order** parameter at SkeletonRenderer, defaults to `disabled` (previous behaviour). Applies only when 3+ submeshes are used (2+ materials with alternating order, e.g. "A B A"). - If `true`, MaterialPropertyBlocks are assigned at each material to prevent aggressive batching of submeshes - by e.g. the LWRP renderer, leading to incorrect draw order (e.g. "A1 B A2" changed to "A1A2 B"). - You can leave this parameter disabled when everything is drawn correctly to save the additional performance cost. - * **Additional Timeline features.** SpineAnimationStateClip now provides a `Speed Multiplier`, a start time offset parameter `Clip In`, support for blending successive animations by overlapping tracks. An additional `Use Blend Duration` parameter *(defaults to true)* allows for automatic synchronisation of MixDuration with the current overlap blend duration. An additional Spine preferences parameter `Use Blend Duration` has been added which can be disabled to default to the previous behaviour before this update. - * Additional `SpriteMask and RectMask2D` example scene added for demonstration of mask setup and interaction. - * `Real physics hinge chains` for both 2D and 3D physics. The [SkeletonUtilityBone](http://esotericsoftware.com/spine-unity#SkeletonUtilityBone) Inspector provides an interface to create 2D and 3D hinge chains. Previously created chains have only been respecting gravity, but not momentum of the skeleton or parent bones. The new physics rig created when pressing `Create 3D Hinge Chain` and `Create 2D Hinge Chain` creates a more complex setup that also works when flipping the skeleton. Note that the chain root node is no longer parented to bones of the skeleton. This is a requirement in Unity to have momentum applied properly - do not reparent the chain root to bones of your skeleton, or you will loose any momentum applied by the skeleton's movement. - * `Outline rendering functionality for all shaders.` Every shader now provides an additional set of `Outline` parameters to enable custom outline rendering. When outline rendering is enabled via the `Material` inspector, it automatically switches the shader to the respective `Spine/Outline` shader variant. Outlines are generated by sampling neighbour pixels, so be sure to add enough transparent padding when exporting your atlas textures to fit the desired outline width. In order to enable outline rendering at a skeleton, it is recommended to first prepare an additional outline material copy and then switch the material of the target skeleton to this material. This prevents unnecessary additional runtime material copies and drawcalls. Material switching can be prepared via a [SkeletonRendererCustomMaterials](http://esotericsoftware.com/spine-unity#SkeletonRendererCustomMaterials) component and then enabled or disabled at runtime. Alternatively, you can also directly modify the `SkeletonRenderer.CustomMaterialOverride` property. - Outline rendering is fully supported on `SkeletonGraphic` shaders as well. - * Added `SkeletonRenderer.EditorSkipSkinSync` scripting API property to be able to set custom skins in editor scripts. Enable this property when overwriting the Skeleton's skin from an editor script. Without setting this parameter, changes will be overwritten by the next inspector update. Only affects Inspector synchronisation of skin with `initialSkinName`, not startup initialization. - * `AtlasUtilities.GetRepackedAttachments()` and `AtlasUtilities.GetRepackedSkin()` provide support for additional texture channels such as normal maps via the optional parameter `additionalTexturePropertyIDsToCopy `. See the spine-unity runtime documentation, section [Combining Skins - Advanced - Runtime Repacking with Normalmaps](http://esotericsoftware.com/spine-unity#Combining-Skins) for further info and example usage code. - * `BoneFollower` can now optionally follow (uniform) world scale of the reference bone. There is now a `Mode` dropdown selector in the Inspector which can be set to either `Local` or `World Uniform`. - * All `Spine/SkeletonGraphic` shaders now provide a parameter `CanvasGroup Compatible` which can be enabled to support `CanvasGroup` alpha blending. For correct results, you should then disable `Pma Vertex Colors` in the `SkeletonGraphic` Inspector, in section `Advanced` (otherwise Slot alpha will be applied twice). - * **Now supporting Universal Render Pipeline (URP), including the 2D Renderer pipeline, through an additional UPM package.** - * **Installation:** You can download the Unity Package Manager (UPM) package via the [download page](http://esotericsoftware.com/spine-unity-download) or find it in the [spine-runtimes/spine-unity/Modules](https://github.com/EsotericSoftware/spine-runtimes/tree/3.8-beta/spine-unity/Modules) subdirectory on the git repository. You can then either unzip (copy if using git) the package to - * a) the `Packages` directory in your project where it will automatically be loaded, or - * b) to an arbitrary directory outside the Assets directory and then open Package Manager in Unity, select the `+` icon, choose `Add package from disk..` and point it to the package.json file. + If `true`, MaterialPropertyBlocks are assigned at each material to prevent aggressive batching of submeshes + by e.g. the LWRP renderer, leading to incorrect draw order (e.g. "A1 B A2" changed to "A1A2 B"). + You can leave this parameter disabled when everything is drawn correctly to save the additional performance cost. + - **Additional Timeline features.** SpineAnimationStateClip now provides a `Speed Multiplier`, a start time offset parameter `Clip In`, support for blending successive animations by overlapping tracks. An additional `Use Blend Duration` parameter _(defaults to true)_ allows for automatic synchronisation of MixDuration with the current overlap blend duration. An additional Spine preferences parameter `Use Blend Duration` has been added which can be disabled to default to the previous behaviour before this update. + - Additional `SpriteMask and RectMask2D` example scene added for demonstration of mask setup and interaction. + - `Real physics hinge chains` for both 2D and 3D physics. The [SkeletonUtilityBone](http://esotericsoftware.com/spine-unity#SkeletonUtilityBone) Inspector provides an interface to create 2D and 3D hinge chains. Previously created chains have only been respecting gravity, but not momentum of the skeleton or parent bones. The new physics rig created when pressing `Create 3D Hinge Chain` and `Create 2D Hinge Chain` creates a more complex setup that also works when flipping the skeleton. Note that the chain root node is no longer parented to bones of the skeleton. This is a requirement in Unity to have momentum applied properly - do not reparent the chain root to bones of your skeleton, or you will loose any momentum applied by the skeleton's movement. + - `Outline rendering functionality for all shaders.` Every shader now provides an additional set of `Outline` parameters to enable custom outline rendering. When outline rendering is enabled via the `Material` inspector, it automatically switches the shader to the respective `Spine/Outline` shader variant. Outlines are generated by sampling neighbour pixels, so be sure to add enough transparent padding when exporting your atlas textures to fit the desired outline width. In order to enable outline rendering at a skeleton, it is recommended to first prepare an additional outline material copy and then switch the material of the target skeleton to this material. This prevents unnecessary additional runtime material copies and drawcalls. Material switching can be prepared via a [SkeletonRendererCustomMaterials](http://esotericsoftware.com/spine-unity#SkeletonRendererCustomMaterials) component and then enabled or disabled at runtime. Alternatively, you can also directly modify the `SkeletonRenderer.CustomMaterialOverride` property. + Outline rendering is fully supported on `SkeletonGraphic` shaders as well. + - Added `SkeletonRenderer.EditorSkipSkinSync` scripting API property to be able to set custom skins in editor scripts. Enable this property when overwriting the Skeleton's skin from an editor script. Without setting this parameter, changes will be overwritten by the next inspector update. Only affects Inspector synchronisation of skin with `initialSkinName`, not startup initialization. + - `AtlasUtilities.GetRepackedAttachments()` and `AtlasUtilities.GetRepackedSkin()` provide support for additional texture channels such as normal maps via the optional parameter `additionalTexturePropertyIDsToCopy `. See the spine-unity runtime documentation, section [Combining Skins - Advanced - Runtime Repacking with Normalmaps](http://esotericsoftware.com/spine-unity#Combining-Skins) for further info and example usage code. + - `BoneFollower` can now optionally follow (uniform) world scale of the reference bone. There is now a `Mode` dropdown selector in the Inspector which can be set to either `Local` or `World Uniform`. + - All `Spine/SkeletonGraphic` shaders now provide a parameter `CanvasGroup Compatible` which can be enabled to support `CanvasGroup` alpha blending. For correct results, you should then disable `Pma Vertex Colors` in the `SkeletonGraphic` Inspector, in section `Advanced` (otherwise Slot alpha will be applied twice). + - **Now supporting Universal Render Pipeline (URP), including the 2D Renderer pipeline, through an additional UPM package.** + + - **Installation:** You can download the Unity Package Manager (UPM) package via the [download page](http://esotericsoftware.com/spine-unity-download) or find it in the [spine-runtimes/spine-unity/Modules](https://github.com/EsotericSoftware/spine-runtimes/tree/3.8-beta/spine-unity/Modules) subdirectory on the git repository. You can then either unzip (copy if using git) the package to + + - a) the `Packages` directory in your project where it will automatically be loaded, or + - b) to an arbitrary directory outside the Assets directory and then open Package Manager in Unity, select the `+` icon, choose `Add package from disk..` and point it to the package.json file. The Project panel should now show an entry `Spine Universal RP Shaders` under `Packages`. If the directory is not yet listed, you will need to close and re-open Unity to have it display the directory and its contents. - * **Usage:** The package provides two shaders specifically built for the universal render pipeline: - * `Universal Render Pipeline/Spine/Skeleton`, as a universal variant of the `Spine/Skeleton` shader, - * `Universal Render Pipeline/Spine/Skeleton Lit`, as a universal variant of the `Spine/Skeleton Lit` shader, - * `Universal Render Pipeline/Spine/Sprite`, as a universal variant of the `Spine/Sprite/Vertex Lit` and `Pixel Lit` shaders, which were not functioning in the universal render pipeline, - * `Universal Render Pipeline/2D/Spine/Skeleton Lit`, as a universal 2D Renderer variant of the `Spine/Skeleton Lit` shader, and - * `Universal Render Pipeline/2D/Spine/Sprite`, as a universal 2D Renderer variant of the `Spine/Sprite/Vertex Lit` and `Pixel Lit` shaders. - The shaders can be assigned to materials as usual and will respect your settings of the assigned `UniversalRenderPipelineAsset` under `Project Settings - Graphics`. - * **Restrictions** As all Spine shaders, the URP shaders **do not support `Premultiply alpha` (PMA) atlas textures in Linear color space**. Please export your atlas textures as `straight alpha` textures with disabled `Premultiply alpha` setting when using Linear color space. You can check the current color space via `Project Settings - Player - Other Settings - Color Space.`. - * **Example:** You can find an example scene in the package under `com.esotericsoftware.spine.urp-shaders-3.8/Examples/URP Shaders.unity` that demonstrates usage of the URP shaders. - * Spine Preferences now provide an **`Atlas Texture Settings`** parameter for applying customizable texture import settings at all newly imported Spine atlas textures. + + - **Usage:** The package provides two shaders specifically built for the universal render pipeline: + - `Universal Render Pipeline/Spine/Skeleton`, as a universal variant of the `Spine/Skeleton` shader, + - `Universal Render Pipeline/Spine/Skeleton Lit`, as a universal variant of the `Spine/Skeleton Lit` shader, + - `Universal Render Pipeline/Spine/Sprite`, as a universal variant of the `Spine/Sprite/Vertex Lit` and `Pixel Lit` shaders, which were not functioning in the universal render pipeline, + - `Universal Render Pipeline/2D/Spine/Skeleton Lit`, as a universal 2D Renderer variant of the `Spine/Skeleton Lit` shader, and + - `Universal Render Pipeline/2D/Spine/Sprite`, as a universal 2D Renderer variant of the `Spine/Sprite/Vertex Lit` and `Pixel Lit` shaders. + The shaders can be assigned to materials as usual and will respect your settings of the assigned `UniversalRenderPipelineAsset` under `Project Settings - Graphics`. + - **Restrictions** As all Spine shaders, the URP shaders **do not support `Premultiply alpha` (PMA) atlas textures in Linear color space**. Please export your atlas textures as `straight alpha` textures with disabled `Premultiply alpha` setting when using Linear color space. You can check the current color space via `Project Settings - Player - Other Settings - Color Space.`. + - **Example:** You can find an example scene in the package under `com.esotericsoftware.spine.urp-shaders-3.8/Examples/URP Shaders.unity` that demonstrates usage of the URP shaders. + + - Spine Preferences now provide an **`Atlas Texture Settings`** parameter for applying customizable texture import settings at all newly imported Spine atlas textures. When exporting atlas textures from Spine with `Premultiply alpha` enabled (the default), you can leave it at `PMATexturePreset`. If you have disabled `Premultiply alpha`, set it to the included `StraightAlphaTexturePreset` asset. You can also create your own `TextureImporter` `Preset` asset and assign it here (include `PMA` or `Straight` in the name). In Unity versions before 2018.3 you can use `Texture2D` template assets instead of the newer `Preset` assets. Materials created for imported textures will also have the `Straight Alpha Texture` parameter configured accordingly. - * All `Sprite` shaders (including URP and LWRP extension packages) now provide an additional `Fixed Normal Space` option `World-Space`. PReviously options were limited to `View-Space` and `Model-Space`. - * `SkeletonGraphic` now fully supports [`SkeletonUtility`](http://esotericsoftware.com/spine-unity#SkeletonUtility) for generating a hierarchy of [`SkeletonUtilityBones`](http://esotericsoftware.com/spine-unity#SkeletonUtilityBone) in both modes `Follow` and `Override`. This also enables creating hinge chain physics rigs and using `SkeletonUtilityConstraints` such as `SkeletonUtilityGroundConstraint` and `SkeletonUtilityEyeConstraint` on `SkeletonGraphic`. - * Added **native support for slot blend modes** `Additive`, `Multiply` and `Screen` with automatic assignment at newly imported skeleton assets. `BlendModeMaterialAssets` are now obsolete and replaced by the native properties at `SkeletonDataAsset`. The `SkeletonDataAsset` Inspector provides a new `Blend Modes - Upgrade` button to upgrade an obsolete `BlendModeMaterialAsset` to the native blend modes properties. This upgrade will be performed automatically on imported and re-imported assets. - * `BoneFollower` and `BoneFollowerGraphic` components now provide better support for following bones when the skeleton's Transform is not the parent of the follower's Transform. Previously e.g. rotating a common parent Transform did not lead to the desired result, as well as negatively scaling a skeleton's Transform when it is not a parent of the follower's Transform. - * **Linear color space:** Previously Slot colors were not displayed the same in Unity as in the Spine Editor (when configured to display as `Linear` color space in Spine Editor Settings). This is now fixed at all shaders, including URP and LWRP shaders. - * All Spine shaders (also including URP and LWRP shaders) now support `PMA Vertex Colors` in combination with `Linear` color space. Thus when using Spine shaders, you should always enable `PMA Vertex Colors` at the `SkeletonRenderer` component. This allows using single pass `Additive` Slots rendering. Note that textures shall still be exported as `Straight alpha` when using `Linear` color space, so combine `PMA Vertex Colors` with `Straight Texture`. All `Sprite` shaders now provide an additional blend mode for this, named `PMA Vertex, Straight Texture` which shall be the preferred Sprite shader blend mode in `Linear` color space. - * Additive Slots have always been lit before they were written to the target buffer. Now all lit shaders provide an additional parameter `Light Affects Additive` which defaults to `false`, as it is the more intuitive default value. You can enable the old behaviour by setting this parameter to `true`. - * `SkeletonRootMotion` and `SkeletonMecanimRootMotion` components now support arbitrary bones in the hierarchy as `Root Motion Bone`. Previously there were problems when selecting a non-root bone as `Root Motion Bone`. `Skeleton.ScaleX` and `.ScaleY` and parent bone scale is now respected as well. - * URP and LWRP `Sprite` and `SkeletonLit` shaders no longer require `Advanced - Add Normals` enabled to properly cast and receive shadows. It is recommended to disable `Add Normals` if normals are otherwise not needed. - * Added an example component `RootMotionDeltaCompensation` located in `Spine Examples/Scripts/Sample Components` which can be used for applying simple delta compensation. You can enable and disable the component to toggle delta compensation of the currently playing animation on and off. - * `SkeletonRagdoll` and `SkeletonRagdoll2D` now support bone scale at any bone in the skeleton hierarchy. This includes negative scale and root bone scale. - * `Attachment.GetRemappedClone(Sprite)` method now provides an additional optional parameter `useOriginalRegionScale`. When set to `true`, the replaced attachment's scale is used instead of the Sprite's `Pixel per Unity` setting, allowing for more consistent scaling. *Note:* When remapping Sprites, be sure to set the Sprite's `Mesh Type` to `Full Rect` and not `Tight`, otherwise the scale will be wrong. - * `SkeletonGraphic` now **supports all Slot blend modes** when `Advanced - Multiple Canvas Renderers` is enabled in the Inspector. The `SkeletonGraphic` Inspector now provides a `Blend Mode Materials` section where you can assign `SkeletonGraphic` materials for each blend mode, or use the new default materials. New `SkeletonGraphic` shaders and materials have been added for each blend mode. The `BlendModes.unity` example scene has been extended to demonstrate this new feature. For detailed information see the [`SkeletonGraphic documentation page`](http://esotericsoftware.com/spine-unity#Parameters). - * Timeline clips now also offer `Don't End with Clip` and `Clip End Mix Out Duration` parameters. By default when empty space follows the clip on the timeline, the empty animation is set on the track with a MixDuration of `Clip End Mix Out Duration`. Set `Don't End with Clip` to `true` to continue playing the clip's animation instead and mimic the old 3.8 behaviour. If you prefer pausing the animation instead of mixing out to the empty animation, set `Clip End Mix Out Duration` to a value less than 0, then the animation is paused instead. - * Prefabs containing `SkeletonRenderer`, `SkeletonAnimation` and `SkeletonMecanim` now provide a proper Editor preview, including the preview thumbnail. - * `SkeletonRenderer` (and subclasses`SkeletonAnimation` and `SkeletonMecanim`) now provide a property `Advanced - Fix Prefab Override MeshFilter`, which when enabled fixes the prefab always being marked as changed. It sets the MeshFilter's hide flags to `DontSaveInEditor`. Unfortunately this comes at the cost of references to the `MeshFilter` by other components being lost, therefore this parameter defaults to `false` to keep the safe existing behaviour. - * `BoundingBoxFollower` and `BoundingBoxFollowerGraphic` now provide previously missing `usedByEffector` and `usedByComposite` parameters to be set at all generated colliders. - * `BoneFollower` and `BoneFollowerGraphic` now provide an additional `Follow Parent World Scale` parameter to allow following simple scale of parent bones (rotated/skewed scale can't be supported). - * Improved `Advanced - Fix Prefab Override MeshFilter` property for `SkeletonRenderer` (and subclasses`SkeletonAnimation` and `SkeletonMecanim`), now providing an additional option to use a global value which can be set in `Edit - Preferences - Spine`. - * Timeline naming improvements: `Spine AnimationState Clip` Inspector parameter `Custom Duration` changed and inverted to `Default Mix Duration` for more clarity. Shortened all Timeline add track menu entries from: `Spine.Unity.Playables - ` to `Spine - `, `Spine Animation State Track` to `SkeletonAnimation Track`, `Spine AnimationState Graphic Track` to `SkeletonGraphic Track`, and `Spine Skeleton Flip Track` to `Skeleton Flip Track`. - * Timeline track appearance and Inspector: Tracks now show icons and track colors to make them easier to distinguish. When a Track is selected, the Inspector now shows an editable track name which was previously only editable at the Timeline asset. - * Added example component `SkeletonRenderTexture` to render a `SkeletonRenderer` to a `RenderTexture`, mainly for proper transparency. Added an example scene named `RenderTexture FadeOut Transparency` that demonstrates usage for a fadeout transparency effect. - * Added another fadeout example component named `SkeletonRenderTextureFadeout` which takes over transparency fadeout when enabled. You can use this component as-is, attach it in disabled state and enable it to start a fadeout effect. - * Timeline clips now offer an additional `Alpha` parameter for setting a custom constant mix alpha value other than 1.0, just as `TrackEntry.Alpha`. Defaults to 1.0. - * `SkeletonGraphic` now provides additional render callback delegates `OnInstructionsPrepared`, `AssignMeshOverrideSingleRenderer` and `AssignMeshOverrideMultipleRenderers`. `OnInstructionsPrepared` is raised at the end of LateUpdate after render instructions are done, target renderers are prepared, and the mesh is ready to be generated. The two `AssignMeshOverride` delegates allow separate code to take over mesh and material assignment of a `SkeletonGraphic` component. - * Added example component `SkeletonGraphicRenderTexture` to render a `SkeletonGraphic` to a `RenderTexture` (similar as `SkeletonRenderTexture`), mainly for proper transparency. Extended example scene `RenderTexture FadeOut Transparency` accordingly. + - All `Sprite` shaders (including URP and LWRP extension packages) now provide an additional `Fixed Normal Space` option `World-Space`. PReviously options were limited to `View-Space` and `Model-Space`. + - `SkeletonGraphic` now fully supports [`SkeletonUtility`](http://esotericsoftware.com/spine-unity#SkeletonUtility) for generating a hierarchy of [`SkeletonUtilityBones`](http://esotericsoftware.com/spine-unity#SkeletonUtilityBone) in both modes `Follow` and `Override`. This also enables creating hinge chain physics rigs and using `SkeletonUtilityConstraints` such as `SkeletonUtilityGroundConstraint` and `SkeletonUtilityEyeConstraint` on `SkeletonGraphic`. + - Added **native support for slot blend modes** `Additive`, `Multiply` and `Screen` with automatic assignment at newly imported skeleton assets. `BlendModeMaterialAssets` are now obsolete and replaced by the native properties at `SkeletonDataAsset`. The `SkeletonDataAsset` Inspector provides a new `Blend Modes - Upgrade` button to upgrade an obsolete `BlendModeMaterialAsset` to the native blend modes properties. This upgrade will be performed automatically on imported and re-imported assets. + - `BoneFollower` and `BoneFollowerGraphic` components now provide better support for following bones when the skeleton's Transform is not the parent of the follower's Transform. Previously e.g. rotating a common parent Transform did not lead to the desired result, as well as negatively scaling a skeleton's Transform when it is not a parent of the follower's Transform. + - **Linear color space:** Previously Slot colors were not displayed the same in Unity as in the Spine Editor (when configured to display as `Linear` color space in Spine Editor Settings). This is now fixed at all shaders, including URP and LWRP shaders. + - All Spine shaders (also including URP and LWRP shaders) now support `PMA Vertex Colors` in combination with `Linear` color space. Thus when using Spine shaders, you should always enable `PMA Vertex Colors` at the `SkeletonRenderer` component. This allows using single pass `Additive` Slots rendering. Note that textures shall still be exported as `Straight alpha` when using `Linear` color space, so combine `PMA Vertex Colors` with `Straight Texture`. All `Sprite` shaders now provide an additional blend mode for this, named `PMA Vertex, Straight Texture` which shall be the preferred Sprite shader blend mode in `Linear` color space. + - Additive Slots have always been lit before they were written to the target buffer. Now all lit shaders provide an additional parameter `Light Affects Additive` which defaults to `false`, as it is the more intuitive default value. You can enable the old behaviour by setting this parameter to `true`. + - `SkeletonRootMotion` and `SkeletonMecanimRootMotion` components now support arbitrary bones in the hierarchy as `Root Motion Bone`. Previously there were problems when selecting a non-root bone as `Root Motion Bone`. `Skeleton.ScaleX` and `.ScaleY` and parent bone scale is now respected as well. + - URP and LWRP `Sprite` and `SkeletonLit` shaders no longer require `Advanced - Add Normals` enabled to properly cast and receive shadows. It is recommended to disable `Add Normals` if normals are otherwise not needed. + - Added an example component `RootMotionDeltaCompensation` located in `Spine Examples/Scripts/Sample Components` which can be used for applying simple delta compensation. You can enable and disable the component to toggle delta compensation of the currently playing animation on and off. + - `SkeletonRagdoll` and `SkeletonRagdoll2D` now support bone scale at any bone in the skeleton hierarchy. This includes negative scale and root bone scale. + - `Attachment.GetRemappedClone(Sprite)` method now provides an additional optional parameter `useOriginalRegionScale`. When set to `true`, the replaced attachment's scale is used instead of the Sprite's `Pixel per Unity` setting, allowing for more consistent scaling. _Note:_ When remapping Sprites, be sure to set the Sprite's `Mesh Type` to `Full Rect` and not `Tight`, otherwise the scale will be wrong. + - `SkeletonGraphic` now **supports all Slot blend modes** when `Advanced - Multiple Canvas Renderers` is enabled in the Inspector. The `SkeletonGraphic` Inspector now provides a `Blend Mode Materials` section where you can assign `SkeletonGraphic` materials for each blend mode, or use the new default materials. New `SkeletonGraphic` shaders and materials have been added for each blend mode. The `BlendModes.unity` example scene has been extended to demonstrate this new feature. For detailed information see the [`SkeletonGraphic documentation page`](http://esotericsoftware.com/spine-unity#Parameters). + - Timeline clips now also offer `Don't End with Clip` and `Clip End Mix Out Duration` parameters. By default when empty space follows the clip on the timeline, the empty animation is set on the track with a MixDuration of `Clip End Mix Out Duration`. Set `Don't End with Clip` to `true` to continue playing the clip's animation instead and mimic the old 3.8 behaviour. If you prefer pausing the animation instead of mixing out to the empty animation, set `Clip End Mix Out Duration` to a value less than 0, then the animation is paused instead. + - Prefabs containing `SkeletonRenderer`, `SkeletonAnimation` and `SkeletonMecanim` now provide a proper Editor preview, including the preview thumbnail. + - `SkeletonRenderer` (and subclasses`SkeletonAnimation` and `SkeletonMecanim`) now provide a property `Advanced - Fix Prefab Override MeshFilter`, which when enabled fixes the prefab always being marked as changed. It sets the MeshFilter's hide flags to `DontSaveInEditor`. Unfortunately this comes at the cost of references to the `MeshFilter` by other components being lost, therefore this parameter defaults to `false` to keep the safe existing behaviour. + - `BoundingBoxFollower` and `BoundingBoxFollowerGraphic` now provide previously missing `usedByEffector` and `usedByComposite` parameters to be set at all generated colliders. + - `BoneFollower` and `BoneFollowerGraphic` now provide an additional `Follow Parent World Scale` parameter to allow following simple scale of parent bones (rotated/skewed scale can't be supported). + - Improved `Advanced - Fix Prefab Override MeshFilter` property for `SkeletonRenderer` (and subclasses`SkeletonAnimation` and `SkeletonMecanim`), now providing an additional option to use a global value which can be set in `Edit - Preferences - Spine`. + - Timeline naming improvements: `Spine AnimationState Clip` Inspector parameter `Custom Duration` changed and inverted to `Default Mix Duration` for more clarity. Shortened all Timeline add track menu entries from: `Spine.Unity.Playables - ` to `Spine - `, `Spine Animation State Track` to `SkeletonAnimation Track`, `Spine AnimationState Graphic Track` to `SkeletonGraphic Track`, and `Spine Skeleton Flip Track` to `Skeleton Flip Track`. + - Timeline track appearance and Inspector: Tracks now show icons and track colors to make them easier to distinguish. When a Track is selected, the Inspector now shows an editable track name which was previously only editable at the Timeline asset. + - Added example component `SkeletonRenderTexture` to render a `SkeletonRenderer` to a `RenderTexture`, mainly for proper transparency. Added an example scene named `RenderTexture FadeOut Transparency` that demonstrates usage for a fadeout transparency effect. + - Added another fadeout example component named `SkeletonRenderTextureFadeout` which takes over transparency fadeout when enabled. You can use this component as-is, attach it in disabled state and enable it to start a fadeout effect. + - Timeline clips now offer an additional `Alpha` parameter for setting a custom constant mix alpha value other than 1.0, just as `TrackEntry.Alpha`. Defaults to 1.0. + - `SkeletonGraphic` now provides additional render callback delegates `OnInstructionsPrepared`, `AssignMeshOverrideSingleRenderer` and `AssignMeshOverrideMultipleRenderers`. `OnInstructionsPrepared` is raised at the end of LateUpdate after render instructions are done, target renderers are prepared, and the mesh is ready to be generated. The two `AssignMeshOverride` delegates allow separate code to take over mesh and material assignment of a `SkeletonGraphic` component. + - Added example component `SkeletonGraphicRenderTexture` to render a `SkeletonGraphic` to a `RenderTexture` (similar as `SkeletonRenderTexture`), mainly for proper transparency. Extended example scene `RenderTexture FadeOut Transparency` accordingly. -* **Changes of default values** +- **Changes of default values** -* **Deprecated** +- **Deprecated** -* **Restructuring (Non-Breaking)** +- **Restructuring (Non-Breaking)** ### XNA/MonoGame -* Added normalmap support via `SpineEffectNormalmap` and support for loading multiple texture layers following a suffix-pattern. Please see the example code on how to use them. -* Added `Z` property to `SkeletonRenderer` to provide a constant Z offset that's added to all vertices. -* Added `ZSpacing` property to `SkeletonRenderer` to allow specifying the distance on the z-axis between attachments. -* SkeletonDebugRenderer bone color attributes are now public and modifiable by user. +- Added normalmap support via `SpineEffectNormalmap` and support for loading multiple texture layers following a suffix-pattern. Please see the example code on how to use them. +- Added `Z` property to `SkeletonRenderer` to provide a constant Z offset that's added to all vertices. +- Added `ZSpacing` property to `SkeletonRenderer` to allow specifying the distance on the z-axis between attachments. +- SkeletonDebugRenderer bone color attributes are now public and modifiable by user. ## Java -* Timeline API has been extended to support component-wise timelines exported by Spine 4.0. -* Added `AnimationState.clearNext()` which removes the given `TrackEntry` and all entries after it. -* Added support for texture atlas key value pairs, see `Region.names` and `Region.values`. -* Added support for reverse animation playback via `TrackEntry.getReverse()` and `TrackEntry.setReverse()`. -* Added proportional spacing mode support for path constraints. -* Added support for uniform scaling for two bone IK. -* Fixed applying a constraint reverting changes from other constraints. -* **Breaking change:** Removed `SkeletonData` and `Skeleton` methods: `findBoneIndex`, `findSlotIndex`. Bones and slots have an `index` field that should be used instead. + +- Timeline API has been extended to support component-wise timelines exported by Spine 4.0. +- Added `AnimationState.clearNext()` which removes the given `TrackEntry` and all entries after it. +- Added support for texture atlas key value pairs, see `Region.names` and `Region.values`. +- Added support for reverse animation playback via `TrackEntry.getReverse()` and `TrackEntry.setReverse()`. +- Added proportional spacing mode support for path constraints. +- Added support for uniform scaling for two bone IK. +- Fixed applying a constraint reverting changes from other constraints. +- **Breaking change:** Removed `SkeletonData` and `Skeleton` methods: `findBoneIndex`, `findSlotIndex`. Bones and slots have an `index` field that should be used instead. ### libGDX -* Exposed colors in `SkeletonRendererDebug`. -* Updated to libGDX 1.10.0. + +- Exposed colors in `SkeletonRendererDebug`. +- Updated to libGDX 1.10.0. ## Lua -* Expose non-essential colors on bones, bounding box, clipping, and path attachments. -* Timeline API has been extended to support component-wise timelines exported by Spine 4.0. -* Added `AnimationState.clearNext()` which removes the given `TrackEntry` and all entries after it. -* Added support for texture atlas key value pairs, see `AtlasRegion.names` and `AtlasRegion.values`. -* Added support for reverse animation playback via `TrackEntry.reverse`. -* Added proportional spacing mode support for path constraints. -* Added support for uniform scaling for two bone IK. -* Fixed applying a constraint reverting changes from other constraints. + +- Expose non-essential colors on bones, bounding box, clipping, and path attachments. +- Timeline API has been extended to support component-wise timelines exported by Spine 4.0. +- Added `AnimationState.clearNext()` which removes the given `TrackEntry` and all entries after it. +- Added support for texture atlas key value pairs, see `AtlasRegion.names` and `AtlasRegion.values`. +- Added support for reverse animation playback via `TrackEntry.reverse`. +- Added proportional spacing mode support for path constraints. +- Added support for uniform scaling for two bone IK. +- Fixed applying a constraint reverting changes from other constraints. ### Love2D ### Corona -* **Breaking change:** spine-corona has been renamed to spine-solar2d. Change your `require "spine-corona.spine"` statements to `require "spine-solar2d.spine"` + +- **Breaking change:** spine-corona has been renamed to spine-solar2d. Change your `require "spine-corona.spine"` statements to `require "spine-solar2d.spine"` ## Typescript/Javascript -* **Breaking change:** refactored to ECMAScript modules. See this [blog post](http://esotericsoftware.com/blog/spine-goes-npm) as well as the updated [README.md](spine-ts/README.md). -* **Breaking change:** the `build/` folder and compiled artifacts are no longer part of the repository. Instead, `npm run build` in `spine-ts/` to generate ECMAScript modules and IIFE modules in `spine-/dist`. -* **Breaking change:** the `.npmignore` and `package.json` files in the root directory have been deleted. Use the corresponding files in `spine-ts/` instead, or better, depend on the packages from the NPM registry. -* Updated runtime to be compatible with TypeScript 3.6.3. -* Added `AssetManager#setRawDataURI(path, data)`. Allows to set raw data URIs for a specific path, which in turn enables embedding assets into JavaScript/HTML. -* Expose non-essential colors on bones, bounding box, clipping, and path attachments. -* Timeline API has been extended to support component-wise timelines exported by Spine 4.0. -* Added `AnimationState.clearNext()` which removes the given `TrackEntry` and all entries after it. -* Added support for texture atlas key value pairs, see `AtlasRegion.names` and `AtlasRegion.values`. -* Added support for reverse animation playback via `TrackEntry.reverse`. -* Added proportional spacing mode support for path constraints. -* Added support for uniform scaling for two bone IK. -* Fixed applying a constraint reverting changes from other constraints. -* `AssetManager` constructor now takes an option `Downloader` instance. Used to download assets only once and share them between `AssetManager` instances. -* Added web worker support to `AssetManager`. -* Added various default parameters to `AnimationState` methods for ease of use. -* Added `SpineCanvas`, a simpler way to render a scene via spine-webgl. See `spine-ts/spine-webgl/examples/barebones.html` and `spine-ts/spine-webgl/examples/mix-and-match.html`. + +- **Breaking change:** refactored to ECMAScript modules. See this [blog post](http://esotericsoftware.com/blog/spine-goes-npm) as well as the updated [README.md](spine-ts/README.md). +- **Breaking change:** the `build/` folder and compiled artifacts are no longer part of the repository. Instead, `npm run build` in `spine-ts/` to generate ECMAScript modules and IIFE modules in `spine-/dist`. +- **Breaking change:** the `.npmignore` and `package.json` files in the root directory have been deleted. Use the corresponding files in `spine-ts/` instead, or better, depend on the packages from the NPM registry. +- Updated runtime to be compatible with TypeScript 3.6.3. +- Added `AssetManager#setRawDataURI(path, data)`. Allows to set raw data URIs for a specific path, which in turn enables embedding assets into JavaScript/HTML. +- Expose non-essential colors on bones, bounding box, clipping, and path attachments. +- Timeline API has been extended to support component-wise timelines exported by Spine 4.0. +- Added `AnimationState.clearNext()` which removes the given `TrackEntry` and all entries after it. +- Added support for texture atlas key value pairs, see `AtlasRegion.names` and `AtlasRegion.values`. +- Added support for reverse animation playback via `TrackEntry.reverse`. +- Added proportional spacing mode support for path constraints. +- Added support for uniform scaling for two bone IK. +- Fixed applying a constraint reverting changes from other constraints. +- `AssetManager` constructor now takes an option `Downloader` instance. Used to download assets only once and share them between `AssetManager` instances. +- Added web worker support to `AssetManager`. +- Added various default parameters to `AnimationState` methods for ease of use. +- Added `SpineCanvas`, a simpler way to render a scene via spine-webgl. See `spine-ts/spine-webgl/examples/barebones.html` and `spine-ts/spine-webgl/examples/mix-and-match.html`. ### WebGL backend -* **Breaking change:** removed `SharedAssetManager`. Use `AssetManager` with a shared `Downloader` instance instead. -* **Breaking change:** the global object `spine.webgl` no longer exists. All classes and functions are now exposed on the global `spine` object directly. Simply replace any reference to `spine.webgl.` in your source code with `spine.`. + +- **Breaking change:** removed `SharedAssetManager`. Use `AssetManager` with a shared `Downloader` instance instead. +- **Breaking change:** the global object `spine.webgl` no longer exists. All classes and functions are now exposed on the global `spine` object directly. Simply replace any reference to `spine.webgl.` in your source code with `spine.`. ### Canvas backend -* Renderer now accounts for whitespace stripping. -* **Breaking change:** the global object `spine.canvas` no longer exists. All classes and functions are now exposed on the global `spine` object directly. Simply replace any reference to `spine.canvas.` in your source code with `spine.`. + +- Renderer now accounts for whitespace stripping. +- **Breaking change:** the global object `spine.canvas` no longer exists. All classes and functions are now exposed on the global `spine` object directly. Simply replace any reference to `spine.canvas.` in your source code with `spine.`. ### Three.js backend -* `SkeletonMesh` now takes an optional `SkeletonMeshMaterialParametersCustomizer` function that allows you to modify the `ShaderMaterialParameters` before the material is finalized. Use it to modify things like THREEJS' `Material.depthTest` etc. See #1590. -* **Breaking change:** the global object `spine.canvas` no longer exists. All classes and functions are now exposed on the global `spine` object directly. Simply replace any reference to `spine.threejs.` in your source code with `spine.`. -* **Breaking change:** the default fragment shader of `SkeletonMeshMaterial` now explicitely discards fragments with alpha < 0.5. See https://github.com/EsotericSoftware/spine-runtimes/issues/1985 -* **Breaking change:** reversal of the previous breaking change: the default fragment shader of `SkeletonMeshMaterial` does no longer discard fragments with alpha < 0.5. Pass a `SkeletonMeshMaterialParametersCustomizer` to the `SkeletonMesh` constructor, and modify `parameters.alphaTest` to be > 0. + +- `SkeletonMesh` now takes an optional `SkeletonMeshMaterialParametersCustomizer` function that allows you to modify the `ShaderMaterialParameters` before the material is finalized. Use it to modify things like THREEJS' `Material.depthTest` etc. See #1590. +- **Breaking change:** the global object `spine.canvas` no longer exists. All classes and functions are now exposed on the global `spine` object directly. Simply replace any reference to `spine.threejs.` in your source code with `spine.`. +- **Breaking change:** the default fragment shader of `SkeletonMeshMaterial` now explicitely discards fragments with alpha < 0.5. See https://github.com/EsotericSoftware/spine-runtimes/issues/1985 +- **Breaking change:** reversal of the previous breaking change: the default fragment shader of `SkeletonMeshMaterial` does no longer discard fragments with alpha < 0.5. Pass a `SkeletonMeshMaterialParametersCustomizer` to the `SkeletonMesh` constructor, and modify `parameters.alphaTest` to be > 0. ### Player -* Added `SpinePlayerConfig.rawDataURIs`. Allows to embed data URIs for skeletons, atlases and atlas page images directly in the HTML/JS without needing to load it from a separate file. See the example for a demonstration. -* Added `SpinePlayerConfig.frame`. If set, the callback is called each frame, before the skeleton is posed or drawn. -* Added `SpinePlayerConfig.update`. If set, the callback is called each frame, just after the skeleton is posed. -* Added `SpinePlayerConfig.draw`. If set, the callback is called each frame, just after the skeleton is drawn. -* Added `SpinePlayerConfig.downloader`. The `spine.Downloader` instance can be shared between players so assets are only downloaded once. -* If `SpinePlayerConfig.jsonURL` ends with an anchor, the anchor text is used to find the skeleton in the specified JSON file. -* Added `SpinePlayer.dispose()`, disposes all CPU and GPU side resources, removes all listeners, and removes the player DOM from the parent. + +- Added `SpinePlayerConfig.rawDataURIs`. Allows to embed data URIs for skeletons, atlases and atlas page images directly in the HTML/JS without needing to load it from a separate file. See the example for a demonstration. +- Added `SpinePlayerConfig.frame`. If set, the callback is called each frame, before the skeleton is posed or drawn. +- Added `SpinePlayerConfig.update`. If set, the callback is called each frame, just after the skeleton is posed. +- Added `SpinePlayerConfig.draw`. If set, the callback is called each frame, just after the skeleton is drawn. +- Added `SpinePlayerConfig.downloader`. The `spine.Downloader` instance can be shared between players so assets are only downloaded once. +- If `SpinePlayerConfig.jsonURL` ends with an anchor, the anchor text is used to find the skeleton in the specified JSON file. +- Added `SpinePlayer.dispose()`, disposes all CPU and GPU side resources, removes all listeners, and removes the player DOM from the parent. # 3.8 ## AS3 -* **Breaking changes** - * Renamed `Slot#getAttachmentVertices()` to `Slot#getDeform()`. - * Changed the `.json` curve format and added more assumptions for omitted values, reducing the average size of JSON exports. - * Renamed `Skin#addAttachment()` to `Skin#setAttachment()`. - * Removed `VertexAttachment#applyDeform()` and replaced it with `VertexAttachment#deformAttachment`. The attachment set on this field is used to decide if a `DeformTimeline` should be applied to the attachment active on the slot to which the timeline is applied. - * Removed `inheritDeform` field, getter, and setter from `MeshAttachment`. - * Changed `.skel` binary format, added a string table. References to strings in the data resolve to this string table, reducing storage size of binary files considerably. - * Changed the `.json` and `.skel` file formats to accomodate the new feature and file size optimiations. Old projects must be exported with Spine 3.8.20+ to be compatible with the 3.8 Spine runtimes. - * Switched projects from FDT to Visual Studio Code. See updated `README.md` files for instructions. -* **Additions** - * Added `SkeletonBinary` to load binary `.skel` files. See `MixAndMatchExample.as` in `spine-startling-example`. - * Added `x` and `y` coordinates for setup pose AABB in `SkeletonData`. - * Added support for rotated mesh region UVs. - * Added skin-specific bones and constraints which are only updated if the skeleton's current skin contains them. - * Improved Skin API to make it easier to handle mix-and-match use cases. - * Added `Skin#getAttachments()`. Returns all attachments in the skin. - * Added `Skin#getAttachments(int slotIndex)`. Returns all attachements in the skin for the given slot index. - * Added `Skin#addSkin(Skin skin)`. Adds all attachments, bones, and skins from the specified skin to this skin. - * Added `Skin#copySkin(Skin skin)`. Adds all attachments, bones, and skins from the specified skin to this skin. `VertexAttachment` are shallowly copied and will retain any parent mesh relationship. All other attachment types are deep copied. - * Added `Attachment#copy()` to all attachment type implementations. This lets you deep copy an attachment to modify it independently from the original, i.e. when programmatically changing texture coordinates or mesh vertices. - * Added `MeshAttachment#newLinkedMesh()`, creates a linked mesh linkted to either the original mesh, or the parent of the original mesh. - * Added IK softness. +- **Breaking changes** + + - Renamed `Slot#getAttachmentVertices()` to `Slot#getDeform()`. + - Changed the `.json` curve format and added more assumptions for omitted values, reducing the average size of JSON exports. + - Renamed `Skin#addAttachment()` to `Skin#setAttachment()`. + - Removed `VertexAttachment#applyDeform()` and replaced it with `VertexAttachment#deformAttachment`. The attachment set on this field is used to decide if a `DeformTimeline` should be applied to the attachment active on the slot to which the timeline is applied. + - Removed `inheritDeform` field, getter, and setter from `MeshAttachment`. + - Changed `.skel` binary format, added a string table. References to strings in the data resolve to this string table, reducing storage size of binary files considerably. + - Changed the `.json` and `.skel` file formats to accomodate the new feature and file size optimiations. Old projects must be exported with Spine 3.8.20+ to be compatible with the 3.8 Spine runtimes. + - Switched projects from FDT to Visual Studio Code. See updated `README.md` files for instructions. + +- **Additions** + - Added `SkeletonBinary` to load binary `.skel` files. See `MixAndMatchExample.as` in `spine-startling-example`. + - Added `x` and `y` coordinates for setup pose AABB in `SkeletonData`. + - Added support for rotated mesh region UVs. + - Added skin-specific bones and constraints which are only updated if the skeleton's current skin contains them. + - Improved Skin API to make it easier to handle mix-and-match use cases. + - Added `Skin#getAttachments()`. Returns all attachments in the skin. + - Added `Skin#getAttachments(int slotIndex)`. Returns all attachements in the skin for the given slot index. + - Added `Skin#addSkin(Skin skin)`. Adds all attachments, bones, and skins from the specified skin to this skin. + - Added `Skin#copySkin(Skin skin)`. Adds all attachments, bones, and skins from the specified skin to this skin. `VertexAttachment` are shallowly copied and will retain any parent mesh relationship. All other attachment types are deep copied. + - Added `Attachment#copy()` to all attachment type implementations. This lets you deep copy an attachment to modify it independently from the original, i.e. when programmatically changing texture coordinates or mesh vertices. + - Added `MeshAttachment#newLinkedMesh()`, creates a linked mesh linkted to either the original mesh, or the parent of the original mesh. + - Added IK softness. ### Starling -* Added `MixAndMatchExample.as` to demonstrate the new Skin API additions and how to load binary `.skel` files. -* Switched projects from FDT to Visual Studio Code. See updated `README.md` files for instructions. + +- Added `MixAndMatchExample.as` to demonstrate the new Skin API additions and how to load binary `.skel` files. +- Switched projects from FDT to Visual Studio Code. See updated `README.md` files for instructions. ## C -* **Breaking changes** - * Renamed `spSlot#attachmentVertices` to `spSlot#deform`. - * Changed the `.json` curve format and added more assumptions for omitted values, reducing the average size of JSON exports. - * Renamed `spSkin_addAttachment()` to `Skin#spSkin_addAttachment()`. - * Removed `spVertexAttachment_applyDeform()` and replaced it with `VertexAttachment#deformAttachment`. The attachment set on this field is used to decide if a `spDeformTimeline` should be applied to the attachment active on the slot to which the timeline is applied. - * Removed `inheritDeform` field, getter, and setter from `spMeshAttachment`. - * Changed `.skel` binary format, added a string table. References to strings in the data resolve to this string table, reducing storage size of binary files considerably. - * Changed the `.json` and `.skel` file formats to accomodate the new feature and file size optimiations. Old projects must be exported with Spine 3.8.20+ to be compatible with the 3.8 Spine runtimes. -* **Additions** - * Added `x` and `y` coordinates for setup pose AABB in `spSkeletonData`. - * Added support for rotated mesh region UVs. - * Added skin-specific bones and constraints which are only updated if the skeleton's current skin contains them. - * Improved Skin API to make it easier to handle mix-and-match use cases. - * Added `spSkin_getAttachments()`. Returns all attachments in the skin. - * Added `spSkin_getAttachments(int slotIndex)`. Returns all attachements in the skin for the given slot index. - * Added `spSkin_addSkin(spSkin* skin)`. Adds all attachments, bones, and skins from the specified skin to this skin. - * Added `spSkin_copySkin(spSkin* skin)`. Adds all attachments, bones, and skins from the specified skin to this skin. `spVertexAttachment` are shallowly copied and will retain any parent mesh relationship. All other attachment types are deep copied. - * All attachments inserted into skins are reference counted. When the last skin referencing an attachment is disposed, the attachment will also be disposed. - * Added `spAttachment_copy()` to all attachment type implementations. This lets you deep copy an attachment to modify it independently from the original, i.e. when programmatically changing texture coordinates or mesh vertices. - * Added `spMeshAttachment_newLinkedMesh()`, creates a linked mesh linkted to either the original mesh, or the parent of the original mesh. - * Added IK softness. +- **Breaking changes** + + - Renamed `spSlot#attachmentVertices` to `spSlot#deform`. + - Changed the `.json` curve format and added more assumptions for omitted values, reducing the average size of JSON exports. + - Renamed `spSkin_addAttachment()` to `Skin#spSkin_addAttachment()`. + - Removed `spVertexAttachment_applyDeform()` and replaced it with `VertexAttachment#deformAttachment`. The attachment set on this field is used to decide if a `spDeformTimeline` should be applied to the attachment active on the slot to which the timeline is applied. + - Removed `inheritDeform` field, getter, and setter from `spMeshAttachment`. + - Changed `.skel` binary format, added a string table. References to strings in the data resolve to this string table, reducing storage size of binary files considerably. + - Changed the `.json` and `.skel` file formats to accomodate the new feature and file size optimiations. Old projects must be exported with Spine 3.8.20+ to be compatible with the 3.8 Spine runtimes. + +- **Additions** + - Added `x` and `y` coordinates for setup pose AABB in `spSkeletonData`. + - Added support for rotated mesh region UVs. + - Added skin-specific bones and constraints which are only updated if the skeleton's current skin contains them. + - Improved Skin API to make it easier to handle mix-and-match use cases. + - Added `spSkin_getAttachments()`. Returns all attachments in the skin. + - Added `spSkin_getAttachments(int slotIndex)`. Returns all attachements in the skin for the given slot index. + - Added `spSkin_addSkin(spSkin* skin)`. Adds all attachments, bones, and skins from the specified skin to this skin. + - Added `spSkin_copySkin(spSkin* skin)`. Adds all attachments, bones, and skins from the specified skin to this skin. `spVertexAttachment` are shallowly copied and will retain any parent mesh relationship. All other attachment types are deep copied. + - All attachments inserted into skins are reference counted. When the last skin referencing an attachment is disposed, the attachment will also be disposed. + - Added `spAttachment_copy()` to all attachment type implementations. This lets you deep copy an attachment to modify it independently from the original, i.e. when programmatically changing texture coordinates or mesh vertices. + - Added `spMeshAttachment_newLinkedMesh()`, creates a linked mesh linkted to either the original mesh, or the parent of the original mesh. + - Added IK softness. ### Cocos2d-Objc -* Added mix-and-match example to demonstrate the new Skin API. -* Added `IKExample`. -* Added `SkeletonAnimation preUpdateWorldTransformsListener` and `SkeletonAnimation postUpdateWorldTransformsListener`. When set, these callbacks will be invokved before and after the skeleton's `updateWorldTransforms()` method is called. See the `IKExample` how it can be used. + +- Added mix-and-match example to demonstrate the new Skin API. +- Added `IKExample`. +- Added `SkeletonAnimation preUpdateWorldTransformsListener` and `SkeletonAnimation postUpdateWorldTransformsListener`. When set, these callbacks will be invokved before and after the skeleton's `updateWorldTransforms()` method is called. See the `IKExample` how it can be used. ### SFML -* Added mix-and-match example to demonstrate the new Skin API. -* Added `IKExample`. + +- Added mix-and-match example to demonstrate the new Skin API. +- Added `IKExample`. ## C++ -* **Breaking Changes** - * Renamed `Slot::getAttachmentVertices()` to `Slot::getDeform()`. - * Changed the `.json` curve format and added more assumptions for omitted values, reducing the average size of JSON exports. - * Renamed `Skin::addAttachment()` to `Skin::setAttachment()`. - * Removed `VertexAttachment::applyDeform()` and replaced it with `VertexAttachment::getDeformAttachment()`. The attachment set on this field is used to decide if a `DeformTimeline` should be applied to the attachment active on the slot to which the timeline is applied. - * Removed `_inheritDeform` field, getter, and setter from `MeshAttachment`. - * Changed `.skel` binary format, added a string table. References to strings in the data resolve to this string table, reducing storage size of binary files considerably. - * Changed the `.json` and `.skel` file formats to accomodate the new feature and file size optimiations. Old projects must be exported with Spine 3.8.20+ to be compatible with the 3.8 Spine runtimes. -* **Additions** - * `AnimationState` and `TrackEntry` now also accept a subclass of `AnimationStateListenerObject` as a listener for animation events in the overloaded `setListener()` method. - * `SkeletonBinary` and `SkeletonJson` now parse and set all non-essential data like audio path. - * Added `x` and `y` coordinates for setup pose AABB in `SkeletonData`. - * Added support for rotated mesh region UVs. - * Added skin-specific bones and constraints which are only updated if the skeleton's current skin contains them. - * Improved Skin API to make it easier to handle mix-and-match use cases. - * Added `Skin#getAttachments()`. Returns all attachments in the skin. - * Added `Skin#getAttachments(int slotIndex)`. Returns all attachements in the skin for the given slot index. - * Added `Skin#addSkin(Skin &skin)`. Adds all attachments, bones, and skins from the specified skin to this skin. - * Added `Skin#copySkin(Skin &skin)`. Adds all attachments, bones, and skins from the specified skin to this skin. `VertexAttachment` are shallowly copied and will retain any parent mesh relationship. All other attachment types are deep copied. - * All attachments inserted into skins are reference counted. When the last skin referencing an attachment is disposed, the attachment will also be disposed. - * Added `Attachment#copy()` to all attachment type implementations. This lets you deep copy an attachment to modify it independently from the original, i.e. when programmatically changing texture coordinates or mesh vertices. - * Added `MeshAttachment#newLinkedMesh()`, creates a linked mesh linkted to either the original mesh, or the parent of the original mesh. - * Added IK softness. - * Exposed `x` and `y` on `SkeletonData` through getters and setters. +- **Breaking Changes** + + - Renamed `Slot::getAttachmentVertices()` to `Slot::getDeform()`. + - Changed the `.json` curve format and added more assumptions for omitted values, reducing the average size of JSON exports. + - Renamed `Skin::addAttachment()` to `Skin::setAttachment()`. + - Removed `VertexAttachment::applyDeform()` and replaced it with `VertexAttachment::getDeformAttachment()`. The attachment set on this field is used to decide if a `DeformTimeline` should be applied to the attachment active on the slot to which the timeline is applied. + - Removed `_inheritDeform` field, getter, and setter from `MeshAttachment`. + - Changed `.skel` binary format, added a string table. References to strings in the data resolve to this string table, reducing storage size of binary files considerably. + - Changed the `.json` and `.skel` file formats to accomodate the new feature and file size optimiations. Old projects must be exported with Spine 3.8.20+ to be compatible with the 3.8 Spine runtimes. + +- **Additions** + - `AnimationState` and `TrackEntry` now also accept a subclass of `AnimationStateListenerObject` as a listener for animation events in the overloaded `setListener()` method. + - `SkeletonBinary` and `SkeletonJson` now parse and set all non-essential data like audio path. + - Added `x` and `y` coordinates for setup pose AABB in `SkeletonData`. + - Added support for rotated mesh region UVs. + - Added skin-specific bones and constraints which are only updated if the skeleton's current skin contains them. + - Improved Skin API to make it easier to handle mix-and-match use cases. + - Added `Skin#getAttachments()`. Returns all attachments in the skin. + - Added `Skin#getAttachments(int slotIndex)`. Returns all attachements in the skin for the given slot index. + - Added `Skin#addSkin(Skin &skin)`. Adds all attachments, bones, and skins from the specified skin to this skin. + - Added `Skin#copySkin(Skin &skin)`. Adds all attachments, bones, and skins from the specified skin to this skin. `VertexAttachment` are shallowly copied and will retain any parent mesh relationship. All other attachment types are deep copied. + - All attachments inserted into skins are reference counted. When the last skin referencing an attachment is disposed, the attachment will also be disposed. + - Added `Attachment#copy()` to all attachment type implementations. This lets you deep copy an attachment to modify it independently from the original, i.e. when programmatically changing texture coordinates or mesh vertices. + - Added `MeshAttachment#newLinkedMesh()`, creates a linked mesh linkted to either the original mesh, or the parent of the original mesh. + - Added IK softness. + - Exposed `x` and `y` on `SkeletonData` through getters and setters. ### Cocos2d-x -* Updated to cocos2d-x 3.17.1 -* Added mix-and-match example to demonstrate the new Skin API. -* Exmaple project requires Visual Studio 2019 on Windows -* Added `IKExample`. -* Added `SkeletonAnimation::setPreUpdateWorldTransformsListener()` and `SkeletonAnimation::setPreUpdateWorldTransformsListener()`. When set, these callbacks will be invokved before and after the skeleton's `updateWorldTransforms()` method is called. See the `IKExample` how it can be used. + +- Updated to cocos2d-x 3.17.1 +- Added mix-and-match example to demonstrate the new Skin API. +- Exmaple project requires Visual Studio 2019 on Windows +- Added `IKExample`. +- Added `SkeletonAnimation::setPreUpdateWorldTransformsListener()` and `SkeletonAnimation::setPreUpdateWorldTransformsListener()`. When set, these callbacks will be invokved before and after the skeleton's `updateWorldTransforms()` method is called. See the `IKExample` how it can be used. ### SFML -* Added mix-and-match example to demonstrate the new Skin API. + +- Added mix-and-match example to demonstrate the new Skin API. ### UE4 -* Added `bAutoPlaying` flag to `USpineSkeletonAnimationComponent`. When `false`, the component will not update the internal animation state and skeleton. -* Updated example project to UE 4.22. -* (Re-)Importing Spine assets will perform a version compatibility check and alert users about mismatches in editor mode. -* `USpineSkeletonRendererComponent` allows passing a `USpineSkeletonComponent` to update it. This way, the renderer component can be used without a skeleton component on the same actor. -* Added blueprint-callable methods to `SpineSkeletonComponent` and `SpineSkeletonAnimationComponent` to query and set skins, and enumerate bones, slots, and animations. -* Extended skeleton data editor preview. The preview now shows bones, slots, animations, and skins found in the skeleton data. See this [blog post](http://esotericsoftware.com/blog/Unreal-Engine-4-quality-of-life-improvements). -* Added preview animation and skin fields, allowing you to preview animations and skins right in the editor. See this [blog post](http://esotericsoftware.com/blog/Unreal-Engine-4-quality-of-life-improvements). -* Removed dependency on `RHI`, `RenderCore`, and `ShaderCore`. -* Re-importing atlases and their textures now works consistently in all situations. -* Added mix-and-match example to demonstrate the new Skin API. -* Materials on `SkeletonRendererComponent` are now blueprint read and writeable. This allows setting dynamic material instances at runtime. -* Added `InitialSkin` property to `USpineWidget`. This allows previewing different skins in the UMG Designer. Initial skins can still be overridden via blueprint events such as `On Initialized`. -* `USpineWidget` will now report its own desired size based on the setup pose dimensions of the skeleton. This is used when selecting `Size to content` on a `USpineWidget` in the designer. -* Updated example project to UE 5.2. -## C# ## -* **Breaking changes** - * **Changed `IkConstraintData.Bones` type from `List` to `ExposedList`** for unification reasons. *Note: this modification will most likely not affect user code.* - * Renamed `Slot.AttachmentVertices` to `Slot.Deform`. - * Changed the `.json` curve format and added more assumptions for omitted values, reducing the average size of JSON exports. - * Renamed `Skin.AddAttachment()` to `Skin.SetAttachment()`. - * Removed `FindAttachmentsForSlot(int slotIndex, List attachments)` and `FindNamesForSlot (int slotIndex, List names)` and replaced it with `Skin.GetAttachments(int slotIndex, List attachments)` which returns the combined `SkinEntry` object holding both name and attachment. - * Removed `VertexAttachment.ApplyDeform()` and replaced it with `VertexAttachment.DeformAttachment`. The attachment set on this field is used to decide if a `DeformTimeline` should be applied to the attachment active on the slot to which the timeline is applied. - * Removed `inheritDeform` field, getter, and setter from `MeshAttachment`. - * Changed `.skel` binary format, added a string table. References to strings in the data resolve to this string table, reducing storage size of binary files considerably. - * Changed the `.json` and `.skel` file formats to accomodate the new feature and file size optimiations. Old projects must be exported with Spine 3.8.20+ to be compatible with the 3.8 Spine runtimes. +- Added `bAutoPlaying` flag to `USpineSkeletonAnimationComponent`. When `false`, the component will not update the internal animation state and skeleton. +- Updated example project to UE 4.22. +- (Re-)Importing Spine assets will perform a version compatibility check and alert users about mismatches in editor mode. +- `USpineSkeletonRendererComponent` allows passing a `USpineSkeletonComponent` to update it. This way, the renderer component can be used without a skeleton component on the same actor. +- Added blueprint-callable methods to `SpineSkeletonComponent` and `SpineSkeletonAnimationComponent` to query and set skins, and enumerate bones, slots, and animations. +- Extended skeleton data editor preview. The preview now shows bones, slots, animations, and skins found in the skeleton data. See this [blog post](http://esotericsoftware.com/blog/Unreal-Engine-4-quality-of-life-improvements). +- Added preview animation and skin fields, allowing you to preview animations and skins right in the editor. See this [blog post](http://esotericsoftware.com/blog/Unreal-Engine-4-quality-of-life-improvements). +- Removed dependency on `RHI`, `RenderCore`, and `ShaderCore`. +- Re-importing atlases and their textures now works consistently in all situations. +- Added mix-and-match example to demonstrate the new Skin API. +- Materials on `SkeletonRendererComponent` are now blueprint read and writeable. This allows setting dynamic material instances at runtime. +- Added `InitialSkin` property to `USpineWidget`. This allows previewing different skins in the UMG Designer. Initial skins can still be overridden via blueprint events such as `On Initialized`. +- `USpineWidget` will now report its own desired size based on the setup pose dimensions of the skeleton. This is used when selecting `Size to content` on a `USpineWidget` in the designer. +- Updated example project to UE 5.2. -* **Additions** - * Added `x` and `y` coordinates for setup pose AABB in `SkeletonData`. - * Added support for rotated mesh region UVs. - * Added skin-specific bones and constraints which are only updated if the skeleton's current skin contains them. - * Improved Skin API to make it easier to handle mix-and-match use cases. - * Added `Skin.GetAttachments()`. Returns all attachments in the skin. - * Added `Skin.GetAttachments(int slotIndex, List attachments)`. Returns all attachements in the skin for the given slot index. This method replaces `FindAttachmentsForSlot` and `FindNamesForSlot`. - * Added `Skin.AddSkin(Skin skin)`. Adds all attachments, bones, and skins from the specified skin to this skin. - * Added `Skin.CopySkin(Skin skin)`. Adds all attachments, bones, and skins from the specified skin to this skin. `VertexAttachment` are shallowly copied and will retain any parent mesh relationship. All other attachment types are deep copied. - * Added `Attachment.Copy()` to all attachment type implementations. This lets you deep copy an attachment to modify it independently from the original, i.e. when programmatically changing texture coordinates or mesh vertices. - * Added `MeshAttachment.NewLinkedMesh()`, creates a linked mesh linkted to either the original mesh, or the parent of the original mesh. - * Added IK softness. +## C# + +- **Breaking changes** + + - **Changed `IkConstraintData.Bones` type from `List` to `ExposedList`** for unification reasons. _Note: this modification will most likely not affect user code._ + - Renamed `Slot.AttachmentVertices` to `Slot.Deform`. + - Changed the `.json` curve format and added more assumptions for omitted values, reducing the average size of JSON exports. + - Renamed `Skin.AddAttachment()` to `Skin.SetAttachment()`. + - Removed `FindAttachmentsForSlot(int slotIndex, List attachments)` and `FindNamesForSlot (int slotIndex, List names)` and replaced it with `Skin.GetAttachments(int slotIndex, List attachments)` which returns the combined `SkinEntry` object holding both name and attachment. + - Removed `VertexAttachment.ApplyDeform()` and replaced it with `VertexAttachment.DeformAttachment`. The attachment set on this field is used to decide if a `DeformTimeline` should be applied to the attachment active on the slot to which the timeline is applied. + - Removed `inheritDeform` field, getter, and setter from `MeshAttachment`. + - Changed `.skel` binary format, added a string table. References to strings in the data resolve to this string table, reducing storage size of binary files considerably. + - Changed the `.json` and `.skel` file formats to accomodate the new feature and file size optimiations. Old projects must be exported with Spine 3.8.20+ to be compatible with the 3.8 Spine runtimes. + +- **Additions** + - Added `x` and `y` coordinates for setup pose AABB in `SkeletonData`. + - Added support for rotated mesh region UVs. + - Added skin-specific bones and constraints which are only updated if the skeleton's current skin contains them. + - Improved Skin API to make it easier to handle mix-and-match use cases. + - Added `Skin.GetAttachments()`. Returns all attachments in the skin. + - Added `Skin.GetAttachments(int slotIndex, List attachments)`. Returns all attachements in the skin for the given slot index. This method replaces `FindAttachmentsForSlot` and `FindNamesForSlot`. + - Added `Skin.AddSkin(Skin skin)`. Adds all attachments, bones, and skins from the specified skin to this skin. + - Added `Skin.CopySkin(Skin skin)`. Adds all attachments, bones, and skins from the specified skin to this skin. `VertexAttachment` are shallowly copied and will retain any parent mesh relationship. All other attachment types are deep copied. + - Added `Attachment.Copy()` to all attachment type implementations. This lets you deep copy an attachment to modify it independently from the original, i.e. when programmatically changing texture coordinates or mesh vertices. + - Added `MeshAttachment.NewLinkedMesh()`, creates a linked mesh linkted to either the original mesh, or the parent of the original mesh. + - Added IK softness. ### Unity -* **Breaking changes** - * **Officially supported Unity versions are 2017.1-2020.2**. - * **Spine `.asmdef` files are again active by default**. They have previously been deactivated to `.txt` extension which is now no longer necessary. - * **Removed PoseSkeleton() and PoseWithAnimation()** extension methods to prevent issues where animations are not mixed out. Problem was that these methods did not set AnimationState, leaving incorrect state at e.g. attachments enabled at slots when starting subsequent animations. As a replacement you can use `AnimationState.ClearTrack(0);` followed by `var entry = AnimationState.SetAnimation(0, animation, loop); entry.TrackTime = time` to achieve similar behaviour. - * **The `Shadow alpha cutoff` shader parameter is now respecting slot-color alpha** values at all Spine shaders. A fragment's texture color alpha is multiplied with slot-color alpha before the result is tested against the `Shadow alpha cutoff` threshold. - * **Removed redundant `Attachment.GetClone()` and `MeshAttachment.GetLinkedClone()` extension methods**. Use methods `Attachment.Copy` and `MeshAttachment.NewLinkedMesh()` instead. - * **Renamed extension method `Attachment.GetClone(bool cloneMeshesAsLinked)` to `Attachment.GetCopy(bool cloneMeshesAsLinked)`** to follow the naming scheme of the Spine API. - * `SkeletonDataAsset.atlasAssets` is now an array of the base class `AtlasAssetBase` instead of `SpineAtlasAsset`, which provides `IEnumerable<> Materials` instead of `List<> materials`. Replace any access via `atlasAsset.materials[0]` with `atlasAsset.Materials.First()` and add a `using System.Linq;` statement. - * **Changed `MeshAttachment.GetLinkedMesh()` method signatures:** removed optional parameters `bool inheritDeform = true, bool copyOriginalProperties = false`. - * Changed namespace `Spine.Unity.Modules` to `Spine.Unity` and `Spine.Unity.Examples` after restructuring (see section below) in respective classes: - * When receiving namespace related errors, replace using statements of `using Spine.Unity.Modules.AttachmentTools;` with `using Spine.Unity.AttachmentTools;`. You can remove `using Spine.Unity.Modules;` statements when a `using Spine.Unity` statement is already present in the file. - * `AttachmentTools`, `SkeletonPartsRenderer`, `SkeletonRenderSeparator`, `SkeletonRendererCustomMaterials` changed to namespace `Spine.Unity`. - * `SkeletonGhost`, `SkeletonGhostRenderer`, `AtlasRegionAttacher`, `SkeletonGraphicMirror`, `SkeletonRagdoll`, `SkeletonRagdoll2D`, `SkeletonUtilityEyeConstraint`, `SkeletonUtilityGroundConstraint`, `SkeletonUtilityKinematicShadow` changed to namespace `Spine.Unity.Examples`. - * Split `Editor/Utility/SpineEditorUtilities` class into multiple files with partial class qualifier. - * Nested classes `SpineEditorUtilities.AssetUtility` and `SpineEditorUtilities.EditorInstantiation` are now no longer nested. If you receive namespace related errors, replace any occurrance of - * `SpineEditorUtilities.AssetUtility` with `AssetUtility` and - * `SpineEditorUtilities.EditorInstantiation` with `EditorInstantiation`. - * **Timeline Support has been moved to a separate UPM Package** Previously the Spine Timeline integration was located in the `Modules/Timeline` directory and was deactivated by default, making it necessary to activate it via the Spine Preferences. Now the Timeline integration has been moved to an additional UPM package which can be found under `Modules/com.esotericsoftware.spine.timeline`. - * **Installation:** You can download the Unity Package Manager (UPM) package via the [download page](http://esotericsoftware.com/spine-unity-download) or find it in the [spine-runtimes/spine-unity/Modules](https://github.com/EsotericSoftware/spine-runtimes/tree/3.8-beta/spine-unity/Modules) subdirectory on the git repository. You can then either unzip (copy if using git) the package to - a) the `Packages` directory in your project where it will automatically be loaded, or - b) to an arbitrary directory outside the Assets directory and then open Package Manager in Unity, select the `+` icon, choose `Add package from disk..` and point it to the package.json file. - The Project panel should now show an entry `Spine Timeline Extensions` under `Packages`. If the directory is not yet listed, you will need to close and re-open Unity to have it display the directory and its contents. - * `SkeletonMecanim`'s `Layer Mix Mode` enum name `MixMode.SpineStyle` has been renamed to `MixMode.Hard`. This is most likely not set via code and thus unlikely to be a problem. Serialized scenes and prefabs are unaffected. - * `SkeletonRootMotion` and `SkeletonMecanimRootMotion` components now support arbitrary bones in the hierarchy as `Root Motion Bone`. Previously there were problems when selecting a non-root bone as `Root Motion Bone`. `Skeleton.ScaleX` and `.ScaleY` and parent bone scale is now respected as well. +- **Breaking changes** -* **Additions** - * **Spine Preferences stored in Assets/Editor/SpineSettings.asset** Now Spine uses the new `SettingsProvider` API, storing settings in a SpineSettings.asset file which can be shared with team members. Your old preferences are automatically migrated to the new system. - * Added support for Unity's SpriteMask to `SkeletonAnimation` and `SkeletonMecanim`. All mask interaction modes are supported. See this [blog post](http://esotericsoftware.com/blog/Unity-SpriteMask-and-RectMask2D-support). - * Added support for Unity's RectMask2D to SkeletonGraphics. See this [blog post](http://esotericsoftware.com/blog/Unity-SpriteMask-and-RectMask2D-support). - * Added `Create 2D Hinge Chain` button at `SkeletonUtilityBone` inspector, previously only `Create 3D Hinge Chain` was available. - * **Now supporting Lightweight Render Pipeline (LWRP) through an additional UPM package.** - * **Installation:** You can download the Unity Package Manager (UPM) package via the [download page](http://esotericsoftware.com/spine-unity-download) or find it in the [spine-runtimes/spine-unity/Modules](https://github.com/EsotericSoftware/spine-runtimes/tree/3.8-beta/spine-unity/Modules) subdirectory on the git repository. You can then either unzip (copy if using git) the package to - * a) the `Packages` directory in your project where it will automatically be loaded, or - * b) to an arbitrary directory outside the Assets directory and then open Package Manager in Unity, select the `+` icon, choose `Add package from disk..` and point it to the package.json file. + - **Officially supported Unity versions are 2017.1-2020.2**. + - **Spine `.asmdef` files are again active by default**. They have previously been deactivated to `.txt` extension which is now no longer necessary. + - **Removed PoseSkeleton() and PoseWithAnimation()** extension methods to prevent issues where animations are not mixed out. Problem was that these methods did not set AnimationState, leaving incorrect state at e.g. attachments enabled at slots when starting subsequent animations. As a replacement you can use `AnimationState.ClearTrack(0);` followed by `var entry = AnimationState.SetAnimation(0, animation, loop); entry.TrackTime = time` to achieve similar behaviour. + - **The `Shadow alpha cutoff` shader parameter is now respecting slot-color alpha** values at all Spine shaders. A fragment's texture color alpha is multiplied with slot-color alpha before the result is tested against the `Shadow alpha cutoff` threshold. + - **Removed redundant `Attachment.GetClone()` and `MeshAttachment.GetLinkedClone()` extension methods**. Use methods `Attachment.Copy` and `MeshAttachment.NewLinkedMesh()` instead. + - **Renamed extension method `Attachment.GetClone(bool cloneMeshesAsLinked)` to `Attachment.GetCopy(bool cloneMeshesAsLinked)`** to follow the naming scheme of the Spine API. + - `SkeletonDataAsset.atlasAssets` is now an array of the base class `AtlasAssetBase` instead of `SpineAtlasAsset`, which provides `IEnumerable<> Materials` instead of `List<> materials`. Replace any access via `atlasAsset.materials[0]` with `atlasAsset.Materials.First()` and add a `using System.Linq;` statement. + - **Changed `MeshAttachment.GetLinkedMesh()` method signatures:** removed optional parameters `bool inheritDeform = true, bool copyOriginalProperties = false`. + - Changed namespace `Spine.Unity.Modules` to `Spine.Unity` and `Spine.Unity.Examples` after restructuring (see section below) in respective classes: + - When receiving namespace related errors, replace using statements of `using Spine.Unity.Modules.AttachmentTools;` with `using Spine.Unity.AttachmentTools;`. You can remove `using Spine.Unity.Modules;` statements when a `using Spine.Unity` statement is already present in the file. + - `AttachmentTools`, `SkeletonPartsRenderer`, `SkeletonRenderSeparator`, `SkeletonRendererCustomMaterials` changed to namespace `Spine.Unity`. + - `SkeletonGhost`, `SkeletonGhostRenderer`, `AtlasRegionAttacher`, `SkeletonGraphicMirror`, `SkeletonRagdoll`, `SkeletonRagdoll2D`, `SkeletonUtilityEyeConstraint`, `SkeletonUtilityGroundConstraint`, `SkeletonUtilityKinematicShadow` changed to namespace `Spine.Unity.Examples`. + - Split `Editor/Utility/SpineEditorUtilities` class into multiple files with partial class qualifier. + - Nested classes `SpineEditorUtilities.AssetUtility` and `SpineEditorUtilities.EditorInstantiation` are now no longer nested. If you receive namespace related errors, replace any occurrance of + - `SpineEditorUtilities.AssetUtility` with `AssetUtility` and + - `SpineEditorUtilities.EditorInstantiation` with `EditorInstantiation`. + - **Timeline Support has been moved to a separate UPM Package** Previously the Spine Timeline integration was located in the `Modules/Timeline` directory and was deactivated by default, making it necessary to activate it via the Spine Preferences. Now the Timeline integration has been moved to an additional UPM package which can be found under `Modules/com.esotericsoftware.spine.timeline`. + - **Installation:** You can download the Unity Package Manager (UPM) package via the [download page](http://esotericsoftware.com/spine-unity-download) or find it in the [spine-runtimes/spine-unity/Modules](https://github.com/EsotericSoftware/spine-runtimes/tree/3.8-beta/spine-unity/Modules) subdirectory on the git repository. You can then either unzip (copy if using git) the package to + a) the `Packages` directory in your project where it will automatically be loaded, or + b) to an arbitrary directory outside the Assets directory and then open Package Manager in Unity, select the `+` icon, choose `Add package from disk..` and point it to the package.json file. + The Project panel should now show an entry `Spine Timeline Extensions` under `Packages`. If the directory is not yet listed, you will need to close and re-open Unity to have it display the directory and its contents. + - `SkeletonMecanim`'s `Layer Mix Mode` enum name `MixMode.SpineStyle` has been renamed to `MixMode.Hard`. This is most likely not set via code and thus unlikely to be a problem. Serialized scenes and prefabs are unaffected. + - `SkeletonRootMotion` and `SkeletonMecanimRootMotion` components now support arbitrary bones in the hierarchy as `Root Motion Bone`. Previously there were problems when selecting a non-root bone as `Root Motion Bone`. `Skeleton.ScaleX` and `.ScaleY` and parent bone scale is now respected as well. + +- **Additions** + + - **Spine Preferences stored in Assets/Editor/SpineSettings.asset** Now Spine uses the new `SettingsProvider` API, storing settings in a SpineSettings.asset file which can be shared with team members. Your old preferences are automatically migrated to the new system. + - Added support for Unity's SpriteMask to `SkeletonAnimation` and `SkeletonMecanim`. All mask interaction modes are supported. See this [blog post](http://esotericsoftware.com/blog/Unity-SpriteMask-and-RectMask2D-support). + - Added support for Unity's RectMask2D to SkeletonGraphics. See this [blog post](http://esotericsoftware.com/blog/Unity-SpriteMask-and-RectMask2D-support). + - Added `Create 2D Hinge Chain` button at `SkeletonUtilityBone` inspector, previously only `Create 3D Hinge Chain` was available. + - **Now supporting Lightweight Render Pipeline (LWRP) through an additional UPM package.** + + - **Installation:** You can download the Unity Package Manager (UPM) package via the [download page](http://esotericsoftware.com/spine-unity-download) or find it in the [spine-runtimes/spine-unity/Modules](https://github.com/EsotericSoftware/spine-runtimes/tree/3.8-beta/spine-unity/Modules) subdirectory on the git repository. You can then either unzip (copy if using git) the package to + + - a) the `Packages` directory in your project where it will automatically be loaded, or + - b) to an arbitrary directory outside the Assets directory and then open Package Manager in Unity, select the `+` icon, choose `Add package from disk..` and point it to the package.json file. > If you are using git and Unity 2019.2 or newer versions and receive an error that dependencies could not be resolved by the package manager (only higher versions of Unity's `Lightweight RP` package are available, e.g. `6.9.0` and up), please copy the prepared package-UNITYVERSION.json file for your Unity version (e.g. `package-2019.2.json`) over the existing package.json file to change the dependency accordingly. Unfortunately Unity's Package Manager does not provide a way to specify a version range for a dependency like "5.7.2 - 6.9.0" yet, so this manual step is necessary for git users. The Project panel should now show an entry `Spine Lightweight RP Shaders` under `Packages`. If the directory is not yet listed, you will need to close and re-open Unity to have it display the directory and its contents. - * **Usage:** The package provides two shaders specifically built for the lightweight render pipeline: - * `Lightweight Render Pipeline/Spine/Skeleton`, as a lightweight variant of the `Spine/Skeleton` shader, - * `Lightweight Render Pipeline/Spine/Skeleton Lit`, as a lightweight variant of the `Spine/Skeleton Lit` shader and - * `Lightweight Render Pipeline/Spine/Sprite`, as a lightweight variant of the `Spine/Sprite/Vertex Lit` and `Pixel Lit` shaders, which were not functioning in the lightweight render pipeline. The shaders can be assigned to materials as usual and will respect your settings of the assigned `LightweightRenderPipelineAsset` under `Project Settings - Graphics`. - * **Restrictions** As all Spine shaders, the LWRP shaders **do not support `Premultiply alpha` (PMA) atlas textures in Linear color space**. Please export your atlas textures as `straight alpha` textures with disabled `Premultiply alpha` setting when using Linear color space. You can check the current color space via `Project Settings - Player - Other Settings - Color Space.`. - * **Example:** You can find an example scene in the package under `com.esotericsoftware.spine.lwrp-shaders-3.8/Examples/LWRP Shaders.unity` that demonstrates usage of the LWRP shaders. - * Added `Spine/Skeleton Lit ZWrite` shader. This variant of the `Spine/Skeleton Lit` shader writes to the depth buffer with configurable depth alpha threshold. Apart from that it is identical to `Spine/Skeleton Lit`. - * Additional yield instructions to wait for animation track events `End`, `Complete` and `Interrupt`. - * `WaitForSpineAnimationComplete` now proves an additional `bool includeEndEvent` parameter, defaults to `false` (previous behaviour). - * Added a new `WaitForSpineAnimationEnd` yield instruction. - * Added a new generic `WaitForSpineAnimation` yield instruction which can be configured to wait for any combination of animation track events. It is now used as base class for `WaitForSpineAnimationComplete` and `WaitForSpineAnimationEnd`. - * Additional **Fix Draw Order** parameter at SkeletonRenderer, defaults to `disabled` (previous behaviour). + + - **Usage:** The package provides two shaders specifically built for the lightweight render pipeline: + - `Lightweight Render Pipeline/Spine/Skeleton`, as a lightweight variant of the `Spine/Skeleton` shader, + - `Lightweight Render Pipeline/Spine/Skeleton Lit`, as a lightweight variant of the `Spine/Skeleton Lit` shader and + - `Lightweight Render Pipeline/Spine/Sprite`, as a lightweight variant of the `Spine/Sprite/Vertex Lit` and `Pixel Lit` shaders, which were not functioning in the lightweight render pipeline. The shaders can be assigned to materials as usual and will respect your settings of the assigned `LightweightRenderPipelineAsset` under `Project Settings - Graphics`. + - **Restrictions** As all Spine shaders, the LWRP shaders **do not support `Premultiply alpha` (PMA) atlas textures in Linear color space**. Please export your atlas textures as `straight alpha` textures with disabled `Premultiply alpha` setting when using Linear color space. You can check the current color space via `Project Settings - Player - Other Settings - Color Space.`. + - **Example:** You can find an example scene in the package under `com.esotericsoftware.spine.lwrp-shaders-3.8/Examples/LWRP Shaders.unity` that demonstrates usage of the LWRP shaders. + + - Added `Spine/Skeleton Lit ZWrite` shader. This variant of the `Spine/Skeleton Lit` shader writes to the depth buffer with configurable depth alpha threshold. Apart from that it is identical to `Spine/Skeleton Lit`. + - Additional yield instructions to wait for animation track events `End`, `Complete` and `Interrupt`. + - `WaitForSpineAnimationComplete` now proves an additional `bool includeEndEvent` parameter, defaults to `false` (previous behaviour). + - Added a new `WaitForSpineAnimationEnd` yield instruction. + - Added a new generic `WaitForSpineAnimation` yield instruction which can be configured to wait for any combination of animation track events. It is now used as base class for `WaitForSpineAnimationComplete` and `WaitForSpineAnimationEnd`. + - Additional **Fix Draw Order** parameter at SkeletonRenderer, defaults to `disabled` (previous behaviour). Applies only when 3+ submeshes are used (2+ materials with alternating order, e.g. "A B A"). - If true, MaterialPropertyBlocks are assigned at each material to prevent aggressive batching of submeshes - by e.g. the LWRP renderer, leading to incorrect draw order (e.g. "A1 B A2" changed to "A1A2 B"). - You can leave this parameter disabled when everything is drawn correctly to save the additional performance cost. - * **Additional Timeline features.** SpineAnimationStateClip now provides a `Speed Multiplier`, a start time offset parameter `Clip In`, support for blending successive animations by overlapping tracks. An additional `Use Blend Duration` parameter *(defaults to true)* allows for automatic synchronisation of MixDuration with the current overlap blend duration. An additional Spine preferences parameter `Use Blend Duration` has been added which can be disabled to default to the previous behaviour before this update. - * Additional `SpriteMask and RectMask2D` example scene added for demonstration of mask setup and interaction. - * `Real physics hinge chains` for both 2D and 3D physics. The [SkeletonUtilityBone](http://esotericsoftware.com/spine-unity#SkeletonUtilityBone) Inspector provides an interface to create 2D and 3D hinge chains. Previously created chains have only been respecting gravity, but not momentum of the skeleton or parent bones. The new physics rig created when pressing `Create 3D Hinge Chain` and `Create 2D Hinge Chain` creates a more complex setup that also works when flipping the skeleton. Note that the chain root node is no longer parented to bones of the skeleton. This is a requirement in Unity to have momentum applied properly - do not reparent the chain root to bones of your skeleton, or you will loose any momentum applied by the skeleton's movement. - * `Outline rendering functionality for all shaders.` Every shader now provides an additional set of `Outline` parameters to enable custom outline rendering. When outline rendering is enabled via the `Material` inspector, it automatically switches the shader to the respective `Spine/Outline` shader variant. Outlines are generated by sampling neighbour pixels, so be sure to add enough transparent padding when exporting your atlas textures to fit the desired outline width. In order to enable outline rendering at a skeleton, it is recommended to first prepare an additional outline material copy and then switch the material of the target skeleton to this material. This prevents unnecessary additional runtime material copies and drawcalls. Material switching can be prepared via a [SkeletonRendererCustomMaterials](http://esotericsoftware.com/spine-unity#SkeletonRendererCustomMaterials) component and then enabled or disabled at runtime. Alternatively, you can also directly modify the `SkeletonRenderer.CustomMaterialOverride` property. - Outline rendering is fully supported on `SkeletonGraphic` shaders as well. - * Added `SkeletonRenderer.EditorSkipSkinSync` scripting API property to be able to set custom skins in editor scripts. Enable this property when overwriting the Skeleton's skin from an editor script. Without setting this parameter, changes will be overwritten by the next inspector update. Only affects Inspector synchronisation of skin with `initialSkinName`, not startup initialization. - * All `Spine/SkeletonGraphic` shaders now provide a parameter `CanvasGroup Compatible` which can be enabled to support `CanvasGroup` alpha blending. For correct results, you should then disable `Pma Vertex Colors` in the `SkeletonGraphic` Inspector, in section `Advanced` (otherwise Slot alpha will be applied twice). - * **Now supporting Universal Render Pipeline (URP), including the 2D Renderer pipeline, through an additional UPM package.** - * **Installation:** You can download the Unity Package Manager (UPM) package via the [download page](http://esotericsoftware.com/spine-unity-download) or find it in the [spine-runtimes/spine-unity/Modules](https://github.com/EsotericSoftware/spine-runtimes/tree/3.8-beta/spine-unity/Modules) subdirectory on the git repository. You can then either unzip (copy if using git) the package to - * a) the `Packages` directory in your project where it will automatically be loaded, or - * b) to an arbitrary directory outside the Assets directory and then open Package Manager in Unity, select the `+` icon, choose `Add package from disk..` and point it to the package.json file. + If true, MaterialPropertyBlocks are assigned at each material to prevent aggressive batching of submeshes + by e.g. the LWRP renderer, leading to incorrect draw order (e.g. "A1 B A2" changed to "A1A2 B"). + You can leave this parameter disabled when everything is drawn correctly to save the additional performance cost. + - **Additional Timeline features.** SpineAnimationStateClip now provides a `Speed Multiplier`, a start time offset parameter `Clip In`, support for blending successive animations by overlapping tracks. An additional `Use Blend Duration` parameter _(defaults to true)_ allows for automatic synchronisation of MixDuration with the current overlap blend duration. An additional Spine preferences parameter `Use Blend Duration` has been added which can be disabled to default to the previous behaviour before this update. + - Additional `SpriteMask and RectMask2D` example scene added for demonstration of mask setup and interaction. + - `Real physics hinge chains` for both 2D and 3D physics. The [SkeletonUtilityBone](http://esotericsoftware.com/spine-unity#SkeletonUtilityBone) Inspector provides an interface to create 2D and 3D hinge chains. Previously created chains have only been respecting gravity, but not momentum of the skeleton or parent bones. The new physics rig created when pressing `Create 3D Hinge Chain` and `Create 2D Hinge Chain` creates a more complex setup that also works when flipping the skeleton. Note that the chain root node is no longer parented to bones of the skeleton. This is a requirement in Unity to have momentum applied properly - do not reparent the chain root to bones of your skeleton, or you will loose any momentum applied by the skeleton's movement. + - `Outline rendering functionality for all shaders.` Every shader now provides an additional set of `Outline` parameters to enable custom outline rendering. When outline rendering is enabled via the `Material` inspector, it automatically switches the shader to the respective `Spine/Outline` shader variant. Outlines are generated by sampling neighbour pixels, so be sure to add enough transparent padding when exporting your atlas textures to fit the desired outline width. In order to enable outline rendering at a skeleton, it is recommended to first prepare an additional outline material copy and then switch the material of the target skeleton to this material. This prevents unnecessary additional runtime material copies and drawcalls. Material switching can be prepared via a [SkeletonRendererCustomMaterials](http://esotericsoftware.com/spine-unity#SkeletonRendererCustomMaterials) component and then enabled or disabled at runtime. Alternatively, you can also directly modify the `SkeletonRenderer.CustomMaterialOverride` property. + Outline rendering is fully supported on `SkeletonGraphic` shaders as well. + - Added `SkeletonRenderer.EditorSkipSkinSync` scripting API property to be able to set custom skins in editor scripts. Enable this property when overwriting the Skeleton's skin from an editor script. Without setting this parameter, changes will be overwritten by the next inspector update. Only affects Inspector synchronisation of skin with `initialSkinName`, not startup initialization. + - All `Spine/SkeletonGraphic` shaders now provide a parameter `CanvasGroup Compatible` which can be enabled to support `CanvasGroup` alpha blending. For correct results, you should then disable `Pma Vertex Colors` in the `SkeletonGraphic` Inspector, in section `Advanced` (otherwise Slot alpha will be applied twice). + - **Now supporting Universal Render Pipeline (URP), including the 2D Renderer pipeline, through an additional UPM package.** + + - **Installation:** You can download the Unity Package Manager (UPM) package via the [download page](http://esotericsoftware.com/spine-unity-download) or find it in the [spine-runtimes/spine-unity/Modules](https://github.com/EsotericSoftware/spine-runtimes/tree/3.8-beta/spine-unity/Modules) subdirectory on the git repository. You can then either unzip (copy if using git) the package to + + - a) the `Packages` directory in your project where it will automatically be loaded, or + - b) to an arbitrary directory outside the Assets directory and then open Package Manager in Unity, select the `+` icon, choose `Add package from disk..` and point it to the package.json file. The Project panel should now show an entry `Spine Universal RP Shaders` under `Packages`. If the directory is not yet listed, you will need to close and re-open Unity to have it display the directory and its contents. - * **Usage:** The package provides two shaders specifically built for the universal render pipeline: - * `Universal Render Pipeline/Spine/Skeleton`, as a universal variant of the `Spine/Skeleton` shader, - * `Universal Render Pipeline/Spine/Skeleton Lit`, as a universal variant of the `Spine/Skeleton Lit` shader, - * `Universal Render Pipeline/Spine/Sprite`, as a universal variant of the `Spine/Sprite/Vertex Lit` and `Pixel Lit` shaders, which were not functioning in the universal render pipeline, - * `Universal Render Pipeline/2D/Spine/Skeleton Lit`, as a universal 2D Renderer variant of the `Spine/Skeleton Lit` shader, and - * `Universal Render Pipeline/2D/Spine/Sprite`, as a universal 2D Renderer variant of the `Spine/Sprite/Vertex Lit` and `Pixel Lit` shaders. - The shaders can be assigned to materials as usual and will respect your settings of the assigned `UniversalRenderPipelineAsset` under `Project Settings - Graphics`. - * **Restrictions** As all Spine shaders, the URP shaders **do not support `Premultiply alpha` (PMA) atlas textures in Linear color space**. Please export your atlas textures as `straight alpha` textures with disabled `Premultiply alpha` setting when using Linear color space. You can check the current color space via `Project Settings - Player - Other Settings - Color Space.`. - * **Example:** You can find an example scene in the package under `com.esotericsoftware.spine.urp-shaders-3.8/Examples/URP Shaders.unity` that demonstrates usage of the URP shaders. - * Spine Preferences now provide an **`Atlas Texture Settings`** parameter for applying customizable texture import settings at all newly imported Spine atlas textures. + + - **Usage:** The package provides two shaders specifically built for the universal render pipeline: + - `Universal Render Pipeline/Spine/Skeleton`, as a universal variant of the `Spine/Skeleton` shader, + - `Universal Render Pipeline/Spine/Skeleton Lit`, as a universal variant of the `Spine/Skeleton Lit` shader, + - `Universal Render Pipeline/Spine/Sprite`, as a universal variant of the `Spine/Sprite/Vertex Lit` and `Pixel Lit` shaders, which were not functioning in the universal render pipeline, + - `Universal Render Pipeline/2D/Spine/Skeleton Lit`, as a universal 2D Renderer variant of the `Spine/Skeleton Lit` shader, and + - `Universal Render Pipeline/2D/Spine/Sprite`, as a universal 2D Renderer variant of the `Spine/Sprite/Vertex Lit` and `Pixel Lit` shaders. + The shaders can be assigned to materials as usual and will respect your settings of the assigned `UniversalRenderPipelineAsset` under `Project Settings - Graphics`. + - **Restrictions** As all Spine shaders, the URP shaders **do not support `Premultiply alpha` (PMA) atlas textures in Linear color space**. Please export your atlas textures as `straight alpha` textures with disabled `Premultiply alpha` setting when using Linear color space. You can check the current color space via `Project Settings - Player - Other Settings - Color Space.`. + - **Example:** You can find an example scene in the package under `com.esotericsoftware.spine.urp-shaders-3.8/Examples/URP Shaders.unity` that demonstrates usage of the URP shaders. + + - Spine Preferences now provide an **`Atlas Texture Settings`** parameter for applying customizable texture import settings at all newly imported Spine atlas textures. When exporting atlas textures from Spine with `Premultiply alpha` enabled (the default), you can leave it at `PMATexturePreset`. If you have disabled `Premultiply alpha`, set it to the included `StraightAlphaTexturePreset` asset. You can also create your own `TextureImporter` `Preset` asset and assign it here (include `PMA` or `Straight` in the name). In Unity versions before 2018.3 you can use `Texture2D` template assets instead of the newer `Preset` assets. Materials created for imported textures will also have the `Straight Alpha Texture` parameter configured accordingly. - * All `Sprite` shaders (including URP and LWRP extension packages) now provide an additional `Fixed Normal Space` option `World-Space`. PReviously options were limited to `View-Space` and `Model-Space`. - * `SkeletonGraphic` now fully supports [`SkeletonUtility`](http://esotericsoftware.com/spine-unity#SkeletonUtility) for generating a hierarchy of [`SkeletonUtilityBones`](http://esotericsoftware.com/spine-unity#SkeletonUtilityBone) in both modes `Follow` and `Override`. This also enables creating hinge chain physics rigs and using `SkeletonUtilityConstraints` such as `SkeletonUtilityGroundConstraint` and `SkeletonUtilityEyeConstraint` on `SkeletonGraphic`. - * Added `OnMeshAndMaterialsUpdated` callback event to `SkeletonRenderer` and `SkeletonGraphic`. It is issued at the end of `LateUpdate`, before rendering. - * Added `Skeleton-OutlineOnly` single pass shader to LWRP and URP extension modules. It can be assigned to materials as `Universal Render Pipeline/Spine/Outline/Skeleton-OutlineOnly`. This allows for separate outline child *GameObjects* that reference the existing Mesh of their parent, and re-draw the mesh using this outline shader. - * Added example component `RenderExistingMesh` to render a mesh again with different materials, as required by the new `Skeleton-OutlineOnly` shaders. - In URP the outline has to be rendered via a separate GameObject as URP does not allow multiple render passes. To add an outline to your SkeletenRenderer: - 1) Add a child GameObject and move it a bit back (e.g. position Z = 0.01). - 2) Add a `RenderExistingMesh` component, provided in the `Spine Examples/Scripts/Sample Components` directory. - 3) Copy the original material, add *_Outline* to its name and set the shader to `Universal Render Pipeline/Spine/Outline/Skeleton-OutlineOnly`. - 4) Assign this *_Outline* material at the `RenderExistingMesh` component under *Replacement Materials*. - * Added `Outline Shaders URP` example scene to URP extension module to demonstrate the above additions. - * Added support for Unity's [`SpriteAtlas`](https://docs.unity3d.com/Manual/class-SpriteAtlas.html) as atlas provider (as an alternative to `.atlas.txt` and `.png` files) alongside a skeleton data file. There is now an additional `Spine SpriteAtlas Import` tool window accessible via `Window - Spine - SpriteAtlas Import`. Additional information can be found in a new section on the [spine-unity documentation page](http://esotericsoftware.com/spine-unity#Advanced---Using-Unity-SpriteAtlas-as-Atlas-Provider). - * Added support for **multiple atlas textures at `SkeletonGraphic`**. You can enable this feature by enabling the parameter `Multiple CanvasRenders` in the `Advanced` section of the `SkeletonGraphic` Inspector. This automatically creates the required number of child `CanvasRenderer` GameObjects for each required draw call (submesh). - * Added support for **Render Separator Slots** at `SkeletonGraphic`. Render separation can be enabled directly in the `Advanced` section of the `SkeletonGraphic` Inspector, it does not require any additional components (like `SkeletonRenderSeparator` or `SkeletonPartsRenderer` for `SkeletonRenderer` components). When enabled, additional separator GameObjects will be created automatically for each separation part, and `CanvasRenderer` GameObjects re-parented to them accordingly. The separator GameObjects can be moved around and re-parented in the hierarchy according to your requirements to achieve the desired draw order within your `Canvas`. A usage example can be found in the updated `Spine Examples/Other Examples/SkeletonRenderSeparator` scene. - * Added `SkeletonGraphicCustomMaterials` component, providing functionality to override materials and textures of a `SkeletonGraphic`, similar to `SkeletonRendererCustomMaterials`. Note: overriding materials or textures per slot is not provided due to structural limitations. - * Added **Root Motion support** for `SkeletonAnimation`, `SkeletonMecanim` and `SkeletonGraphic` via new components `SkeletonRootMotion` and `SkeletonMecanimRootMotion`. The `SkeletonAnimation` and `SkeletonGraphic` component Inspector now provides a line `Root Motion` with `Add Component` and `Remove Component` buttons to add/remove the new `SkeletonRootMotion` component to your GameObject. The `SkeletonMecanim` Inspector detects whether root motion is enabled at the `Animator` component and adds a `SkeletonMecanimRootMotion` component automatically. - * `SkeletonMecanim` now provides an additional `Custom MixMode` parameter under `Mecanim Translator`. It is enabled by default in version 3.8 to maintain current behaviour, using the set `Mix Mode` for each Mecanim layer. When disabled, `SkeletonMecanim` will use the recommended `MixMode` according to the layer blend mode. Additional information can be found in the [Mecanim Translator section](http://esotericsoftware.com/spine-unity#Parameters-for-animation-blending-control) on the spine-unity documentation pages. - * Added **SkeletonGraphic Timeline support**. Added supprot for multi-track Timeline preview in the Editor outside of play mode (multi-track scrubbing). See the [Timeline-Extension-UPM-Package](http://esotericsoftware.com/spine-unity#Timeline-Extension-UPM-Package) section of the spine-unity documentation for more information. - * Added support for double-sided lighting at all `SkeletonLit` shaders (including URP and LWRP packages). - * Added frustum culling update mode parameters `Update When Invisible` (Inspector parameter) and `UpdateMode` (available via code) to all Skeleton components. This provides a simple way to disable certain updates when the `Renderer` is no longer visible (outside all cameras, culled in frustum culling). The new `UpdateMode` property allows disabling updates at a finer granularity level than disabling the whole component. Available modes are: `Nothing`, `OnlyAnimationStatus`, `EverythingExceptMesh` and `FullUpdate`. - * Added a new `Spine/Outline/OutlineOnly-ZWrite` shader to provide correct outline-only rendering. Note: the shader requires two render passes and is therefore not compatible with URP. The `Spine Examples/Other Examples/Outline Shaders` example scene has been updated to demonstrate the new shader. - * Added `OnMeshAndMaterialsUpdated` callback event to `SkeletonRenderSeparator` and `SkeletonPartsRenderer`. It is issued at the end of `LateUpdate`, before rendering. - * Added `Root Motion Scale X/Y` parameters to `SkeletonRootMotionBase` subclasses (`SkeletonRootMotion` and `SkeletonMecanimRootMotion`). Also providing `AdjustRootMotionToDistance()` and other methods to allow for easy delta compensation. Delta compensation can be used to e.g. stretch a jump to a given distance. Root motion can be adjusted at the start of an animation or every frame via `skeletonRootMotion.AdjustRootMotionToDistance(targetPosition - transform.position, trackIndex);`. - * Now providing a `Canvas Group Tint Black` parameter at the `SkeletonGraphic` Inspector in the `Advanced` section. When using the `Spine/SkeletonGraphic Tint Black` shader you can enable this parameter to receive proper blending results when using `Additive` blend mode under a `CanvasGroup`. Be sure to also have the parameter `CanvasGroup Compatible` enabled at the shader. Note that the normal `Spine/SkeletonGraphic` does not support `Additive` blend mode at a `CanvasGroup`, as it requires additional shader channels to work. - * Added `Mix and Match Skins` example scene to demonstrate how the 3.8 Skin API and combining skins can be used for a wardrobe and equipment use case. - * Spine Timeline Extensions: Added `Hold Previous` parameter at `SpineAnimationStateClip`. - * Added more warning messages at incompatible SkeletonRenderer/SkeletonGraphic Component vs Material settings. They appear both as an info box in the Inspector as well as upon initialization in the Console log window. The Inspector box warnings can be disabled via `Edit - Preferences - Spine`. - * Now providing `BeforeApply` update callbacks at all skeleton animation components (`SkeletonAnimation`, `SkeletonMecanim` and `SkeletonGraphic`). - * Added `BoundingBoxFollowerGraphic` component. This class is a counterpart of `BoundingBoxFollower` that can be used with `SkeletonGraphic`. - * Added Inspector context menu functions `SkeletonRenderer - Add all BoundingBoxFollower GameObjects` and `SkeletonGraphic - Add all BoundingBoxFollowerGraphic GameObjects` that automatically generate bounding box follower GameObjects for every `BoundingBoxAttachment` for all skins of a skeleton. - * `GetRemappedClone()` now provides an additional parameter `pivotShiftsMeshUVCoords` for `MeshAttachment` to prevent uv shifts at a non-central Sprite pivot. This parameter defaults to `true` to maintain previous behaviour. - * `SkeletonRenderer` components now provide an additional update mode `Only Event Timelines` at the `Update When Invisible` property. This mode saves additional timeline updates compared to update mode `Everything Except Mesh`. - * Now all URP (Universal Render Pipeline) and LWRP (Lightweight Render Pipeline) shaders support SRP (Scriptable Render Pipeline) batching. See [Unity SRPBatcher documentation pages](https://docs.unity3d.com/Manual/SRPBatcher.html) for additional information. - * Sprite shaders now provide four `Diffuse Ramp` modes as an Inspector Material parameter: `Hard`, `Soft`, `Old Hard` and `Old Soft`. In spine-unity 3.8 it defaults to `Old Hard` to keep the behaviour of existing projects unchanged. From 4.0 on it defaults to `Hard` for newly created materials while existing ones remain unchanged. Note that `Old Hard` and `Old Soft` ramp versions were using only the right half of the ramp texture, and additionally multiplying the light intensity by 2, both leading to brighter lighting than without a ramp texture active. The new ramp modes `Hard` and `Soft` use the full ramp texture and do not modify light intensity, being consistent with lighting without a ramp texture active. - * Added **native support for slot blend modes** `Additive`, `Multiply` and `Screen` with automatic assignment at newly imported skeleton assets. `BlendModeMaterialAssets` are now obsolete and replaced by the native properties at `SkeletonDataAsset`. The `SkeletonDataAsset` Inspector provides a new `Blend Modes - Upgrade` button to upgrade an obsolete `BlendModeMaterialAsset` to the native blend modes properties. This upgrade will be performed automatically on imported and re-imported assets in Unity 2020.1 and newer to prevent reported `BlendModeMaterialAsset` issues in these Unity versions. spine-unity 4.0 and newer will automatically perform this upgrade regardless of the Unity version. - * `BoneFollower` and `BoneFollowerGraphic` components now provide better support for following bones when the skeleton's Transform is not the parent of the follower's Transform. Previously e.g. rotating a common parent Transform did not lead to the desired result, as well as negatively scaling a skeleton's Transform when it is not a parent of the follower's Transform. - * URP and LWRP `Sprite` and `SkeletonLit` shaders no longer require `Advanced - Add Normals` enabled to properly cast and receive shadows. It is recommended to disable `Add Normals` if normals are otherwise not needed. - * Added an example component `RootMotionDeltaCompensation` located in `Spine Examples/Scripts/Sample Components` which can be used for applying simple delta compensation. You can enable and disable the component to toggle delta compensation of the currently playing animation on and off. - * Root motion delta compensation now allows to only adjust X or Y components instead of both. Adds two parameters to `SkeletonRootMotionBase.AdjustRootMotionToDistance()` which default to adjusting both X and Y as before. The `RootMotionDeltaCompensation` example component exposes these parameters as public attributes. - * Root motion delta compensation now allows to also add translation root motion to e.g. adjust a horizontal jump upwards or downwards over time. This is necessary because a Y root motion of zero cannot be scaled to become non-zero. - * `Attachment.GetRemappedClone(Sprite)` method now provides an additional optional parameter `useOriginalRegionScale`. When set to `true`, the replaced attachment's scale is used instead of the Sprite's `Pixel per Unity` setting, allowing for more consistent scaling. *Note:* When remapping Sprites, be sure to set the Sprite's `Mesh Type` to `Full Rect` and not `Tight`, otherwise the scale will be wrong. + - All `Sprite` shaders (including URP and LWRP extension packages) now provide an additional `Fixed Normal Space` option `World-Space`. PReviously options were limited to `View-Space` and `Model-Space`. + - `SkeletonGraphic` now fully supports [`SkeletonUtility`](http://esotericsoftware.com/spine-unity#SkeletonUtility) for generating a hierarchy of [`SkeletonUtilityBones`](http://esotericsoftware.com/spine-unity#SkeletonUtilityBone) in both modes `Follow` and `Override`. This also enables creating hinge chain physics rigs and using `SkeletonUtilityConstraints` such as `SkeletonUtilityGroundConstraint` and `SkeletonUtilityEyeConstraint` on `SkeletonGraphic`. + - Added `OnMeshAndMaterialsUpdated` callback event to `SkeletonRenderer` and `SkeletonGraphic`. It is issued at the end of `LateUpdate`, before rendering. + - Added `Skeleton-OutlineOnly` single pass shader to LWRP and URP extension modules. It can be assigned to materials as `Universal Render Pipeline/Spine/Outline/Skeleton-OutlineOnly`. This allows for separate outline child _GameObjects_ that reference the existing Mesh of their parent, and re-draw the mesh using this outline shader. + - Added example component `RenderExistingMesh` to render a mesh again with different materials, as required by the new `Skeleton-OutlineOnly` shaders. + In URP the outline has to be rendered via a separate GameObject as URP does not allow multiple render passes. To add an outline to your SkeletenRenderer: + 1. Add a child GameObject and move it a bit back (e.g. position Z = 0.01). + 2. Add a `RenderExistingMesh` component, provided in the `Spine Examples/Scripts/Sample Components` directory. + 3. Copy the original material, add _\_Outline_ to its name and set the shader to `Universal Render Pipeline/Spine/Outline/Skeleton-OutlineOnly`. + 4. Assign this _\_Outline_ material at the `RenderExistingMesh` component under _Replacement Materials_. + - Added `Outline Shaders URP` example scene to URP extension module to demonstrate the above additions. + - Added support for Unity's [`SpriteAtlas`](https://docs.unity3d.com/Manual/class-SpriteAtlas.html) as atlas provider (as an alternative to `.atlas.txt` and `.png` files) alongside a skeleton data file. There is now an additional `Spine SpriteAtlas Import` tool window accessible via `Window - Spine - SpriteAtlas Import`. Additional information can be found in a new section on the [spine-unity documentation page](http://esotericsoftware.com/spine-unity#Advanced---Using-Unity-SpriteAtlas-as-Atlas-Provider). + - Added support for **multiple atlas textures at `SkeletonGraphic`**. You can enable this feature by enabling the parameter `Multiple CanvasRenders` in the `Advanced` section of the `SkeletonGraphic` Inspector. This automatically creates the required number of child `CanvasRenderer` GameObjects for each required draw call (submesh). + - Added support for **Render Separator Slots** at `SkeletonGraphic`. Render separation can be enabled directly in the `Advanced` section of the `SkeletonGraphic` Inspector, it does not require any additional components (like `SkeletonRenderSeparator` or `SkeletonPartsRenderer` for `SkeletonRenderer` components). When enabled, additional separator GameObjects will be created automatically for each separation part, and `CanvasRenderer` GameObjects re-parented to them accordingly. The separator GameObjects can be moved around and re-parented in the hierarchy according to your requirements to achieve the desired draw order within your `Canvas`. A usage example can be found in the updated `Spine Examples/Other Examples/SkeletonRenderSeparator` scene. + - Added `SkeletonGraphicCustomMaterials` component, providing functionality to override materials and textures of a `SkeletonGraphic`, similar to `SkeletonRendererCustomMaterials`. Note: overriding materials or textures per slot is not provided due to structural limitations. + - Added **Root Motion support** for `SkeletonAnimation`, `SkeletonMecanim` and `SkeletonGraphic` via new components `SkeletonRootMotion` and `SkeletonMecanimRootMotion`. The `SkeletonAnimation` and `SkeletonGraphic` component Inspector now provides a line `Root Motion` with `Add Component` and `Remove Component` buttons to add/remove the new `SkeletonRootMotion` component to your GameObject. The `SkeletonMecanim` Inspector detects whether root motion is enabled at the `Animator` component and adds a `SkeletonMecanimRootMotion` component automatically. + - `SkeletonMecanim` now provides an additional `Custom MixMode` parameter under `Mecanim Translator`. It is enabled by default in version 3.8 to maintain current behaviour, using the set `Mix Mode` for each Mecanim layer. When disabled, `SkeletonMecanim` will use the recommended `MixMode` according to the layer blend mode. Additional information can be found in the [Mecanim Translator section](http://esotericsoftware.com/spine-unity#Parameters-for-animation-blending-control) on the spine-unity documentation pages. + - Added **SkeletonGraphic Timeline support**. Added supprot for multi-track Timeline preview in the Editor outside of play mode (multi-track scrubbing). See the [Timeline-Extension-UPM-Package](http://esotericsoftware.com/spine-unity#Timeline-Extension-UPM-Package) section of the spine-unity documentation for more information. + - Added support for double-sided lighting at all `SkeletonLit` shaders (including URP and LWRP packages). + - Added frustum culling update mode parameters `Update When Invisible` (Inspector parameter) and `UpdateMode` (available via code) to all Skeleton components. This provides a simple way to disable certain updates when the `Renderer` is no longer visible (outside all cameras, culled in frustum culling). The new `UpdateMode` property allows disabling updates at a finer granularity level than disabling the whole component. Available modes are: `Nothing`, `OnlyAnimationStatus`, `EverythingExceptMesh` and `FullUpdate`. + - Added a new `Spine/Outline/OutlineOnly-ZWrite` shader to provide correct outline-only rendering. Note: the shader requires two render passes and is therefore not compatible with URP. The `Spine Examples/Other Examples/Outline Shaders` example scene has been updated to demonstrate the new shader. + - Added `OnMeshAndMaterialsUpdated` callback event to `SkeletonRenderSeparator` and `SkeletonPartsRenderer`. It is issued at the end of `LateUpdate`, before rendering. + - Added `Root Motion Scale X/Y` parameters to `SkeletonRootMotionBase` subclasses (`SkeletonRootMotion` and `SkeletonMecanimRootMotion`). Also providing `AdjustRootMotionToDistance()` and other methods to allow for easy delta compensation. Delta compensation can be used to e.g. stretch a jump to a given distance. Root motion can be adjusted at the start of an animation or every frame via `skeletonRootMotion.AdjustRootMotionToDistance(targetPosition - transform.position, trackIndex);`. + - Now providing a `Canvas Group Tint Black` parameter at the `SkeletonGraphic` Inspector in the `Advanced` section. When using the `Spine/SkeletonGraphic Tint Black` shader you can enable this parameter to receive proper blending results when using `Additive` blend mode under a `CanvasGroup`. Be sure to also have the parameter `CanvasGroup Compatible` enabled at the shader. Note that the normal `Spine/SkeletonGraphic` does not support `Additive` blend mode at a `CanvasGroup`, as it requires additional shader channels to work. + - Added `Mix and Match Skins` example scene to demonstrate how the 3.8 Skin API and combining skins can be used for a wardrobe and equipment use case. + - Spine Timeline Extensions: Added `Hold Previous` parameter at `SpineAnimationStateClip`. + - Added more warning messages at incompatible SkeletonRenderer/SkeletonGraphic Component vs Material settings. They appear both as an info box in the Inspector as well as upon initialization in the Console log window. The Inspector box warnings can be disabled via `Edit - Preferences - Spine`. + - Now providing `BeforeApply` update callbacks at all skeleton animation components (`SkeletonAnimation`, `SkeletonMecanim` and `SkeletonGraphic`). + - Added `BoundingBoxFollowerGraphic` component. This class is a counterpart of `BoundingBoxFollower` that can be used with `SkeletonGraphic`. + - Added Inspector context menu functions `SkeletonRenderer - Add all BoundingBoxFollower GameObjects` and `SkeletonGraphic - Add all BoundingBoxFollowerGraphic GameObjects` that automatically generate bounding box follower GameObjects for every `BoundingBoxAttachment` for all skins of a skeleton. + - `GetRemappedClone()` now provides an additional parameter `pivotShiftsMeshUVCoords` for `MeshAttachment` to prevent uv shifts at a non-central Sprite pivot. This parameter defaults to `true` to maintain previous behaviour. + - `SkeletonRenderer` components now provide an additional update mode `Only Event Timelines` at the `Update When Invisible` property. This mode saves additional timeline updates compared to update mode `Everything Except Mesh`. + - Now all URP (Universal Render Pipeline) and LWRP (Lightweight Render Pipeline) shaders support SRP (Scriptable Render Pipeline) batching. See [Unity SRPBatcher documentation pages](https://docs.unity3d.com/Manual/SRPBatcher.html) for additional information. + - Sprite shaders now provide four `Diffuse Ramp` modes as an Inspector Material parameter: `Hard`, `Soft`, `Old Hard` and `Old Soft`. In spine-unity 3.8 it defaults to `Old Hard` to keep the behaviour of existing projects unchanged. From 4.0 on it defaults to `Hard` for newly created materials while existing ones remain unchanged. Note that `Old Hard` and `Old Soft` ramp versions were using only the right half of the ramp texture, and additionally multiplying the light intensity by 2, both leading to brighter lighting than without a ramp texture active. The new ramp modes `Hard` and `Soft` use the full ramp texture and do not modify light intensity, being consistent with lighting without a ramp texture active. + - Added **native support for slot blend modes** `Additive`, `Multiply` and `Screen` with automatic assignment at newly imported skeleton assets. `BlendModeMaterialAssets` are now obsolete and replaced by the native properties at `SkeletonDataAsset`. The `SkeletonDataAsset` Inspector provides a new `Blend Modes - Upgrade` button to upgrade an obsolete `BlendModeMaterialAsset` to the native blend modes properties. This upgrade will be performed automatically on imported and re-imported assets in Unity 2020.1 and newer to prevent reported `BlendModeMaterialAsset` issues in these Unity versions. spine-unity 4.0 and newer will automatically perform this upgrade regardless of the Unity version. + - `BoneFollower` and `BoneFollowerGraphic` components now provide better support for following bones when the skeleton's Transform is not the parent of the follower's Transform. Previously e.g. rotating a common parent Transform did not lead to the desired result, as well as negatively scaling a skeleton's Transform when it is not a parent of the follower's Transform. + - URP and LWRP `Sprite` and `SkeletonLit` shaders no longer require `Advanced - Add Normals` enabled to properly cast and receive shadows. It is recommended to disable `Add Normals` if normals are otherwise not needed. + - Added an example component `RootMotionDeltaCompensation` located in `Spine Examples/Scripts/Sample Components` which can be used for applying simple delta compensation. You can enable and disable the component to toggle delta compensation of the currently playing animation on and off. + - Root motion delta compensation now allows to only adjust X or Y components instead of both. Adds two parameters to `SkeletonRootMotionBase.AdjustRootMotionToDistance()` which default to adjusting both X and Y as before. The `RootMotionDeltaCompensation` example component exposes these parameters as public attributes. + - Root motion delta compensation now allows to also add translation root motion to e.g. adjust a horizontal jump upwards or downwards over time. This is necessary because a Y root motion of zero cannot be scaled to become non-zero. + - `Attachment.GetRemappedClone(Sprite)` method now provides an additional optional parameter `useOriginalRegionScale`. When set to `true`, the replaced attachment's scale is used instead of the Sprite's `Pixel per Unity` setting, allowing for more consistent scaling. _Note:_ When remapping Sprites, be sure to set the Sprite's `Mesh Type` to `Full Rect` and not `Tight`, otherwise the scale will be wrong. -* **Changes of default values** - * `SkeletonMecanim`'s `Layer Mix Mode` now defaults to `MixMode.MixNext` instead of `MixMode.MixAlways`. - * `BlendModeMaterialAsset` and it's instance `Default BlendModeMaterials.asset` now have `Apply Additive Material` set to `true` by default in order to apply all blend modes by default. +- **Changes of default values** -* **Deprecated** - * Deprecated `Modules/SlotBlendModes/SlotBlendModes` component. Changed namespace from `Spine.Unity.Modules` to `Spine.Unity.Deprecated`. Moved to `Deprecated/SlotBlendModes`. + - `SkeletonMecanim`'s `Layer Mix Mode` now defaults to `MixMode.MixNext` instead of `MixMode.MixAlways`. + - `BlendModeMaterialAsset` and it's instance `Default BlendModeMaterials.asset` now have `Apply Additive Material` set to `true` by default in order to apply all blend modes by default. -* **Restructuring (Non-Breaking)** +- **Deprecated** + + - Deprecated `Modules/SlotBlendModes/SlotBlendModes` component. Changed namespace from `Spine.Unity.Modules` to `Spine.Unity.Deprecated`. Moved to `Deprecated/SlotBlendModes`. + +- **Restructuring (Non-Breaking)** Note: The following changes will most likely not affect users of the Spine-Unity runtime as the API remains unchanged and no references are invalidated. - * Removed duplicates of `.cginc` files in `Modules/Shaders/Sprite` that were also present in the `Modules/Shaders/Sprite/CGIncludes` directory. - * Moved shaders from `Modules/Shaders` to `Shaders` directory. - * Moved shaders from `Modules/SkeletonGraphic/Shaders` to `Shaders/SkeletonGraphic`. - * Renamed shader `Shaders/Spine-SkeletonLit.shader` to `Shaders/Spine-Skeleton-Lit.shader`. - * Moved components from `SkeletonGraphic` to `Components` and `Components/Following` except for `SkeletonGraphicMirror` which was moved to `Spine Examples/Scripts/Sample Components`. - * Moved `BoneFollower`, `BoneFollowerGraphic` and `PointFollower` from `Components` directory to `Components/Following`. - * Moved `BoundingBoxFollower` component from `Modules/BoundingBoxFollower` to `Components/Following`. - * Moved `Modules/SkeletonRenderSeparator` directory to `Components/SkeletonRenderSeparator`. - * Moved `Modules/CustomMaterials` directory to `Components/SkeletonRendererCustomMaterials`. - * Moved `Asset Types/BlendModeMaterialsAsset.cs` class, `Shaders/BlendModes/Default BlendModeMaterials.asset` and materials from `Shaders/BlendModes` to `SkeletonDataModifierAssets/BlendModeMaterials` directory. - * Moved `Modules/Ghost` directory to `Spine Examples/Scripts/Sample Components/Ghost`. - * Moved `Modules/SkeletonUtility Modules` directory to `Spine Examples/Scripts/Sample Components/SkeletonUtility Modules`. - * Moved `Modules/AnimationMatchModifier` directory to `Spine Examples/Scripts/MecanimAnimationMatchModifier`. - * Moved `SkeletonRagdoll` and `SkeletonRagdoll2D` components from `Modules/Ragdoll` directory to `Spine Examples/Scripts/Sample Components/SkeletonUtility Modules`. - * Moved `AttachmentTools.cs` to `Utility` directory. - * Split the file `AttachmentTools` into 5 separate files for each contained class. No namespace or other API changes performed. - * Split the file `Mesh Generation/SpineMesh` into 4 separate files for each contained class. No namespace or other API changes performed. - * Moved `SkeletonExtensions.cs` to `Utility` directory. - * Moved `Modules/YieldInstructions` directory to `Utility/YieldInstructions`. - * Moved corresponding editor scripts of the above components to restructured directories as well. - * Renamed inspector editor class `PointFollowerEditor` to `PointFollowerInspector` for consistency reasons. + + - Removed duplicates of `.cginc` files in `Modules/Shaders/Sprite` that were also present in the `Modules/Shaders/Sprite/CGIncludes` directory. + - Moved shaders from `Modules/Shaders` to `Shaders` directory. + - Moved shaders from `Modules/SkeletonGraphic/Shaders` to `Shaders/SkeletonGraphic`. + - Renamed shader `Shaders/Spine-SkeletonLit.shader` to `Shaders/Spine-Skeleton-Lit.shader`. + - Moved components from `SkeletonGraphic` to `Components` and `Components/Following` except for `SkeletonGraphicMirror` which was moved to `Spine Examples/Scripts/Sample Components`. + - Moved `BoneFollower`, `BoneFollowerGraphic` and `PointFollower` from `Components` directory to `Components/Following`. + - Moved `BoundingBoxFollower` component from `Modules/BoundingBoxFollower` to `Components/Following`. + - Moved `Modules/SkeletonRenderSeparator` directory to `Components/SkeletonRenderSeparator`. + - Moved `Modules/CustomMaterials` directory to `Components/SkeletonRendererCustomMaterials`. + - Moved `Asset Types/BlendModeMaterialsAsset.cs` class, `Shaders/BlendModes/Default BlendModeMaterials.asset` and materials from `Shaders/BlendModes` to `SkeletonDataModifierAssets/BlendModeMaterials` directory. + - Moved `Modules/Ghost` directory to `Spine Examples/Scripts/Sample Components/Ghost`. + - Moved `Modules/SkeletonUtility Modules` directory to `Spine Examples/Scripts/Sample Components/SkeletonUtility Modules`. + - Moved `Modules/AnimationMatchModifier` directory to `Spine Examples/Scripts/MecanimAnimationMatchModifier`. + - Moved `SkeletonRagdoll` and `SkeletonRagdoll2D` components from `Modules/Ragdoll` directory to `Spine Examples/Scripts/Sample Components/SkeletonUtility Modules`. + - Moved `AttachmentTools.cs` to `Utility` directory. + - Split the file `AttachmentTools` into 5 separate files for each contained class. No namespace or other API changes performed. + - Split the file `Mesh Generation/SpineMesh` into 4 separate files for each contained class. No namespace or other API changes performed. + - Moved `SkeletonExtensions.cs` to `Utility` directory. + - Moved `Modules/YieldInstructions` directory to `Utility/YieldInstructions`. + - Moved corresponding editor scripts of the above components to restructured directories as well. + - Renamed inspector editor class `PointFollowerEditor` to `PointFollowerInspector` for consistency reasons. ### XNA/MonoGame -* Updated to latest MonoGame version 3.7.1 -* Rewrote example project to be cleaner and better demonstrate basic Spine features. -* Added mix-and-match example to demonstrate the new Skin API. -* Added normalmap support via `SpineEffectNormalmap` and support for loading multiple texture layers following a suffix-pattern. Please see the example code on how to use them. + +- Updated to latest MonoGame version 3.7.1 +- Rewrote example project to be cleaner and better demonstrate basic Spine features. +- Added mix-and-match example to demonstrate the new Skin API. +- Added normalmap support via `SpineEffectNormalmap` and support for loading multiple texture layers following a suffix-pattern. Please see the example code on how to use them. ## Java -* **Breaking changes** - * Renamed `Slot#getAttachmentVertices()` to `Slot#getDeform()`. - * Changed the `.json` curve format and added more assumptions for omitted values, reducing the average size of JSON exports. - * Renamed `Skin#addAttachment()` to `Skin#setAttachment()`. - * Removed `VertexAttachment#applyDeform()` and replaced it with `VertexAttachment#deformAttachment`. The attachment set on this field is used to decide if a `DeformTimeline` should be applied to the attachment active on the slot to which the timeline is applied. - * Removed `inheritDeform` field, getter, and setter from `MeshAttachment`. - * Changed `.skel` binary format, added a string table. References to strings in the data resolve to this string table, reducing storage size of binary files considerably. - * `JsonRollback` tool now converts from 3.8 JSON to 3.7. - * Changed the `.json` and `.skel` file formats to accomodate the new feature and file size optimiations. Old projects must be exported with Spine 3.8.20+ to be compatible with the 3.8 Spine runtimes. -* **Additions** - * Added `x` and `y` coordinates for setup pose AABB in `SkeletonData`. - * Added support for rotated mesh region UVs. - * Added skin-specific bones and constraints which are only updated if the skeleton's current skin contains them. - * Improved Skin API to make it easier to handle mix-and-match use cases. - * Added `Skin#getAttachments()`. Returns all attachments in the skin. - * Added `Skin#getAttachments(int slotIndex)`. Returns all attachements in the skin for the given slot index. - * Added `Skin#addSkin(Skin skin)`. Adds all attachments, bones, and skins from the specified skin to this skin. - * Added `Skin#copySkin(Skin skin)`. Adds all attachments, bones, and skins from the specified skin to this skin. `VertexAttachment` are shallowly copied and will retain any parent mesh relationship. All other attachment types are deep copied. - * Added `Attachment#copy()` to all attachment type implementations. This lets you deep copy an attachment to modify it independently from the original, i.e. when programmatically changing texture coordinates or mesh vertices. - * Added `MeshAttachment#newLinkedMesh()`, creates a linked mesh linkted to either the original mesh, or the parent of the original mesh. - * Added IK softness. +- **Breaking changes** + + - Renamed `Slot#getAttachmentVertices()` to `Slot#getDeform()`. + - Changed the `.json` curve format and added more assumptions for omitted values, reducing the average size of JSON exports. + - Renamed `Skin#addAttachment()` to `Skin#setAttachment()`. + - Removed `VertexAttachment#applyDeform()` and replaced it with `VertexAttachment#deformAttachment`. The attachment set on this field is used to decide if a `DeformTimeline` should be applied to the attachment active on the slot to which the timeline is applied. + - Removed `inheritDeform` field, getter, and setter from `MeshAttachment`. + - Changed `.skel` binary format, added a string table. References to strings in the data resolve to this string table, reducing storage size of binary files considerably. + - `JsonRollback` tool now converts from 3.8 JSON to 3.7. + - Changed the `.json` and `.skel` file formats to accomodate the new feature and file size optimiations. Old projects must be exported with Spine 3.8.20+ to be compatible with the 3.8 Spine runtimes. + +- **Additions** + - Added `x` and `y` coordinates for setup pose AABB in `SkeletonData`. + - Added support for rotated mesh region UVs. + - Added skin-specific bones and constraints which are only updated if the skeleton's current skin contains them. + - Improved Skin API to make it easier to handle mix-and-match use cases. + - Added `Skin#getAttachments()`. Returns all attachments in the skin. + - Added `Skin#getAttachments(int slotIndex)`. Returns all attachements in the skin for the given slot index. + - Added `Skin#addSkin(Skin skin)`. Adds all attachments, bones, and skins from the specified skin to this skin. + - Added `Skin#copySkin(Skin skin)`. Adds all attachments, bones, and skins from the specified skin to this skin. `VertexAttachment` are shallowly copied and will retain any parent mesh relationship. All other attachment types are deep copied. + - Added `Attachment#copy()` to all attachment type implementations. This lets you deep copy an attachment to modify it independently from the original, i.e. when programmatically changing texture coordinates or mesh vertices. + - Added `MeshAttachment#newLinkedMesh()`, creates a linked mesh linkted to either the original mesh, or the parent of the original mesh. + - Added IK softness. ### libGDX -* `SkeletonViewer` can load a skeleton by specifying it as the first argument on the command line. -* Added mix-and-match example to demonstrate the new Skin API. + +- `SkeletonViewer` can load a skeleton by specifying it as the first argument on the command line. +- Added mix-and-match example to demonstrate the new Skin API. ## Lua -* **Breaking changes** - * Renamed `Slot:getAttachmentVertices()` to `Slot#deform`. - * Changed the `.json` curve format and added more assumptions for omitted values, reducing the average size of JSON exports. - * Renamed `Skin:addAttachment()` to `Skin#setAttachment()`. - * Removed `VertexAttachment:applyDeform()` and replaced it with `VertexAttachment#deformAttachment`. The attachment set on this field is used to decide if a `DeformTimeline` should be applied to the attachment active on the slot to which the timeline is applied. - * Removed `inheritDeform` field, getter, and setter from `MeshAttachment`. - * Changed the `.json` file format to accomodate the new feature and file size optimiations. Old projects must be exported with Spine 3.8.20+ to be compatible with the 3.8 Spine runtimes. -* **Additions** - * Added `x` and `y` coordinates for setup pose AABB in `SkeletonData`. - * Added support for rotated mesh region UVs. - * Added skin-specific bones and constraints which are only updated if the skeleton's current skin contains them. - * Improved Skin API to make it easier to handle mix-and-match use cases. - * Added `Skin:getAttachments()`. Returns all attachments in the skin. - * Added `Skin:getAttachments(slotIndex)`. Returns all attachements in the skin for the given slot index. - * Added `Skin:addSkin(Skin skin)`. Adds all attachments, bones, and skins from the specified skin to this skin. - * Added `Skin:copySkin(Skin skin)`. Adds all attachments, bones, and skins from the specified skin to this skin. `VertexAttachment` are shallowly copied and will retain any parent mesh relationship. All other attachment types are deep copied. - * Added `Attachment:copy()` to all attachment type implementations. This lets you deep copy an attachment to modify it independently from the original, i.e. when programmatically changing texture coordinates or mesh vertices. - * Added `MeshAttachment:newLinkedMesh()`, creates a linked mesh linkted to either the original mesh, or the parent of the original mesh. - * Added IK softness. +- **Breaking changes** + + - Renamed `Slot:getAttachmentVertices()` to `Slot#deform`. + - Changed the `.json` curve format and added more assumptions for omitted values, reducing the average size of JSON exports. + - Renamed `Skin:addAttachment()` to `Skin#setAttachment()`. + - Removed `VertexAttachment:applyDeform()` and replaced it with `VertexAttachment#deformAttachment`. The attachment set on this field is used to decide if a `DeformTimeline` should be applied to the attachment active on the slot to which the timeline is applied. + - Removed `inheritDeform` field, getter, and setter from `MeshAttachment`. + - Changed the `.json` file format to accomodate the new feature and file size optimiations. Old projects must be exported with Spine 3.8.20+ to be compatible with the 3.8 Spine runtimes. + +- **Additions** + - Added `x` and `y` coordinates for setup pose AABB in `SkeletonData`. + - Added support for rotated mesh region UVs. + - Added skin-specific bones and constraints which are only updated if the skeleton's current skin contains them. + - Improved Skin API to make it easier to handle mix-and-match use cases. + - Added `Skin:getAttachments()`. Returns all attachments in the skin. + - Added `Skin:getAttachments(slotIndex)`. Returns all attachements in the skin for the given slot index. + - Added `Skin:addSkin(Skin skin)`. Adds all attachments, bones, and skins from the specified skin to this skin. + - Added `Skin:copySkin(Skin skin)`. Adds all attachments, bones, and skins from the specified skin to this skin. `VertexAttachment` are shallowly copied and will retain any parent mesh relationship. All other attachment types are deep copied. + - Added `Attachment:copy()` to all attachment type implementations. This lets you deep copy an attachment to modify it independently from the original, i.e. when programmatically changing texture coordinates or mesh vertices. + - Added `MeshAttachment:newLinkedMesh()`, creates a linked mesh linkted to either the original mesh, or the parent of the original mesh. + - Added IK softness. ### Love2D -* Added support for 0-1 RGBA color component range change in Löve 0.11+. Older Löve versions using the 0-255 range are still supported! -* Added mix-and-match example to demonstrate the new Skin API. + +- Added support for 0-1 RGBA color component range change in Löve 0.11+. Older Löve versions using the 0-255 range are still supported! +- Added mix-and-match example to demonstrate the new Skin API. ### Corona -* Added mix-and-match example to demonstrate the new Skin API. + +- Added mix-and-match example to demonstrate the new Skin API. ## Typescript/Javascript -* **Breaking changes** - * Renamed `MixDirection.in/out` to `MixDirection.mixIn/mixOut` as it was crashing a JS compressor. - * Renamed `Slot#getAttachmentVertices()` to `Slot#getDeform()`. - * Changed the `.json` curve format and added more assumptions for omitted values, reducing the average size of JSON exports. - * Renamed `Skin#addAttachment()` to `Skin#setAttachment()`. - * Removed `VertexAttachment#applyDeform()` and replaced it with `VertexAttachment#deformAttachment`. The attachment set on this field is used to decide if a `DeformTimeline` should be applied to the attachment active on the slot to which the timeline is applied. - * Removed `inheritDeform` field, getter, and setter from `MeshAttachment`. - * Changed `.skel` binary format, added a string table. References to strings in the data resolve to this string table, reducing storage size of binary files considerably. - * Changed the `.json` and `.skel` file formats to accomodate the new feature and file size optimiations. Old projects must be exported with Spine 3.8.20+ to be compatible with the 3.8 Spine runtimes. - * Updated runtime to be compatible with TypeScript 3.6.3. -* **Additions** - * Added support for loading binary data via `AssetManager#loadBinary()`. `AssetManager#get()` will return a `Uint8Array` for such assets. - * Added support for loading binaries via new `SkeletonBinary`. Parses a `Uint8Array`. - * Added `x` and `y` coordinates for setup pose AABB in `SkeletonData`. - * Added support for rotated mesh region UVs. - * Added skin-specific bones and constraints which are only updated if the skeleton's current skin contains them. - * Improved Skin API to make it easier to handle mix-and-match use cases. - * Added `Skin#getAttachments()`. Returns all attachments in the skin. - * Added `Skin#getAttachments(slotIndex: number)`. Returns all attachements in the skin for the given slot index. - * Added `Skin#addSkin(skin: Skin)`. Adds all attachments, bones, and skins from the specified skin to this skin. - * Added `Skin#copySkin(skin: Skin)`. Adds all attachments, bones, and skins from the specified skin to this skin. `VertexAttachment` are shallowly copied and will retain any parent mesh relationship. All other attachment types are deep copied. - * Added `Attachment#copy()` to all attachment type implementations. This lets you deep copy an attachment to modify it independently from the original, i.e. when programmatically changing texture coordinates or mesh vertices. - * Added `MeshAttachment#newLinkedMesh()`, creates a linked mesh linkted to either the original mesh, or the parent of the original mesh. - * Added IK softness. - * Added `AssetManager.setRawDataURI(path, data)`. Allows to embed data URIs for skeletons, atlases and atlas page images directly in the HTML/JS without needing to load it from a separate file. - * Added `AssetManager.loadAll()` to allow Promise/async/await based waiting for completion of asset load. See the `spine-canvas` examples. - * Added `Skeleton.getBoundRect()` helper method to calculate the bouding rectangle of the current pose, returning the result as `{ x, y, width, height }`. Note that this method will create temporary objects which can add to garbage collection pressure. +- **Breaking changes** + + - Renamed `MixDirection.in/out` to `MixDirection.mixIn/mixOut` as it was crashing a JS compressor. + - Renamed `Slot#getAttachmentVertices()` to `Slot#getDeform()`. + - Changed the `.json` curve format and added more assumptions for omitted values, reducing the average size of JSON exports. + - Renamed `Skin#addAttachment()` to `Skin#setAttachment()`. + - Removed `VertexAttachment#applyDeform()` and replaced it with `VertexAttachment#deformAttachment`. The attachment set on this field is used to decide if a `DeformTimeline` should be applied to the attachment active on the slot to which the timeline is applied. + - Removed `inheritDeform` field, getter, and setter from `MeshAttachment`. + - Changed `.skel` binary format, added a string table. References to strings in the data resolve to this string table, reducing storage size of binary files considerably. + - Changed the `.json` and `.skel` file formats to accomodate the new feature and file size optimiations. Old projects must be exported with Spine 3.8.20+ to be compatible with the 3.8 Spine runtimes. + - Updated runtime to be compatible with TypeScript 3.6.3. + +- **Additions** + - Added support for loading binary data via `AssetManager#loadBinary()`. `AssetManager#get()` will return a `Uint8Array` for such assets. + - Added support for loading binaries via new `SkeletonBinary`. Parses a `Uint8Array`. + - Added `x` and `y` coordinates for setup pose AABB in `SkeletonData`. + - Added support for rotated mesh region UVs. + - Added skin-specific bones and constraints which are only updated if the skeleton's current skin contains them. + - Improved Skin API to make it easier to handle mix-and-match use cases. + - Added `Skin#getAttachments()`. Returns all attachments in the skin. + - Added `Skin#getAttachments(slotIndex: number)`. Returns all attachements in the skin for the given slot index. + - Added `Skin#addSkin(skin: Skin)`. Adds all attachments, bones, and skins from the specified skin to this skin. + - Added `Skin#copySkin(skin: Skin)`. Adds all attachments, bones, and skins from the specified skin to this skin. `VertexAttachment` are shallowly copied and will retain any parent mesh relationship. All other attachment types are deep copied. + - Added `Attachment#copy()` to all attachment type implementations. This lets you deep copy an attachment to modify it independently from the original, i.e. when programmatically changing texture coordinates or mesh vertices. + - Added `MeshAttachment#newLinkedMesh()`, creates a linked mesh linkted to either the original mesh, or the parent of the original mesh. + - Added IK softness. + - Added `AssetManager.setRawDataURI(path, data)`. Allows to embed data URIs for skeletons, atlases and atlas page images directly in the HTML/JS without needing to load it from a separate file. + - Added `AssetManager.loadAll()` to allow Promise/async/await based waiting for completion of asset load. See the `spine-canvas` examples. + - Added `Skeleton.getBoundRect()` helper method to calculate the bouding rectangle of the current pose, returning the result as `{ x, y, width, height }`. Note that this method will create temporary objects which can add to garbage collection pressure. ### WebGL backend -* `Input` can now take a partially defined implementation of `InputListener`. -* Added mix-and-match example to demonstrate the new Skin API. + +- `Input` can now take a partially defined implementation of `InputListener`. +- Added mix-and-match example to demonstrate the new Skin API. ### Canvas backend ### Three.js backend -* `SkeletonMesh` now takes an optional `SkeletonMeshMaterialParametersCustomizer` function that allows you to modify the `ShaderMaterialParameters` before the material is finalized. Use it to modify things like THREEJS' `Material.depthTest` etc. See #1590. + +- `SkeletonMesh` now takes an optional `SkeletonMeshMaterialParametersCustomizer` function that allows you to modify the `ShaderMaterialParameters` before the material is finalized. Use it to modify things like THREEJS' `Material.depthTest` etc. See #1590. ### Player -* `SpinePlayer#setAnimation()` can now be called directly to set the animation being displayed. -* The player supports loading `.skel` binary skeleton files by setting the `SpinePlayerConfig#skelUrl` field instead of `SpinePlayerConfig#jsonUrl`. -* Added `SpinePlayerConfig#rawDataURIs`. Allows to embed data URIs for skeletons, atlases and atlas page images directly in the HTML/JS without needing to load it from a separate file. See the example for a demonstration. + +- `SpinePlayer#setAnimation()` can now be called directly to set the animation being displayed. +- The player supports loading `.skel` binary skeleton files by setting the `SpinePlayerConfig#skelUrl` field instead of `SpinePlayerConfig#jsonUrl`. +- Added `SpinePlayerConfig#rawDataURIs`. Allows to embed data URIs for skeletons, atlases and atlas page images directly in the HTML/JS without needing to load it from a separate file. See the example for a demonstration. # 3.7 ## AS3 -* **Breaking changes** - * The completion event will fire for looped 0 duration animations every frame. - * `MixPose` is now called `MixBlend` - * Skeleton `flipX/flipY` has been replaced with `scaleX/scaleY`. This cleans up applying transforms and is more powerful. Allows scaling a whole skeleton which has bones that disallow scale inheritance - * Mix time is no longer affected by `TrackEntry#timeScale`. See https://github.com/EsotericSoftware/spine-runtimes/issues/1194 -* **Additions** - * Added additive animation blending. When playing back multiple animations on different tracks, where each animation modifies the same skeleton property, the results of tracks with lower indices are discarded, and only the result from the track with the highest index is used. With animation blending, the results of all tracks are mixed together. This allows effects like mixing multiple facial expressions (angry, happy, sad) with percentage mixes. By default the old behaviour is retained (results from lower tracks are discarded). To enable additive blending across animation tracks, call `TrackEntry#setMixBlend(MixBlend.add)` on each track. To specify the blend percentage, set `TrackEntry#alpha`. See http://esotericsoftware.com/forum/morph-target-track-animation-mix-mode-9459 for a discussion. - * Support for stretchy IK - * Support for audio events, see `audioPath`, `volume` and `balance` fields on event (data). - * `TrackEntry` has an additional field called `holdPrevious`. It can be used to counter act a limitation of `AnimationState` resulting in "dipping" of parts of the animation. For a full discussion of the problem and the solution we've implemented, see this [forum thread](http://esotericsoftware.com/forum/Probably-Easy-Animation-mixing-with-multiple-tracks-10682?p=48130&hilit=holdprevious#p48130). + +- **Breaking changes** + - The completion event will fire for looped 0 duration animations every frame. + - `MixPose` is now called `MixBlend` + - Skeleton `flipX/flipY` has been replaced with `scaleX/scaleY`. This cleans up applying transforms and is more powerful. Allows scaling a whole skeleton which has bones that disallow scale inheritance + - Mix time is no longer affected by `TrackEntry#timeScale`. See https://github.com/EsotericSoftware/spine-runtimes/issues/1194 +- **Additions** + - Added additive animation blending. When playing back multiple animations on different tracks, where each animation modifies the same skeleton property, the results of tracks with lower indices are discarded, and only the result from the track with the highest index is used. With animation blending, the results of all tracks are mixed together. This allows effects like mixing multiple facial expressions (angry, happy, sad) with percentage mixes. By default the old behaviour is retained (results from lower tracks are discarded). To enable additive blending across animation tracks, call `TrackEntry#setMixBlend(MixBlend.add)` on each track. To specify the blend percentage, set `TrackEntry#alpha`. See http://esotericsoftware.com/forum/morph-target-track-animation-mix-mode-9459 for a discussion. + - Support for stretchy IK + - Support for audio events, see `audioPath`, `volume` and `balance` fields on event (data). + - `TrackEntry` has an additional field called `holdPrevious`. It can be used to counter act a limitation of `AnimationState` resulting in "dipping" of parts of the animation. For a full discussion of the problem and the solution we've implemented, see this [forum thread](http://esotericsoftware.com/forum/Probably-Easy-Animation-mixing-with-multiple-tracks-10682?p=48130&hilit=holdprevious#p48130). ### Starling -* Added support for vertex effects. See `RaptorExample.as` -* Added 'getTexture()' method to 'StarlingTextureAtlasAttachmentLoader' -* Breaking change: if a skeleton requires two color tinting, you have to enable it via `SkeletonSprite.twoColorTint = true`. In this case the skeleton will use the `TwoColorMeshStyle`, which internally uses a different vertex layout and shader. This means that skeletons with two color tinting enabled will break batching and hence increase the number of draw calls in your app. -* Added `VertexEffect` and implementations `JitterEffect` and `SwirlEffect`. Allows you to modify vertices before they are submitted for drawing. See Starling changes. -* Fix issues with StarlingAtlasAttachmentLoader, see https://github.com/EsotericSoftware/spine-runtimes/issues/939 -* Fix issues with region trimming support, see https://github.com/EsotericSoftware/spine-runtimes/commit/262bc26c64d4111002d80e201cb1a3345e6727df -* Added support for overriding `StarlingAtlasAttachmentLoader#getTexture()`, see https://github.com/EsotericSoftware/spine-runtimes/commit/ea7dbecb98edc74e439aa9ef90dcf6eed865f718 -* Texture atlas operations are no longer handled in `Starling#newRegionAttachment` and `Starling#newMeshAttachment` but delegated to the atlas. -* Added sample for additive animation blending, see https://github.com/EsotericSoftware/spine-runtimes/blob/6a556de01429878df47bb276a97959a8bdbbe32f/spine-starling/spine-starling-example/src/spine/examples/OwlExample.as -* Added sample on how to use bounding box attachment vertices https://github.com/EsotericSoftware/spine-runtimes/commit/e20428b02699226164fa73ba4b12f7d029ae6f4d -* Fully transparent meshes are not submitted for rendering. -* No hit-tests are performed when a skeleton is invisible. + +- Added support for vertex effects. See `RaptorExample.as` +- Added 'getTexture()' method to 'StarlingTextureAtlasAttachmentLoader' +- Breaking change: if a skeleton requires two color tinting, you have to enable it via `SkeletonSprite.twoColorTint = true`. In this case the skeleton will use the `TwoColorMeshStyle`, which internally uses a different vertex layout and shader. This means that skeletons with two color tinting enabled will break batching and hence increase the number of draw calls in your app. +- Added `VertexEffect` and implementations `JitterEffect` and `SwirlEffect`. Allows you to modify vertices before they are submitted for drawing. See Starling changes. +- Fix issues with StarlingAtlasAttachmentLoader, see https://github.com/EsotericSoftware/spine-runtimes/issues/939 +- Fix issues with region trimming support, see https://github.com/EsotericSoftware/spine-runtimes/commit/262bc26c64d4111002d80e201cb1a3345e6727df +- Added support for overriding `StarlingAtlasAttachmentLoader#getTexture()`, see https://github.com/EsotericSoftware/spine-runtimes/commit/ea7dbecb98edc74e439aa9ef90dcf6eed865f718 +- Texture atlas operations are no longer handled in `Starling#newRegionAttachment` and `Starling#newMeshAttachment` but delegated to the atlas. +- Added sample for additive animation blending, see https://github.com/EsotericSoftware/spine-runtimes/blob/6a556de01429878df47bb276a97959a8bdbbe32f/spine-starling/spine-starling-example/src/spine/examples/OwlExample.as +- Added sample on how to use bounding box attachment vertices https://github.com/EsotericSoftware/spine-runtimes/commit/e20428b02699226164fa73ba4b12f7d029ae6f4d +- Fully transparent meshes are not submitted for rendering. +- No hit-tests are performed when a skeleton is invisible. ## C -* **Breaking changes** - * Listeners on `spAnimationState` and `spTrackEntry` will now also be called if a track entry gets disposed as part of disposing an animation state. - * The completion event will fire for looped 0 duration animations every frame. - * The spine-cocos2dx and spine-ue4 runtimes are now based on spine-cpp. See below for changes. - * Skeleton `flipX/flipY` has been replaced with `scaleX/scaleY`. This cleans up applying transforms and is more powerful. Allows scaling a whole skeleton which has bones that disallow scale inheritance - * Mix time is no longer affected by `TrackEntry#timeScale`. See https://github.com/EsotericSoftware/spine-runtimes/issues/1194 - * `spMeshAttachment` has two new fields `regionTextureWith` and `regionTextureHeight`. These must be set in custom attachment loader. See `AtlasAttachmentLoader`. -* **Additions** - * Added support for local and relative transform constraint calculation, including additional fields in `spTransformConstraintData`. - * `Animation#apply` and `Timeline#apply`` now take enums `MixPose` and `MixDirection` instead of booleans - * Added `spVertexEffect` and corresponding implementations `spJitterVertexEffect` and `spSwirlVertexEffect`. Create/dispose through the corresponding `spXXXVertexEffect_create()/dispose()` functions. Set on framework/engine specific renderer. - * Functions in `extension.h` are not prefixed with `_sp` instead of just `_` to avoid interference with other libraries. - * Introduced `SP_API` macro. Every spine-c function is prefixed with this macro. By default, it is an empty string. Can be used to markup spine-c functions with e.g. ``__declspec` when compiling to a dll or linking to that dll. - * Added `void *userData` to `spAnimationState`to be consumed in callbacks. - * Added additive animation blending. When playing back multiple animations on different tracks, where each animation modifies the same skeleton property, the results of tracks with lower indices are discarded, and only the result from the track with the highest index is used. With animation blending, the results of all tracks are mixed together. This allows effects like mixing multiple facial expressions (angry, happy, sad) with percentage mixes. By default the old behaviour is retained (results from lower tracks are discarded). To enable additive blending across animation tracks, call `spTrackEntry->mixBlend = SP_MIXBLEND_ADD)` on each track. To specify the blend percentage, set `spTrackEntry->alpha`. See http://esotericsoftware.com/forum/morph-target-track-animation-mix-mode-9459 for a discussion. - * Optimized attachment lookup to give a 40x speed-up. See https://github.com/EsotericSoftware/spine-runtimes/commit/cab81276263890b65d07fa2329ace16db1e365ff - * Support for stretchy IK - * Support for audio events, see `audioPath`, `volume` and `balance` fields on event (data). - * `spTrackEntry` has an additional field called `holdPrevious`. It can be used to counter act a limitation of `AnimationState` resulting in "dipping" of parts of the animation. For a full discussion of the problem and the solution we've implemented, see this [forum thread](http://esotericsoftware.com/forum/Probably-Easy-Animation-mixing-with-multiple-tracks-10682?p=48130&hilit=holdprevious#p48130). + +- **Breaking changes** + - Listeners on `spAnimationState` and `spTrackEntry` will now also be called if a track entry gets disposed as part of disposing an animation state. + - The completion event will fire for looped 0 duration animations every frame. + - The spine-cocos2dx and spine-ue4 runtimes are now based on spine-cpp. See below for changes. + - Skeleton `flipX/flipY` has been replaced with `scaleX/scaleY`. This cleans up applying transforms and is more powerful. Allows scaling a whole skeleton which has bones that disallow scale inheritance + - Mix time is no longer affected by `TrackEntry#timeScale`. See https://github.com/EsotericSoftware/spine-runtimes/issues/1194 + - `spMeshAttachment` has two new fields `regionTextureWith` and `regionTextureHeight`. These must be set in custom attachment loader. See `AtlasAttachmentLoader`. +- **Additions** + - Added support for local and relative transform constraint calculation, including additional fields in `spTransformConstraintData`. + - `Animation#apply` and ` Timeline#apply`` now take enums `MixPose`and`MixDirection` instead of booleans + - Added `spVertexEffect` and corresponding implementations `spJitterVertexEffect` and `spSwirlVertexEffect`. Create/dispose through the corresponding `spXXXVertexEffect_create()/dispose()` functions. Set on framework/engine specific renderer. + - Functions in `extension.h` are not prefixed with `_sp` instead of just `_` to avoid interference with other libraries. + - Introduced `SP_API` macro. Every spine-c function is prefixed with this macro. By default, it is an empty string. Can be used to markup spine-c functions with e.g. ``__declspec` when compiling to a dll or linking to that dll. + - Added `void *userData` to `spAnimationState`to be consumed in callbacks. + - Added additive animation blending. When playing back multiple animations on different tracks, where each animation modifies the same skeleton property, the results of tracks with lower indices are discarded, and only the result from the track with the highest index is used. With animation blending, the results of all tracks are mixed together. This allows effects like mixing multiple facial expressions (angry, happy, sad) with percentage mixes. By default the old behaviour is retained (results from lower tracks are discarded). To enable additive blending across animation tracks, call `spTrackEntry->mixBlend = SP_MIXBLEND_ADD)` on each track. To specify the blend percentage, set `spTrackEntry->alpha`. See http://esotericsoftware.com/forum/morph-target-track-animation-mix-mode-9459 for a discussion. + - Optimized attachment lookup to give a 40x speed-up. See https://github.com/EsotericSoftware/spine-runtimes/commit/cab81276263890b65d07fa2329ace16db1e365ff + - Support for stretchy IK + - Support for audio events, see `audioPath`, `volume` and `balance` fields on event (data). + - `spTrackEntry` has an additional field called `holdPrevious`. It can be used to counter act a limitation of `AnimationState` resulting in "dipping" of parts of the animation. For a full discussion of the problem and the solution we've implemented, see this [forum thread](http://esotericsoftware.com/forum/Probably-Easy-Animation-mixing-with-multiple-tracks-10682?p=48130&hilit=holdprevious#p48130). ### Cocos2d-Objc -* Added vertex effect support to modify vertices of skeletons on the CPU. See `RaptorExample.m`. -* Explanation how to handle ARC, see https://github.com/EsotericSoftware/spine-runtimes/commit/a4f122b08c5e2a51d6aad6fc5a947f7ec31f2eb8 -* The super class `::update()` method of `SkeletonRenderer` is now called, see https://github.com/EsotericSoftware/spine-runtimes/commit/f7bb98185236a6d8f35bfefc70afe4f31e9ec9d2 -* Added improved tint-black shader. + +- Added vertex effect support to modify vertices of skeletons on the CPU. See `RaptorExample.m`. +- Explanation how to handle ARC, see https://github.com/EsotericSoftware/spine-runtimes/commit/a4f122b08c5e2a51d6aad6fc5a947f7ec31f2eb8 +- The super class `::update()` method of `SkeletonRenderer` is now called, see https://github.com/EsotericSoftware/spine-runtimes/commit/f7bb98185236a6d8f35bfefc70afe4f31e9ec9d2 +- Added improved tint-black shader. ### SFML -* `spine-sfml.h` no longer defines `SPINE_SHORT_NAMES` to avoid collisions with other APIs. See #1058. -* Added support for vertex effects. See raptor example. -* Added premultiplied alpha support to `SkeletonDrawable`. Use `SkeletonDrawable::setUsePremultipliedAlpha()`, see https://github.com/EsotericSoftware/spine-runtimes/commit/34086c1f41415309b2ecce86055f6656fcba2950 -* Added additive animation blending sample, see https://github.com/EsotericSoftware/spine-runtimes/blob/b7e712d3ca1d6be3ebcfe3254dc2cea9c44dda71/spine-sfml/example/main.cpp#L369 + +- `spine-sfml.h` no longer defines `SPINE_SHORT_NAMES` to avoid collisions with other APIs. See #1058. +- Added support for vertex effects. See raptor example. +- Added premultiplied alpha support to `SkeletonDrawable`. Use `SkeletonDrawable::setUsePremultipliedAlpha()`, see https://github.com/EsotericSoftware/spine-runtimes/commit/34086c1f41415309b2ecce86055f6656fcba2950 +- Added additive animation blending sample, see https://github.com/EsotericSoftware/spine-runtimes/blob/b7e712d3ca1d6be3ebcfe3254dc2cea9c44dda71/spine-sfml/example/main.cpp#L369 ## C++ -* ** Additions ** - * Added C++ Spine runtime. See the [spine-cpp Runtime Guide](https://esotericsoftware.com/spine-cpp) for more information on spine-cpp. - * Added parsing of non-essential data (fps, images path, audio path) to for `.json`/`.skel` parsers. + +- ** Additions ** + - Added C++ Spine runtime. See the [spine-cpp Runtime Guide](https://esotericsoftware.com/spine-cpp) for more information on spine-cpp. + - Added parsing of non-essential data (fps, images path, audio path) to for `.json`/`.skel` parsers. ### Cocos2d-x -* Added ETC1 alpha support, thanks @halx99! Does not work when two color tint is enabled. -* Added `spAtlasPage_setCustomTextureLoader()` which let's you do texture loading manually. Thanks @jareguo. -* Added `SkeletonRenderer:setSlotsRange()` and `SkeletonRenderer::createWithSkeleton()`. This allows you to split rendering of a skeleton up into multiple parts, and render other nodes in between. See `SkeletonRendererSeparatorExample.cpp` for an example. -* Fully transparent attachments will not be rendered, improving rendering performance. -* Added improved tint-black shader. -* Updated to cocos2d-x 3.16 -* The skeleton setup pose and world transform are now calculated on initialization to avoid flickering on start-up. -* Updated to cocos2d-x 3.17.1 -* **Breaking change**: Switched from [spine-c](spine-c) to [spine-cpp](spine-cpp) as the underlying Spine runtime. See the [spine-cpp Runtime Guide](https://esotericsoftware.com/spine-cpp) for more information on spine-cpp. - * Added `Cocos2dAttachmentLoader` to be used when constructing an `Atlas`. Used by default by `SkeletonAnimation` and `SkeletonRenderer` when creating instances via the `createXXX` methods. - * All C structs and enums `spXXX` have been replaced with their C++ equivalents `spine::XXX` in all public interfaces. - * All instantiations via `new` of C++ classes from spine-cpp should contain `(__FILE__, __LINE__)`. This allows the tracking of instantations and detection of memory leaks via the `spine::DebugExtension`. + +- Added ETC1 alpha support, thanks @halx99! Does not work when two color tint is enabled. +- Added `spAtlasPage_setCustomTextureLoader()` which let's you do texture loading manually. Thanks @jareguo. +- Added `SkeletonRenderer:setSlotsRange()` and `SkeletonRenderer::createWithSkeleton()`. This allows you to split rendering of a skeleton up into multiple parts, and render other nodes in between. See `SkeletonRendererSeparatorExample.cpp` for an example. +- Fully transparent attachments will not be rendered, improving rendering performance. +- Added improved tint-black shader. +- Updated to cocos2d-x 3.16 +- The skeleton setup pose and world transform are now calculated on initialization to avoid flickering on start-up. +- Updated to cocos2d-x 3.17.1 +- **Breaking change**: Switched from [spine-c](spine-c) to [spine-cpp](spine-cpp) as the underlying Spine runtime. See the [spine-cpp Runtime Guide](https://esotericsoftware.com/spine-cpp) for more information on spine-cpp. + - Added `Cocos2dAttachmentLoader` to be used when constructing an `Atlas`. Used by default by `SkeletonAnimation` and `SkeletonRenderer` when creating instances via the `createXXX` methods. + - All C structs and enums `spXXX` have been replaced with their C++ equivalents `spine::XXX` in all public interfaces. + - All instantiations via `new` of C++ classes from spine-cpp should contain `(__FILE__, __LINE__)`. This allows the tracking of instantations and detection of memory leaks via the `spine::DebugExtension`. ### SFML -* Create a second SFML backend using [spine-cpp](spine-cpp/). See the [spine-cpp Runtime Guide](https://esotericsoftware.com/spine-cpp) for more information on spine-cpp. -* Added support for vertex effects. See raptor example. -* Added premultiplied alpha support to `SkeletonDrawable`. Use `SkeletonDrawable::setUsePremultipliedAlpha()`, see https://github.com/EsotericSoftware/spine-runtimes/commit/34086c1f41415309b2ecce86055f6656fcba2950 -* Added additive animation blending sample, see https://github.com/EsotericSoftware/spine-runtimes/blob/b7e712d3ca1d6be3ebcfe3254dc2cea9c44dda71/spine-sfml/example/main.cpp#L369 + +- Create a second SFML backend using [spine-cpp](spine-cpp/). See the [spine-cpp Runtime Guide](https://esotericsoftware.com/spine-cpp) for more information on spine-cpp. +- Added support for vertex effects. See raptor example. +- Added premultiplied alpha support to `SkeletonDrawable`. Use `SkeletonDrawable::setUsePremultipliedAlpha()`, see https://github.com/EsotericSoftware/spine-runtimes/commit/34086c1f41415309b2ecce86055f6656fcba2950 +- Added additive animation blending sample, see https://github.com/EsotericSoftware/spine-runtimes/blob/b7e712d3ca1d6be3ebcfe3254dc2cea9c44dda71/spine-sfml/example/main.cpp#L369 ### UE4 - * spine-c is now exposed from the plugin shared library on Windows via __declspec. - * Updated to Unreal Engine 4.18 - * Added C++ example, see https://github.com/EsotericSoftware/spine-runtimes/commit/15011e81b7061495dba45e28b4d3f4efb10d7f40 - * `SkeletonRendererComponent` generates collision meshes by default. - * Disabled generation of collision meshes by `SkeletonRendererComponent`. Both `ProceduralMeshComponent` and `RuntimeMeshComponent` have a bug that generates a new PhysiX file every frame per component. Users are advised to add a separate collision shape to the root scene component of an actor instead. - * Using UE4 `FMemory` allocator by default. This should fix issues on some consoles. - * **Breaking change** moved away from `RuntimeMeshComponent`, as its maintainance has seized, back to `ProceduralMeshComponent`. Existing projects should just work. However, if you run into issues, you may have to remove the old `SpineSkeletonRendererComponent` and add a new one to your existing actors. - * **Breaking change** due to the removal of `RuntimeMeshComponent` and reversal to `ProceduralMeshComponent`, two color tinting is currently not supported. `ProceduralMeshComponent` does not support enough vertex attributes for us to encode the second color in the vertex stream. You can remove the `RuntimeMeshComponent/` directory from your plugins directory and remove the component from any `build.cs` files that may reference it. - * **Breaking change**: Switched from [spine-c](spine-c) to [spine-cpp](spine-cpp) as the underlying Spine runtime. See the [spine-cpp Runtime Guide](https://esotericsoftware.com/spine-cpp) for more information on spine-cpp. - * All C structs and enums `spXXX` have been replaced with their C++ equivalents `spine::XXX` in all public interfaces. - * All instantiations via `new` of C++ classes from spine-cpp should contain `(__FILE__, __LINE__)`. This allows the tracking of instantations and detection of memory leaks via the `spine::DebugExtension`. -* Updated to Unreal Engine 4.20 (samples require 4.17+), see the `spine-ue4/Plugins/SpinePlugin/Source/SpinePlugin/SpinePlugin.build.cs` file on how to compile in 4.20 with the latest UBT API changes. -* Updated to Unreal Engine 4.21 (samples require 4.21). -* **Breaking change**: `UBoneDriverComponent` and `UBoneFollowerComponent` are now `USceneComponent` instead of `UActorComponent`. They either update only themselves, or also the owning `UActor`, depending on whether the new flag `UseComponentTransform` is set. See https://github.com/EsotericSoftware/spine-runtimes/pull/1175 -* Added query methods for slots, bones, skins and animations to `SpineSkeletonComponent` and `UTrackEntry`. These allow you to query these objects by name in both C++ and blueprints. -* Added `Preview Animation` and `Preview Skin` properties to `SpineSkeletonAnimationComponent`. Enter an animation or skin name to live-preview it in the editor. Enter an empty string to reset the animation or skin. -## C# ## -* **Breaking changes** - * The completion event will fire for looped 0 duration animations every frame. - * Skeleton `flipX/flipY` has been replaced with `scaleX/scaleY`. This cleans up applying transforms and is more powerful. Allows scaling a whole skeleton which has bones that disallow scale inheritance - * Mix time is no longer affected by `TrackEntry#timeScale`. See https://github.com/EsotericSoftware/spine-runtimes/issues/1194 -* **Additions** - * Added additive animation blending. When playing back multiple animations on different tracks, where each animation modifies the same skeleton property, the results of tracks with lower indices are discarded, and only the result from the track with the highest index is used. With animation blending, the results of all tracks are mixed together. This allows effects like mixing multiple facial expressions (angry, happy, sad) with percentage mixes. By default the old behaviour is retained (results from lower tracks are discarded). To enable additive blending across animation tracks, call `TrackEntry#MixBlend = MixBlend.add` on each track. To specify the blend percentage, set `TrackEntry#Alpha`. See http://esotericsoftware.com/forum/morph-target-track-animation-mix-mode-9459 for a discussion. - * Support for stretchy IK - * Support for audio events, see `audioPath`, `volume` and `balance` fields on event (data). - * `TrackEntry` has an additional field called `holdPrevious`. It can be used to counter act a limitation of `AnimationState` resulting in "dipping" of parts of the animation. For a full discussion of the problem and the solution we've implemented, see this [forum thread](http://esotericsoftware.com/forum/Probably-Easy-Animation-mixing-with-multiple-tracks-10682?p=48130&hilit=holdprevious#p48130). +- spine-c is now exposed from the plugin shared library on Windows via \_\_declspec. +- Updated to Unreal Engine 4.18 +- Added C++ example, see https://github.com/EsotericSoftware/spine-runtimes/commit/15011e81b7061495dba45e28b4d3f4efb10d7f40 +- `SkeletonRendererComponent` generates collision meshes by default. +- Disabled generation of collision meshes by `SkeletonRendererComponent`. Both `ProceduralMeshComponent` and `RuntimeMeshComponent` have a bug that generates a new PhysiX file every frame per component. Users are advised to add a separate collision shape to the root scene component of an actor instead. +- Using UE4 `FMemory` allocator by default. This should fix issues on some consoles. +- **Breaking change** moved away from `RuntimeMeshComponent`, as its maintainance has seized, back to `ProceduralMeshComponent`. Existing projects should just work. However, if you run into issues, you may have to remove the old `SpineSkeletonRendererComponent` and add a new one to your existing actors. +- **Breaking change** due to the removal of `RuntimeMeshComponent` and reversal to `ProceduralMeshComponent`, two color tinting is currently not supported. `ProceduralMeshComponent` does not support enough vertex attributes for us to encode the second color in the vertex stream. You can remove the `RuntimeMeshComponent/` directory from your plugins directory and remove the component from any `build.cs` files that may reference it. +- **Breaking change**: Switched from [spine-c](spine-c) to [spine-cpp](spine-cpp) as the underlying Spine runtime. See the [spine-cpp Runtime Guide](https://esotericsoftware.com/spine-cpp) for more information on spine-cpp. +- All C structs and enums `spXXX` have been replaced with their C++ equivalents `spine::XXX` in all public interfaces. +- All instantiations via `new` of C++ classes from spine-cpp should contain `(__FILE__, __LINE__)`. This allows the tracking of instantations and detection of memory leaks via the `spine::DebugExtension`. +- Updated to Unreal Engine 4.20 (samples require 4.17+), see the `spine-ue4/Plugins/SpinePlugin/Source/SpinePlugin/SpinePlugin.build.cs` file on how to compile in 4.20 with the latest UBT API changes. +- Updated to Unreal Engine 4.21 (samples require 4.21). +- **Breaking change**: `UBoneDriverComponent` and `UBoneFollowerComponent` are now `USceneComponent` instead of `UActorComponent`. They either update only themselves, or also the owning `UActor`, depending on whether the new flag `UseComponentTransform` is set. See https://github.com/EsotericSoftware/spine-runtimes/pull/1175 +- Added query methods for slots, bones, skins and animations to `SpineSkeletonComponent` and `UTrackEntry`. These allow you to query these objects by name in both C++ and blueprints. +- Added `Preview Animation` and `Preview Skin` properties to `SpineSkeletonAnimationComponent`. Enter an animation or skin name to live-preview it in the editor. Enter an empty string to reset the animation or skin. + +## C# + +- **Breaking changes** + - The completion event will fire for looped 0 duration animations every frame. + - Skeleton `flipX/flipY` has been replaced with `scaleX/scaleY`. This cleans up applying transforms and is more powerful. Allows scaling a whole skeleton which has bones that disallow scale inheritance + - Mix time is no longer affected by `TrackEntry#timeScale`. See https://github.com/EsotericSoftware/spine-runtimes/issues/1194 +- **Additions** + - Added additive animation blending. When playing back multiple animations on different tracks, where each animation modifies the same skeleton property, the results of tracks with lower indices are discarded, and only the result from the track with the highest index is used. With animation blending, the results of all tracks are mixed together. This allows effects like mixing multiple facial expressions (angry, happy, sad) with percentage mixes. By default the old behaviour is retained (results from lower tracks are discarded). To enable additive blending across animation tracks, call `TrackEntry#MixBlend = MixBlend.add` on each track. To specify the blend percentage, set `TrackEntry#Alpha`. See http://esotericsoftware.com/forum/morph-target-track-animation-mix-mode-9459 for a discussion. + - Support for stretchy IK + - Support for audio events, see `audioPath`, `volume` and `balance` fields on event (data). + - `TrackEntry` has an additional field called `holdPrevious`. It can be used to counter act a limitation of `AnimationState` resulting in "dipping" of parts of the animation. For a full discussion of the problem and the solution we've implemented, see this [forum thread](http://esotericsoftware.com/forum/Probably-Easy-Animation-mixing-with-multiple-tracks-10682?p=48130&hilit=holdprevious#p48130). ### Unity -* **Runtime and Editor, and Assembly Definition** Files and folders have been reorganized into "Runtime" and "Editor". Each of these have an `.asmdef` file that defines these separately as their own assembly in Unity *(Note: Spine `.asmdef` files are currently deactivated to `.txt` extension, see below)*. For projects not using assembly definition, you may delete the `.asmdef` files. These assembly definitions will be ignored by older versions of Unity that don't support it. - * In this scheme, the entirety of the base spine-csharp runtime is inside the "Runtime" folder, to be compiled in the same assembly as spine-unity so they can continue to share internal members. -* **Spine `.asmdef` files are now deactivated (using `.txt` extension) by default** This prevents problems when updating Spine through unitypackages, overwriting the Timeline reference entry in `spine-unity.asmdef` (added automatically when enabling Unity 2019 Timeline support, see `Timeline Support for Unity 2019`), causing compile errors. In case you want to enable the `.asmdef` files, rename the files: - `Spine/Runtime/spine-unity.txt` to `Spine/Runtime/spine-unity.asmdef` and - `Spine/Editor/spine-unity-editor.txt` to `Spine/Editor/spine-unity-editor.asmdef`. -* **SkeletonAnimator is now SkeletonMecanim** The Spine-Unity Mecanim-driven component `SkeletonAnimator` has been renamed `SkeletonMecanim` to make it more autocomplete-friendly and more obvious at human-glance. The .meta files and guids should remain intact so existing projects and prefabs should not break. However, user code needs to be updated to use `SkeletonMecanim`. -* **SpineAtlasAsset** The existing `AtlasAsset` type has been renamed to `SpineAtlasAsset` to signify that it specifically uses a Spine/libGDX atlas as its source. Serialization should be intact but user code will need to be updated to refer to existing atlases as `SpineAtlasAsset`. - * **AtlasAssetBase** `SpineAtlasAsset` now has an abstract base class called `SpineAtlasAsset`. This is the base class to derive when using alternate atlas sources. Existing SkeletonDataAsset field "atlasAssets" now have the "AtlasAssetBase" type. Serialization should be intact, but user code will need to be updated to refer to the atlas assets accordingly. - * This change is in preparation for alternate atlas options such as Unity's SpriteAtlas. -* **Optional Straight Alpha for shaders** Spine-Unity's included Unity shaders now have a `_STRAIGHT_ALPHA_INPUT` shader_feature, toggled as a checkbox in the Material's inspector. This allows the Material to use a non-premultiplied alpha/straight alpha input texture. - * The following shaders now have the "Straight Alpha Texture" checkbox when used on a material: - * `Spine/Skeleton` - * `Spine/Skeleton Tint Black` - * `Spine/Skeleton Lit` - * `Spine/Skeleton Tint` - * `Spine/Skeleton Fill` - * `Spine/SkeletonGraphic (Premultiply Alpha)` was renamed to `Spine/SkeletonGraphic` - * `Spine/SkeletonGraphic Tint Black (Premultiply Alpha)` was renamed to `Spine/SkeletonGraphic Tint Black` - * `Spine/Skeleton PMA Multiply` - * `Spine/Skeleton PMA Screen` - * Dedicated straight alpha shaders were removed from the runtime. - * `Spine/Straight Alpha/Skeleton Fill` - * `Spine/Straight Alpha/Skeleton Tint` -* **Detection of Incorrect Texture Settings** Especially when atlas textures are exported with setting `Premultiply alpha` enabled, it is important to configure Unity's texture import settings correctly. By default, you will now receive warnings where texture settings are expected to cause incorrect rendering. - * The following rules apply: - * `sRGB (Color Texture)` shall be disabled when `Generate Mip Maps` is enabled, otherwise you will receive white border outlines. - * `Alpha Is Transparency` shall be disabled on `Premultiply alpha` textures, otherwise you will receive light ghosting artifacts in transparent areas. - * These warnings can be disabled in `Edit - Preferences - Spine`. -* **Sprite Mask Support for all Included Shaders** The `Skeleton Animation` and `Skeleton Mecanim` components now provide an additional `Mask Interaction` field in the Inspector, covering identical functionality as Unity's built in `Sprite Renderer` component: - * `Mask Interaction` modes: - * `None` - The sprite will not interact with the masking system. Default behavior. - * `Visible Inside Mask` - The sprite will be visible only in areas where a mask is present. - * `Visible Outside Mask` - The sprite will be visible only in areas where no mask is present. - * `Automatically Generated Materials` When switching `Mask Interaction` modes in the Inspector outside of Play mode, the required additional material assets are generated for the respective `Stencil Compare` parameters - with file suffixes `'_InsideMask'` and `'_OutsideMask'`, placed in the same folder as the original materials. By default all generated materials are kept as references by the `Skeleton Animation` component for switching at runtime. - These materials can be managed and optimized via the `SkeletonAnimation`'s `Advanced` section: - * Using the `Clear` button you can clear the reference to unneeded materials, - * Using the `Delete` button the respective assets are deleted as well as references cleared. Note that other `Skeleton Animation` GameObjects might still reference the materials, so use with caution! - * With the `Set` button you can again assign a link to the respective materials to prepare them for runtime use. If the materials were not present or have been deleted, they are generated again based on the default materials. - * When switching `Mask Interaction` mode at runtime, the previously prepared materials are switched active automatically. When the respective materials have not been prepared, material copies of the default materials are created on the fly. Note that these materials are not shared between similar `Skeleton Animation` GameObjects, so it is recommended to use the generated material assets where possible. - * **Every shader now exposes the `Stencil Compare` parameter** for further customization. This way you have maximum flexibility to use custom mechanisms to switch materials at runtime if you should ever need more than the three materials generated by `Skeleton Animation`'s `Mask Interaction` parameter. Reference `Stencil Compare` values are: - * `CompareFunction.Disabled` for `Mask Interaction - None` - * `CompareFunction.LessEqual` for `Mask Interaction - Visible Inside Mask` - * `CompareFunction.Greater` for `Mask Interaction - Visible Outside Mask` -* **RectMask2D Support for SkeletonGraphic** Both `SkeletonGraphic` shaders '`Spine/SkeletonGraphic`' and '`Spine/SkeletonGraphic Tint Black`' now respect masking areas defined via Unity's `RectMask2D` component. -* **Timeline Support for Unity 2019** using the existing Timeline components. By default, all Spine Timeline components are deactivated in Unity 2019 and **can be activated via the Spine Preferences menu**. This step became necessary because in Unity 2019, Timeline has been moved to a separate Package and is no longer included in the Unity core. Please visit `Edit - Preferences - Spine` and at `Timeline Package Support` hit `Enable` to automatically perform all necessary steps to activate the Timeline components. -This will automatically: + +- **Runtime and Editor, and Assembly Definition** Files and folders have been reorganized into "Runtime" and "Editor". Each of these have an `.asmdef` file that defines these separately as their own assembly in Unity _(Note: Spine `.asmdef` files are currently deactivated to `.txt` extension, see below)_. For projects not using assembly definition, you may delete the `.asmdef` files. These assembly definitions will be ignored by older versions of Unity that don't support it. + - In this scheme, the entirety of the base spine-csharp runtime is inside the "Runtime" folder, to be compiled in the same assembly as spine-unity so they can continue to share internal members. +- **Spine `.asmdef` files are now deactivated (using `.txt` extension) by default** This prevents problems when updating Spine through unitypackages, overwriting the Timeline reference entry in `spine-unity.asmdef` (added automatically when enabling Unity 2019 Timeline support, see `Timeline Support for Unity 2019`), causing compile errors. In case you want to enable the `.asmdef` files, rename the files: + `Spine/Runtime/spine-unity.txt` to `Spine/Runtime/spine-unity.asmdef` and + `Spine/Editor/spine-unity-editor.txt` to `Spine/Editor/spine-unity-editor.asmdef`. +- **SkeletonAnimator is now SkeletonMecanim** The Spine-Unity Mecanim-driven component `SkeletonAnimator` has been renamed `SkeletonMecanim` to make it more autocomplete-friendly and more obvious at human-glance. The .meta files and guids should remain intact so existing projects and prefabs should not break. However, user code needs to be updated to use `SkeletonMecanim`. +- **SpineAtlasAsset** The existing `AtlasAsset` type has been renamed to `SpineAtlasAsset` to signify that it specifically uses a Spine/libGDX atlas as its source. Serialization should be intact but user code will need to be updated to refer to existing atlases as `SpineAtlasAsset`. + - **AtlasAssetBase** `SpineAtlasAsset` now has an abstract base class called `SpineAtlasAsset`. This is the base class to derive when using alternate atlas sources. Existing SkeletonDataAsset field "atlasAssets" now have the "AtlasAssetBase" type. Serialization should be intact, but user code will need to be updated to refer to the atlas assets accordingly. + - This change is in preparation for alternate atlas options such as Unity's SpriteAtlas. +- **Optional Straight Alpha for shaders** Spine-Unity's included Unity shaders now have a `_STRAIGHT_ALPHA_INPUT` shader_feature, toggled as a checkbox in the Material's inspector. This allows the Material to use a non-premultiplied alpha/straight alpha input texture. + - The following shaders now have the "Straight Alpha Texture" checkbox when used on a material: + - `Spine/Skeleton` + - `Spine/Skeleton Tint Black` + - `Spine/Skeleton Lit` + - `Spine/Skeleton Tint` + - `Spine/Skeleton Fill` + - `Spine/SkeletonGraphic (Premultiply Alpha)` was renamed to `Spine/SkeletonGraphic` + - `Spine/SkeletonGraphic Tint Black (Premultiply Alpha)` was renamed to `Spine/SkeletonGraphic Tint Black` + - `Spine/Skeleton PMA Multiply` + - `Spine/Skeleton PMA Screen` + - Dedicated straight alpha shaders were removed from the runtime. + - `Spine/Straight Alpha/Skeleton Fill` + - `Spine/Straight Alpha/Skeleton Tint` +- **Detection of Incorrect Texture Settings** Especially when atlas textures are exported with setting `Premultiply alpha` enabled, it is important to configure Unity's texture import settings correctly. By default, you will now receive warnings where texture settings are expected to cause incorrect rendering. + - The following rules apply: + - `sRGB (Color Texture)` shall be disabled when `Generate Mip Maps` is enabled, otherwise you will receive white border outlines. + - `Alpha Is Transparency` shall be disabled on `Premultiply alpha` textures, otherwise you will receive light ghosting artifacts in transparent areas. + - These warnings can be disabled in `Edit - Preferences - Spine`. +- **Sprite Mask Support for all Included Shaders** The `Skeleton Animation` and `Skeleton Mecanim` components now provide an additional `Mask Interaction` field in the Inspector, covering identical functionality as Unity's built in `Sprite Renderer` component: + - `Mask Interaction` modes: + - `None` - The sprite will not interact with the masking system. Default behavior. + - `Visible Inside Mask` - The sprite will be visible only in areas where a mask is present. + - `Visible Outside Mask` - The sprite will be visible only in areas where no mask is present. + - `Automatically Generated Materials` When switching `Mask Interaction` modes in the Inspector outside of Play mode, the required additional material assets are generated for the respective `Stencil Compare` parameters - with file suffixes `'_InsideMask'` and `'_OutsideMask'`, placed in the same folder as the original materials. By default all generated materials are kept as references by the `Skeleton Animation` component for switching at runtime. + These materials can be managed and optimized via the `SkeletonAnimation`'s `Advanced` section: + - Using the `Clear` button you can clear the reference to unneeded materials, + - Using the `Delete` button the respective assets are deleted as well as references cleared. Note that other `Skeleton Animation` GameObjects might still reference the materials, so use with caution! + - With the `Set` button you can again assign a link to the respective materials to prepare them for runtime use. If the materials were not present or have been deleted, they are generated again based on the default materials. + - When switching `Mask Interaction` mode at runtime, the previously prepared materials are switched active automatically. When the respective materials have not been prepared, material copies of the default materials are created on the fly. Note that these materials are not shared between similar `Skeleton Animation` GameObjects, so it is recommended to use the generated material assets where possible. + - **Every shader now exposes the `Stencil Compare` parameter** for further customization. This way you have maximum flexibility to use custom mechanisms to switch materials at runtime if you should ever need more than the three materials generated by `Skeleton Animation`'s `Mask Interaction` parameter. Reference `Stencil Compare` values are: + - `CompareFunction.Disabled` for `Mask Interaction - None` + - `CompareFunction.LessEqual` for `Mask Interaction - Visible Inside Mask` + - `CompareFunction.Greater` for `Mask Interaction - Visible Outside Mask` +- **RectMask2D Support for SkeletonGraphic** Both `SkeletonGraphic` shaders '`Spine/SkeletonGraphic`' and '`Spine/SkeletonGraphic Tint Black`' now respect masking areas defined via Unity's `RectMask2D` component. +- **Timeline Support for Unity 2019** using the existing Timeline components. By default, all Spine Timeline components are deactivated in Unity 2019 and **can be activated via the Spine Preferences menu**. This step became necessary because in Unity 2019, Timeline has been moved to a separate Package and is no longer included in the Unity core. Please visit `Edit - Preferences - Spine` and at `Timeline Package Support` hit `Enable` to automatically perform all necessary steps to activate the Timeline components. + This will automatically: 1. download the Unity Timeline package 2. activate the Spine Timeline components by setting the compile definition `SPINE_TIMELINE_PACKAGE_DOWNLOADED` for all platforms 3. modify the `spine-unity.asmdef` file by adding the reference to the Unity Timeline library. -* Added `Create 2D Hinge Chain` functionality at `SkeletonUtilityBone` inspector, previously only `Create 3D Hinge Chain` was available. +- Added `Create 2D Hinge Chain` functionality at `SkeletonUtilityBone` inspector, previously only `Create 3D Hinge Chain` was available. ### XNA/MonoGame -* Added support for any `Effect` to be used by `SkeletonRenderer` -* Added support for `IVertexEffect` to modify vertices of skeletons on the CPU. `IVertexEffect` instances can be set on the `SkeletonRenderer`. See example project. -* Added `SkeletonDebugRenderer` -* Made `MeshBatcher` of SkeletonRenderer accessible via a getter. Allows user to batch their own geometry together with skeleton meshes for maximum batching instead of using XNA SpriteBatcher. + +- Added support for any `Effect` to be used by `SkeletonRenderer` +- Added support for `IVertexEffect` to modify vertices of skeletons on the CPU. `IVertexEffect` instances can be set on the `SkeletonRenderer`. See example project. +- Added `SkeletonDebugRenderer` +- Made `MeshBatcher` of SkeletonRenderer accessible via a getter. Allows user to batch their own geometry together with skeleton meshes for maximum batching instead of using XNA SpriteBatcher. ## Java -* **Breaking changes** - * Skeleton attachments: Moved update of attached skeleton out of libGDX `SkeletonRenderer`, added overloaded method `Skeleton#updateWorldTransform(Bone)`, used for `SkeletonAttachment`. You now MUST call this new method with the bone of the parent skeleton to which the child skeleton is attached. See `SkeletonAttachmentTest` for and example. - * The completion event will fire for looped 0 duration animations every frame. - * `MixPose` is now called `MixBlend`. - * Skeleton `flipX/flipY` has been replaced with `scaleX/scaleY`. This cleans up applying transforms and is more powerful. Allows scaling a whole skeleton which has bones that disallow scale inheritance - * Mix time is no longer affected by `TrackEntry#timeScale`. See https://github.com/EsotericSoftware/spine-runtimes/issues/1194 -* **Additions** - * Added `EventData#audioPath` field. This field contains the file name of the audio file used for the event. - * Added convenience method to add all attachments from one skin to another, see https://github.com/EsotericSoftware/spine-runtimes/commit/a0b7bb6c445efdfac12b0cdee2057afa3eff3ead - * Added additive animation blending. When playing back multiple animations on different tracks, where each animation modifies the same skeleton property, the results of tracks with lower indices are discarded, and only the result from the track with the highest index is used. With animation blending, the results of all tracks are mixed together. This allows effects like mixing multiple facial expressions (angry, happy, sad) with percentage mixes. By default the old behaviour is retained (results from lower tracks are discarded). To enable additive blending across animation tracks, call `TrackEntry#setMixBlend(MixBlend.add)` on each track. To specify the blend percentage, set `TrackEntry#alpha`. See http://esotericsoftware.com/forum/morph-target-track-animation-mix-mode-9459 for a discussion. - * Support for stretchy IK - * Support for audio events, see `audioPath`, `volume` and `balance` fields on event (data). - * `TrackEntry` has an additional field called `holdPrevious`. It can be used to counter act a limitation of `AnimationState` resulting in "dipping" of parts of the animation. For a full discussion of the problem and the solution we've implemented, see this [forum thread](http://esotericsoftware.com/forum/Probably-Easy-Animation-mixing-with-multiple-tracks-10682?p=48130&hilit=holdprevious#p48130). + +- **Breaking changes** + - Skeleton attachments: Moved update of attached skeleton out of libGDX `SkeletonRenderer`, added overloaded method `Skeleton#updateWorldTransform(Bone)`, used for `SkeletonAttachment`. You now MUST call this new method with the bone of the parent skeleton to which the child skeleton is attached. See `SkeletonAttachmentTest` for and example. + - The completion event will fire for looped 0 duration animations every frame. + - `MixPose` is now called `MixBlend`. + - Skeleton `flipX/flipY` has been replaced with `scaleX/scaleY`. This cleans up applying transforms and is more powerful. Allows scaling a whole skeleton which has bones that disallow scale inheritance + - Mix time is no longer affected by `TrackEntry#timeScale`. See https://github.com/EsotericSoftware/spine-runtimes/issues/1194 +- **Additions** + - Added `EventData#audioPath` field. This field contains the file name of the audio file used for the event. + - Added convenience method to add all attachments from one skin to another, see https://github.com/EsotericSoftware/spine-runtimes/commit/a0b7bb6c445efdfac12b0cdee2057afa3eff3ead + - Added additive animation blending. When playing back multiple animations on different tracks, where each animation modifies the same skeleton property, the results of tracks with lower indices are discarded, and only the result from the track with the highest index is used. With animation blending, the results of all tracks are mixed together. This allows effects like mixing multiple facial expressions (angry, happy, sad) with percentage mixes. By default the old behaviour is retained (results from lower tracks are discarded). To enable additive blending across animation tracks, call `TrackEntry#setMixBlend(MixBlend.add)` on each track. To specify the blend percentage, set `TrackEntry#alpha`. See http://esotericsoftware.com/forum/morph-target-track-animation-mix-mode-9459 for a discussion. + - Support for stretchy IK + - Support for audio events, see `audioPath`, `volume` and `balance` fields on event (data). + - `TrackEntry` has an additional field called `holdPrevious`. It can be used to counter act a limitation of `AnimationState` resulting in "dipping" of parts of the animation. For a full discussion of the problem and the solution we've implemented, see this [forum thread](http://esotericsoftware.com/forum/Probably-Easy-Animation-mixing-with-multiple-tracks-10682?p=48130&hilit=holdprevious#p48130). ### libGDX -* Added `VertexEffect` interface, instances of which can be set on `SkeletonRenderer`. Allows to modify vertices before submitting them to GPU. See `SwirlEffect`, `JitterEffect` and `VertexEffectTest`. -* Added improved tint-black shader. -* Improved performance by avoiding batch flush when not switching between normal and additive rendering with PMA -* Improvements to skeleton viewer. -* `TwoColorPolygonBatch` implements the `Batch` interface, allowing to the be used with other libGDX classes that require a batcher for drawing, potentially improving performance. See https://github.com/EsotericSoftware/spine-runtimes/commit/a46b3d1d0c135d51f9bef9ca17a5f8e5dda69927 -* Added `SkeletonDrawable` to render skeletons in scene2d UI https://github.com/EsotericSoftware/spine-runtimes/commit/b93686c185e2c9d5466969a8e07eee573ebe4b97 + +- Added `VertexEffect` interface, instances of which can be set on `SkeletonRenderer`. Allows to modify vertices before submitting them to GPU. See `SwirlEffect`, `JitterEffect` and `VertexEffectTest`. +- Added improved tint-black shader. +- Improved performance by avoiding batch flush when not switching between normal and additive rendering with PMA +- Improvements to skeleton viewer. +- `TwoColorPolygonBatch` implements the `Batch` interface, allowing to the be used with other libGDX classes that require a batcher for drawing, potentially improving performance. See https://github.com/EsotericSoftware/spine-runtimes/commit/a46b3d1d0c135d51f9bef9ca17a5f8e5dda69927 +- Added `SkeletonDrawable` to render skeletons in scene2d UI https://github.com/EsotericSoftware/spine-runtimes/commit/b93686c185e2c9d5466969a8e07eee573ebe4b97 ## Lua -* **Breaking changes** - * The completion event will fire for looped 0 duration animations every frame. - * Skeleton `flipX/flipY` has been replaced with `scaleX/scaleY`. This cleans up applying transforms and is more powerful. Allows scaling a whole skeleton which has bones that disallow scale inheritance - * Mix time is no longer affected by `TrackEntry#timeScale`. See https://github.com/EsotericSoftware/spine-runtimes/issues/1194 -* **Additions** - * Added `JitterEffect` and `SwirlEffect` and support for vertex effects in Corona and Love - * Added additive animation blending. When playing back multiple animations on different tracks, where each animation modifies the same skeleton property, the results of tracks with lower indices are discarded, and only the result from the track with the highest index is used. With animation blending, the results of all tracks are mixed together. This allows effects like mixing multiple facial expressions (angry, happy, sad) with percentage mixes. By default the old behaviour is retained (results from lower tracks are discarded). To enable additive blending across animation tracks, call `TrackEntry:setMixBlend(MixBlend.add)` on each track. To specify the blend percentage, set `TrackEntry.alpha`. See http://esotericsoftware.com/forum/morph-target-track-animation-mix-mode-9459 for a discussion. - * Support for stretchy IK - * Support for audio events, see `audioPath`, `volume` and `balance` fields on event (data). - * `TrackEntry` has an additional field called `holdPrevious`. It can be used to counter act a limitation of `AnimationState` resulting in "dipping" of parts of the animation. For a full discussion of the problem and the solution we've implemented, see this [forum thread](http://esotericsoftware.com/forum/Probably-Easy-Animation-mixing-with-multiple-tracks-10682?p=48130&hilit=holdprevious#p48130). + +- **Breaking changes** + - The completion event will fire for looped 0 duration animations every frame. + - Skeleton `flipX/flipY` has been replaced with `scaleX/scaleY`. This cleans up applying transforms and is more powerful. Allows scaling a whole skeleton which has bones that disallow scale inheritance + - Mix time is no longer affected by `TrackEntry#timeScale`. See https://github.com/EsotericSoftware/spine-runtimes/issues/1194 +- **Additions** + - Added `JitterEffect` and `SwirlEffect` and support for vertex effects in Corona and Love + - Added additive animation blending. When playing back multiple animations on different tracks, where each animation modifies the same skeleton property, the results of tracks with lower indices are discarded, and only the result from the track with the highest index is used. With animation blending, the results of all tracks are mixed together. This allows effects like mixing multiple facial expressions (angry, happy, sad) with percentage mixes. By default the old behaviour is retained (results from lower tracks are discarded). To enable additive blending across animation tracks, call `TrackEntry:setMixBlend(MixBlend.add)` on each track. To specify the blend percentage, set `TrackEntry.alpha`. See http://esotericsoftware.com/forum/morph-target-track-animation-mix-mode-9459 for a discussion. + - Support for stretchy IK + - Support for audio events, see `audioPath`, `volume` and `balance` fields on event (data). + - `TrackEntry` has an additional field called `holdPrevious`. It can be used to counter act a limitation of `AnimationState` resulting in "dipping" of parts of the animation. For a full discussion of the problem and the solution we've implemented, see this [forum thread](http://esotericsoftware.com/forum/Probably-Easy-Animation-mixing-with-multiple-tracks-10682?p=48130&hilit=holdprevious#p48130). ### Love2D -* Added support for vertex effects. Set an implementation like "JitterEffect" on `Skeleton.vertexEffect`. See `main.lua` for an example. + +- Added support for vertex effects. Set an implementation like "JitterEffect" on `Skeleton.vertexEffect`. See `main.lua` for an example. ### Corona -* Added support for vertex effects. Set an implementation like "JitterEffect" on `SkeletonRenderer.vertexEffect`. See `main.lua` for an example + +- Added support for vertex effects. Set an implementation like "JitterEffect" on `SkeletonRenderer.vertexEffect`. See `main.lua` for an example ## Typescript/Javascript -* **Breaking changes** - * The completion event will fire for looped 0 duration animations every frame. - * Skeleton `flipX/flipY` has been replaced with `scaleX/scaleY`. This cleans up applying transforms and is more powerful. Allows scaling a whole skeleton which has bones that disallow scale inheritance - * Mix time is no longer affected by `TrackEntry#timeScale`. See https://github.com/EsotericSoftware/spine-runtimes/issues/1194 -* **Additions** - * Added `AssetManager.loadTextureAtlas`. Instead of loading the `.atlas` and corresponding image files manually, you can simply specify the location of the `.atlas` file and AssetManager will load the atlas and all its images automatically. `AssetManager.get("atlasname.atlas")` will then return an instance of `spine.TextureAtlas`. - * Added additive animation blending. When playing back multiple animations on different tracks, where each animation modifies the same skeleton property, the results of tracks with lower indices are discarded, and only the result from the track with the highest index is used. With animation blending, the results of all tracks are mixed together. This allows effects like mixing multiple facial expressions (angry, happy, sad) with percentage mixes. By default the old behaviour is retained (results from lower tracks are discarded). To enable additive blending across animation tracks, call `TrackEntry#setMixBlend(MixBlend.add)` on each track. To specify the blend percentage, set `TrackEntry#alpha`. See http://esotericsoftware.com/forum/morph-target-track-animation-mix-mode-9459 for a discussion. See https://github.com/EsotericSoftware/spine-runtimes/blob/f045d221836fa56191ccda73dd42ae884d4731b8/spine-ts/webgl/tests/test-additive-animation-blending.html for an example. - * Added work-around for iOS WebKit JIT bug, see https://github.com/EsotericSoftware/spine-runtimes/commit/c28bbebf804980f55cdd773fed9ff145e0e7e76c - * Support for stretchy IK - * Support for audio events, see `audioPath`, `volume` and `balance` fields on event (data). - * `TrackEntry` has an additional field called `holdPrevious`. It can be used to counter act a limitation of `AnimationState` resulting in "dipping" of parts of the animation. For a full discussion of the problem and the solution we've implemented, see this [forum thread](http://esotericsoftware.com/forum/Probably-Easy-Animation-mixing-with-multiple-tracks-10682?p=48130&hilit=holdprevious#p48130). - * Added `AssetManager#setRawDataURI(path, data)`. Allows to set raw data URIs for a specific path, which in turn enables embedding assets into JavaScript/HTML. - * `PolygonBatcher` will now disable `CULL_FACE` and restore the state as it was before rendering. + +- **Breaking changes** + - The completion event will fire for looped 0 duration animations every frame. + - Skeleton `flipX/flipY` has been replaced with `scaleX/scaleY`. This cleans up applying transforms and is more powerful. Allows scaling a whole skeleton which has bones that disallow scale inheritance + - Mix time is no longer affected by `TrackEntry#timeScale`. See https://github.com/EsotericSoftware/spine-runtimes/issues/1194 +- **Additions** + - Added `AssetManager.loadTextureAtlas`. Instead of loading the `.atlas` and corresponding image files manually, you can simply specify the location of the `.atlas` file and AssetManager will load the atlas and all its images automatically. `AssetManager.get("atlasname.atlas")` will then return an instance of `spine.TextureAtlas`. + - Added additive animation blending. When playing back multiple animations on different tracks, where each animation modifies the same skeleton property, the results of tracks with lower indices are discarded, and only the result from the track with the highest index is used. With animation blending, the results of all tracks are mixed together. This allows effects like mixing multiple facial expressions (angry, happy, sad) with percentage mixes. By default the old behaviour is retained (results from lower tracks are discarded). To enable additive blending across animation tracks, call `TrackEntry#setMixBlend(MixBlend.add)` on each track. To specify the blend percentage, set `TrackEntry#alpha`. See http://esotericsoftware.com/forum/morph-target-track-animation-mix-mode-9459 for a discussion. See https://github.com/EsotericSoftware/spine-runtimes/blob/f045d221836fa56191ccda73dd42ae884d4731b8/spine-ts/webgl/tests/test-additive-animation-blending.html for an example. + - Added work-around for iOS WebKit JIT bug, see https://github.com/EsotericSoftware/spine-runtimes/commit/c28bbebf804980f55cdd773fed9ff145e0e7e76c + - Support for stretchy IK + - Support for audio events, see `audioPath`, `volume` and `balance` fields on event (data). + - `TrackEntry` has an additional field called `holdPrevious`. It can be used to counter act a limitation of `AnimationState` resulting in "dipping" of parts of the animation. For a full discussion of the problem and the solution we've implemented, see this [forum thread](http://esotericsoftware.com/forum/Probably-Easy-Animation-mixing-with-multiple-tracks-10682?p=48130&hilit=holdprevious#p48130). + - Added `AssetManager#setRawDataURI(path, data)`. Allows to set raw data URIs for a specific path, which in turn enables embedding assets into JavaScript/HTML. + - `PolygonBatcher` will now disable `CULL_FACE` and restore the state as it was before rendering. ### WebGL backend -* Added `VertexEffect` interface, instances of which can be set on `SkeletonRenderer`. Allows to modify vertices before submitting them to GPU. See `SwirlEffect`, `JitterEffect`, and the example which allows to set effects. -* Added `slotRangeStart` and `slotRangeEnd` parameters to `SkeletonRenderer#draw` and `SceneRenderer#drawSkeleton`. This allows you to render only a range of slots in the draw order. See `spine-ts/webgl/tests/test-slot-range.html` for an example. -* Added improved tint-black shader. -* Added `SceneRenderer#drawTextureUV()`, allowing to draw a texture with manually specified texture coordinates. -* Exposed all renderers in `SceneRenderer`. + +- Added `VertexEffect` interface, instances of which can be set on `SkeletonRenderer`. Allows to modify vertices before submitting them to GPU. See `SwirlEffect`, `JitterEffect`, and the example which allows to set effects. +- Added `slotRangeStart` and `slotRangeEnd` parameters to `SkeletonRenderer#draw` and `SceneRenderer#drawSkeleton`. This allows you to render only a range of slots in the draw order. See `spine-ts/webgl/tests/test-slot-range.html` for an example. +- Added improved tint-black shader. +- Added `SceneRenderer#drawTextureUV()`, allowing to draw a texture with manually specified texture coordinates. +- Exposed all renderers in `SceneRenderer`. ### Canvas backend -* Added support for shearing and non-uniform scaling inherited from parent bones. -* Added support for alpha tinting. + +- Added support for shearing and non-uniform scaling inherited from parent bones. +- Added support for alpha tinting. ### Three.js backend -* Added `VertexEffect` interface, instances of which can be set on `SkeletonMesh`. Allows to modify vertices before submitting them to GPU. See `SwirlEffect`, `JitterEffect`. -* Added support for multi-page atlases + +- Added `VertexEffect` interface, instances of which can be set on `SkeletonMesh`. Allows to modify vertices before submitting them to GPU. See `SwirlEffect`, `JitterEffect`. +- Added support for multi-page atlases ### Widget backend - * Added fields `atlasContent`, `atlasPagesContent`, and `jsonContent` to `WidgetConfiguration` allowing you to directly pass the contents of the `.atlas`, atlas page `.png` files, and the `.json` file without having to do a request. See `README.md` and the example for details. - * `SpineWidget.setAnimation()` now takes an additional optional parameter for callbacks when animations are completed/interrupted/etc. + +- Added fields `atlasContent`, `atlasPagesContent`, and `jsonContent` to `WidgetConfiguration` allowing you to directly pass the contents of the `.atlas`, atlas page `.png` files, and the `.json` file without having to do a request. See `README.md` and the example for details. +- `SpineWidget.setAnimation()` now takes an additional optional parameter for callbacks when animations are completed/interrupted/etc. # 3.6 ## AS3 -* **Breaking changes** - * Removed `Bone.worldToLocalRotationX` and `Bone.worldToLocalRotationY`. Replaced by `Bone.worldToLocalRotation` (rotation given relative to x-axis, counter-clockwise, in degrees). - * Made `Bone` fields `_a`, `_b`, `_c`, `_d`, `_worldX` and `_worldY` public, removed underscore prefix. - * Removed `VertexAttachment.computeWorldVertices` overload, changed `VertexAttachment.computeWorldVertices2` to `VertexAttachment.computeWorldVertices`, added `stride` parameter. - * Removed `RegionAttachment.vertices` field. The vertices array is provided to `RegionAttachment.computeWorldVertices` by the API user now. - * Removed `RegionAttachment.updateWorldVertices`, added `RegionAttachment.computeWorldVertices`. The new method now computes the x/y positions of the 4 vertices of the corner and places them in the provided `worldVertices` array, starting at `offset`, then moving by `stride` array elements when advancing to the next vertex. This allows to directly compose the vertex buffer and avoids a copy. The computation of the full vertices, including vertex colors and texture coordinates, is now done by the backend's respective renderer. - * Replaced `r`, `g`, `b`, `a` fields with instances of new `Color` class in `RegionAttachment`, `MeshAttachment`, `Skeleton`, `SkeletonData`, `Slot` and `SlotData`. - * The completion event will fire for looped 0 duration animations every frame. -* **Additions** - * Added `Skeleton.getBounds` from reference implementation. - * Added support for local and relative transform constraint calculation, including additional fields in `TransformConstraintData` - * Added `Bone.localToWorldRotation`(rotation given relative to x-axis, counter-clockwise, in degrees). - * Added two color tinting support, including `TwoColorTimeline` and additional fields on `Slot` and `SlotData`. - * Added `PointAttachment`, additional method `newPointAttachment` in `AttachmentLoader` interface. - * Added `ClippingAttachment`, additional method `newClippingAttachment` in `AttachmentLoader` interface. - * `AnimationState#apply` returns boolean indicating if any timeline was applied or not. - * `Animation#apply` and `Timeline#apply`` now take enums `MixPose` and `MixDirection` instead of booleans - * Added `VertexEffect` and implementations `JitterEffect` and `SwirlEffect`. Allows you to modify vertices before they are submitted for drawing. See Starling changes. +- **Breaking changes** + + - Removed `Bone.worldToLocalRotationX` and `Bone.worldToLocalRotationY`. Replaced by `Bone.worldToLocalRotation` (rotation given relative to x-axis, counter-clockwise, in degrees). + - Made `Bone` fields `_a`, `_b`, `_c`, `_d`, `_worldX` and `_worldY` public, removed underscore prefix. + - Removed `VertexAttachment.computeWorldVertices` overload, changed `VertexAttachment.computeWorldVertices2` to `VertexAttachment.computeWorldVertices`, added `stride` parameter. + - Removed `RegionAttachment.vertices` field. The vertices array is provided to `RegionAttachment.computeWorldVertices` by the API user now. + - Removed `RegionAttachment.updateWorldVertices`, added `RegionAttachment.computeWorldVertices`. The new method now computes the x/y positions of the 4 vertices of the corner and places them in the provided `worldVertices` array, starting at `offset`, then moving by `stride` array elements when advancing to the next vertex. This allows to directly compose the vertex buffer and avoids a copy. The computation of the full vertices, including vertex colors and texture coordinates, is now done by the backend's respective renderer. + - Replaced `r`, `g`, `b`, `a` fields with instances of new `Color` class in `RegionAttachment`, `MeshAttachment`, `Skeleton`, `SkeletonData`, `Slot` and `SlotData`. + - The completion event will fire for looped 0 duration animations every frame. + +- **Additions** + - Added `Skeleton.getBounds` from reference implementation. + - Added support for local and relative transform constraint calculation, including additional fields in `TransformConstraintData` + - Added `Bone.localToWorldRotation`(rotation given relative to x-axis, counter-clockwise, in degrees). + - Added two color tinting support, including `TwoColorTimeline` and additional fields on `Slot` and `SlotData`. + - Added `PointAttachment`, additional method `newPointAttachment` in `AttachmentLoader` interface. + - Added `ClippingAttachment`, additional method `newClippingAttachment` in `AttachmentLoader` interface. + - `AnimationState#apply` returns boolean indicating if any timeline was applied or not. + - `Animation#apply` and ` Timeline#apply`` now take enums `MixPose`and`MixDirection` instead of booleans + - Added `VertexEffect` and implementations `JitterEffect` and `SwirlEffect`. Allows you to modify vertices before they are submitted for drawing. See Starling changes. ### Starling - * Fixed renderer to work with 3.6 changes. - * Added support for two color tinting. - * Added support for clipping. - * Added support for rotated regions in texture atlas loaded via StarlingAtlasAttachmentLoader. - * Added support for vertex effects. See `RaptorExample.as` - * Added 'getTexture()' method to 'StarlingTextureAtlasAttachmentLoader' - * Breaking change: if a skeleton requires two color tinting, you have to enable it via `SkeletonSprite.twoColorTint = true`. In this case the skeleton will use the `TwoColorMeshStyle`, which internally uses a different vertex layout and shader. This means that skeletons with two color tinting enabled will break batching and hence increase the number of draw calls in your app. + +- Fixed renderer to work with 3.6 changes. +- Added support for two color tinting. +- Added support for clipping. +- Added support for rotated regions in texture atlas loaded via StarlingAtlasAttachmentLoader. +- Added support for vertex effects. See `RaptorExample.as` +- Added 'getTexture()' method to 'StarlingTextureAtlasAttachmentLoader' +- Breaking change: if a skeleton requires two color tinting, you have to enable it via `SkeletonSprite.twoColorTint = true`. In this case the skeleton will use the `TwoColorMeshStyle`, which internally uses a different vertex layout and shader. This means that skeletons with two color tinting enabled will break batching and hence increase the number of draw calls in your app. ## C -* **Breaking changes** - * `spVertexAttachment_computeWorldVertices` and `spRegionAttachment_computeWorldVerticeS` now take new parameters to make it possible to directly output the calculated vertex positions to a vertex buffer. Removes the need for additional copies in the backends' respective renderers. - * Removed `spBoundingBoxAttachment_computeWorldVertices`, superseded by `spVertexAttachment_computeWorldVertices`. - * Removed `spPathAttachment_computeWorldVertices` and `spPathAttachment_computeWorldVertices1`, superseded by `spVertexAttachment_computeWorldVertices`. - * Removed `sp_MeshAttachment_computeWorldVertices`, superseded by `spVertexAttachment_computeWorldVertices`. - * Removed `spBone_worldToLocalRotationX` and `spBone_worldToLocalRotationY`. Replaced by `spBone_worldToLocalRotation` (rotation given relative to x-axis, counter-clockwise, in degrees). - * Replaced `r`, `g`, `b`, `a` fields with instances of new `spColor` struct in `spRegionAttachment`, `spMeshAttachment`, `spSkeleton`, `spSkeletonData`, `spSlot` and `spSlotData`. - * Removed `spVertexIndex`from public API. - * Listeners on `spAnimationState` or `spTrackEntry` will now be also called in case a track entry is disposed as part of dispoing the `spAnimationState`. - * The completion event will fire for looped 0 duration animations every frame. -* **Additions** - * Added support for local and relative transform constraint calculation, including additional fields in `spTransformConstraintData`. - * Added `spPointAttachment`, additional method `spAtlasAttachmentLoadeR_newPointAttachment`. - * Added support for local and relative transform constraint calculation, including additional fields in `TransformConstraintData` - * Added `spBone_localToWorldRotation`(rotation given relative to x-axis, counter-clockwise, in degrees). - * Added two color tinting support, including `spTwoColorTimeline` and additional fields on `spSlot` and `spSlotData`. - * Added `userData` field to `spTrackEntry`, so users can expose data in `spAnimationState` callbacks. - * Modified kvec.h used by SkeletonBinary.c to use Spine's MALLOC/FREE macros. That way there's only one place to inject custom allocators ([extension.h](https://github.com/EsotericSoftware/spine-runtimes/blob/master/spine-c/spine-c/include/spine/extension.h)) [commit](https://github.com/EsotericSoftware/spine-runtimes/commit/c2cfbc6cb8709daa082726222d558188d75a004f) - * Added macros to define typed dynamic arrays, see `Array.h/.c` - * Added `spClippingAttachment` and respective enum. - * Added `spSkeletonClipper` and `spTriangulator`, used to implement software clipping of attachments. - * `AnimationState#apply` returns boolean indicating if any timeline was applied or not. - * `Animation#apply` and `Timeline#apply`` now take enums `MixPose` and `MixDirection` instead of booleans - * Added `spVertexEffect` and corresponding implementations `spJitterVertexEffect` and `spSwirlVertexEffect`. Create/dispose through the corresponding `spXXXVertexEffect_create()/dispose()` functions. Set on framework/engine specific renderer. See changes for spine-c based frameworks/engines below. - * Functions in `extension.h` are not prefixed with `_sp` instead of just `_` to avoid interference with other libraries. - * Introduced `SP_API` macro. Every spine-c function is prefixed with this macro. By default, it is an empty string. Can be used to markup spine-c functions with e.g. ``__declspec` when compiling to a dll or linking to that dll. + +- **Breaking changes** + - `spVertexAttachment_computeWorldVertices` and `spRegionAttachment_computeWorldVerticeS` now take new parameters to make it possible to directly output the calculated vertex positions to a vertex buffer. Removes the need for additional copies in the backends' respective renderers. + - Removed `spBoundingBoxAttachment_computeWorldVertices`, superseded by `spVertexAttachment_computeWorldVertices`. + - Removed `spPathAttachment_computeWorldVertices` and `spPathAttachment_computeWorldVertices1`, superseded by `spVertexAttachment_computeWorldVertices`. + - Removed `sp_MeshAttachment_computeWorldVertices`, superseded by `spVertexAttachment_computeWorldVertices`. + - Removed `spBone_worldToLocalRotationX` and `spBone_worldToLocalRotationY`. Replaced by `spBone_worldToLocalRotation` (rotation given relative to x-axis, counter-clockwise, in degrees). + - Replaced `r`, `g`, `b`, `a` fields with instances of new `spColor` struct in `spRegionAttachment`, `spMeshAttachment`, `spSkeleton`, `spSkeletonData`, `spSlot` and `spSlotData`. + - Removed `spVertexIndex`from public API. + - Listeners on `spAnimationState` or `spTrackEntry` will now be also called in case a track entry is disposed as part of dispoing the `spAnimationState`. + - The completion event will fire for looped 0 duration animations every frame. +- **Additions** + - Added support for local and relative transform constraint calculation, including additional fields in `spTransformConstraintData`. + - Added `spPointAttachment`, additional method `spAtlasAttachmentLoadeR_newPointAttachment`. + - Added support for local and relative transform constraint calculation, including additional fields in `TransformConstraintData` + - Added `spBone_localToWorldRotation`(rotation given relative to x-axis, counter-clockwise, in degrees). + - Added two color tinting support, including `spTwoColorTimeline` and additional fields on `spSlot` and `spSlotData`. + - Added `userData` field to `spTrackEntry`, so users can expose data in `spAnimationState` callbacks. + - Modified kvec.h used by SkeletonBinary.c to use Spine's MALLOC/FREE macros. That way there's only one place to inject custom allocators ([extension.h](https://github.com/EsotericSoftware/spine-runtimes/blob/master/spine-c/spine-c/include/spine/extension.h)) [commit](https://github.com/EsotericSoftware/spine-runtimes/commit/c2cfbc6cb8709daa082726222d558188d75a004f) + - Added macros to define typed dynamic arrays, see `Array.h/.c` + - Added `spClippingAttachment` and respective enum. + - Added `spSkeletonClipper` and `spTriangulator`, used to implement software clipping of attachments. + - `AnimationState#apply` returns boolean indicating if any timeline was applied or not. + - `Animation#apply` and ` Timeline#apply`` now take enums `MixPose`and`MixDirection` instead of booleans + - Added `spVertexEffect` and corresponding implementations `spJitterVertexEffect` and `spSwirlVertexEffect`. Create/dispose through the corresponding `spXXXVertexEffect_create()/dispose()` functions. Set on framework/engine specific renderer. See changes for spine-c based frameworks/engines below. + - Functions in `extension.h` are not prefixed with `_sp` instead of just `_` to avoid interference with other libraries. + - Introduced `SP_API` macro. Every spine-c function is prefixed with this macro. By default, it is an empty string. Can be used to markup spine-c functions with e.g. ``__declspec` when compiling to a dll or linking to that dll. ### Cocos2d-X - * Fixed renderer to work with 3.6 changes - * Optimized rendering by removing all per-frame allocation in `SkeletonRenderer`, resulting in 15% performance increase for large numbers of skeletons being rendered per frame. - * Added support for two color tinting. Tinting is enabled/disabled per `SkeletonRenderer`/`SkeletonAnimation` instance. Use `SkeletonRenderer::setTwoColorTint()`. Note that two color tinting requires the use of a non-standard shader and vertex format. This means that skeletons rendered with two color tinting will break batching. However, skeletons with two color tinting enabled and rendered after each other will be batched. - * Updated example to use Cocos2d-x 3.14.1. - * Added mesh debug rendering. Enable/Disable via `SkeletonRenderer::setDebugMeshesEnabled()`. - * Added support for clipping. - * SkeletonRenderer now combines the displayed color of the Node (cascaded from all parents) with the skeleton color for tinting. - * Added support for vertex effects. See `RaptorExample.cpp`. - * Added ETC1 alpha support, thanks @halx99! Does not work when two color tint is enabled. - * Added `spAtlasPage_setCustomTextureLoader()` which let's you do texture loading manually. Thanks @jareguo. - * Added `SkeletonRenderer:setSlotsRange()` and `SkeletonRenderer::createWithSkeleton()`. This allows you to split rendering of a skeleton up into multiple parts, and render other nodes in between. See `SkeletonRendererSeparatorExample.cpp` for an example. + +- Fixed renderer to work with 3.6 changes +- Optimized rendering by removing all per-frame allocation in `SkeletonRenderer`, resulting in 15% performance increase for large numbers of skeletons being rendered per frame. +- Added support for two color tinting. Tinting is enabled/disabled per `SkeletonRenderer`/`SkeletonAnimation` instance. Use `SkeletonRenderer::setTwoColorTint()`. Note that two color tinting requires the use of a non-standard shader and vertex format. This means that skeletons rendered with two color tinting will break batching. However, skeletons with two color tinting enabled and rendered after each other will be batched. +- Updated example to use Cocos2d-x 3.14.1. +- Added mesh debug rendering. Enable/Disable via `SkeletonRenderer::setDebugMeshesEnabled()`. +- Added support for clipping. +- SkeletonRenderer now combines the displayed color of the Node (cascaded from all parents) with the skeleton color for tinting. +- Added support for vertex effects. See `RaptorExample.cpp`. +- Added ETC1 alpha support, thanks @halx99! Does not work when two color tint is enabled. +- Added `spAtlasPage_setCustomTextureLoader()` which let's you do texture loading manually. Thanks @jareguo. +- Added `SkeletonRenderer:setSlotsRange()` and `SkeletonRenderer::createWithSkeleton()`. This allows you to split rendering of a skeleton up into multiple parts, and render other nodes in between. See `SkeletonRendererSeparatorExample.cpp` for an example. ### Cocos2d-Objc - * Fixed renderer to work with 3.6 changes - * Added support for two color tinting. Tinting is enabled/disabled per `SkeletonRenderer/SkeletonAnimation.twoColorTint = true`. Note that two color tinted skeletons do not batch with other nodes. - * Added support for clipping. + +- Fixed renderer to work with 3.6 changes +- Added support for two color tinting. Tinting is enabled/disabled per `SkeletonRenderer/SkeletonAnimation.twoColorTint = true`. Note that two color tinted skeletons do not batch with other nodes. +- Added support for clipping. ### SFML - * Fixed renderer to work with 3.6 changes. Sadly, two color tinting does not work, as the vertex format in SFML is fixed. - * Added support for clipping. - * Added support for vertex effects. See raptor example. - * Added premultiplied alpha support to `SkeletonDrawable`. + +- Fixed renderer to work with 3.6 changes. Sadly, two color tinting does not work, as the vertex format in SFML is fixed. +- Added support for clipping. +- Added support for vertex effects. See raptor example. +- Added premultiplied alpha support to `SkeletonDrawable`. ### Unreal Engine 4 - * Fixed renderer to work with 3.6 changes - * Added new UPROPERTY to SpineSkeletonRendererComponent called `Color`. This allows to set the tint color of the skeleton in the editor, C++ and Blueprints. Under the hood, the `spSkeleton->color` will be set on every tick of the renderer component. - * Added support for clipping. - * Switched from built-in ProceduralMeshComponent to RuntimeMeshComponent by Koderz (https://github.com/Koderz/UE4RuntimeMeshComponent, MIT). Needed for more flexibility regarding vertex format, should not have an impact on existing code/assets. You need to copy the RuntimeMeshComponentPlugin from our repository in `spine-ue4\Plugins\` to your project as well! - * Added support for two color tinting. All base materials, e.g. SpineUnlitNormalMaterial, now do proper two color tinting. No material parameters have changed. - * Updated to Unreal Engine 4.16.1. Note that 4.16 has a regression which will make it impossible to compile plain .c files! - * spine-c is now exposed from the plugin shared library on Windows via __declspec. + +- Fixed renderer to work with 3.6 changes +- Added new UPROPERTY to SpineSkeletonRendererComponent called `Color`. This allows to set the tint color of the skeleton in the editor, C++ and Blueprints. Under the hood, the `spSkeleton->color` will be set on every tick of the renderer component. +- Added support for clipping. +- Switched from built-in ProceduralMeshComponent to RuntimeMeshComponent by Koderz (https://github.com/Koderz/UE4RuntimeMeshComponent, MIT). Needed for more flexibility regarding vertex format, should not have an impact on existing code/assets. You need to copy the RuntimeMeshComponentPlugin from our repository in `spine-ue4\Plugins\` to your project as well! +- Added support for two color tinting. All base materials, e.g. SpineUnlitNormalMaterial, now do proper two color tinting. No material parameters have changed. +- Updated to Unreal Engine 4.16.1. Note that 4.16 has a regression which will make it impossible to compile plain .c files! +- spine-c is now exposed from the plugin shared library on Windows via \_\_declspec. ## C# -* **Breaking changes** - * `MeshAttachment.parentMesh` is now a private field to enforce using the `.ParentMesh` setter property in external code. The `MeshAttachment.ParentMesh` property is an appropriate replacement wherever `.parentMesh` was used. - * `Skeleton.GetBounds` takes a scratch array as input so it doesn't have to allocate a new array on each invocation itself. Reduces GC activity. - * Removed `Bone.WorldToLocalRotationX` and `Bone.WorldToLocalRotationY`. Replaced by `Bone.WorldToLocalRotation` (rotation given relative to x-axis, counter-clockwise, in degrees). - * Added `stride` parameter to `VertexAttachment.ComputeWorldVertices`. - * Removed `RegionAttachment.Vertices` field. The vertices array is provided to `RegionAttachment.ComputeWorldVertices` by the API user now. - * Removed `RegionAttachment.UpdateWorldVertices`, added `RegionAttachment.ComputeWorldVertices`. The new method now computes the x/y positions of the 4 vertices of the corner and places them in the provided `worldVertices` array, starting at `offset`, then moving by `stride` array elements when advancing to the next vertex. This allows to directly compose the vertex buffer and avoids a copy. The computation of the full vertices, including vertex colors and texture coordinates, is now done by the backend's respective renderer. - * The completion event will fire for looped 0 duration animations every frame. - * **Additions** - * Added support for local and relative transform constraint calculation, including additional fields in `TransformConstraintData` - * Added `Bone.localToWorldRotation`(rotation given relative to x-axis, counter-clockwise, in degrees). - * Added two color tinting support, including `TwoColorTimeline` and additional fields on `Slot` and `SlotData`. - * Added `PointAttachment`, additional method `NewPointAttachment` in `AttachmentLoader` interface. - * Added `ClippingAttachment`, additional method `NewClippingAttachment` in `AttachmentLoader` interface. - * Added `SkeletonClipper` and `Triangulator`, used to implement software clipping of attachments. - * `AnimationState.Apply` returns a bool indicating if any timeline was applied or not. - * `Animation.Apply` and `Timeline.Apply`` now take enums `MixPose` and `MixDirection` instead of bools. +- **Breaking changes** + + - `MeshAttachment.parentMesh` is now a private field to enforce using the `.ParentMesh` setter property in external code. The `MeshAttachment.ParentMesh` property is an appropriate replacement wherever `.parentMesh` was used. + - `Skeleton.GetBounds` takes a scratch array as input so it doesn't have to allocate a new array on each invocation itself. Reduces GC activity. + - Removed `Bone.WorldToLocalRotationX` and `Bone.WorldToLocalRotationY`. Replaced by `Bone.WorldToLocalRotation` (rotation given relative to x-axis, counter-clockwise, in degrees). + - Added `stride` parameter to `VertexAttachment.ComputeWorldVertices`. + - Removed `RegionAttachment.Vertices` field. The vertices array is provided to `RegionAttachment.ComputeWorldVertices` by the API user now. + - Removed `RegionAttachment.UpdateWorldVertices`, added `RegionAttachment.ComputeWorldVertices`. The new method now computes the x/y positions of the 4 vertices of the corner and places them in the provided `worldVertices` array, starting at `offset`, then moving by `stride` array elements when advancing to the next vertex. This allows to directly compose the vertex buffer and avoids a copy. The computation of the full vertices, including vertex colors and texture coordinates, is now done by the backend's respective renderer. + - The completion event will fire for looped 0 duration animations every frame. + +- **Additions** +- Added support for local and relative transform constraint calculation, including additional fields in `TransformConstraintData` +- Added `Bone.localToWorldRotation`(rotation given relative to x-axis, counter-clockwise, in degrees). +- Added two color tinting support, including `TwoColorTimeline` and additional fields on `Slot` and `SlotData`. +- Added `PointAttachment`, additional method `NewPointAttachment` in `AttachmentLoader` interface. +- Added `ClippingAttachment`, additional method `NewClippingAttachment` in `AttachmentLoader` interface. +- Added `SkeletonClipper` and `Triangulator`, used to implement software clipping of attachments. +- `AnimationState.Apply` returns a bool indicating if any timeline was applied or not. +- `Animation.Apply` and ` Timeline.Apply`` now take enums `MixPose`and`MixDirection` instead of bools. ### Unity - * Refactored renderer to work with new 3.6 features. - * **Two color tinting** is currently supported via extra UV2 and UV3 mesh vertex streams. To use Two color tinting, you need to: - * switch on "Tint Black" under "Advanced...", - * use the new `Spine/Skeleton Tint Black` shader, or your own shader that treats the UV2 and UV3 streams similarly. - * Additionally, for SkeletonGraphic, you can use `Spine/SkeletonGraphic Tint Black` (or the bundled SkeletonGraphicTintBlack material) or your own shader that uses UV2 and UV3 streams similarly. **Additional Shader Channels** TexCoord1 and TexCoord2 will need to be enabled from the Canvas component's inspector. These correspond to UV2 and UV3. - * **Clipping** is now supported. Caution: The SkeletonAnimation switches to slightly slower mesh generation code when clipping so limit your use of `ClippingAttachment`s when using on large numbers of skeletons. - * **SkeletonRenderer.initialFlip** Spine components such as SkeletonRenderer, SkeletonAnimation, SkeletonAnimator now has `initialFlipX` and `initialFlipY` fields which are also visible in the inspector under "Advanced...". It will allow you to set and preview a starting flip value for your skeleton component. This is applied immediately when the internal skeleton object is instantiated. - * **[SpineAttribute] Improvements** - * **Icons have been added to SpineAttributeDrawers**. This should make your default inspectors easier to understand at a glance. - * **Added Constraint Attributes** You can now use `[SpineIkConstraint]` `[SpineTransformConstraint]` `[SpinePathConstraint]` - * **SpineAttribute dataField** parameter can also now detect sibling fields within arrays and serializable structs/classes. - * **[SpineAttribute(includeNone:false)]** SpineAttributes now have an `includeNone` optional parameter to specify if you want to include or exclude a none ("") value option in the dropdown menu. Default is `includeNone:true`. - * **[SpineAttachment(skinField:"mySkin")]** The SpineAttachment attribute now has a skinField optional parameter to limit the dropdown items to attachments in a specific skin instead of the just default skin or all the skins in SkeletonData. - * **SkeletonDebugWindow**. Debugging tools have been moved from the SkeletonAnimation and SkeletonUtility component inspectors into its own utility window. You can access "Skeleton Debug" under the `Advanced...` foldout in the SkeletonAnimation inspector, or in SkeletonAnimation's right-click/context menu. - * **Skeleton Baking Window** The old Skeleton Baking feature is also now accessible through the SkeletonDataAsset's right-click/context menu. - * **AttachmentTools source material**. `AttachmentTools` methods can now accept a `sourceMaterial` argument to copy material properties from. - * **AttachmentTools Skin Extensions**. Using AttachmentTools, you can now add entries by slot name by also providing a skeleton argument. Also `Append(Skin)`, `RemoveAttachment` and `Clear` have been added. - * **BoneFollower and SkeletonUtilityBone Add RigidBody Button**. The BoneFollower and SkeletonUtilityBone component inspectors will now offer to add a `Rigidbody` or `Rigidbody2D` if it detects a collider of the appropriate type. Having a rigidbody on a moving transform with a collider fits better with the Unity physics systems and prevents excess calculations. It will not detect colliders on child objects so you have to add Rigidbody components manually accordingly. - * **SkeletonRenderer.OnPostProcessVertices** is a new callback that gives you a reference to the MeshGenerator after it has generated a mesh from the current skeleton pose. You can access `meshGenerator.VertexBuffer` or `meshGenerator.ColorBuffer` to modify these before they get pushed into the UnityEngine.Mesh for rendering. This can be useful for non-shader vertex effects. - * **Examples** - * **Examples now use properties**. The code in the example scripts have been switched over to using properties instead of fields to encourage their use for consistency. This is in anticipation of both users who want to move the Spine folders to the Unity Plugins folder (compiled as a different assembly), and of Unity 2017's ability to manually define different assemblies for shorter compilation times. - * **Mix And Match**. The mix-and-match example scene, code and data have been updated to reflect the current recommended setup for animation-compatible custom equip systems The underlying API has changed since 3.5 and the new API calls in MixAndMatch.cs is recommended. Documentation is in progress. - * **Sample Components**. `AtasRegionAttacher` and `SpriteAttacher` are now part of `Sample Components`, to reflect that they are meant to be used as sample code rather than production. A few other sample components have also been added. New imports of the unitypackage Examples folder will see a "Legacy" folder comprised of old sample components that no longer contain the most up-to-date and recommended workflows, but are kept in case old setups used them for production. - * **Spine folder**. In the unitypackage, the "spine-csharp" and "spine-unity" folders are now inside a "Spine" folder. This change will only affect fresh imports. Importing the unitypackage to update Spine-Unity in your existing project will update the appropriate files however you chose to arrange them, as long as the meta files are intact. - * **Breaking changes** - * The Sprite shaders module was updated to the latest version from the [source](https://github.com/traggett/UnitySpriteShaders/commits/master). Some changes were made to the underlying keyword structure. You may need to review the settings of your lit materials. Particularly, your Fixed Normals settings. - * The `Spine/Skeleton Lit` shader was switched over to non-fixed-function code. It now no longer requires mesh normals and has fixed normals at the shader level. - * The old MeshGenerator classes, interfaces and code in `Spine.Unity.MeshGeneration` are now deprecated. All mesh-generating components now share the class `Spine.Unity.MeshGenerator` defined in `SpineMesh.cs`. MeshGenerator is a serializable class. - * The `SkeletonRenderer.renderMeshes` optimization is currently non-functional. - * Old triangle-winding code has been removed from `SkeletonRenderer`. Please use shaders that have backface culling off. - * Render settings in `SkeletonGraphic` can now be accessed under `SkeletonGraphic.MeshGenerator.settings`. This is visible in the SkeletonGraphic inspector as `Advanced...` - * We will continue to bundle the unitypackage with the empty .cs files of deprecated classes until Spine 3.7 to ensure the upgrade process does not break. - * The [SpineAttachment(slotField:)] optional parameter found property value now acts as a Find(slotName) argument rather than Contains(slotName). - * `SkeletonAnimator` now uses a `SkeletonAnimator.MecanimTranslator` class to translate an Animator's Mecanim State Machine into skeleton poses. This makes code reuse possible for a Mecanim version of SkeletonGraphic. - * `SkeletonAnimator` `autoreset` and the `mixModes` array are now a part of SkeletonAnimator's MecanimTranslator `.Translator`. `autoReset` is set to `true` by default. Old prefabs and scene objects with Skeleton Animator may no longer have correct values set. - * Warnings and conditionals checking for specific Unity 5.2-and-below incompatibility have been removed. + +- Refactored renderer to work with new 3.6 features. + - **Two color tinting** is currently supported via extra UV2 and UV3 mesh vertex streams. To use Two color tinting, you need to: + - switch on "Tint Black" under "Advanced...", + - use the new `Spine/Skeleton Tint Black` shader, or your own shader that treats the UV2 and UV3 streams similarly. + - Additionally, for SkeletonGraphic, you can use `Spine/SkeletonGraphic Tint Black` (or the bundled SkeletonGraphicTintBlack material) or your own shader that uses UV2 and UV3 streams similarly. **Additional Shader Channels** TexCoord1 and TexCoord2 will need to be enabled from the Canvas component's inspector. These correspond to UV2 and UV3. + - **Clipping** is now supported. Caution: The SkeletonAnimation switches to slightly slower mesh generation code when clipping so limit your use of `ClippingAttachment`s when using on large numbers of skeletons. +- **SkeletonRenderer.initialFlip** Spine components such as SkeletonRenderer, SkeletonAnimation, SkeletonAnimator now has `initialFlipX` and `initialFlipY` fields which are also visible in the inspector under "Advanced...". It will allow you to set and preview a starting flip value for your skeleton component. This is applied immediately when the internal skeleton object is instantiated. +- **[SpineAttribute] Improvements** + - **Icons have been added to SpineAttributeDrawers**. This should make your default inspectors easier to understand at a glance. + - **Added Constraint Attributes** You can now use `[SpineIkConstraint]` `[SpineTransformConstraint]` `[SpinePathConstraint]` + - **SpineAttribute dataField** parameter can also now detect sibling fields within arrays and serializable structs/classes. + - **[SpineAttribute(includeNone:false)]** SpineAttributes now have an `includeNone` optional parameter to specify if you want to include or exclude a none ("") value option in the dropdown menu. Default is `includeNone:true`. + - **[SpineAttachment(skinField:"mySkin")]** The SpineAttachment attribute now has a skinField optional parameter to limit the dropdown items to attachments in a specific skin instead of the just default skin or all the skins in SkeletonData. +- **SkeletonDebugWindow**. Debugging tools have been moved from the SkeletonAnimation and SkeletonUtility component inspectors into its own utility window. You can access "Skeleton Debug" under the `Advanced...` foldout in the SkeletonAnimation inspector, or in SkeletonAnimation's right-click/context menu. + - **Skeleton Baking Window** The old Skeleton Baking feature is also now accessible through the SkeletonDataAsset's right-click/context menu. +- **AttachmentTools source material**. `AttachmentTools` methods can now accept a `sourceMaterial` argument to copy material properties from. +- **AttachmentTools Skin Extensions**. Using AttachmentTools, you can now add entries by slot name by also providing a skeleton argument. Also `Append(Skin)`, `RemoveAttachment` and `Clear` have been added. +- **BoneFollower and SkeletonUtilityBone Add RigidBody Button**. The BoneFollower and SkeletonUtilityBone component inspectors will now offer to add a `Rigidbody` or `Rigidbody2D` if it detects a collider of the appropriate type. Having a rigidbody on a moving transform with a collider fits better with the Unity physics systems and prevents excess calculations. It will not detect colliders on child objects so you have to add Rigidbody components manually accordingly. +- **SkeletonRenderer.OnPostProcessVertices** is a new callback that gives you a reference to the MeshGenerator after it has generated a mesh from the current skeleton pose. You can access `meshGenerator.VertexBuffer` or `meshGenerator.ColorBuffer` to modify these before they get pushed into the UnityEngine.Mesh for rendering. This can be useful for non-shader vertex effects. +- **Examples** + - **Examples now use properties**. The code in the example scripts have been switched over to using properties instead of fields to encourage their use for consistency. This is in anticipation of both users who want to move the Spine folders to the Unity Plugins folder (compiled as a different assembly), and of Unity 2017's ability to manually define different assemblies for shorter compilation times. + - **Mix And Match**. The mix-and-match example scene, code and data have been updated to reflect the current recommended setup for animation-compatible custom equip systems The underlying API has changed since 3.5 and the new API calls in MixAndMatch.cs is recommended. Documentation is in progress. + - **Sample Components**. `AtasRegionAttacher` and `SpriteAttacher` are now part of `Sample Components`, to reflect that they are meant to be used as sample code rather than production. A few other sample components have also been added. New imports of the unitypackage Examples folder will see a "Legacy" folder comprised of old sample components that no longer contain the most up-to-date and recommended workflows, but are kept in case old setups used them for production. +- **Spine folder**. In the unitypackage, the "spine-csharp" and "spine-unity" folders are now inside a "Spine" folder. This change will only affect fresh imports. Importing the unitypackage to update Spine-Unity in your existing project will update the appropriate files however you chose to arrange them, as long as the meta files are intact. +- **Breaking changes** + - The Sprite shaders module was updated to the latest version from the [source](https://github.com/traggett/UnitySpriteShaders/commits/master). Some changes were made to the underlying keyword structure. You may need to review the settings of your lit materials. Particularly, your Fixed Normals settings. + - The `Spine/Skeleton Lit` shader was switched over to non-fixed-function code. It now no longer requires mesh normals and has fixed normals at the shader level. + - The old MeshGenerator classes, interfaces and code in `Spine.Unity.MeshGeneration` are now deprecated. All mesh-generating components now share the class `Spine.Unity.MeshGenerator` defined in `SpineMesh.cs`. MeshGenerator is a serializable class. + - The `SkeletonRenderer.renderMeshes` optimization is currently non-functional. + - Old triangle-winding code has been removed from `SkeletonRenderer`. Please use shaders that have backface culling off. + - Render settings in `SkeletonGraphic` can now be accessed under `SkeletonGraphic.MeshGenerator.settings`. This is visible in the SkeletonGraphic inspector as `Advanced...` + - We will continue to bundle the unitypackage with the empty .cs files of deprecated classes until Spine 3.7 to ensure the upgrade process does not break. + - The [SpineAttachment(slotField:)] optional parameter found property value now acts as a Find(slotName) argument rather than Contains(slotName). + - `SkeletonAnimator` now uses a `SkeletonAnimator.MecanimTranslator` class to translate an Animator's Mecanim State Machine into skeleton poses. This makes code reuse possible for a Mecanim version of SkeletonGraphic. + - `SkeletonAnimator` `autoreset` and the `mixModes` array are now a part of SkeletonAnimator's MecanimTranslator `.Translator`. `autoReset` is set to `true` by default. Old prefabs and scene objects with Skeleton Animator may no longer have correct values set. + - Warnings and conditionals checking for specific Unity 5.2-and-below incompatibility have been removed. ## XNA/MonoGame - * Added support for clipping - * Removed `RegionBatcher` and `SkeletonRegionRenderer`, renamed `SkeletonMeshRenderer` to `SkeletonRenderer` - * Added support for two color tint. For it to work, you need to add the `SpineEffect.fx` file to your content project, then load it via `var effect = Content.Load("SpineEffect");`, and set it on the `SkeletonRenderer`. See the example project for code. - * Added support for any `Effect` to be used by `SkeletonRenderer` - * Added support for `IVertexEffect` to modify vertices of skeletons on the CPU. `IVertexEffect` instances can be set on the `SkeletonRenderer`. See example project. - * Added `SkeletonDebugRenderer` - * Made `MeshBatcher` of SkeletonRenderer accessible via a getter. Allows user to batch their own geometry together with skeleton meshes for maximum batching instead of using XNA SpriteBatcher. + +- Added support for clipping +- Removed `RegionBatcher` and `SkeletonRegionRenderer`, renamed `SkeletonMeshRenderer` to `SkeletonRenderer` +- Added support for two color tint. For it to work, you need to add the `SpineEffect.fx` file to your content project, then load it via `var effect = Content.Load("SpineEffect");`, and set it on the `SkeletonRenderer`. See the example project for code. +- Added support for any `Effect` to be used by `SkeletonRenderer` +- Added support for `IVertexEffect` to modify vertices of skeletons on the CPU. `IVertexEffect` instances can be set on the `SkeletonRenderer`. See example project. +- Added `SkeletonDebugRenderer` +- Made `MeshBatcher` of SkeletonRenderer accessible via a getter. Allows user to batch their own geometry together with skeleton meshes for maximum batching instead of using XNA SpriteBatcher. ## Java -* **Breaking changes** - * `Skeleton.getBounds` takes a scratch array as input so it doesn't have to allocate a new array on each invocation itself. Reduces GC activity. - * Removed `Bone.worldToLocalRotationX` and `Bone.worldToLocalRotationY`. Replaced by `Bone.worldToLocalRotation` (rotation given relative to x-axis, counter-clockwise, in degrees). - * Added `stride` parameter to `VertexAttachment.computeWorldVertices`. - * Removed `RegionAttachment.vertices` field. The vertices array is provided to `RegionAttachment.computeWorldVertices` by the API user now. - * Removed `RegionAttachment.updateWorldVertices`, added `RegionAttachment.computeWorldVertices`. The new method now computes the x/y positions of the 4 vertices of the corner and places them in the provided `worldVertices` array, starting at `offset`, then moving by `stride` array elements when advancing to the next vertex. This allows to directly compose the vertex buffer and avoids a copy. The computation of the full vertices, including vertex colors and texture coordinates, is now done by the backend's respective renderer. - * Skeleton attachments: Moved update of attached skeleton out of libGDX `SkeletonRenderer`, added overloaded method `Skeleton#updateWorldTransform(Bone), used for `SkeletonAttachment`. You now MUST call this new method - with the bone of the parent skeleton to which the child skeleton is attached. See `SkeletonAttachmentTest` for and example. - * The completion event will fire for looped 0 duration animations every frame. -* **Additions** - * Added support for local and relative transform constraint calculation, including additional fields in `TransformConstraintData` - * Added `Bone.localToWorldRotation`(rotation given relative to x-axis, counter-clockwise, in degrees). - * Added two color tinting support, including `TwoColorTimeline` and additional fields on `Slot` and `SlotData`. - * Added `PointAttachment`, additional method `newPointAttachment` in `AttachmentLoader` interface. - * Added `ClippingAttachment`, additional method `newClippingAttachment` in `AttachmentLoader` interface. - * Added `SkeletonClipper` and `Triangulator`, used to implement software clipping of attachments. - * `AnimationState#apply` returns boolean indicating if any timeline was applied or not. - * `Animation#apply` and `Timeline#apply`` now take enums `MixPose` and `MixDirection` instead of booleans +- **Breaking changes** + + - `Skeleton.getBounds` takes a scratch array as input so it doesn't have to allocate a new array on each invocation itself. Reduces GC activity. + - Removed `Bone.worldToLocalRotationX` and `Bone.worldToLocalRotationY`. Replaced by `Bone.worldToLocalRotation` (rotation given relative to x-axis, counter-clockwise, in degrees). + - Added `stride` parameter to `VertexAttachment.computeWorldVertices`. + - Removed `RegionAttachment.vertices` field. The vertices array is provided to `RegionAttachment.computeWorldVertices` by the API user now. + - Removed `RegionAttachment.updateWorldVertices`, added `RegionAttachment.computeWorldVertices`. The new method now computes the x/y positions of the 4 vertices of the corner and places them in the provided `worldVertices` array, starting at `offset`, then moving by `stride` array elements when advancing to the next vertex. This allows to directly compose the vertex buffer and avoids a copy. The computation of the full vertices, including vertex colors and texture coordinates, is now done by the backend's respective renderer. + - Skeleton attachments: Moved update of attached skeleton out of libGDX `SkeletonRenderer`, added overloaded method `Skeleton#updateWorldTransform(Bone), used for `SkeletonAttachment`. You now MUST call this new method +with the bone of the parent skeleton to which the child skeleton is attached. See `SkeletonAttachmentTest` for and example. + - The completion event will fire for looped 0 duration animations every frame. + +- **Additions** + - Added support for local and relative transform constraint calculation, including additional fields in `TransformConstraintData` + - Added `Bone.localToWorldRotation`(rotation given relative to x-axis, counter-clockwise, in degrees). + - Added two color tinting support, including `TwoColorTimeline` and additional fields on `Slot` and `SlotData`. + - Added `PointAttachment`, additional method `newPointAttachment` in `AttachmentLoader` interface. + - Added `ClippingAttachment`, additional method `newClippingAttachment` in `AttachmentLoader` interface. + - Added `SkeletonClipper` and `Triangulator`, used to implement software clipping of attachments. + - `AnimationState#apply` returns boolean indicating if any timeline was applied or not. + - `Animation#apply` and ` Timeline#apply`` now take enums `MixPose`and`MixDirection` instead of booleans ### libGDX - * Fixed renderer to work with 3.6 changes - * Added support for two color tinting. Use the new `TwoColorPolygonBatch` together with `SkeletonRenderer` - * Added support for clipping. See `SkeletonClipper`. Used automatically by `SkeletonRenderer`. Does not work when using a `SpriteBatch` with `SkeletonRenderer`. Use `PolygonSpriteBatch` or `TwoColorPolygonBatch` instead. - * Added `VertexEffect` interface, instances of which can be set on `SkeletonRenderer`. Allows to modify vertices before submitting them to GPU. See `SwirlEffect`, `JitterEffect` and `VertexEffectTest`. + +- Fixed renderer to work with 3.6 changes +- Added support for two color tinting. Use the new `TwoColorPolygonBatch` together with `SkeletonRenderer` +- Added support for clipping. See `SkeletonClipper`. Used automatically by `SkeletonRenderer`. Does not work when using a `SpriteBatch` with `SkeletonRenderer`. Use `PolygonSpriteBatch` or `TwoColorPolygonBatch` instead. +- Added `VertexEffect` interface, instances of which can be set on `SkeletonRenderer`. Allows to modify vertices before submitting them to GPU. See `SwirlEffect`, `JitterEffect` and `VertexEffectTest`. ## Lua -* **Breaking changes** - * Removed `Bone:worldToLocalRotationX` and `Bone:worldToLocalRotationY`. Replaced by `Bone:worldToLocalRotation` (rotation given relative to x-axis, counter-clockwise, in degrees). - * `VertexAttachment:computeWorldVertices` now takes offsets and stride to allow compositing vertices directly in a vertex buffer to be send to the GPU. The compositing is now performed in the backends' respective renderers. This also affects the subclasses `MeshAttachment`, `BoundingBoxAttachment` and `PathAttachment`. - * Removed `RegionAttachment:updateWorldVertices`, added `RegionAttachment:computeWorldVertices`, which takes offsets and stride to allow compositing vertices directly in a vertex buffer to be send to the GPU. The compositing is now performed in the backends' respective renderers. - * Removed `MeshAttachment.worldVertices` field. Computation is now performed in each backends' respective renderer. The `uv` coordinates are now stored in `MeshAttachment.uvs`. - * Removed `RegionAttachment.vertices` field. Computation is now performed in each backends respective renderer. The `uv` coordinates for each vertex are now stored in the `RegionAttachment.uvs` field. - * The completion event will fire for looped 0 duration animations every frame. - * **Additions** - * Added `Bone:localToWorldRotation`(rotation given relative to x-axis, counter-clockwise, in degrees). - * Added two color tinting support, including `TwoColorTimeline` and additional fields on `Slot` and `SlotData`. - * Added `PointAttachment`, additional method `newPointAttachment` in `AttachmentLoader` interface. - * Added support for local and relative transform constraint calculation, including additional fields in `TransformConstraintData` - * Added `ClippingAttachment`, additional method `newClippingAttachment` in `AttachmentLoader` interface. - * Added `SkeletonClipper` and `Triangulator`, used to implement software clipping of attachments. - * `AnimationState#apply` returns boolean indicating if any timeline was applied or not. - * `Animation#apply` and `Timeline#apply`` now take enums `MixPose` and `MixDirection` instead of booleans - * Added `JitterEffect` and `SwirlEffect` and support for vertex effects in Corona and Love + +- **Breaking changes** + - Removed `Bone:worldToLocalRotationX` and `Bone:worldToLocalRotationY`. Replaced by `Bone:worldToLocalRotation` (rotation given relative to x-axis, counter-clockwise, in degrees). + - `VertexAttachment:computeWorldVertices` now takes offsets and stride to allow compositing vertices directly in a vertex buffer to be send to the GPU. The compositing is now performed in the backends' respective renderers. This also affects the subclasses `MeshAttachment`, `BoundingBoxAttachment` and `PathAttachment`. + - Removed `RegionAttachment:updateWorldVertices`, added `RegionAttachment:computeWorldVertices`, which takes offsets and stride to allow compositing vertices directly in a vertex buffer to be send to the GPU. The compositing is now performed in the backends' respective renderers. + - Removed `MeshAttachment.worldVertices` field. Computation is now performed in each backends' respective renderer. The `uv` coordinates are now stored in `MeshAttachment.uvs`. + - Removed `RegionAttachment.vertices` field. Computation is now performed in each backends respective renderer. The `uv` coordinates for each vertex are now stored in the `RegionAttachment.uvs` field. + - The completion event will fire for looped 0 duration animations every frame. +- **Additions** +- Added `Bone:localToWorldRotation`(rotation given relative to x-axis, counter-clockwise, in degrees). +- Added two color tinting support, including `TwoColorTimeline` and additional fields on `Slot` and `SlotData`. +- Added `PointAttachment`, additional method `newPointAttachment` in `AttachmentLoader` interface. +- Added support for local and relative transform constraint calculation, including additional fields in `TransformConstraintData` +- Added `ClippingAttachment`, additional method `newClippingAttachment` in `AttachmentLoader` interface. +- Added `SkeletonClipper` and `Triangulator`, used to implement software clipping of attachments. +- `AnimationState#apply` returns boolean indicating if any timeline was applied or not. +- `Animation#apply` and ` Timeline#apply`` now take enums `MixPose`and`MixDirection` instead of booleans +- Added `JitterEffect` and `SwirlEffect` and support for vertex effects in Corona and Love ### Love2D - * Fixed renderer to work with 3.6 changes - * Added support for two color tinting. Enable it via `SkeletonRenderer.new(true)`. - * Added clipping support. - * Added support for vertex effects. Set an implementation like "JitterEffect" on `Skeleton.vertexEffect`. See `main.lua` for an example. + +- Fixed renderer to work with 3.6 changes +- Added support for two color tinting. Enable it via `SkeletonRenderer.new(true)`. +- Added clipping support. +- Added support for vertex effects. Set an implementation like "JitterEffect" on `Skeleton.vertexEffect`. See `main.lua` for an example. ### Corona - * Fixed renderer to work with 3.6 changes. Sadly, two color tinting is not supported, as Corona doesn't let us change the vertex format needed and its doesn't allow to modify shaders in the way needed for two color tinting - * Added clipping support. - * Added support for vertex effects. Set an implementation like "JitterEffect" on `SkeletonRenderer.vertexEffect`. See `main.lua` for an example + +- Fixed renderer to work with 3.6 changes. Sadly, two color tinting is not supported, as Corona doesn't let us change the vertex format needed and its doesn't allow to modify shaders in the way needed for two color tinting +- Added clipping support. +- Added support for vertex effects. Set an implementation like "JitterEffect" on `SkeletonRenderer.vertexEffect`. See `main.lua` for an example ## Typescript/Javascript -* **Breaking changes** - * `Skeleton.getBounds` takes a scratch array as input so it doesn't have to allocate a new array on each invocation itself. Reduces GC activity. - * Removed `Bone.worldToLocalRotationX` and `Bone.worldToLocalRotationY`. Replaced by `Bone.worldToLocalRotation` (rotation given relative to x-axis, counter-clockwise, in degrees). - * Removed `VertexAttachment.computeWorldVertices` overload, changed `VertexAttachment.computeWorldVerticesWith` to `VertexAttachment.computeWorldVertices`, added `stride` parameter. - * Removed `RegionAttachment.vertices` field. The vertices array is provided to `RegionAttachment.computeWorldVertices` by the API user now. - * Removed `RegionAttachment.updateWorldVertices`, added `RegionAttachment.computeWorldVertices`. The new method now computes the x/y positions of the 4 vertices of the corner and places them in the provided `worldVertices` array, starting at `offset`, then moving by `stride` array elements when advancing to the next vertex. This allows to directly compose the vertex buffer and avoids a copy. The computation of the full vertices, including vertex colors and texture coordinates, is now done by the backend's respective renderer. - * The completion event will fire for looped 0 duration animations every frame. - * Removed the Spine Widget in favor of [Spine Web Player](https://esotericsoftware.com/spine-player). -* **Additions** - * Added support for local and relative transform constraint calculation, including additional fields in `TransformConstraintData` - * Added `Bone.localToWorldRotation`(rotation given relative to x-axis, counter-clockwise, in degrees). - * Added two color tinting support, including `TwoColorTimeline` and additional fields on `Slot` and `SlotData`. - * Added `PointAttachment`, additional method `newPointAttachment` in `AttachmentLoader` interface. - * Added `ClippingAttachment`, additional method `newClippingAttachment` in `AttachmentLoader` interface. - * Added `SkeletonClipper` and `Triangulator`, used to implement software clipping of attachments. - * `AnimationState#apply` returns boolean indicating if any timeline was applied or not. - * `Animation#apply` and `Timeline#apply`` now take enums `MixPose` and `MixDirection` instead of booleans - * Added `AssetManager.loadTextureAtlas`. Instead of loading the `.atlas` and corresponding image files manually, you can simply specify the location of the `.atlas` file and AssetManager will load the atlas and all its images automatically. `AssetManager.get("atlasname.atlas")` will then return an instance of `spine.TextureAtlas`. - * Added the [Spine Web Player](https://esotericsoftware.com/spine-player) +- **Breaking changes** + - `Skeleton.getBounds` takes a scratch array as input so it doesn't have to allocate a new array on each invocation itself. Reduces GC activity. + - Removed `Bone.worldToLocalRotationX` and `Bone.worldToLocalRotationY`. Replaced by `Bone.worldToLocalRotation` (rotation given relative to x-axis, counter-clockwise, in degrees). + - Removed `VertexAttachment.computeWorldVertices` overload, changed `VertexAttachment.computeWorldVerticesWith` to `VertexAttachment.computeWorldVertices`, added `stride` parameter. + - Removed `RegionAttachment.vertices` field. The vertices array is provided to `RegionAttachment.computeWorldVertices` by the API user now. + - Removed `RegionAttachment.updateWorldVertices`, added `RegionAttachment.computeWorldVertices`. The new method now computes the x/y positions of the 4 vertices of the corner and places them in the provided `worldVertices` array, starting at `offset`, then moving by `stride` array elements when advancing to the next vertex. This allows to directly compose the vertex buffer and avoids a copy. The computation of the full vertices, including vertex colors and texture coordinates, is now done by the backend's respective renderer. + - The completion event will fire for looped 0 duration animations every frame. + - Removed the Spine Widget in favor of [Spine Web Player](https://esotericsoftware.com/spine-player). + +- **Additions** + - Added support for local and relative transform constraint calculation, including additional fields in `TransformConstraintData` + - Added `Bone.localToWorldRotation`(rotation given relative to x-axis, counter-clockwise, in degrees). + - Added two color tinting support, including `TwoColorTimeline` and additional fields on `Slot` and `SlotData`. + - Added `PointAttachment`, additional method `newPointAttachment` in `AttachmentLoader` interface. + - Added `ClippingAttachment`, additional method `newClippingAttachment` in `AttachmentLoader` interface. + - Added `SkeletonClipper` and `Triangulator`, used to implement software clipping of attachments. + - `AnimationState#apply` returns boolean indicating if any timeline was applied or not. + - `Animation#apply` and ` Timeline#apply`` now take enums `MixPose`and`MixDirection` instead of booleans + - Added `AssetManager.loadTextureAtlas`. Instead of loading the `.atlas` and corresponding image files manually, you can simply specify the location of the `.atlas` file and AssetManager will load the atlas and all its images automatically. `AssetManager.get("atlasname.atlas")` will then return an instance of `spine.TextureAtlas`. + - Added the [Spine Web Player](https://esotericsoftware.com/spine-player) ### WebGL backend - * Fixed WebGL context loss - * Added `Restorable` interface, implemented by any WebGL resource that needs restoration after a context loss. All WebGL resource classes (`Shader`, `Mesh`, `GLTexture`) implement this interface. - * Added `ManagedWebGLRenderingContext`. Handles setup of a `WebGLRenderingContext` given a canvas element and restoration of WebGL resources (`Shader`, `Mesh`, `GLTexture`) on WebGL context loss. WebGL resources register themselves with the `ManagedWebGLRenderingContext`. If the context is informed of a context loss and restoration, the registered WebGL resources' `restore()` method is called. The `restore()` method implementation on each resource type will recreate the GPU side objects. - * All classes that previously took a `WebGLRenderingContext` in the constructor now also allow a `ManagedWebGLRenderingContext`. This ensures existing applications do not break. - * To use automatic context restauration: - 1. Create or fetch a canvas element from the DOM - 2. Instantiate a `ManagedWebGLRenderingContext`, passing the canvas to the constructor. This will setup a `WebGLRenderingContext` internally and manage context loss/restoration. - 3. Pass the `ManagedWebGLRenderingContext` to the constructors of classes that you previously passed a `WebGLRenderingContext` to (`AssetManager`, `GLTexture`, `Mesh`, `Shader`, `PolygonBatcher`, `SceneRenderer`, `ShapeRenderer`, `SkeletonRenderer`, `SkeletonDebugRenderer`). - * Fixed renderer to work with 3.6 changes. - * Added support for two color tinting. - * Improved performance by using `DYNAMIC_DRAW` for vertex buffer objects and fixing bug that copied to much data to the GPU each frame in `PolygonBatcher`/`Mesh`. - * Added two color tinting support, enabled by default. You can disable it via the constructors of `SceneRenderer`, `SkeletonRenderer`and `PolygonBatcher`. Note that you will need to use a shader created via `Shader.newTwoColoredTexturedShader` shader with `SkeletonRenderer` and `PolygonBatcher` if two color tinting is enabled. - * Added clipping support - * Added `VertexEffect` interface, instances of which can be set on `SkeletonRenderer`. Allows to modify vertices before submitting them to GPU. See `SwirlEffect`, `JitterEffect`, and the example which allows to set effects. - * Added `slotRangeStart` and `slotRangeEnd` parameters to `SkeletonRenderer#draw` and `SceneRenderer#drawSkeleton`. This allows you to render only a range of slots in the draw order. See `spine-ts/webgl/tests/test-slot-range.html` for an example. + +- Fixed WebGL context loss + - Added `Restorable` interface, implemented by any WebGL resource that needs restoration after a context loss. All WebGL resource classes (`Shader`, `Mesh`, `GLTexture`) implement this interface. + - Added `ManagedWebGLRenderingContext`. Handles setup of a `WebGLRenderingContext` given a canvas element and restoration of WebGL resources (`Shader`, `Mesh`, `GLTexture`) on WebGL context loss. WebGL resources register themselves with the `ManagedWebGLRenderingContext`. If the context is informed of a context loss and restoration, the registered WebGL resources' `restore()` method is called. The `restore()` method implementation on each resource type will recreate the GPU side objects. + - All classes that previously took a `WebGLRenderingContext` in the constructor now also allow a `ManagedWebGLRenderingContext`. This ensures existing applications do not break. + - To use automatic context restauration: + 1. Create or fetch a canvas element from the DOM + 2. Instantiate a `ManagedWebGLRenderingContext`, passing the canvas to the constructor. This will setup a `WebGLRenderingContext` internally and manage context loss/restoration. + 3. Pass the `ManagedWebGLRenderingContext` to the constructors of classes that you previously passed a `WebGLRenderingContext` to (`AssetManager`, `GLTexture`, `Mesh`, `Shader`, `PolygonBatcher`, `SceneRenderer`, `ShapeRenderer`, `SkeletonRenderer`, `SkeletonDebugRenderer`). +- Fixed renderer to work with 3.6 changes. +- Added support for two color tinting. +- Improved performance by using `DYNAMIC_DRAW` for vertex buffer objects and fixing bug that copied to much data to the GPU each frame in `PolygonBatcher`/`Mesh`. +- Added two color tinting support, enabled by default. You can disable it via the constructors of `SceneRenderer`, `SkeletonRenderer`and `PolygonBatcher`. Note that you will need to use a shader created via `Shader.newTwoColoredTexturedShader` shader with `SkeletonRenderer` and `PolygonBatcher` if two color tinting is enabled. +- Added clipping support +- Added `VertexEffect` interface, instances of which can be set on `SkeletonRenderer`. Allows to modify vertices before submitting them to GPU. See `SwirlEffect`, `JitterEffect`, and the example which allows to set effects. +- Added `slotRangeStart` and `slotRangeEnd` parameters to `SkeletonRenderer#draw` and `SceneRenderer#drawSkeleton`. This allows you to render only a range of slots in the draw order. See `spine-ts/webgl/tests/test-slot-range.html` for an example. ### Canvas backend - * Fixed renderer to work for 3.6 changes. Sadly, we can't support two color tinting via the Canvas API. - * Added support for shearing and non-uniform scaling inherited from parent bones. - * Added support for alpha tinting. + +- Fixed renderer to work for 3.6 changes. Sadly, we can't support two color tinting via the Canvas API. +- Added support for shearing and non-uniform scaling inherited from parent bones. +- Added support for alpha tinting. ### Three.js backend - * Fixed renderer to work with 3.6 changes. Two color tinting is not supported. - * Added clipping support - * Added `VertexEffect` interface, instances of which can be set on `SkeletonMesh`. Allows to modify vertices before submitting them to GPU. See `SwirlEffect`, `JitterEffect`. - * Added support for multi-page atlases + +- Fixed renderer to work with 3.6 changes. Two color tinting is not supported. +- Added clipping support +- Added `VertexEffect` interface, instances of which can be set on `SkeletonMesh`. Allows to modify vertices before submitting them to GPU. See `SwirlEffect`, `JitterEffect`. +- Added support for multi-page atlases ### Widget backend - * Fixed WebGL context loss (see WebGL backend changes). Enabled automatically. - * Fixed renderer to work for 3.6 changes. Supports two color tinting & clipping (see WebGL backend changes for details). - * Added fields `atlasContent`, `atlasPagesContent`, and `jsonContent` to `WidgetConfiguration` allowing you to directly pass the contents of the `.atlas`, atlas page `.png` files, and the `.json` file without having to do a request. See `README.md` and the example for details. - * `SpineWidget.setAnimation()` now takes an additional optional parameter for callbacks when animations are completed/interrupted/etc. + +- Fixed WebGL context loss (see WebGL backend changes). Enabled automatically. +- Fixed renderer to work for 3.6 changes. Supports two color tinting & clipping (see WebGL backend changes for details). +- Added fields `atlasContent`, `atlasPagesContent`, and `jsonContent` to `WidgetConfiguration` allowing you to directly pass the contents of the `.atlas`, atlas page `.png` files, and the `.json` file without having to do a request. See `README.md` and the example for details. +- `SpineWidget.setAnimation()` now takes an additional optional parameter for callbacks when animations are completed/interrupted/etc. diff --git a/Assets/ThirdParty/Spine/CHANGELOG.md.meta b/Assets/ThirdParty/Spine/CHANGELOG.md.meta index fcff76205..50fb164f3 100644 --- a/Assets/ThirdParty/Spine/CHANGELOG.md.meta +++ b/Assets/ThirdParty/Spine/CHANGELOG.md.meta @@ -1,6 +1,6 @@ fileFormatVersion: 2 -guid: 93d10f279e857ec46838ac59911e1e69 -timeCreated: 1718817229 +guid: f09c19426de438b408307e7ff432e4b5 +timeCreated: 1740426116 licenseType: Free DefaultImporter: userData: diff --git a/Assets/ThirdParty/Spine/Editor/spine-unity/Editor/Components/BoneFollowerGraphicInspector.cs b/Assets/ThirdParty/Spine/Editor/spine-unity/Editor/Components/BoneFollowerGraphicInspector.cs index d36c1d58e..914ad3e6b 100644 --- a/Assets/ThirdParty/Spine/Editor/spine-unity/Editor/Components/BoneFollowerGraphicInspector.cs +++ b/Assets/ThirdParty/Spine/Editor/spine-unity/Editor/Components/BoneFollowerGraphicInspector.cs @@ -100,17 +100,19 @@ namespace Spine.Unity.Editor { Transform transform = skeletonGraphicComponent.transform; Skeleton skeleton = skeletonGraphicComponent.Skeleton; float positionScale = skeletonGraphicComponent.MeshScale; + Vector2 positionOffset = skeletonGraphicComponent.GetScaledPivotOffset(); if (string.IsNullOrEmpty(boneName.stringValue)) { - SpineHandles.DrawBones(transform, skeleton, positionScale); - SpineHandles.DrawBoneNames(transform, skeleton, positionScale); + SpineHandles.DrawBones(transform, skeleton, positionScale, positionOffset); + SpineHandles.DrawBoneNames(transform, skeleton, positionScale, positionOffset); Handles.Label(tbf.transform.position, "No bone selected", EditorStyles.helpBox); } else { Bone targetBone = tbf.bone; if (targetBone == null) return; - SpineHandles.DrawBoneWireframe(transform, targetBone, SpineHandles.TransformContraintColor, positionScale); - Handles.Label(targetBone.GetWorldPosition(transform, positionScale), targetBone.Data.Name, SpineHandles.BoneNameStyle); + SpineHandles.DrawBoneWireframe(transform, targetBone, SpineHandles.TransformContraintColor, positionScale, positionOffset); + Handles.Label(targetBone.GetWorldPosition(transform, positionScale, positionOffset), + targetBone.Data.Name, SpineHandles.BoneNameStyle); } } diff --git a/Assets/ThirdParty/Spine/Editor/spine-unity/Editor/Components/SkeletonGraphicInspector.cs b/Assets/ThirdParty/Spine/Editor/spine-unity/Editor/Components/SkeletonGraphicInspector.cs index 92c43b6e5..e9dc10bed 100644 --- a/Assets/ThirdParty/Spine/Editor/spine-unity/Editor/Components/SkeletonGraphicInspector.cs +++ b/Assets/ThirdParty/Spine/Editor/spine-unity/Editor/Components/SkeletonGraphicInspector.cs @@ -57,21 +57,65 @@ namespace Spine.Unity.Editor { static GUILayoutOption ReloadButtonWidth { get { return reloadButtonWidth = reloadButtonWidth ?? GUILayout.Width(GUI.skin.label.CalcSize(new GUIContent(ReloadButtonString)).x + 20); } } static GUIStyle ReloadButtonStyle { get { return EditorStyles.miniButton; } } - SerializedProperty material, color; - SerializedProperty additiveMaterial, multiplyMaterial, screenMaterial; - SerializedProperty skeletonDataAsset, initialSkinName; - SerializedProperty startingAnimation, startingLoop, timeScale, freeze, - updateTiming, updateWhenInvisible, unscaledTime, tintBlack, layoutScaleMode, editReferenceRect; - SerializedProperty initialFlipX, initialFlipY; - SerializedProperty meshGeneratorSettings; - SerializedProperty allowMultipleCanvasRenderers, separatorSlotNames, enableSeparatorSlots, + protected SerializedProperty material, color; + protected SerializedProperty additiveMaterial, multiplyMaterial, screenMaterial; + protected SerializedProperty skeletonDataAsset, initialSkinName; + protected SerializedProperty startingAnimation, startingLoop, timeScale, freeze, + updateTiming, updateWhenInvisible, unscaledTime, layoutScaleMode, editReferenceRect; + protected SerializedProperty physicsPositionInheritanceFactor, physicsRotationInheritanceFactor, physicsMovementRelativeTo; + protected SerializedProperty initialFlipX, initialFlipY; + protected SerializedProperty meshGeneratorSettings; + protected SerializedProperty useClipping, zSpacing, tintBlack, canvasGroupCompatible, pmaVertexColors, addNormals, calculateTangents, immutableTriangles; + + protected SerializedProperty allowMultipleCanvasRenderers, separatorSlotNames, enableSeparatorSlots, updateSeparatorPartLocation, updateSeparatorPartScale; - SerializedProperty raycastTarget, maskable; + protected SerializedProperty raycastTarget, maskable; + + readonly GUIContent UseClippingLabel = new GUIContent("Use Clipping", + "When disabled, clipping attachments are ignored. This may be used to save performance."); + readonly GUIContent ZSpacingLabel = new GUIContent("Z Spacing", + "A value other than 0 adds a space between each rendered attachment to prevent Z Fighting when using shaders" + + " that read or write to the depth buffer. Large values may cause unwanted parallax and spaces depending on " + + "camera setup."); + readonly GUIContent TintBlackLabel = new GUIContent("Tint Black (!)", + "Adds black tint vertex data to the mesh as UV2 and UV3. Black tinting requires that the shader interpret " + + "UV2 and UV3 as black tint colors for this effect to work. You may then want to use the " + + "[Spine/SkeletonGraphic Tint Black] shader."); + readonly GUIContent CanvasGroupCompatibleLabel = new GUIContent("CanvasGroup Compatible", + "Enable when using SkeletonGraphic under a CanvasGroup. " + + "When enabled, PMA Vertex Color alpha value is stored at uv2.g instead of color.a to capture " + + "CanvasGroup modifying color.a. Also helps to detect correct parameter setting combinations."); + readonly GUIContent PMAVertexColorsLabel = new GUIContent("PMA Vertex Colors", + "Use this if you are using the default Spine/Skeleton shader or any premultiply-alpha shader."); + readonly GUIContent AddNormalsLabel = new GUIContent("Add Normals", + "Use this if your shader requires vertex normals. A more efficient solution for 2D setups is to modify the " + + "shader to assume a single normal value for the whole mesh."); + readonly GUIContent CalculateTangentsLabel = new GUIContent("Solve Tangents", + "Calculates the tangents per frame. Use this if you are using lit shaders (usually with normal maps) that " + + "require vertex tangents."); + readonly GUIContent ImmutableTrianglesLabel = new GUIContent("Immutable Triangles", + "Enable to optimize rendering for skeletons that never change attachment visibility"); readonly GUIContent UnscaledTimeLabel = new GUIContent("Unscaled Time", "If enabled, AnimationState uses unscaled game time (Time.unscaledDeltaTime), " + "running animations independent of e.g. game pause (Time.timeScale). " + "Instance SkeletonAnimation.timeScale will still be applied."); + readonly GUIContent PhysicsPositionInheritanceFactorLabel = new GUIContent("Position", + "When set to non-zero, Transform position movement in X and Y direction is applied to skeleton " + + "PhysicsConstraints, multiplied by these " + + "\nX and Y scale factors to the right. Typical (X,Y) values are " + + "\n(1,1) to apply XY movement normally, " + + "\n(2,2) to apply movement with double intensity, " + + "\n(1,0) to apply only horizontal movement, or" + + "\n(0,0) to not apply any Transform position movement at all."); + readonly GUIContent PhysicsRotationInheritanceFactorLabel = new GUIContent("Rotation", + "When set to non-zero, Transform rotation movement is applied to skeleton PhysicsConstraints, " + + "multiplied by this scale factor to the right. Typical values are " + + "\n1 to apply movement normally, " + + "\n2 to apply movement with double intensity, or " + + "\n0 to not apply any Transform rotation movement at all."); + readonly GUIContent PhysicsMovementRelativeToLabel = new GUIContent("Movement relative to", + "Reference transform relative to which physics movement will be calculated, or null to use world location."); SkeletonGraphic thisSkeletonGraphic; protected bool isInspectingPrefab; @@ -82,19 +126,22 @@ namespace Spine.Unity.Editor { get { if (serializedObject.isEditingMultipleObjects) { foreach (UnityEngine.Object c in targets) { - SkeletonGraphic component = (SkeletonGraphic)c; + SkeletonGraphic component = c as SkeletonGraphic; + if (component == null) continue; if (!component.IsValid) return false; } return true; } else { - SkeletonGraphic component = (SkeletonGraphic)target; + SkeletonGraphic component = target as SkeletonGraphic; + if (component == null) + return false; return component.IsValid; } } } - void OnEnable () { + protected virtual void OnEnable () { #if NEW_PREFAB_SYSTEM isInspectingPrefab = false; #else @@ -111,7 +158,7 @@ namespace Spine.Unity.Editor { // MaskableGraphic material = so.FindProperty("m_Material"); - color = so.FindProperty("m_Color"); + color = so.FindProperty("m_SkeletonColor"); raycastTarget = so.FindProperty("m_RaycastTarget"); maskable = so.FindProperty("m_Maskable"); @@ -136,10 +183,22 @@ namespace Spine.Unity.Editor { updateWhenInvisible = so.FindProperty("updateWhenInvisible"); layoutScaleMode = so.FindProperty("layoutScaleMode"); editReferenceRect = so.FindProperty("editReferenceRect"); + physicsPositionInheritanceFactor = so.FindProperty("physicsPositionInheritanceFactor"); + physicsRotationInheritanceFactor = so.FindProperty("physicsRotationInheritanceFactor"); + physicsMovementRelativeTo = so.FindProperty("physicsMovementRelativeTo"); meshGeneratorSettings = so.FindProperty("meshGenerator").FindPropertyRelative("settings"); meshGeneratorSettings.isExpanded = SkeletonRendererInspector.advancedFoldout; + useClipping = meshGeneratorSettings.FindPropertyRelative("useClipping"); + zSpacing = meshGeneratorSettings.FindPropertyRelative("zSpacing"); + tintBlack = meshGeneratorSettings.FindPropertyRelative("tintBlack"); + canvasGroupCompatible = meshGeneratorSettings.FindPropertyRelative("canvasGroupCompatible"); + pmaVertexColors = meshGeneratorSettings.FindPropertyRelative("pmaVertexColors"); + calculateTangents = meshGeneratorSettings.FindPropertyRelative("calculateTangents"); + addNormals = meshGeneratorSettings.FindPropertyRelative("addNormals"); + immutableTriangles = meshGeneratorSettings.FindPropertyRelative("immutableTriangles"); + allowMultipleCanvasRenderers = so.FindProperty("allowMultipleCanvasRenderers"); updateSeparatorPartLocation = so.FindProperty("updateSeparatorPartLocation"); updateSeparatorPartScale = so.FindProperty("updateSeparatorPartScale"); @@ -155,7 +214,7 @@ namespace Spine.Unity.Editor { #endif } - void OnDisable () { + protected virtual void OnDisable () { #if NEWPLAYMODECALLBACKS EditorApplication.playModeStateChanged -= OnPlaymodeChanged; #else @@ -165,16 +224,17 @@ namespace Spine.Unity.Editor { } #if NEWPLAYMODECALLBACKS - void OnPlaymodeChanged (PlayModeStateChange mode) { + protected virtual void OnPlaymodeChanged (PlayModeStateChange mode) { #else void OnPlaymodeChanged () { #endif DisableEditReferenceRectMode(); } - void DisableEditReferenceRectMode () { + protected virtual void DisableEditReferenceRectMode () { foreach (UnityEngine.Object c in targets) { - SkeletonGraphic component = (SkeletonGraphic)c; + SkeletonGraphic component = c as SkeletonGraphic; + if (component == null) continue; component.EditReferenceRect = false; } } @@ -218,8 +278,20 @@ namespace Spine.Unity.Editor { return; } - EditorGUILayout.PropertyField(material); - EditorGUILayout.PropertyField(color); + using (new SpineInspectorUtility.LabelWidthScope(100)) { + using (new EditorGUILayout.HorizontalScope()) { + EditorGUILayout.PropertyField(material); + if (GUILayout.Button("Detect", EditorStyles.miniButton, GUILayout.Width(67f))) { + Undo.RecordObjects(targets, "Detect Material"); + foreach (UnityEngine.Object target in targets) { + SkeletonGraphic skeletonGraphic = target as SkeletonGraphic; + if (skeletonGraphic == null) continue; + DetectMaterial(skeletonGraphic); + } + } + } + EditorGUILayout.PropertyField(color); + } string errorMessage = null; if (SpineEditorUtilities.Preferences.componentMaterialWarning && @@ -238,55 +310,69 @@ namespace Spine.Unity.Editor { using (new SpineInspectorUtility.BoxScope()) { - EditorGUILayout.PropertyField(meshGeneratorSettings, SpineInspectorUtility.TempContent("Advanced..."), includeChildren: true); + EditorGUILayout.PropertyField(meshGeneratorSettings, SpineInspectorUtility.TempContent("Advanced..."), includeChildren: false); SkeletonRendererInspector.advancedFoldout = meshGeneratorSettings.isExpanded; - if (meshGeneratorSettings.isExpanded) { EditorGUILayout.Space(); using (new SpineInspectorUtility.IndentScope()) { - EditorGUILayout.BeginHorizontal(); - EditorGUILayout.PropertyField(allowMultipleCanvasRenderers, SpineInspectorUtility.TempContent("Multiple CanvasRenderers")); + DrawMeshSettings(); + EditorGUILayout.Space(); - if (GUILayout.Button(new GUIContent("Trim Renderers", "Remove currently unused CanvasRenderer GameObjects. These will be regenerated whenever needed."), - EditorStyles.miniButton, GUILayout.Width(100f))) { + using (new SpineInspectorUtility.LabelWidthScope()) { - foreach (UnityEngine.Object skeletonGraphic in targets) { - ((SkeletonGraphic)skeletonGraphic).TrimRenderers(); - } - } - EditorGUILayout.EndHorizontal(); + EditorGUILayout.BeginHorizontal(); + EditorGUILayout.PropertyField(allowMultipleCanvasRenderers, SpineInspectorUtility.TempContent("Multiple CanvasRenderers")); - BlendModeMaterials blendModeMaterials = thisSkeletonGraphic.skeletonDataAsset.blendModeMaterials; - if (allowMultipleCanvasRenderers.boolValue == true && blendModeMaterials.RequiresBlendModeMaterials) { - using (new SpineInspectorUtility.IndentScope()) { - EditorGUILayout.BeginHorizontal(); - EditorGUILayout.LabelField("Blend Mode Materials", EditorStyles.boldLabel); + if (GUILayout.Button(new GUIContent("Trim Renderers", "Remove currently unused CanvasRenderer GameObjects. These will be regenerated whenever needed."), + EditorStyles.miniButton, GUILayout.Width(100f))) { - if (GUILayout.Button(new GUIContent("Assign Default", "Assign default Blend Mode Materials."), - EditorStyles.miniButton, GUILayout.Width(100f))) { - AssignDefaultBlendModeMaterials(); + Undo.RecordObjects(targets, "Trim Renderers"); + foreach (UnityEngine.Object target in targets) { + SkeletonGraphic skeletonGraphic = target as SkeletonGraphic; + if (skeletonGraphic == null) continue; + skeletonGraphic.TrimRenderers(); } - EditorGUILayout.EndHorizontal(); - - bool usesAdditiveMaterial = blendModeMaterials.applyAdditiveMaterial; - bool pmaVertexColors = thisSkeletonGraphic.MeshGenerator.settings.pmaVertexColors; - if (pmaVertexColors) - using (new EditorGUI.DisabledGroupScope(true)) { - EditorGUILayout.LabelField("Additive Material - Unused with PMA Vertex Colors", EditorStyles.label); - } - else if (usesAdditiveMaterial) - EditorGUILayout.PropertyField(additiveMaterial, SpineInspectorUtility.TempContent("Additive Material", null, "SkeletonGraphic Material for 'Additive' blend mode slots. Unused when 'PMA Vertex Colors' is enabled.")); - else - using (new EditorGUI.DisabledGroupScope(true)) { - EditorGUILayout.LabelField("No Additive Mat - 'Apply Additive Material' disabled at SkeletonDataAsset", EditorStyles.label); - } - EditorGUILayout.PropertyField(multiplyMaterial, SpineInspectorUtility.TempContent("Multiply Material", null, "SkeletonGraphic Material for 'Multiply' blend mode slots.")); - EditorGUILayout.PropertyField(screenMaterial, SpineInspectorUtility.TempContent("Screen Material", null, "SkeletonGraphic Material for 'Screen' blend mode slots.")); } - } + EditorGUILayout.EndHorizontal(); - EditorGUILayout.PropertyField(updateTiming, UpdateTimingLabel); - EditorGUILayout.PropertyField(updateWhenInvisible); + BlendModeMaterials blendModeMaterials = thisSkeletonGraphic.skeletonDataAsset.blendModeMaterials; + if (allowMultipleCanvasRenderers.boolValue == true && blendModeMaterials.RequiresBlendModeMaterials) { + using (new SpineInspectorUtility.IndentScope()) { + EditorGUILayout.BeginHorizontal(); + EditorGUILayout.LabelField("Blend Mode Materials", EditorStyles.boldLabel); + + if (GUILayout.Button(new GUIContent("Detect", "Auto-Assign Blend Mode Materials according to Vertex Data and Texture settings."), + EditorStyles.miniButton, GUILayout.Width(100f))) { + + Undo.RecordObjects(targets, "Detect Blend Mode Materials"); + foreach (UnityEngine.Object target in targets) { + SkeletonGraphic skeletonGraphic = target as SkeletonGraphic; + if (skeletonGraphic == null) continue; + DetectBlendModeMaterials(skeletonGraphic); + } + } + EditorGUILayout.EndHorizontal(); + + bool usesAdditiveMaterial = blendModeMaterials.applyAdditiveMaterial; + bool pmaVertexColors = thisSkeletonGraphic.MeshGenerator.settings.pmaVertexColors; + if (pmaVertexColors) + using (new EditorGUI.DisabledGroupScope(true)) { + EditorGUILayout.LabelField("Additive Material - Unused with PMA Vertex Colors", EditorStyles.label); + } + else if (usesAdditiveMaterial) + EditorGUILayout.PropertyField(additiveMaterial, SpineInspectorUtility.TempContent("Additive Material", null, "SkeletonGraphic Material for 'Additive' blend mode slots. Unused when 'PMA Vertex Colors' is enabled.")); + else + using (new EditorGUI.DisabledGroupScope(true)) { + EditorGUILayout.LabelField("No Additive Mat - 'Apply Additive Material' disabled at SkeletonDataAsset", EditorStyles.label); + } + EditorGUILayout.PropertyField(multiplyMaterial, SpineInspectorUtility.TempContent("Multiply Material", null, "SkeletonGraphic Material for 'Multiply' blend mode slots.")); + EditorGUILayout.PropertyField(screenMaterial, SpineInspectorUtility.TempContent("Screen Material", null, "SkeletonGraphic Material for 'Screen' blend mode slots.")); + } + } + + EditorGUILayout.PropertyField(updateTiming, UpdateTimingLabel); + EditorGUILayout.PropertyField(updateWhenInvisible); + } // warning box if (isSeparationEnabledButNotMultipleRenderers) { @@ -307,6 +393,21 @@ namespace Spine.Unity.Editor { EditorGUILayout.Space(); SeparatorsField(separatorSlotNames, enableSeparatorSlots, updateSeparatorPartLocation, updateSeparatorPartScale); + + EditorGUILayout.Space(); + using (new SpineInspectorUtility.LabelWidthScope()) { + EditorGUILayout.LabelField(SpineInspectorUtility.TempContent("Physics Inheritance", SpineEditorUtilities.Icons.constraintPhysics), EditorStyles.boldLabel); + + using (new GUILayout.HorizontalScope()) { + EditorGUILayout.LabelField(PhysicsPositionInheritanceFactorLabel, GUILayout.Width(EditorGUIUtility.labelWidth)); + int savedIndentLevel = EditorGUI.indentLevel; + EditorGUI.indentLevel = 0; + EditorGUILayout.PropertyField(physicsPositionInheritanceFactor, GUIContent.none, GUILayout.MinWidth(60)); + EditorGUI.indentLevel = savedIndentLevel; + } + EditorGUILayout.PropertyField(physicsRotationInheritanceFactor, PhysicsRotationInheritanceFactorLabel); + EditorGUILayout.PropertyField(physicsMovementRelativeTo, PhysicsMovementRelativeToLabel); + } } } @@ -354,8 +455,10 @@ namespace Spine.Unity.Editor { EditorGUILayout.BeginHorizontal(GUILayout.Height(EditorGUIUtility.singleLineHeight + 5)); EditorGUILayout.PrefixLabel("Match RectTransform with Mesh"); if (GUILayout.Button("Match", EditorStyles.miniButton, GUILayout.Width(65f))) { - foreach (UnityEngine.Object skeletonGraphic in targets) { - MatchRectTransformWithBounds((SkeletonGraphic)skeletonGraphic); + foreach (UnityEngine.Object target in targets) { + SkeletonGraphic skeletonGraphic = target as SkeletonGraphic; + if (skeletonGraphic == null) continue; + MatchRectTransformWithBounds(skeletonGraphic); } } EditorGUILayout.EndHorizontal(); @@ -380,7 +483,8 @@ namespace Spine.Unity.Editor { if (slotsReapplyRequired && UnityEngine.Event.current.type == EventType.Repaint) { foreach (UnityEngine.Object target in targets) { - SkeletonGraphic skeletonGraphic = (SkeletonGraphic)target; + SkeletonGraphic skeletonGraphic = target as SkeletonGraphic; + if (skeletonGraphic == null) continue; skeletonGraphic.ReapplySeparatorSlotNames(); skeletonGraphic.LateUpdate(); SceneView.RepaintAll(); @@ -389,9 +493,81 @@ namespace Spine.Unity.Editor { } } + protected void DrawMeshSettings () { + EditorGUILayout.PropertyField(useClipping, UseClippingLabel); + const float MinZSpacing = -0.1f; + const float MaxZSpacing = 0f; + EditorGUILayout.Slider(zSpacing, MinZSpacing, MaxZSpacing, ZSpacingLabel); + EditorGUILayout.Space(); + + using (new SpineInspectorUtility.LabelWidthScope()) { + EditorGUILayout.LabelField(SpineInspectorUtility.TempContent("Vertex Data", SpineInspectorUtility.UnityIcon()), EditorStyles.boldLabel); + + using (new EditorGUILayout.HorizontalScope()) { + EditorGUILayout.PropertyField(tintBlack, TintBlackLabel); + if (GUILayout.Button("Detect", EditorStyles.miniButton, GUILayout.Width(65f))) { + Undo.RecordObjects(targets, "Detect Tint Black"); + foreach (UnityEngine.Object target in targets) { + SkeletonGraphic skeletonGraphic = target as SkeletonGraphic; + if (skeletonGraphic == null) continue; + DetectTintBlack(skeletonGraphic); + } + } + } + using (new EditorGUILayout.HorizontalScope()) { + EditorGUILayout.PropertyField(canvasGroupCompatible, CanvasGroupCompatibleLabel); + if (GUILayout.Button("Detect", EditorStyles.miniButton, GUILayout.Width(65f))) { + Undo.RecordObjects(targets, "Detect CanvasGroup Compatible"); + foreach (UnityEngine.Object target in targets) { + SkeletonGraphic skeletonGraphic = target as SkeletonGraphic; + if (skeletonGraphic == null) continue; + DetectCanvasGroupCompatible(skeletonGraphic); + } + } + } + using (new EditorGUILayout.HorizontalScope()) { + EditorGUILayout.PropertyField(pmaVertexColors, PMAVertexColorsLabel); + if (GUILayout.Button("Detect", EditorStyles.miniButton, GUILayout.Width(65f))) { + Undo.RecordObjects(targets, "Detect PMA Vertex Colors"); + foreach (UnityEngine.Object target in targets) { + SkeletonGraphic skeletonGraphic = target as SkeletonGraphic; + if (skeletonGraphic == null) continue; + DetectPMAVertexColors(skeletonGraphic); + } + } + } + using (new EditorGUILayout.HorizontalScope()) { + GUILayout.FlexibleSpace(); + if (GUILayout.Button("Detect Settings", EditorStyles.miniButton, GUILayout.Width(100f))) { + Undo.RecordObjects(targets, "Detect Settings"); + foreach (UnityEngine.Object targets in targets) { + SkeletonGraphic skeletonGraphic = target as SkeletonGraphic; + if (skeletonGraphic == null) continue; + DetectTintBlack(skeletonGraphic); + DetectCanvasGroupCompatible(skeletonGraphic); + DetectPMAVertexColors(skeletonGraphic); + } + } + if (GUILayout.Button("Detect Material", EditorStyles.miniButton, GUILayout.Width(100f))) { + Undo.RecordObjects(targets, "Detect Material"); + foreach (UnityEngine.Object target in targets) { + SkeletonGraphic skeletonGraphic = target as SkeletonGraphic; + if (skeletonGraphic == null) continue; + DetectMaterial(skeletonGraphic); + } + } + } + + EditorGUILayout.PropertyField(addNormals, AddNormalsLabel); + EditorGUILayout.PropertyField(calculateTangents, CalculateTangentsLabel); + EditorGUILayout.PropertyField(immutableTriangles, ImmutableTrianglesLabel); + } + } + protected bool SkeletonHasMultipleSubmeshes () { foreach (UnityEngine.Object target in targets) { - SkeletonGraphic skeletonGraphic = (SkeletonGraphic)target; + SkeletonGraphic skeletonGraphic = target as SkeletonGraphic; + if (skeletonGraphic == null) continue; if (skeletonGraphic.HasMultipleSubmeshInstructions()) return true; } @@ -400,23 +576,16 @@ namespace Spine.Unity.Editor { protected void OnSceneGUI () { SkeletonGraphic skeletonGraphic = (SkeletonGraphic)target; - if (skeletonGraphic.EditReferenceRect) { - SpineHandles.DrawRectTransformRect(skeletonGraphic, Color.gray); - SpineHandles.DrawReferenceRect(skeletonGraphic, Color.green); - } else { - SpineHandles.DrawReferenceRect(skeletonGraphic, Color.blue); - } - - - } - - protected void AssignDefaultBlendModeMaterials () { - foreach (UnityEngine.Object target in targets) { - SkeletonGraphic skeletonGraphic = (SkeletonGraphic)target; - skeletonGraphic.additiveMaterial = DefaultSkeletonGraphicAdditiveMaterial; - skeletonGraphic.multiplyMaterial = DefaultSkeletonGraphicMultiplyMaterial; - skeletonGraphic.screenMaterial = DefaultSkeletonGraphicScreenMaterial; + + if (skeletonGraphic.layoutScaleMode != SkeletonGraphic.LayoutMode.None) { + if (skeletonGraphic.EditReferenceRect) { + SpineHandles.DrawRectTransformRect(skeletonGraphic, Color.gray); + SpineHandles.DrawReferenceRect(skeletonGraphic, Color.green); + } else { + SpineHandles.DrawReferenceRect(skeletonGraphic, Color.blue); + } } + SpineHandles.DrawPivotOffsetHandle(skeletonGraphic, Color.green); } public static void SetSeparatorSlotNames (SkeletonRenderer skeletonRenderer, string[] newSlotNames) { @@ -466,12 +635,166 @@ namespace Spine.Unity.Editor { } else EditorGUILayout.PropertyField(separatorSlotNames, new GUIContent(separatorSlotNames.displayName + string.Format("{0} [{1}]", terminalSlotWarning, separatorSlotNames.arraySize), SeparatorsDescription), true); - EditorGUILayout.PropertyField(enableSeparatorSlots, SpineInspectorUtility.TempContent("Enable Separation", tooltip: "Whether to enable separation at the above separator slots.")); - EditorGUILayout.PropertyField(updateSeparatorPartLocation, SpineInspectorUtility.TempContent("Update Part Location", tooltip: "Update separator part GameObject location to match the position of the SkeletonGraphic. This can be helpful when re-parenting parts to a different GameObject.")); - EditorGUILayout.PropertyField(updateSeparatorPartScale, SpineInspectorUtility.TempContent("Update Part Scale", tooltip: "Update separator part GameObject scale to match the scale (lossyScale) of the SkeletonGraphic. This can be helpful when re-parenting parts to a different GameObject.")); + using (new SpineInspectorUtility.LabelWidthScope()) { + EditorGUILayout.PropertyField(enableSeparatorSlots, SpineInspectorUtility.TempContent("Enable Separation", tooltip: "Whether to enable separation at the above separator slots.")); + EditorGUILayout.PropertyField(updateSeparatorPartLocation, SpineInspectorUtility.TempContent("Update Part Location", tooltip: "Update separator part GameObject location to match the position of the SkeletonGraphic. This can be helpful when re-parenting parts to a different GameObject.")); + EditorGUILayout.PropertyField(updateSeparatorPartScale, SpineInspectorUtility.TempContent("Update Part Scale", tooltip: "Update separator part GameObject scale to match the scale (lossyScale) of the SkeletonGraphic. This can be helpful when re-parenting parts to a different GameObject.")); + } } } + #region Auto Detect Setting + static void DetectTintBlack (SkeletonGraphic skeletonGraphic) { + bool requiresTintBlack = HasTintBlackSlot(skeletonGraphic); + if (requiresTintBlack) + Debug.Log(string.Format("Found Tint-Black slot at '{0}'", skeletonGraphic)); + else + Debug.Log(string.Format("No Tint-Black slot found at '{0}'", skeletonGraphic)); + skeletonGraphic.MeshGenerator.settings.tintBlack = requiresTintBlack; + } + + static bool HasTintBlackSlot (SkeletonGraphic skeletonGraphic) { + SlotData[] slotsItems = skeletonGraphic.SkeletonData.Slots.Items; + for (int i = 0, count = skeletonGraphic.SkeletonData.Slots.Count; i < count; ++i) { + SlotData slotData = slotsItems[i]; + if (slotData.HasSecondColor) + return true; + } + return false; + } + + static void DetectCanvasGroupCompatible (SkeletonGraphic skeletonGraphic) { + bool requiresCanvasGroupCompatible = IsBelowCanvasGroup(skeletonGraphic); + if (requiresCanvasGroupCompatible) + Debug.Log(string.Format("Skeleton is a child of CanvasGroup: '{0}'", skeletonGraphic)); + else + Debug.Log(string.Format("Skeleton is not a child of CanvasGroup: '{0}'", skeletonGraphic)); + skeletonGraphic.MeshGenerator.settings.canvasGroupCompatible = requiresCanvasGroupCompatible; + } + + static bool IsBelowCanvasGroup (SkeletonGraphic skeletonGraphic) { + return skeletonGraphic.gameObject.GetComponentInParent() != null; + } + + static void DetectPMAVertexColors (SkeletonGraphic skeletonGraphic) { + MeshGenerator.Settings settings = skeletonGraphic.MeshGenerator.settings; + bool usesSpineShader = MaterialChecks.UsesSpineShader(skeletonGraphic.material); + if (!usesSpineShader) { + Debug.Log(string.Format("Skeleton is not using a Spine shader, thus the shader is likely " + + "not using PMA vertex color: '{0}'", skeletonGraphic)); + skeletonGraphic.MeshGenerator.settings.pmaVertexColors = false; + return; + } + + bool requiresPMAVertexColorsDisabled = settings.canvasGroupCompatible && !settings.tintBlack; + if (requiresPMAVertexColorsDisabled) { + Debug.Log(string.Format("Skeleton requires PMA Vertex Colors disabled: '{0}'", skeletonGraphic)); + skeletonGraphic.MeshGenerator.settings.pmaVertexColors = false; + } else { + Debug.Log(string.Format("Skeleton requires or permits PMA Vertex Colors enabled: '{0}'", skeletonGraphic)); + skeletonGraphic.MeshGenerator.settings.pmaVertexColors = true; + } + } + + static bool IsSkeletonTexturePMA (SkeletonGraphic skeletonGraphic, out bool detectionSucceeded) { + Texture texture = skeletonGraphic.mainTexture; + string texturePath = AssetDatabase.GetAssetPath(texture.GetInstanceID()); + TextureImporter importer = (TextureImporter)TextureImporter.GetAtPath(texturePath); + if (importer.alphaIsTransparency != importer.sRGBTexture) { + Debug.LogWarning(string.Format("Texture '{0}' at skeleton '{1}' is neither configured correctly for " + + "PMA nor Straight Alpha.", texture, skeletonGraphic), texture); + detectionSucceeded = false; + return false; + } + detectionSucceeded = true; + bool isPMATexture = !importer.alphaIsTransparency && !importer.sRGBTexture; + return isPMATexture; + } + + static void DetectMaterial (SkeletonGraphic skeletonGraphic) { + MeshGenerator.Settings settings = skeletonGraphic.MeshGenerator.settings; + + bool detectionSucceeded; + bool usesPMATexture = IsSkeletonTexturePMA(skeletonGraphic, out detectionSucceeded); + if (!detectionSucceeded) { + Debug.LogWarning(string.Format("Unable to assign Material for skeleton '{0}'.", skeletonGraphic), skeletonGraphic); + return; + } + + Material newMaterial = null; + if (usesPMATexture) { + if (settings.tintBlack) { + if (settings.canvasGroupCompatible) + newMaterial = MaterialWithName("SkeletonGraphicTintBlack-CanvasGroup"); + else + newMaterial = MaterialWithName("SkeletonGraphicTintBlack"); + } else { // not tintBlack + if (settings.canvasGroupCompatible) + newMaterial = MaterialWithName("SkeletonGraphicDefault-CanvasGroup"); + else + newMaterial = MaterialWithName("SkeletonGraphicDefault"); + } + } else { // straight alpha texture + if (settings.tintBlack) { + if (settings.canvasGroupCompatible) + newMaterial = MaterialWithName("SkeletonGraphicTintBlack-CanvasGroupStraight"); + else + newMaterial = MaterialWithName("SkeletonGraphicTintBlack-Straight"); + } else { // not tintBlack + if (settings.canvasGroupCompatible) + newMaterial = MaterialWithName("SkeletonGraphicDefault-CanvasGroupStraight"); + else + newMaterial = MaterialWithName("SkeletonGraphicDefault-Straight"); + } + } + if (newMaterial != null) { + Debug.Log(string.Format("Assigning material '{0}' at skeleton '{1}'", + newMaterial, skeletonGraphic), newMaterial); + skeletonGraphic.material = newMaterial; + } + } + + static void DetectBlendModeMaterials (SkeletonGraphic skeletonGraphic) { + bool detectionSucceeded; + bool usesPMATexture = IsSkeletonTexturePMA(skeletonGraphic, out detectionSucceeded); + if (!detectionSucceeded) { + Debug.LogWarning(string.Format("Unable to assign Blend Mode materials for skeleton '{0}'.", skeletonGraphic), skeletonGraphic); + return; + } + DetectBlendModeMaterial(skeletonGraphic, BlendMode.Additive, usesPMATexture); + DetectBlendModeMaterial(skeletonGraphic, BlendMode.Multiply, usesPMATexture); + DetectBlendModeMaterial(skeletonGraphic, BlendMode.Screen, usesPMATexture); + } + + static void DetectBlendModeMaterial (SkeletonGraphic skeletonGraphic, BlendMode blendMode, bool usesPMATexture) { + MeshGenerator.Settings settings = skeletonGraphic.MeshGenerator.settings; + + string optionalTintBlack = settings.tintBlack ? "TintBlack" : ""; + string blendModeString = blendMode.ToString(); + string optionalDash = settings.canvasGroupCompatible || !usesPMATexture ? "-" : ""; + string optionalCanvasGroup = settings.canvasGroupCompatible ? "CanvasGroup" : ""; + string optionalStraight = !usesPMATexture ? "Straight" : ""; + + string materialName = string.Format("SkeletonGraphic{0}{1}{2}{3}{4}", + optionalTintBlack, blendModeString, optionalDash, optionalCanvasGroup, optionalStraight); + Material newMaterial = MaterialWithName(materialName); + + if (newMaterial != null) { + switch (blendMode) { + case BlendMode.Additive: + skeletonGraphic.additiveMaterial = newMaterial; + break; + case BlendMode.Multiply: + skeletonGraphic.multiplyMaterial = newMaterial; + break; + case BlendMode.Screen: + skeletonGraphic.screenMaterial = newMaterial; + break; + } + } + } + #endregion + #region Menus [MenuItem("CONTEXT/SkeletonGraphic/Match RectTransform with Mesh Bounds")] static void MatchRectTransformWithBounds (MenuCommand command) { @@ -529,10 +852,12 @@ namespace Spine.Unity.Editor { graphic.MeshGenerator.settings.zSpacing = SpineEditorUtilities.Preferences.defaultZSpacing; graphic.startingLoop = SpineEditorUtilities.Preferences.defaultInstantiateLoop; + graphic.PhysicsPositionInheritanceFactor = SpineEditorUtilities.Preferences.defaultPhysicsPositionInheritance; + graphic.PhysicsRotationInheritanceFactor = SpineEditorUtilities.Preferences.defaultPhysicsRotationInheritance; graphic.Initialize(false); if (skin != null) graphic.Skeleton.SetSkin(skin); graphic.initialSkinName = skin.Name; - graphic.Skeleton.UpdateWorldTransform(); + graphic.Skeleton.UpdateWorldTransform(Skeleton.Physics.Update); graphic.UpdateMesh(); return graphic; } @@ -553,29 +878,41 @@ namespace Spine.Unity.Editor { } public static Material DefaultSkeletonGraphicMaterial { - get { return FirstMaterialWithName("SkeletonGraphicDefault"); } + get { return MaterialWithName("SkeletonGraphicDefault"); } } public static Material DefaultSkeletonGraphicAdditiveMaterial { - get { return FirstMaterialWithName("SkeletonGraphicAdditive"); } + get { return MaterialWithName("SkeletonGraphicAdditive"); } } public static Material DefaultSkeletonGraphicMultiplyMaterial { - get { return FirstMaterialWithName("SkeletonGraphicMultiply"); } + get { return MaterialWithName("SkeletonGraphicMultiply"); } } public static Material DefaultSkeletonGraphicScreenMaterial { - get { return FirstMaterialWithName("SkeletonGraphicScreen"); } + get { return MaterialWithName("SkeletonGraphicScreen"); } } - protected static Material FirstMaterialWithName (string name) { + protected static Material MaterialWithName (string name) { string[] guids = AssetDatabase.FindAssets(name + " t:material"); if (guids.Length <= 0) return null; - string firstAssetPath = AssetDatabase.GUIDToAssetPath(guids[0]); - if (string.IsNullOrEmpty(firstAssetPath)) return null; + int closestNameDistance = int.MaxValue; + int closestNameIndex = 0; + for (int i = 0; i < guids.Length; ++i) { + string assetPath = AssetDatabase.GUIDToAssetPath(guids[i]); + string assetName = System.IO.Path.GetFileNameWithoutExtension(assetPath); + int distance = string.CompareOrdinal(assetName, name); + if (distance < closestNameDistance) { + closestNameDistance = distance; + closestNameIndex = i; + } + } - Material firstMaterial = AssetDatabase.LoadAssetAtPath(firstAssetPath); + string foundAssetPath = AssetDatabase.GUIDToAssetPath(guids[closestNameIndex]); + if (string.IsNullOrEmpty(foundAssetPath)) return null; + + Material firstMaterial = AssetDatabase.LoadAssetAtPath(foundAssetPath); return firstMaterial; } diff --git a/Assets/ThirdParty/Spine/Editor/spine-unity/Editor/Components/SkeletonMecanimInspector.cs b/Assets/ThirdParty/Spine/Editor/spine-unity/Editor/Components/SkeletonMecanimInspector.cs index bc0feeb85..cb3f8f884 100644 --- a/Assets/ThirdParty/Spine/Editor/spine-unity/Editor/Components/SkeletonMecanimInspector.cs +++ b/Assets/ThirdParty/Spine/Editor/spine-unity/Editor/Components/SkeletonMecanimInspector.cs @@ -37,6 +37,7 @@ namespace Spine.Unity.Editor { [CanEditMultipleObjects] public class SkeletonMecanimInspector : SkeletonRendererInspector { public static bool mecanimSettingsFoldout; + public static bool enableScenePreview; protected SerializedProperty autoReset; protected SerializedProperty useCustomMixMode; @@ -53,7 +54,6 @@ namespace Spine.Unity.Editor { } protected override void DrawInspectorGUI (bool multi) { - AddRootMotionComponentIfEnabled(); base.DrawInspectorGUI(multi); @@ -75,6 +75,18 @@ namespace Spine.Unity.Editor { } } } + + EditorGUI.BeginChangeCheck(); + enableScenePreview = EditorGUILayout.Toggle(new GUIContent("Scene Preview", + "Preview the Animation Clip selected in the Animation window. Lock this SkeletonMecanim Inspector " + + "window, open the Animation window and select the Animation Clip. Then in the Animation window " + + "scrub through the timeline."), + enableScenePreview, GUILayout.MaxWidth(150f)); + bool wasScenePreviewChanged = EditorGUI.EndChangeCheck(); + if (enableScenePreview) + HandleAnimationPreview(); + else if (wasScenePreviewChanged) // just disabled, back to setup pose + PreviewAnimationInScene(null, 0.0f); } protected void AddRootMotionComponentIfEnabled () { @@ -89,6 +101,38 @@ namespace Spine.Unity.Editor { } } + protected void HandleAnimationPreview () { + UnityEngine.Object animationWindow = AnimationWindowPreview.GetOpenAnimationWindow(); + + AnimationClip selectedClip = null; + if (animationWindow != null) { + selectedClip = AnimationWindowPreview.GetAnimationClip(animationWindow); + } + + if (selectedClip != null) { + float time = AnimationWindowPreview.GetAnimationTime(animationWindow); + PreviewAnimationInScene(selectedClip, time); + } else // back to setup pose + PreviewAnimationInScene(null, 0.0f); + } + + protected void PreviewAnimationInScene (AnimationClip clip, float time) { + foreach (UnityEngine.Object c in targets) { + SkeletonRenderer skeletonRenderer = c as SkeletonRenderer; + if (skeletonRenderer == null) continue; + Skeleton skeleton = skeletonRenderer.Skeleton; + SkeletonData skeletonData = skeleton.Data; + + skeleton.SetToSetupPose(); + if (clip != null) { + Spine.Animation animation = skeletonData.FindAnimation(clip.name); + animation.Apply(skeleton, 0, time, false, null, 1.0f, MixBlend.First, MixDirection.In); + } + skeletonRenderer.LateUpdate(); + } + SceneView.RepaintAll(); + } + protected void DrawLayerSettings () { string[] layerNames = GetLayerNames(); float widthLayerColumn = 140; diff --git a/Assets/ThirdParty/Spine/Editor/spine-unity/Editor/Components/SkeletonRendererInspector.cs b/Assets/ThirdParty/Spine/Editor/spine-unity/Editor/Components/SkeletonRendererInspector.cs index e3b470b2f..b630af924 100644 --- a/Assets/ThirdParty/Spine/Editor/spine-unity/Editor/Components/SkeletonRendererInspector.cs +++ b/Assets/ThirdParty/Spine/Editor/spine-unity/Editor/Components/SkeletonRendererInspector.cs @@ -68,6 +68,7 @@ namespace Spine.Unity.Editor { protected SerializedProperty normals, tangents, zSpacing, pmaVertexColors, tintBlack; // MeshGenerator settings protected SerializedProperty maskInteraction; protected SerializedProperty maskMaterialsNone, maskMaterialsInside, maskMaterialsOutside; + protected SerializedProperty physicsPositionInheritanceFactor, physicsRotationInheritanceFactor, physicsMovementRelativeTo; protected SpineInspectorUtility.SerializedSortingProperties sortingProperties; protected bool wasInitParameterChanged = false; protected bool requireRepaint = false; @@ -87,6 +88,23 @@ namespace Spine.Unity.Editor { protected GUIContent MaskMaterialsHeadingLabel, MaskMaterialsNoneLabel, MaskMaterialsInsideLabel, MaskMaterialsOutsideLabel; protected GUIContent SetMaterialButtonLabel, ClearMaterialButtonLabel, DeleteMaterialButtonLabel; + readonly GUIContent PhysicsPositionInheritanceFactorLabel = new GUIContent("Position", + "When set to non-zero, Transform position movement in X and Y direction is applied to skeleton " + + "PhysicsConstraints, multiplied by these " + + "\nX and Y scale factors to the right. Typical (X,Y) values are " + + "\n(1,1) to apply XY movement normally, " + + "\n(2,2) to apply movement with double intensity, " + + "\n(1,0) to apply only horizontal movement, or" + + "\n(0,0) to not apply any Transform position movement at all."); + readonly GUIContent PhysicsRotationInheritanceFactorLabel = new GUIContent("Rotation", + "When set to non-zero, Transform rotation movement is applied to skeleton PhysicsConstraints, " + + "multiplied by this scale factor to the right. Typical values are " + + "\n1 to apply movement normally, " + + "\n2 to apply movement with double intensity, or " + + "\n0 to not apply any Transform rotation movement at all."); + readonly GUIContent PhysicsMovementRelativeToLabel = new GUIContent("Movement relative to", + "Reference transform relative to which physics movement will be calculated, or null to use world location."); + const string ReloadButtonString = "Reload"; static GUILayoutOption reloadButtonWidth; static GUILayoutOption ReloadButtonWidth { get { return reloadButtonWidth = reloadButtonWidth ?? GUILayout.Width(GUI.skin.label.CalcSize(new GUIContent(ReloadButtonString)).x + 20); } } @@ -161,6 +179,9 @@ namespace Spine.Unity.Editor { maskMaterialsNone = so.FindProperty("maskMaterials.materialsMaskDisabled"); maskMaterialsInside = so.FindProperty("maskMaterials.materialsInsideMask"); maskMaterialsOutside = so.FindProperty("maskMaterials.materialsOutsideMask"); + physicsPositionInheritanceFactor = so.FindProperty("physicsPositionInheritanceFactor"); + physicsRotationInheritanceFactor = so.FindProperty("physicsRotationInheritanceFactor"); + physicsMovementRelativeTo = so.FindProperty("physicsMovementRelativeTo"); separatorSlotNames = so.FindProperty("separatorSlotNames"); separatorSlotNames.isExpanded = true; @@ -406,6 +427,19 @@ namespace Spine.Unity.Editor { differentMaskModesSelected, allowDelete: true, isActiveMaterial: activeMaskInteractionValue == (int)SpriteMaskInteraction.VisibleOutsideMask); } #endif + using (new SpineInspectorUtility.LabelWidthScope()) { + EditorGUILayout.LabelField(SpineInspectorUtility.TempContent("Physics Inheritance", SpineEditorUtilities.Icons.constraintPhysics), EditorStyles.boldLabel); + + using (new GUILayout.HorizontalScope()) { + EditorGUILayout.LabelField(PhysicsPositionInheritanceFactorLabel, GUILayout.Width(EditorGUIUtility.labelWidth)); + int savedIndentLevel = EditorGUI.indentLevel; + EditorGUI.indentLevel = 0; + EditorGUILayout.PropertyField(physicsPositionInheritanceFactor, GUIContent.none, GUILayout.MinWidth(60)); + EditorGUI.indentLevel = savedIndentLevel; + } + EditorGUILayout.PropertyField(physicsRotationInheritanceFactor, PhysicsRotationInheritanceFactorLabel); + EditorGUILayout.PropertyField(physicsMovementRelativeTo, PhysicsMovementRelativeToLabel); + } EditorGUILayout.Space(); diff --git a/Assets/ThirdParty/Spine/Editor/spine-unity/Editor/Components/SkeletonUtilityBoneInspector.cs b/Assets/ThirdParty/Spine/Editor/spine-unity/Editor/Components/SkeletonUtilityBoneInspector.cs index ace3b46c6..34ad2dfb7 100644 --- a/Assets/ThirdParty/Spine/Editor/spine-unity/Editor/Components/SkeletonUtilityBoneInspector.cs +++ b/Assets/ThirdParty/Spine/Editor/spine-unity/Editor/Components/SkeletonUtilityBoneInspector.cs @@ -158,8 +158,10 @@ namespace Spine.Unity.Editor { } } - EditorGUILayout.PropertyField(zPosition); - EditorGUILayout.PropertyField(position); + bool isOverrideMode = mode.enumValueIndex == 1; + using (new EditorGUI.DisabledGroupScope(isOverrideMode)) + EditorGUILayout.PropertyField(zPosition); + EditorGUILayout.PropertyField(position, new GUIContent("XY Position")); EditorGUILayout.PropertyField(rotation); EditorGUILayout.PropertyField(scale); @@ -211,7 +213,7 @@ namespace Spine.Unity.Editor { GUILayout.Space(30); string buttonLabel = box.IsWeighted() ? box.Name + " (!)" : box.Name; if (GUILayout.Button(buttonLabel, GUILayout.Width(200))) { - utilityBone.bone.Skeleton.UpdateWorldTransform(); + utilityBone.bone.Skeleton.UpdateWorldTransform(Skeleton.Physics.Update); Transform bbTransform = utilityBone.transform.Find("[BoundingBox]" + box.Name); // Use FindChild in older versions of Unity. if (bbTransform != null) { PolygonCollider2D originalCollider = bbTransform.GetComponent(); diff --git a/Assets/ThirdParty/Spine/Editor/spine-unity/Editor/GUI/icon-constraintPhysics.png b/Assets/ThirdParty/Spine/Editor/spine-unity/Editor/GUI/icon-constraintPhysics.png new file mode 100644 index 000000000..703732ada Binary files /dev/null and b/Assets/ThirdParty/Spine/Editor/spine-unity/Editor/GUI/icon-constraintPhysics.png differ diff --git a/Assets/ThirdParty/Spine/Editor/spine-unity/Editor/GUI/icon-constraintPhysics.png.meta b/Assets/ThirdParty/Spine/Editor/spine-unity/Editor/GUI/icon-constraintPhysics.png.meta new file mode 100644 index 000000000..4a8fedb07 --- /dev/null +++ b/Assets/ThirdParty/Spine/Editor/spine-unity/Editor/GUI/icon-constraintPhysics.png.meta @@ -0,0 +1,124 @@ +fileFormatVersion: 2 +guid: 10e534174824cb04e8a7ec21825f2827 +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 12 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMasterTextureLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 1 + wrapV: 1 + wrapW: 1 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 1 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 2 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Server + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: 5e97eb03825dee720800000000000000 + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + spritePackingTag: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/ThirdParty/Spine/Editor/spine-unity/Editor/Shaders/SpineShaderWithOutlineGUI.cs b/Assets/ThirdParty/Spine/Editor/spine-unity/Editor/Shaders/SpineShaderWithOutlineGUI.cs index 05c47ee36..55ae17321 100644 --- a/Assets/ThirdParty/Spine/Editor/spine-unity/Editor/Shaders/SpineShaderWithOutlineGUI.cs +++ b/Assets/ThirdParty/Spine/Editor/spine-unity/Editor/Shaders/SpineShaderWithOutlineGUI.cs @@ -39,7 +39,9 @@ public class SpineShaderWithOutlineGUI : ShaderGUI { bool _showStencilSettings = false; MaterialProperty _OutlineWidth = null; + MaterialProperty _UseScreenSpaceOutlineWidth = null; MaterialProperty _OutlineColor = null; + MaterialProperty _Fill = null; MaterialProperty _OutlineReferenceTexWidth = null; MaterialProperty _ThresholdEnd = null; MaterialProperty _OutlineSmoothness = null; @@ -51,7 +53,9 @@ public class SpineShaderWithOutlineGUI : ShaderGUI { static GUIContent _EnableOutlineText = new GUIContent("Outline", "Enable outline rendering. Draws an outline by sampling 4 or 8 neighbourhood pixels at a given distance specified via 'Outline Width'."); static GUIContent _OutlineWidthText = new GUIContent("Outline Width", ""); + static GUIContent _UseScreenSpaceOutlineWidthText = new GUIContent("Width in Screen Space", "Enable to keep the outline width constant in screen space instead of texture space. Requires more expensive computations."); static GUIContent _OutlineColorText = new GUIContent("Outline Color", ""); + static GUIContent _FillText = new GUIContent("Fill", "Enable to also fill the opaque area inside the outline with the outline color. Prevents a semi-transparent gap between outline and skeleton."); static GUIContent _OutlineReferenceTexWidthText = new GUIContent("Reference Texture Width", ""); static GUIContent _ThresholdEndText = new GUIContent("Outline Threshold", ""); static GUIContent _OutlineSmoothnessText = new GUIContent("Outline Smoothness", ""); @@ -84,12 +88,13 @@ public class SpineShaderWithOutlineGUI : ShaderGUI { #endregion #region Virtual Interface - protected virtual void FindProperties (MaterialProperty[] props) { _OutlineWidth = FindProperty("_OutlineWidth", props, false); + _UseScreenSpaceOutlineWidth = FindProperty("_UseScreenSpaceOutlineWidth", props, false); _OutlineReferenceTexWidth = FindProperty("_OutlineReferenceTexWidth", props, false); _OutlineColor = FindProperty("_OutlineColor", props, false); + _Fill = FindProperty("_Fill", props, false); _ThresholdEnd = FindProperty("_ThresholdEnd", props, false); _OutlineSmoothness = FindProperty("_OutlineSmoothness", props, false); _Use8Neighbourhood = FindProperty("_Use8Neighbourhood", props, false); @@ -152,7 +157,11 @@ public class SpineShaderWithOutlineGUI : ShaderGUI { if (isOutlineEnabled) { _materialEditor.ShaderProperty(_OutlineWidth, _OutlineWidthText); + if (_UseScreenSpaceOutlineWidth != null) + _materialEditor.ShaderProperty(_UseScreenSpaceOutlineWidth, _UseScreenSpaceOutlineWidthText); _materialEditor.ShaderProperty(_OutlineColor, _OutlineColorText); + if (_Fill != null) + _materialEditor.ShaderProperty(_Fill, _FillText); _showAdvancedOutlineSettings = EditorGUILayout.Foldout(_showAdvancedOutlineSettings, _OutlineAdvancedText); if (_showAdvancedOutlineSettings) { @@ -168,11 +177,7 @@ public class SpineShaderWithOutlineGUI : ShaderGUI { } } - #endregion - - #region Private Functions - - void SwitchShaderToOutlineSettings (Material material, bool enableOutline) { + protected virtual void SwitchShaderToOutlineSettings (Material material, bool enableOutline) { string shaderName = material.shader.name; bool isSetToOutlineShader = shaderName.Contains(ShaderOutlineNamePrefix); @@ -187,7 +192,7 @@ public class SpineShaderWithOutlineGUI : ShaderGUI { } } - static bool IsOutlineEnabled (MaterialEditor editor, out bool mixedValue) { + protected static bool IsOutlineEnabled (MaterialEditor editor, out bool mixedValue) { mixedValue = false; bool isAnyEnabled = false; foreach (Material material in editor.targets) { @@ -200,7 +205,7 @@ public class SpineShaderWithOutlineGUI : ShaderGUI { return isAnyEnabled; } - static bool IsShaderWithoutStandardVariantShader (MaterialEditor editor, out bool mixedValue) { + protected static bool IsShaderWithoutStandardVariantShader (MaterialEditor editor, out bool mixedValue) { mixedValue = false; bool isAnyShaderWithoutVariant = false; foreach (Material material in editor.targets) { @@ -213,13 +218,12 @@ public class SpineShaderWithOutlineGUI : ShaderGUI { return isAnyShaderWithoutVariant; } - static bool BoldToggleField (GUIContent label, bool value) { + protected static bool BoldToggleField (GUIContent label, bool value) { FontStyle origFontStyle = EditorStyles.label.fontStyle; EditorStyles.label.fontStyle = FontStyle.Bold; value = EditorGUILayout.Toggle(label, value, EditorStyles.toggle); EditorStyles.label.fontStyle = origFontStyle; return value; } - #endregion } diff --git a/Assets/ThirdParty/Spine/Editor/spine-unity/Editor/Shaders/SpineSpriteShaderGUI.cs b/Assets/ThirdParty/Spine/Editor/spine-unity/Editor/Shaders/SpineSpriteShaderGUI.cs index 37b8bc589..e3555b0b0 100644 --- a/Assets/ThirdParty/Spine/Editor/spine-unity/Editor/Shaders/SpineSpriteShaderGUI.cs +++ b/Assets/ThirdParty/Spine/Editor/spine-unity/Editor/Shaders/SpineSpriteShaderGUI.cs @@ -274,14 +274,6 @@ public class SpineSpriteShaderGUI : SpineShaderWithOutlineGUI { _darkColor = FindProperty("_Black", props, false); } - static bool BoldToggleField (GUIContent label, bool value) { - FontStyle origFontStyle = EditorStyles.label.fontStyle; - EditorStyles.label.fontStyle = FontStyle.Bold; - value = EditorGUILayout.Toggle(label, value, EditorStyles.toggle); - EditorStyles.label.fontStyle = origFontStyle; - return value; - } - protected virtual void ShaderPropertiesGUI () { // Use default labelWidth EditorGUIUtility.labelWidth = 0f; diff --git a/Assets/ThirdParty/Spine/Editor/spine-unity/Editor/SpineAttributeDrawers.cs b/Assets/ThirdParty/Spine/Editor/spine-unity/Editor/SpineAttributeDrawers.cs index 04ac0b839..1201d88f2 100644 --- a/Assets/ThirdParty/Spine/Editor/spine-unity/Editor/SpineAttributeDrawers.cs +++ b/Assets/ThirdParty/Spine/Editor/spine-unity/Editor/SpineAttributeDrawers.cs @@ -152,9 +152,24 @@ namespace Spine.Unity.Editor { Texture2D image = Icon; GUIStyle usedStyle = IsValueValid(property) ? EditorStyles.popup : ErrorPopupStyle; string propertyStringValue = (property.hasMultipleDifferentValues) ? SpineInspectorUtility.EmDash : property.stringValue; - if (GUI.Button(position, string.IsNullOrEmpty(propertyStringValue) ? NoneLabel(image) : - SpineInspectorUtility.TempContent(propertyStringValue, image), usedStyle)) - Selector(property); + + if (!TargetAttribute.avoidGenericMenu) { + if (GUI.Button(position, string.IsNullOrEmpty(propertyStringValue) ? NoneLabel(image) : + SpineInspectorUtility.TempContent(propertyStringValue, image), usedStyle)) + Selector(property); + } else { + SkeletonData skeletonData = skeletonDataAsset.GetSkeletonData(false); + List contentList = new List(); + List valueList = new List(); + PopulatePopupList(ref contentList, ref valueList, image, property, TargetAttribute, skeletonData); + int currentIndex = valueList.IndexOf(propertyStringValue); + int previousIndex = currentIndex; + currentIndex = EditorGUI.Popup(position, currentIndex, contentList.ToArray()); + if (previousIndex != currentIndex) { + property.stringValue = valueList[currentIndex]; + property.serializedObject.ApplyModifiedProperties(); + } + } } public ISkeletonComponent GetTargetSkeletonComponent (SerializedProperty property) { @@ -192,6 +207,12 @@ namespace Spine.Unity.Editor { serializedProperty.serializedObject.ApplyModifiedProperties(); } + protected virtual void PopulatePopupList (ref List contentList, ref List valueList, + Texture2D image, SerializedProperty property, T targetAttribute, SkeletonData data) { + contentList.Add(new GUIContent("Type Not Supported")); + valueList.Add(string.Empty); + } + public override float GetPropertyHeight (SerializedProperty property, GUIContent label) { return 18; } @@ -288,6 +309,9 @@ namespace Spine.Unity.Editor { menu.AddDisabledItem(new GUIContent(skeletonDataAsset.name)); menu.AddSeparator(""); + if (targetAttribute.includeNone) + menu.AddItem(new GUIContent(NoneStringConstant), !property.hasMultipleDifferentValues && string.IsNullOrEmpty(property.stringValue), HandleSelect, new SpineDrawerValuePair(string.Empty, property)); + for (int i = 0; i < data.Skins.Count; i++) { string name = data.Skins.Items[i].Name; if (name.StartsWith(targetAttribute.startsWith, StringComparison.Ordinal)) { @@ -299,6 +323,25 @@ namespace Spine.Unity.Editor { } } + protected override void PopulatePopupList (ref List contentList, ref List valueList, + Texture2D image, SerializedProperty property, SpineSkin targetAttribute, SkeletonData data) { + + if (targetAttribute.includeNone) { + contentList.Add(new GUIContent(NoneStringConstant, image)); + valueList.Add(string.Empty); + } + + for (int i = 0; i < data.Skins.Count; i++) { + string name = data.Skins.Items[i].Name; + if (name.StartsWith(targetAttribute.startsWith, StringComparison.Ordinal)) { + bool isDefault = string.Equals(name, DefaultSkinName, StringComparison.Ordinal); + string choiceValue = TargetAttribute.defaultAsEmptyString && isDefault ? string.Empty : name; + contentList.Add(new GUIContent(name, image)); + valueList.Add(choiceValue); + } + } + } + } [CustomPropertyDrawer(typeof(SpineAnimation))] @@ -345,6 +388,24 @@ namespace Spine.Unity.Editor { } } + protected override void PopulatePopupList (ref List contentList, ref List valueList, + Texture2D image, SerializedProperty property, SpineAnimation targetAttribute, SkeletonData data) { + + ExposedList animations = data.Animations; + if (targetAttribute.includeNone) { + contentList.Add(new GUIContent(NoneString, image)); + valueList.Add(string.Empty); + } + + for (int i = 0; i < animations.Count; i++) { + string name = animations.Items[i].Name; + if (name.StartsWith(targetAttribute.startsWith, StringComparison.Ordinal)) { + contentList.Add(new GUIContent(name, image)); + valueList.Add(name); + } + } + } + } [CustomPropertyDrawer(typeof(SpineEvent))] diff --git a/Assets/ThirdParty/Spine/Editor/spine-unity/Editor/Utility/AssetUtility.cs b/Assets/ThirdParty/Spine/Editor/spine-unity/Editor/Utility/AssetUtility.cs index 41aedf788..bc08d26c5 100644 --- a/Assets/ThirdParty/Spine/Editor/spine-unity/Editor/Utility/AssetUtility.cs +++ b/Assets/ThirdParty/Spine/Editor/spine-unity/Editor/Utility/AssetUtility.cs @@ -1,16 +1,16 @@ /****************************************************************************** * Spine Runtimes License Agreement - * Last updated September 24, 2021. Replaces all prior versions. + * Last updated July 28, 2023. Replaces all prior versions. * - * Copyright (c) 2013-2021, Esoteric Software LLC + * Copyright (c) 2013-2023, Esoteric Software LLC * * Integration of the Spine Runtimes into software or otherwise creating * derivative works of the Spine Runtimes is permitted under the terms and * conditions of Section 2 of the Spine Editor License Agreement: * http://esotericsoftware.com/spine-editor-license * - * Otherwise, it is permitted to integrate the Spine Runtimes into software - * or otherwise create derivative works of the Spine Runtimes (collectively, + * Otherwise, it is permitted to integrate the Spine Runtimes into software or + * otherwise create derivative works of the Spine Runtimes (collectively, * "Products"), provided that each user of the Products must obtain their own * Spine Editor license and redistribution of the Products in any form must * include this license and copyright notice. @@ -23,8 +23,8 @@ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, * BUSINESS INTERRUPTION, OR LOSS OF USE, DATA, OR PROFITS) HOWEVER CAUSED AND * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF - * THE SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THE + * SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. *****************************************************************************/ #pragma warning disable 0219 @@ -61,6 +61,7 @@ using System.Linq; using System.Reflection; using System.Text; using UnityEditor; +using UnityEditor.VersionControl; using UnityEngine; using CompatibilityProblemInfo = Spine.Unity.SkeletonDataCompatibility.CompatibilityProblemInfo; @@ -218,7 +219,7 @@ namespace Spine.Unity.Editor { } else { // On a "Reimport All" the order of imports can be wrong, thus LoadAssetAtPath() above could return null. // as a workaround, we provide a fallback reader. - input = File.Open(skeletonDataPath, FileMode.Open, FileAccess.Read); + input = File.Open(skeletonDataPath, System.IO.FileMode.Open, FileAccess.Read); } binary.ReadSkeletonData(input); } finally { @@ -495,11 +496,13 @@ namespace Spine.Unity.Editor { } } } + + RevertUnchangedOnPerforce(atlasPaths, skeletonPaths, newAtlases); } static void AddDependentAtlasIfImageChanged (List atlasPaths, List imagePaths) { foreach (string imagePath in imagePaths) { - string atlasPath = imagePath.Replace(".png", ".atlas.txt"); + string atlasPath = Path.ChangeExtension(imagePath, ".atlas.txt"); if (!System.IO.File.Exists(atlasPath)) continue; @@ -528,6 +531,32 @@ namespace Spine.Unity.Editor { } } + /// Prevents automatic check-out of unchanged, identically re-created assets (e.g. when re-imported) + /// when using Perforce VCS. + static void RevertUnchangedOnPerforce (List atlasPaths, List skeletonPaths, List newAtlases) { + Plugin versionControl = Provider.GetActivePlugin(); + if (versionControl != null && versionControl.name == "Perforce") { + AssetList assets = new AssetList(); + + foreach (string atlasPath in atlasPaths) { + assets.Add(Provider.GetAssetByPath(atlasPath)); + } + foreach (PathAndProblemInfo skeletonPathInfo in skeletonPaths) { + if (skeletonPathInfo.compatibilityProblems == null) + assets.Add(Provider.GetAssetByPath(skeletonPathInfo.path)); + } + foreach (AtlasAssetBase atlas in newAtlases) { + if (atlas != null) + assets.Add(Provider.GetAssetByPath(AssetDatabase.GetAssetPath(atlas))); + foreach (Material atlasMaterial in atlas.Materials) { + if (atlasMaterial != null) + assets.Add(Provider.GetAssetByPath(AssetDatabase.GetAssetPath(atlasMaterial))); + } + } + Provider.Revert(assets, RevertMode.Unchanged); + } + } + static void ReloadSkeletonData (string skeletonJSONPath, CompatibilityProblemInfo compatibilityProblemInfo) { string dir = Path.GetDirectoryName(skeletonJSONPath).Replace('\\', '/'); TextAsset textAsset = AssetDatabase.LoadAssetAtPath(skeletonJSONPath); @@ -636,6 +665,7 @@ namespace Spine.Unity.Editor { atlasAsset.atlasFile = atlasText; List pageFiles = new List(); + atlasAsset.Clear(); // force reload Atlas atlas = atlasAsset.GetAtlas(onlyMetaData: true); if (atlas != null) { foreach (AtlasPage page in atlas.Pages) @@ -643,6 +673,7 @@ namespace Spine.Unity.Editor { } List populatingMaterials = new List(pageFiles.Count); + string materialDirectory = GetMaterialDirectory(assetPath, vestigialMaterials); for (int i = 0; i < pageFiles.Count; i++) { string texturePath = assetPath + "/" + pageFiles[i]; @@ -661,11 +692,10 @@ namespace Spine.Unity.Editor { if (pageName == primaryName && pageFiles.Count == 1) pageName = "material"; - string materialPath = assetPath + "/" + primaryName + "_" + pageName + ".mat"; + string materialPath = materialDirectory + "/" + primaryName + "_" + pageName + ".mat"; Material material = (Material)AssetDatabase.LoadAssetAtPath(materialPath, typeof(Material)); - if (material == null) { - Shader defaultShader = Shader.Find(SpineEditorUtilities.Preferences.DefaultShader); + Shader defaultShader = GetDefaultShader(); material = defaultShader != null ? new Material(defaultShader) : null; if (material) { ApplyPMAOrStraightAlphaSettings(material, SpineEditorUtilities.Preferences.textureSettingsReference); @@ -738,6 +768,13 @@ namespace Spine.Unity.Editor { return loadedAtlas != null ? loadedAtlas : atlasAsset; } + public static Shader GetDefaultShader () { + Shader shader = Shader.Find(SpineEditorUtilities.Preferences.DefaultShader); + if (shader == null) shader = Shader.Find("Spine/Skeleton"); + if (shader == null) shader = Shader.Find("Standard"); + return shader; + } + public static bool SpriteAtlasSettingsNeedAdjustment (UnityEngine.U2D.SpriteAtlas spriteAtlas) { #if EXPOSES_SPRITE_ATLAS_UTILITIES UnityEditor.U2D.SpriteAtlasPackingSettings packingSettings = UnityEditor.U2D.SpriteAtlasExtensions.GetPackingSettings(spriteAtlas); @@ -830,7 +867,6 @@ namespace Spine.Unity.Editor { string primaryName = spriteAtlas.name; string assetPath = Path.GetDirectoryName(AssetDatabase.GetAssetPath(spriteAtlas)).Replace('\\', '/'); - string atlasPath = assetPath + "/" + primaryName + SpriteAtlasSuffix + ".asset"; SpineSpriteAtlasAsset atlasAsset = AssetDatabase.LoadAssetAtPath(atlasPath); @@ -852,24 +888,24 @@ namespace Spine.Unity.Editor { { string pageName = "SpriteAtlas"; - string materialPath = assetPath + "/" + primaryName + "_" + pageName + ".mat"; - Material mat = AssetDatabase.LoadAssetAtPath(materialPath); + Material material = AssetDatabase.LoadAssetAtPath(materialPath); - if (mat == null) { - mat = new Material(Shader.Find(SpineEditorUtilities.Preferences.defaultShader)); - ApplyPMAOrStraightAlphaSettings(mat, SpineEditorUtilities.Preferences.textureSettingsReference); - AssetDatabase.CreateAsset(mat, materialPath); + if (material == null) { + Shader defaultShader = GetDefaultShader(); + material = defaultShader != null ? new Material(defaultShader) : null; + ApplyPMAOrStraightAlphaSettings(material, SpineEditorUtilities.Preferences.textureSettingsReference); + AssetDatabase.CreateAsset(material, materialPath); } else { - vestigialMaterials.Remove(mat); + vestigialMaterials.Remove(material); } if (texture != null) - mat.mainTexture = texture; + material.mainTexture = texture; - EditorUtility.SetDirty(mat); + EditorUtility.SetDirty(material); // note: don't call AssetDatabase.SaveAssets() since this would trigger OnPostprocessAllAssets() every time unnecessarily. - populatingMaterials.Add(mat); //atlasAsset.materials[i] = mat; + populatingMaterials.Add(material); } atlasAsset.materials = populatingMaterials.ToArray(); @@ -894,6 +930,15 @@ namespace Spine.Unity.Editor { return (AtlasAssetBase)AssetDatabase.LoadAssetAtPath(atlasPath, typeof(AtlasAssetBase)); } + static string GetMaterialDirectory (string assetPath, List previousMaterials) { + if (previousMaterials.Count > 0 && previousMaterials[0] != null) { + string materialPath = AssetDatabase.GetAssetPath(previousMaterials[0]); + string materialDirectory = Path.GetDirectoryName(materialPath).Replace('\\', '/'); + return materialDirectory; + } + return assetPath; + } + static bool SetDefaultTextureSettings (string texturePath, SpineAtlasAsset atlasAsset) { TextureImporter texImporter = (TextureImporter)TextureImporter.GetAtPath(texturePath); if (texImporter == null) { @@ -1295,6 +1340,8 @@ namespace Spine.Unity.Editor { skeletonRenderer.pmaVertexColors = pmaVertexColors; skeletonRenderer.tintBlack = tintBlack; skeletonRenderer.zSpacing = SpineEditorUtilities.Preferences.defaultZSpacing; + skeletonRenderer.PhysicsPositionInheritanceFactor = SpineEditorUtilities.Preferences.defaultPhysicsPositionInheritance; + skeletonRenderer.PhysicsRotationInheritanceFactor = SpineEditorUtilities.Preferences.defaultPhysicsRotationInheritance; SkeletonData data = skeletonDataAsset.GetSkeletonData(false); bool noSkins = data.DefaultSkin == null && (data.Skins == null || data.Skins.Count == 0); // Support attachmentless/skinless SkeletonData. @@ -1351,7 +1398,7 @@ namespace Spine.Unity.Editor { newSkeletonAnimation.loop = SpineEditorUtilities.Preferences.defaultInstantiateLoop; newSkeletonAnimation.state.Update(0); newSkeletonAnimation.state.Apply(newSkeletonAnimation.skeleton); - newSkeletonAnimation.skeleton.UpdateWorldTransform(); + newSkeletonAnimation.skeleton.UpdateWorldTransform(Skeleton.Physics.Update); return newSkeletonAnimation; } @@ -1434,7 +1481,7 @@ namespace Spine.Unity.Editor { throw e; } - newSkeletonMecanim.skeleton.UpdateWorldTransform(); + newSkeletonMecanim.skeleton.UpdateWorldTransform(Skeleton.Physics.Update); newSkeletonMecanim.LateUpdate(); return newSkeletonMecanim; diff --git a/Assets/ThirdParty/Spine/Editor/spine-unity/Editor/Utility/BlendModeMaterialsUtility.cs b/Assets/ThirdParty/Spine/Editor/spine-unity/Editor/Utility/BlendModeMaterialsUtility.cs index 30f8b1a1e..3e7170378 100644 --- a/Assets/ThirdParty/Spine/Editor/spine-unity/Editor/Utility/BlendModeMaterialsUtility.cs +++ b/Assets/ThirdParty/Spine/Editor/spine-unity/Editor/Utility/BlendModeMaterialsUtility.cs @@ -37,25 +37,19 @@ using UnityEditor; using UnityEngine; namespace Spine.Unity.Editor { + using TemplateMaterials = BlendModeMaterials.TemplateMaterials; public class BlendModeMaterialsUtility { - public const string MATERIAL_SUFFIX_MULTIPLY = "-Multiply"; - public const string MATERIAL_SUFFIX_SCREEN = "-Screen"; - public const string MATERIAL_SUFFIX_ADDITIVE = "-Additive"; + public const string MATERIAL_SUFFIX_MULTIPLY = BlendModeMaterials.MATERIAL_SUFFIX_MULTIPLY; + public const string MATERIAL_SUFFIX_SCREEN = BlendModeMaterials.MATERIAL_SUFFIX_SCREEN; + public const string MATERIAL_SUFFIX_ADDITIVE = BlendModeMaterials.MATERIAL_SUFFIX_ADDITIVE; #if UPGRADE_ALL_BLEND_MODE_MATERIALS public const bool ShallUpgradeBlendModeMaterials = true; #else public const bool ShallUpgradeBlendModeMaterials = false; #endif - - protected class TemplateMaterials { - public Material multiplyTemplate; - public Material screenTemplate; - public Material additiveTemplate; - }; - public static void UpgradeBlendModeMaterials (SkeletonDataAsset skeletonDataAsset) { SkeletonData skeletonData = skeletonDataAsset.GetSkeletonData(true); if (skeletonData == null) @@ -158,72 +152,11 @@ namespace Spine.Unity.Editor { protected static bool CreateAndAssignMaterials (SkeletonDataAsset skeletonDataAsset, TemplateMaterials templateMaterials, ref bool anyReplacementMaterialsChanged) { - bool anyCreationFailed = false; - BlendModeMaterials blendModeMaterials = skeletonDataAsset.blendModeMaterials; - bool applyAdditiveMaterial = blendModeMaterials.applyAdditiveMaterial; - - List skinEntries = new List(); - - SpineEditorUtilities.ClearSkeletonDataAsset(skeletonDataAsset); - skeletonDataAsset.isUpgradingBlendModeMaterials = true; - SkeletonData skeletonData = skeletonDataAsset.GetSkeletonData(true); - - SlotData[] slotsItems = skeletonData.Slots.Items; - for (int slotIndex = 0, slotCount = skeletonData.Slots.Count; slotIndex < slotCount; slotIndex++) { - SlotData slot = slotsItems[slotIndex]; - if (slot.BlendMode == BlendMode.Normal) continue; - if (!applyAdditiveMaterial && slot.BlendMode == BlendMode.Additive) continue; - - List replacementMaterials = null; - Material materialTemplate = null; - string materialSuffix = null; - switch (slot.BlendMode) { - case BlendMode.Multiply: - replacementMaterials = blendModeMaterials.multiplyMaterials; - materialTemplate = templateMaterials.multiplyTemplate; - materialSuffix = MATERIAL_SUFFIX_MULTIPLY; - break; - case BlendMode.Screen: - replacementMaterials = blendModeMaterials.screenMaterials; - materialTemplate = templateMaterials.screenTemplate; - materialSuffix = MATERIAL_SUFFIX_SCREEN; - break; - case BlendMode.Additive: - replacementMaterials = blendModeMaterials.additiveMaterials; - materialTemplate = templateMaterials.additiveTemplate; - materialSuffix = MATERIAL_SUFFIX_ADDITIVE; - break; - } - - skinEntries.Clear(); - foreach (Skin skin in skeletonData.Skins) - skin.GetAttachments(slotIndex, skinEntries); - - foreach (Skin.SkinEntry entry in skinEntries) { - IHasTextureRegion renderableAttachment = entry.Attachment as IHasTextureRegion; - if (renderableAttachment != null) { - AtlasRegion originalRegion = (AtlasRegion)renderableAttachment.Region; - if (originalRegion != null) { - anyCreationFailed |= CreateForRegion( - ref replacementMaterials, ref anyReplacementMaterialsChanged, - originalRegion, materialTemplate, materialSuffix, skeletonDataAsset); - } else { - Sequence sequence = renderableAttachment.Sequence; - if (sequence != null && sequence.Regions != null) { - for (int i = 0, count = sequence.Regions.Length; i < count; ++i) { - originalRegion = (AtlasRegion)sequence.Regions[i]; - anyCreationFailed |= CreateForRegion( - ref replacementMaterials, ref anyReplacementMaterialsChanged, - originalRegion, materialTemplate, materialSuffix, skeletonDataAsset); - } - } - } - } - } - } - skeletonDataAsset.isUpgradingBlendModeMaterials = false; - EditorUtility.SetDirty(skeletonDataAsset); - return !anyCreationFailed; + return BlendModeMaterials.CreateAndAssignMaterials(skeletonDataAsset, + templateMaterials, ref anyReplacementMaterialsChanged, + SpineEditorUtilities.ClearSkeletonDataAsset, + EditorUtility.SetDirty, + CreateForRegion); } protected static bool CreateForRegion (ref List replacementMaterials, @@ -274,6 +207,18 @@ namespace Spine.Unity.Editor { if (File.Exists(blendMaterialPath)) { newReplacement.material = AssetDatabase.LoadAssetAtPath(blendMaterialPath); } else { + if (materialTemplate == null) { + Debug.LogError(string.Format("Failed to create blend mode material: Material template for " + + "blend mode '{0}' was null. Re-importing might fix this issue.", + materialSuffix), originalMaterial); + return null; + } + if (originalMaterial == null) { + Debug.LogError(string.Format("Failed to create blend mode material for atlas page '{0}': Original material for " + + "blend mode '{1}' was null. Re-importing might fix this issue.", + originalPage.name, materialSuffix)); + return null; + } Material blendModeMaterial = new Material(materialTemplate) { name = originalMaterial.name + " " + materialTemplate.name, mainTexture = originalMaterial.mainTexture diff --git a/Assets/ThirdParty/Spine/Editor/spine-unity/Editor/Utility/Icons.cs b/Assets/ThirdParty/Spine/Editor/spine-unity/Editor/Utility/Icons.cs index 52dab50a8..4f2000f9c 100644 --- a/Assets/ThirdParty/Spine/Editor/spine-unity/Editor/Utility/Icons.cs +++ b/Assets/ThirdParty/Spine/Editor/spine-unity/Editor/Utility/Icons.cs @@ -70,6 +70,7 @@ namespace Spine.Unity.Editor { public static Texture2D constraintTransform; public static Texture2D constraintPath; public static Texture2D constraintIK; + public static Texture2D constraintPhysics; public static Texture2D warning; public static Texture2D skeletonUtility; public static Texture2D hingeChain; @@ -113,6 +114,7 @@ namespace Spine.Unity.Editor { constraintTransform = LoadIcon("icon-constraintTransform.png"); constraintPath = LoadIcon("icon-constraintPath.png"); constraintIK = LoadIcon("icon-constraintIK.png"); + constraintPhysics = LoadIcon("icon-constraintPhysics.png"); warning = LoadIcon("icon-warning.png"); skeletonUtility = LoadIcon("icon-skeletonUtility.png"); diff --git a/Assets/ThirdParty/Spine/Editor/spine-unity/Editor/Utility/Preferences.cs b/Assets/ThirdParty/Spine/Editor/spine-unity/Editor/Utility/Preferences.cs index 913abfbf8..5d78ad691 100644 --- a/Assets/ThirdParty/Spine/Editor/spine-unity/Editor/Utility/Preferences.cs +++ b/Assets/ThirdParty/Spine/Editor/spine-unity/Editor/Utility/Preferences.cs @@ -115,6 +115,13 @@ namespace Spine.Unity.Editor { const string DEFAULT_INSTANTIATE_LOOP_KEY = "SPINE_DEFAULT_INSTANTIATE_LOOP"; public static bool defaultInstantiateLoop = SpinePreferences.DEFAULT_DEFAULT_INSTANTIATE_LOOP; + const string DEFAULT_PHYSICS_POSITION_INHERITANCE_X_KEY = "SPINE_DEFAULT_PHYSICS_POSITION_INHERITANCE_X"; + const string DEFAULT_PHYSICS_POSITION_INHERITANCE_Y_KEY = "SPINE_DEFAULT_PHYSICS_POSITION_INHERITANCE_Y"; + public static Vector2 defaultPhysicsPositionInheritance = SpinePreferences.DEFAULT_DEFAULT_PHYSICS_POSITION_INHERITANCE; + + const string DEFAULT_PHYSICS_ROTATION_INHERITANCE_KEY = "SPINE_DEFAULT_PHYSICS_ROTATION_INHERITANCE"; + public static float defaultPhysicsRotationInheritance = SpinePreferences.DEFAULT_DEFAULT_PHYSICS_ROTATION_INHERITANCE; + const string SHOW_HIERARCHY_ICONS_KEY = "SPINE_SHOW_HIERARCHY_ICONS"; public static bool showHierarchyIcons = SpinePreferences.DEFAULT_SHOW_HIERARCHY_ICONS; @@ -191,6 +198,10 @@ namespace Spine.Unity.Editor { defaultMix = EditorPrefs.GetFloat(DEFAULT_MIX_KEY, SpinePreferences.DEFAULT_DEFAULT_MIX); defaultScale = EditorPrefs.GetFloat(DEFAULT_SCALE_KEY, SpinePreferences.DEFAULT_DEFAULT_SCALE); defaultZSpacing = EditorPrefs.GetFloat(DEFAULT_ZSPACING_KEY, SpinePreferences.DEFAULT_DEFAULT_ZSPACING); + defaultInstantiateLoop = EditorPrefs.GetBool(DEFAULT_INSTANTIATE_LOOP_KEY, SpinePreferences.DEFAULT_DEFAULT_INSTANTIATE_LOOP); + defaultPhysicsPositionInheritance.x = EditorPrefs.GetFloat(DEFAULT_PHYSICS_POSITION_INHERITANCE_X_KEY, SpinePreferences.DEFAULT_DEFAULT_PHYSICS_POSITION_INHERITANCE.x); + defaultPhysicsPositionInheritance.y = EditorPrefs.GetFloat(DEFAULT_PHYSICS_POSITION_INHERITANCE_Y_KEY, SpinePreferences.DEFAULT_DEFAULT_PHYSICS_POSITION_INHERITANCE.y); + defaultPhysicsRotationInheritance = EditorPrefs.GetFloat(DEFAULT_PHYSICS_ROTATION_INHERITANCE_KEY, SpinePreferences.DEFAULT_DEFAULT_PHYSICS_ROTATION_INHERITANCE); defaultShader = EditorPrefs.GetString(DEFAULT_SHADER_KEY, SpinePreferences.DEFAULT_DEFAULT_SHADER); showHierarchyIcons = EditorPrefs.GetBool(SHOW_HIERARCHY_ICONS_KEY, SpinePreferences.DEFAULT_SHOW_HIERARCHY_ICONS); reloadAfterPlayMode = EditorPrefs.GetBool(RELOAD_AFTER_PLAYMODE_KEY, SpinePreferences.DEFAULT_RELOAD_AFTER_PLAYMODE); @@ -216,6 +227,10 @@ namespace Spine.Unity.Editor { newPreferences.defaultMix = EditorPrefs.GetFloat(DEFAULT_MIX_KEY, SpinePreferences.DEFAULT_DEFAULT_MIX); newPreferences.defaultScale = EditorPrefs.GetFloat(DEFAULT_SCALE_KEY, SpinePreferences.DEFAULT_DEFAULT_SCALE); newPreferences.defaultZSpacing = EditorPrefs.GetFloat(DEFAULT_ZSPACING_KEY, SpinePreferences.DEFAULT_DEFAULT_ZSPACING); + newPreferences.defaultInstantiateLoop = EditorPrefs.GetBool(DEFAULT_INSTANTIATE_LOOP_KEY, SpinePreferences.DEFAULT_DEFAULT_INSTANTIATE_LOOP); + newPreferences.defaultPhysicsPositionInheritance.x = EditorPrefs.GetFloat(DEFAULT_PHYSICS_POSITION_INHERITANCE_X_KEY, SpinePreferences.DEFAULT_DEFAULT_PHYSICS_POSITION_INHERITANCE.x); + newPreferences.defaultPhysicsPositionInheritance.y = EditorPrefs.GetFloat(DEFAULT_PHYSICS_POSITION_INHERITANCE_Y_KEY, SpinePreferences.DEFAULT_DEFAULT_PHYSICS_POSITION_INHERITANCE.y); + newPreferences.defaultPhysicsRotationInheritance = EditorPrefs.GetFloat(DEFAULT_PHYSICS_ROTATION_INHERITANCE_KEY, SpinePreferences.DEFAULT_DEFAULT_PHYSICS_ROTATION_INHERITANCE); newPreferences.defaultShader = EditorPrefs.GetString(DEFAULT_SHADER_KEY, SpinePreferences.DEFAULT_DEFAULT_SHADER); newPreferences.showHierarchyIcons = EditorPrefs.GetBool(SHOW_HIERARCHY_ICONS_KEY, SpinePreferences.DEFAULT_SHOW_HIERARCHY_ICONS); newPreferences.reloadAfterPlayMode = EditorPrefs.GetBool(RELOAD_AFTER_PLAYMODE_KEY, SpinePreferences.DEFAULT_RELOAD_AFTER_PLAYMODE); @@ -236,6 +251,10 @@ namespace Spine.Unity.Editor { EditorPrefs.SetFloat(DEFAULT_MIX_KEY, preferences.defaultMix); EditorPrefs.SetFloat(DEFAULT_SCALE_KEY, preferences.defaultScale); EditorPrefs.SetFloat(DEFAULT_ZSPACING_KEY, preferences.defaultZSpacing); + EditorPrefs.SetBool(DEFAULT_INSTANTIATE_LOOP_KEY, preferences.defaultInstantiateLoop); + EditorPrefs.SetFloat(DEFAULT_PHYSICS_POSITION_INHERITANCE_X_KEY, preferences.defaultPhysicsPositionInheritance.x); + EditorPrefs.SetFloat(DEFAULT_PHYSICS_POSITION_INHERITANCE_Y_KEY, preferences.defaultPhysicsPositionInheritance.y); + EditorPrefs.SetFloat(DEFAULT_PHYSICS_ROTATION_INHERITANCE_KEY, preferences.defaultPhysicsRotationInheritance); EditorPrefs.SetString(DEFAULT_SHADER_KEY, preferences.defaultShader); EditorPrefs.SetBool(SHOW_HIERARCHY_ICONS_KEY, preferences.showHierarchyIcons); EditorPrefs.SetBool(RELOAD_AFTER_PLAYMODE_KEY, preferences.reloadAfterPlayMode); @@ -336,6 +355,16 @@ namespace Spine.Unity.Editor { EditorPrefs.SetFloat(DEFAULT_ZSPACING_KEY, defaultZSpacing); SpineEditorUtilities.BoolPrefsField(ref defaultInstantiateLoop, DEFAULT_INSTANTIATE_LOOP_KEY, new GUIContent("Default Loop", "Spawn Spine GameObjects with loop enabled.")); + + EditorGUILayout.LabelField("Physics Inheritance"); + using (new SpineInspectorUtility.IndentScope()) { + float positionX = defaultPhysicsPositionInheritance.x; + float positionY = defaultPhysicsPositionInheritance.y; + SpineEditorUtilities.FloatPrefsField(ref positionX, DEFAULT_PHYSICS_POSITION_INHERITANCE_X_KEY, new GUIContent("Default Position X", "The Default Physics Inheritance - Position X factor.")); + SpineEditorUtilities.FloatPrefsField(ref positionY, DEFAULT_PHYSICS_POSITION_INHERITANCE_Y_KEY, new GUIContent("Default Position Y", "The Default Physics Inheritance - Position Y factor.")); + defaultPhysicsPositionInheritance = new Vector2(positionX, positionY); + SpineEditorUtilities.FloatPrefsField(ref defaultPhysicsRotationInheritance, DEFAULT_PHYSICS_ROTATION_INHERITANCE_KEY, new GUIContent("Default Rotation", "The Default Physics Inheritance - Rotation factor.")); + } } EditorGUILayout.Space(); diff --git a/Assets/ThirdParty/Spine/Editor/spine-unity/Editor/Utility/SpineBuildProcessor.cs b/Assets/ThirdParty/Spine/Editor/spine-unity/Editor/Utility/SpineBuildProcessor.cs index 4bc707fcd..5d145866d 100644 --- a/Assets/ThirdParty/Spine/Editor/spine-unity/Editor/Utility/SpineBuildProcessor.cs +++ b/Assets/ThirdParty/Spine/Editor/spine-unity/Editor/Utility/SpineBuildProcessor.cs @@ -31,6 +31,10 @@ #define HAS_BUILD_PROCESS_WITH_REPORT #endif +#if UNITY_2021_2_OR_NEWER +#define HAS_BUILD_PLAYER_PROCESSOR +#endif + #if UNITY_2020_2_OR_NEWER #define HAS_ON_POSTPROCESS_PREFAB #endif @@ -258,26 +262,43 @@ namespace Spine.Unity.Editor { } } - public class SpineBuildPreprocessor : -#if HAS_BUILD_PROCESS_WITH_REPORT - IPreprocessBuildWithReport -#else - IPreprocessBuild -#endif - { +#if HAS_BUILD_PLAYER_PROCESSOR + /// + /// Build Preprocessor for Unity 2021.2 and newer. + /// Unfortunately BuildPlayerProcessors seem to be executed before IPreprocessBuildWithReport regardless of + /// callbackOrder, thus requiring use of this base class to call pre-build hooks before Addressables or + /// Asset Bundles are built. + /// + public class SpineBuildPreprocessor : UnityEditor.Build.BuildPlayerProcessor { + public override int callbackOrder { + get { return -2000; } + } + + public override void PrepareForBuild (BuildPlayerContext buildPlayerContext) { + SpineBuildProcessor.PreprocessBuild(); + } + } +#elif HAS_BUILD_PROCESS_WITH_REPORT + public class SpineBuildPreprocessor : IPreprocessBuildWithReport { public int callbackOrder { get { return -2000; } } -#if HAS_BUILD_PROCESS_WITH_REPORT + void IPreprocessBuildWithReport.OnPreprocessBuild (BuildReport report) { SpineBuildProcessor.PreprocessBuild(); } + } #else + public class SpineBuildPreprocessor : IPreprocessBuild { + public int callbackOrder { + get { return -2000; } + } + void IPreprocessBuild.OnPreprocessBuild (BuildTarget target, string path) { SpineBuildProcessor.PreprocessBuild(); } -#endif } +#endif public class SpineBuildPostprocessor : #if HAS_BUILD_PROCESS_WITH_REPORT diff --git a/Assets/ThirdParty/Spine/Editor/spine-unity/Editor/Utility/SpineEditorUtilities.cs b/Assets/ThirdParty/Spine/Editor/spine-unity/Editor/Utility/SpineEditorUtilities.cs index f3b2e39e9..889112ec4 100644 --- a/Assets/ThirdParty/Spine/Editor/spine-unity/Editor/Utility/SpineEditorUtilities.cs +++ b/Assets/ThirdParty/Spine/Editor/spine-unity/Editor/Utility/SpineEditorUtilities.cs @@ -75,6 +75,10 @@ namespace Spine.Unity.Editor { public static bool initialized; private static List texturesWithoutMetaFile = new List(); + public static void OnTextureImportedFirstTime (string texturePath) { + texturesWithoutMetaFile.Add(texturePath); + } + // Auto-import entry point for textures void OnPreprocessTexture () { #if UNITY_2018_1_OR_NEWER @@ -124,10 +128,10 @@ namespace Spine.Unity.Editor { Mesh mesh = meshFilter.sharedMesh; if (mesh == null) continue; - string meshName = string.Format("Skeleton Prefab Mesh \"{0}\"", renderer.name); + string meshName = string.Format("Skeleton Prefab Mesh [{0}]", renderer.name); if (nameUsageCount.ContainsKey(meshName)) { nameUsageCount[meshName]++; - meshName = string.Format("Skeleton Prefab Mesh \"{0} ({1})\"", renderer.name, nameUsageCount[meshName]); + meshName = string.Format("Skeleton Prefab Mesh [{0} ({1})]", renderer.name, nameUsageCount[meshName]); } else { nameUsageCount.Add(meshName, 0); } @@ -546,6 +550,16 @@ namespace Spine.Unity.Editor { } } + public class SpineAssetModificationProcessor : UnityEditor.AssetModificationProcessor { + static void OnWillCreateAsset (string assetName) { + // Note: This method seems to be called from the main thread, + // not from worker threads when Project Settings - Editor - Parallel Import is enabled. + int endIndex = assetName.LastIndexOf(".meta"); + string assetPath = endIndex < 0 ? assetName : assetName.Substring(0, endIndex); + SpineEditorUtilities.OnTextureImportedFirstTime(assetPath); + } + } + public class TextureModificationWarningProcessor : UnityEditor.AssetModificationProcessor { static string[] OnWillSaveAssets (string[] paths) { if (SpineEditorUtilities.Preferences.textureImporterWarning) { @@ -564,4 +578,54 @@ namespace Spine.Unity.Editor { return paths; } } + + public class AnimationWindowPreview { + static System.Type animationWindowType; + public static System.Type AnimationWindowType { + get { + if (animationWindowType == null) + animationWindowType = System.Type.GetType("UnityEditor.AnimationWindow,UnityEditor"); + return animationWindowType; + } + } + + public static UnityEngine.Object GetOpenAnimationWindow () { + UnityEngine.Object[] openAnimationWindows = Resources.FindObjectsOfTypeAll(AnimationWindowType); + return openAnimationWindows.Length == 0 ? null : openAnimationWindows[0]; + } + + public static AnimationClip GetAnimationClip (UnityEngine.Object animationWindow) { + if (animationWindow == null) + return null; + + const BindingFlags bindingFlagsInstance = BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance; + FieldInfo animEditorField = AnimationWindowType.GetField("m_AnimEditor", bindingFlagsInstance); + + PropertyInfo selectionProperty = animEditorField.FieldType.GetProperty("selection", bindingFlagsInstance); + object animEditor = animEditorField.GetValue(animationWindow); + if (animEditor == null) return null; + object selection = selectionProperty.GetValue(animEditor, null); + if (selection == null) return null; + + PropertyInfo animationClipProperty = selection.GetType().GetProperty("animationClip"); + return animationClipProperty.GetValue(selection, null) as AnimationClip; + } + + public static float GetAnimationTime (UnityEngine.Object animationWindow) { + if (animationWindow == null) + return 0.0f; + + const BindingFlags bindingFlagsInstance = BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance; + FieldInfo animEditorField = AnimationWindowType.GetField("m_AnimEditor", bindingFlagsInstance); + object animEditor = animEditorField.GetValue(animationWindow); + + System.Type animEditorFieldType = animEditorField.FieldType; + PropertyInfo stateProperty = animEditorFieldType.GetProperty("state", bindingFlagsInstance); + System.Type animWindowStateType = stateProperty.PropertyType; + PropertyInfo timeProperty = animWindowStateType.GetProperty("currentTime", bindingFlagsInstance); + + object state = stateProperty.GetValue(animEditor, null); + return (float)timeProperty.GetValue(state, null); + } + } } diff --git a/Assets/ThirdParty/Spine/Editor/spine-unity/Editor/Utility/SpineHandles.cs b/Assets/ThirdParty/Spine/Editor/spine-unity/Editor/Utility/SpineHandles.cs index 4aa5567ab..fbf8f0567 100644 --- a/Assets/ThirdParty/Spine/Editor/spine-unity/Editor/Utility/SpineHandles.cs +++ b/Assets/ThirdParty/Spine/Editor/spine-unity/Editor/Utility/SpineHandles.cs @@ -29,6 +29,10 @@ #pragma warning disable 0219 +#if UNITY_2022_1_OR_NEWER +#define FREE_MOVE_HANDLE_HAS_NO_ROTATION_PARAM +#endif + #define SPINE_SKELETONMECANIM using System.Collections.Generic; @@ -161,27 +165,32 @@ namespace Spine.Unity.Editor { } } - public static void DrawBoneNames (Transform transform, Skeleton skeleton, float positionScale = 1f) { + public static void DrawBoneNames (Transform transform, Skeleton skeleton, float positionScale = 1f, + Vector2? positionOffset = null) { if (UnityEngine.Event.current.type != EventType.Repaint) return; + Vector2 offset = positionOffset == null ? Vector2.zero : positionOffset.Value; GUIStyle style = BoneNameStyle; foreach (Bone b in skeleton.Bones) { if (!b.Active) continue; - Vector3 pos = new Vector3(b.WorldX * positionScale, b.WorldY * positionScale, 0) + (new Vector3(b.A, b.C) * (b.Data.Length * 0.5f)); + Vector3 pos = new Vector3(b.WorldX * positionScale + offset.x, b.WorldY * positionScale + offset.y, 0) + + (new Vector3(b.A, b.C) * (b.Data.Length * 0.5f)); pos = transform.TransformPoint(pos); Handles.Label(pos, b.Data.Name, style); } } - public static void DrawBones (Transform transform, Skeleton skeleton, float positionScale = 1f) { + public static void DrawBones (Transform transform, Skeleton skeleton, float positionScale = 1f, + Vector2? positionOffset = null) { if (UnityEngine.Event.current.type != EventType.Repaint) return; + Vector2 offset = positionOffset == null ? Vector2.zero : positionOffset.Value; float boneScale = 1.8f; // Draw the root bone largest; - DrawCrosshairs2D(skeleton.Bones.Items[0].GetWorldPosition(transform), 0.08f, positionScale); + DrawCrosshairs2D(skeleton.Bones.Items[0].GetWorldPosition(transform, positionScale, offset), 0.08f, positionScale); foreach (Bone b in skeleton.Bones) { if (!b.Active) continue; - DrawBone(transform, b, boneScale, positionScale); + DrawBone(transform, b, boneScale, positionScale, positionOffset); boneScale = 1f; } } @@ -194,11 +203,13 @@ namespace Spine.Unity.Editor { _boneWireBuffer[4] = _boneWireBuffer[0]; // closed polygon. return _boneWireBuffer; } - public static void DrawBoneWireframe (Transform transform, Bone b, Color color, float skeletonRenderScale = 1f) { + public static void DrawBoneWireframe (Transform transform, Bone b, Color color, float skeletonRenderScale = 1f, + Vector2? positionOffset = null) { if (UnityEngine.Event.current.type != EventType.Repaint) return; + Vector2 offset = positionOffset == null ? Vector2.zero : positionOffset.Value; Handles.color = color; - Vector3 pos = new Vector3(b.WorldX * skeletonRenderScale, b.WorldY * skeletonRenderScale, 0); + Vector3 pos = new Vector3(b.WorldX * skeletonRenderScale + offset.x, b.WorldY * skeletonRenderScale + offset.y, 0); float length = b.Data.Length; if (length > 0) { @@ -216,10 +227,12 @@ namespace Spine.Unity.Editor { } } - public static void DrawBone (Transform transform, Bone b, float boneScale, float skeletonRenderScale = 1f) { + public static void DrawBone (Transform transform, Bone b, float boneScale, float skeletonRenderScale = 1f, + Vector2? positionOffset = null) { if (UnityEngine.Event.current.type != EventType.Repaint) return; - Vector3 pos = new Vector3(b.WorldX * skeletonRenderScale, b.WorldY * skeletonRenderScale, 0); + Vector2 offset = positionOffset == null ? Vector2.zero : positionOffset.Value; + Vector3 pos = new Vector3(b.WorldX * skeletonRenderScale + offset.x, b.WorldY * skeletonRenderScale + offset.y, 0); float length = b.Data.Length; if (length > 0) { Quaternion rot = Quaternion.Euler(0, 0, b.WorldRotationX); @@ -235,10 +248,12 @@ namespace Spine.Unity.Editor { } } - public static void DrawBone (Transform transform, Bone b, float boneScale, Color color, float skeletonRenderScale = 1f) { + public static void DrawBone (Transform transform, Bone b, float boneScale, Color color, float skeletonRenderScale = 1f, + Vector2? positionOffset = null) { if (UnityEngine.Event.current.type != EventType.Repaint) return; - Vector3 pos = new Vector3(b.WorldX * skeletonRenderScale, b.WorldY * skeletonRenderScale, 0); + Vector2 offset = positionOffset == null ? Vector2.zero : positionOffset.Value; + Vector3 pos = new Vector3(b.WorldX * skeletonRenderScale + offset.x, b.WorldY * skeletonRenderScale + offset.y, 0); float length = b.Data.Length; if (length > 0) { Quaternion rot = Quaternion.Euler(0, 0, b.WorldRotationX); @@ -367,9 +382,11 @@ namespace Spine.Unity.Editor { DrawArrowhead(skeletonTransform.localToWorldMatrix * m); } - public static void DrawConstraints (Transform transform, Skeleton skeleton, float skeletonRenderScale = 1f) { + public static void DrawConstraints (Transform transform, Skeleton skeleton, float skeletonRenderScale = 1f, + Vector2? positionOffset = null) { if (UnityEngine.Event.current.type != EventType.Repaint) return; + Vector2 offset = positionOffset == null ? Vector2.zero : positionOffset.Value; Vector3 targetPos; Vector3 pos; bool active; @@ -381,14 +398,14 @@ namespace Spine.Unity.Editor { handleColor = SpineHandles.TransformContraintColor; foreach (TransformConstraint tc in skeleton.TransformConstraints) { Bone targetBone = tc.Target; - targetPos = targetBone.GetWorldPosition(transform, skeletonRenderScale); + targetPos = targetBone.GetWorldPosition(transform, skeletonRenderScale, offset); if (tc.MixX > 0 || tc.MixY > 0) { if ((tc.MixX > 0 && tc.MixX != 1f) || (tc.MixY > 0 && tc.MixY != 1f)) { Handles.color = handleColor; foreach (Bone b in tc.Bones) { - pos = b.GetWorldPosition(transform, skeletonRenderScale); + pos = b.GetWorldPosition(transform, skeletonRenderScale, offset); Handles.DrawDottedLine(targetPos, pos, Thickness); } } @@ -402,25 +419,25 @@ namespace Spine.Unity.Editor { handleColor = SpineHandles.IkColor; foreach (IkConstraint ikc in skeleton.IkConstraints) { Bone targetBone = ikc.Target; - targetPos = targetBone.GetWorldPosition(transform, skeletonRenderScale); + targetPos = targetBone.GetWorldPosition(transform, skeletonRenderScale, offset); ExposedList bones = ikc.Bones; active = ikc.Mix > 0; if (active) { - pos = bones.Items[0].GetWorldPosition(transform, skeletonRenderScale); + pos = bones.Items[0].GetWorldPosition(transform, skeletonRenderScale, offset); switch (bones.Count) { case 1: { Handles.color = handleColor; Handles.DrawLine(targetPos, pos); SpineHandles.DrawBoneCircle(targetPos, handleColor, normal); Matrix4x4 m = bones.Items[0].GetMatrix4x4(); - m.m03 = targetBone.WorldX * skeletonRenderScale; - m.m13 = targetBone.WorldY * skeletonRenderScale; + m.m03 = targetBone.WorldX * skeletonRenderScale + offset.x; + m.m13 = targetBone.WorldY * skeletonRenderScale + offset.y; SpineHandles.DrawArrowhead(transform.localToWorldMatrix * m); break; } case 2: { Bone childBone = bones.Items[1]; - Vector3 child = childBone.GetWorldPosition(transform, skeletonRenderScale); + Vector3 child = childBone.GetWorldPosition(transform, skeletonRenderScale, offset); Handles.color = handleColor; Handles.DrawLine(child, pos); Handles.DrawLine(targetPos, child); @@ -428,8 +445,8 @@ namespace Spine.Unity.Editor { SpineHandles.DrawBoneCircle(child, handleColor, normal, 0.5f); SpineHandles.DrawBoneCircle(targetPos, handleColor, normal); Matrix4x4 m = childBone.GetMatrix4x4(); - m.m03 = targetBone.WorldX * skeletonRenderScale; - m.m13 = targetBone.WorldY * skeletonRenderScale; + m.m03 = targetBone.WorldX * skeletonRenderScale + offset.x; + m.m13 = targetBone.WorldY * skeletonRenderScale + offset.y; SpineHandles.DrawArrowhead(transform.localToWorldMatrix * m); break; } @@ -444,7 +461,8 @@ namespace Spine.Unity.Editor { active = pc.MixX > 0 || pc.MixY > 0 || pc.MixRotate > 0; if (active) foreach (Bone b in pc.Bones) - SpineHandles.DrawBoneCircle(b.GetWorldPosition(transform, skeletonRenderScale), handleColor, normal, 1f * skeletonRenderScale); + SpineHandles.DrawBoneCircle(b.GetWorldPosition(transform, skeletonRenderScale, offset), + handleColor, normal, 1f * skeletonRenderScale); } } @@ -453,6 +471,7 @@ namespace Spine.Unity.Editor { RectTransform rectTransform = skeletonGraphic.rectTransform; Vector2 referenceRectSize = skeletonGraphic.GetReferenceRectSize(); + Vector3 position = rectTransform.position; Vector3 right = rectTransform.TransformVector(Vector3.right * referenceRectSize.x); Vector3 up = rectTransform.TransformVector(Vector3.up * referenceRectSize.y); @@ -466,6 +485,7 @@ namespace Spine.Unity.Editor { RectTransform rectTransform = skeletonGraphic.rectTransform; Vector2 rectTransformSize = skeletonGraphic.RectTransformSize; + Vector3 position = rectTransform.position; Vector3 right = rectTransform.TransformVector(Vector3.right * rectTransformSize.x); Vector3 up = rectTransform.TransformVector(Vector3.up * rectTransformSize.y); @@ -490,6 +510,35 @@ namespace Spine.Unity.Editor { UnityEditor.Handles.color = previousColor; } + public static void DrawPivotOffsetHandle (SkeletonGraphic skeletonGraphic, Color color) { + // Note: not limiting to current.type == EventType.Repaint because the FreeMoveHandle requires interaction. + + float handleSize = HandleUtility.GetHandleSize(skeletonGraphic.transform.position); + float controlSize = handleSize * 0.3f; + float discSize = handleSize * 0.03f; + Vector3 snap = Vector3.zero; + Color savedColor = Handles.color; + + Handles.color = color; + Vector2 scaledOffset = skeletonGraphic.GetScaledPivotOffset(); + Vector3 worldSpaceOffset = skeletonGraphic.transform.TransformPoint(scaledOffset); + EditorGUI.BeginChangeCheck(); + +#if FREE_MOVE_HANDLE_HAS_NO_ROTATION_PARAM + Vector3 newWorldSpacePosition = Handles.FreeMoveHandle(worldSpaceOffset, controlSize, snap, Handles.CircleHandleCap); +#else + Vector3 newWorldSpacePosition = Handles.FreeMoveHandle(worldSpaceOffset, Quaternion.identity, controlSize, snap, Handles.CircleHandleCap); +#endif + if (EditorGUI.EndChangeCheck()) { + Undo.RecordObject(skeletonGraphic, "Change Offset to Pivot"); + Vector3 localScaledOffset = skeletonGraphic.transform.InverseTransformPoint(newWorldSpacePosition); + skeletonGraphic.SetScaledPivotOffset(localScaledOffset); + skeletonGraphic.UpdateMeshToInstructions(); + } + Handles.DrawSolidDisc(newWorldSpacePosition, skeletonGraphic.transform.forward, discSize); + Handles.color = savedColor; + } + static void DrawCrosshairs2D (Vector3 position, float scale, float skeletonRenderScale = 1f) { if (UnityEngine.Event.current.type != EventType.Repaint) return; diff --git a/Assets/ThirdParty/Spine/Editor/spine-unity/Editor/Utility/SpineInspectorUtility.cs b/Assets/ThirdParty/Spine/Editor/spine-unity/Editor/Utility/SpineInspectorUtility.cs index 6914b22a1..27c834747 100644 --- a/Assets/ThirdParty/Spine/Editor/spine-unity/Editor/Utility/SpineInspectorUtility.cs +++ b/Assets/ThirdParty/Spine/Editor/spine-unity/Editor/Utility/SpineInspectorUtility.cs @@ -149,10 +149,22 @@ namespace Spine.Unity.Editor { } } } - newPropertyPath = propertyPath.Remove(propertyPath.Length - localPathLength, localPathLength) + propertyName; relativeProperty = property.serializedObject.FindProperty(newPropertyPath); } + // If this fails as well, try at any base property up the hierarchy + if (relativeProperty == null) { + int dotIndex = propertyPath.Length - property.name.Length - 1; + if (dotIndex > 0) { + while (relativeProperty == null) { + dotIndex = propertyPath.LastIndexOf('.', dotIndex - 1); + if (dotIndex < 0) + break; + newPropertyPath = propertyPath.Remove(dotIndex + 1) + propertyName; + relativeProperty = property.serializedObject.FindProperty(newPropertyPath); + } + } + } } return relativeProperty; diff --git a/Assets/ThirdParty/Spine/Editor/spine-unity/Editor/Windows/SkeletonBaker.cs b/Assets/ThirdParty/Spine/Editor/spine-unity/Editor/Windows/SkeletonBaker.cs index ef92b5b50..d4041a3ff 100644 --- a/Assets/ThirdParty/Spine/Editor/spine-unity/Editor/Windows/SkeletonBaker.cs +++ b/Assets/ThirdParty/Spine/Editor/spine-unity/Editor/Windows/SkeletonBaker.cs @@ -130,6 +130,8 @@ namespace Spine.Unity.Editor { } } + SkeletonData skeletonData = skeletonDataAsset.GetSkeletonData(true); + float fps = skeletonData != null ? skeletonData.Fps : 0.0f; foreach (Animation animations in data.Animations) { string animationName = animations.Name; // Review for unsafe names. Requires runtime implementation too. spineAnimationTable.Add(animationName, animations); @@ -144,6 +146,7 @@ namespace Spine.Unity.Editor { } AnimationClip clip = unityAnimationClipTable[animationName]; + clip.frameRate = fps; clip.SetCurve("", typeof(GameObject), "dummy", AnimationCurve.Linear(0, 0, animations.Duration, 0)); AnimationClipSettings settings = AnimationUtility.GetAnimationClipSettings(clip); settings.stopTime = animations.Duration; @@ -329,13 +332,13 @@ namespace Spine.Unity.Editor { boneTransform.parent = parentTransform; boneTransform.localPosition = new Vector3(boneData.X, boneData.Y, 0); - TransformMode tm = boneData.TransformMode; - if (tm.InheritsRotation()) + Inherit inherit = boneData.Inherit; + if (inherit.InheritsRotation()) boneTransform.localRotation = Quaternion.Euler(0, 0, boneData.Rotation); else boneTransform.rotation = Quaternion.Euler(0, 0, boneData.Rotation); - if (tm.InheritsScale()) + if (inherit.InheritsScale()) boneTransform.localScale = new Vector3(boneData.ScaleX, boneData.ScaleY, 1); } @@ -614,7 +617,7 @@ namespace Spine.Unity.Editor { throw new System.ArgumentException("Mesh is not weighted.", "attachment"); Skeleton skeleton = new Skeleton(skeletonData); - skeleton.UpdateWorldTransform(); + skeleton.UpdateWorldTransform(Skeleton.Physics.Update); float[] floatVerts = new float[attachment.WorldVerticesLength]; attachment.ComputeWorldVertices(skeleton.Slots.Items[slotIndex], floatVerts); @@ -774,7 +777,7 @@ namespace Spine.Unity.Editor { } foreach (Bone b in skeleton.Bones) { - if (!b.Data.TransformMode.InheritsRotation()) { + if (!b.Data.Inherit.InheritsRotation()) { int index = b.Data.Index; if (ignoreRotateTimelineIndexes.Contains(index) == false) { ignoreRotateTimelineIndexes.Add(index); @@ -832,10 +835,10 @@ namespace Spine.Unity.Editor { static void BakeBoneConstraints (Bone bone, Spine.Animation animation, AnimationClip clip) { Skeleton skeleton = bone.Skeleton; - bool inheritRotation = bone.Data.TransformMode.InheritsRotation(); + bool inheritRotation = bone.Data.Inherit.InheritsRotation(); animation.Apply(skeleton, 0, 0, false, null, 1f, MixBlend.Setup, MixDirection.In); - skeleton.UpdateWorldTransform(); + skeleton.UpdateWorldTransform(Skeleton.Physics.Update); float duration = animation.Duration; AnimationCurve curve = new AnimationCurve(); @@ -863,7 +866,7 @@ namespace Spine.Unity.Editor { currentTime = duration; animation.Apply(skeleton, 0, currentTime, true, null, 1f, MixBlend.Setup, MixDirection.In); - skeleton.UpdateWorldTransform(); + skeleton.UpdateWorldTransform(Skeleton.Physics.Update); int pIndex = listIndex; @@ -1449,7 +1452,7 @@ namespace Spine.Unity.Editor { float time = frames[f]; timeline.Apply(skeleton, lastTime, currentTime, null, 1, MixBlend.Setup, MixDirection.In); - skeleton.UpdateWorldTransform(); + skeleton.UpdateWorldTransform(Skeleton.Physics.Update); rotation = frames[f + 1] + boneData.Rotation; angle += Mathf.DeltaAngle(angle, rotation); @@ -1463,7 +1466,7 @@ namespace Spine.Unity.Editor { currentTime = time; timeline.Apply(skeleton, lastTime, currentTime, null, 1, MixBlend.Setup, MixDirection.In); - skeleton.UpdateWorldTransform(); + skeleton.UpdateWorldTransform(Skeleton.Physics.Update); pk = keys[listIndex]; rotation = bone.Rotation; diff --git a/Assets/ThirdParty/Spine/Editor/spine-unity/Editor/Windows/SkeletonDebugWindow.cs b/Assets/ThirdParty/Spine/Editor/spine-unity/Editor/Windows/SkeletonDebugWindow.cs index 05a338b0f..3bb23dd65 100644 --- a/Assets/ThirdParty/Spine/Editor/spine-unity/Editor/Windows/SkeletonDebugWindow.cs +++ b/Assets/ThirdParty/Spine/Editor/spine-unity/Editor/Windows/SkeletonDebugWindow.cs @@ -436,6 +436,30 @@ namespace Spine.Unity.Editor { EditorGUILayout.LabelField(SpineInspectorUtility.TempContent(string.Format("Path Constraints ({0})", skeleton.PathConstraints.Count), Icons.constraintPath), EditorStyles.boldLabel); + EditorGUILayout.LabelField(SpineInspectorUtility.TempContent(string.Format("Physics Constraints ({0})", skeleton.PhysicsConstraints.Count), Icons.constraintIK), EditorStyles.boldLabel); + using (new SpineInspectorUtility.IndentScope()) { + if (skeleton.PhysicsConstraints.Count > 0) { + foreach (PhysicsConstraint c in skeleton.PhysicsConstraints) { + EditorGUILayout.LabelField(SpineInspectorUtility.TempContent(c.Data.Name, Icons.constraintIK)); + + EditorGUI.BeginChangeCheck(); + c.Mix = EditorGUILayout.Slider("Mix", c.Mix, MixMin, MixMax); + c.Inertia = EditorGUILayout.Slider("Inertia", c.Inertia, MixMin, MixMax); + c.Strength = EditorGUILayout.Slider("Strength", c.Strength, MixMin, MixMax); + c.Damping = EditorGUILayout.Slider("Damping", c.Damping, MixMin, MixMax); + c.MassInverse = 1.0f / EditorGUILayout.Slider("Mass", 1.0f / c.MassInverse, MixMin, MixMax); + c.Wind = EditorGUILayout.Slider("Wind", c.Wind, MixMin, MixMax); + c.Gravity = EditorGUILayout.Slider("Gravity", c.Gravity, MixMin, MixMax); + if (EditorGUI.EndChangeCheck()) requireRepaint = true; + + EditorGUILayout.Space(); + } + + } else { + EditorGUILayout.LabelField(NoneText); + } + } + EditorGUI.BeginChangeCheck(); showPaths = EditorGUILayout.Toggle("Show Paths", showPaths); requireRepaint |= EditorGUI.EndChangeCheck(); diff --git a/Assets/ThirdParty/Spine/Editor/spine-unity/Editor/Windows/SpinePreferences.cs b/Assets/ThirdParty/Spine/Editor/spine-unity/Editor/Windows/SpinePreferences.cs index 2a8034b9c..670763f25 100644 --- a/Assets/ThirdParty/Spine/Editor/spine-unity/Editor/Windows/SpinePreferences.cs +++ b/Assets/ThirdParty/Spine/Editor/spine-unity/Editor/Windows/SpinePreferences.cs @@ -77,6 +77,12 @@ namespace Spine.Unity.Editor { internal const bool DEFAULT_DEFAULT_INSTANTIATE_LOOP = true; public bool defaultInstantiateLoop = DEFAULT_DEFAULT_INSTANTIATE_LOOP; + internal static readonly Vector2 DEFAULT_DEFAULT_PHYSICS_POSITION_INHERITANCE = Vector2.one; + public Vector2 defaultPhysicsPositionInheritance = DEFAULT_DEFAULT_PHYSICS_POSITION_INHERITANCE; + + internal const float DEFAULT_DEFAULT_PHYSICS_ROTATION_INHERITANCE = 1f; + public float defaultPhysicsRotationInheritance = DEFAULT_DEFAULT_PHYSICS_ROTATION_INHERITANCE; + internal const bool DEFAULT_SHOW_HIERARCHY_ICONS = true; public bool showHierarchyIcons = DEFAULT_SHOW_HIERARCHY_ICONS; @@ -314,6 +320,11 @@ namespace Spine.Unity.Editor { { EditorGUILayout.Slider(settings.FindProperty("defaultZSpacing"), -0.1f, 0f, new GUIContent("Default Slot Z-Spacing")); EditorGUILayout.PropertyField(settings.FindProperty("defaultInstantiateLoop"), new GUIContent("Default Loop", "Spawn Spine GameObjects with loop enabled.")); + EditorGUILayout.LabelField("Physics Inheritance"); + using (new SpineInspectorUtility.IndentScope()) { + EditorGUILayout.PropertyField(settings.FindProperty("defaultPhysicsPositionInheritance"), new GUIContent("Default Position", "The Default Physics Inheritance - Position factor.")); + EditorGUILayout.PropertyField(settings.FindProperty("defaultPhysicsRotationInheritance"), new GUIContent("Default Rotation", "The Default Physics Inheritance - Rotation factor.")); + } } EditorGUILayout.Space(); diff --git a/Assets/ThirdParty/Spine/Runtime/spine-csharp/Animation.cs b/Assets/ThirdParty/Spine/Runtime/spine-csharp/Animation.cs index 4178b41f9..420b9dcc4 100644 --- a/Assets/ThirdParty/Spine/Runtime/spine-csharp/Animation.cs +++ b/Assets/ThirdParty/Spine/Runtime/spine-csharp/Animation.cs @@ -94,16 +94,16 @@ namespace Spine { /// The last time in seconds this animation was applied. Some timelines trigger only at specific times rather /// than every frame. Pass -1 the first time an animation is applied to ensure frame 0 is triggered. /// The time in seconds the skeleton is being posed for. Most timelines find the frame before and the frame after - /// this time and interpolate between the frame values. If beyond the and loop is + /// this time and interpolate between the frame values. If beyond the and loop is /// true then the animation will repeat, else the last frame will be applied. /// If true, the animation repeats after the . /// If any events are fired, they are added to this list. Can be null to ignore fired events or if no timelines /// fire events. - /// 0 applies the current or setup values (depending on blend). 1 applies the timeline values. Between + /// 0 applies the current or setup values (depending on blend). 1 applies the timeline values. Between /// 0 and 1 applies values between the current or setup values and the timeline values. By adjusting - /// alpha over time, an animation can be mixed in or out. alpha can also be useful to apply + /// alpha over time, an animation can be mixed in or out. alpha can also be useful to apply /// animations on top of each other (layering). - /// Controls how mixing is applied when alpha < 1. + /// Controls how mixing is applied when alpha < 1. /// Indicates whether the timelines are mixing in or out. Used by timelines which perform instant transitions, /// such as or . public void Apply (Skeleton skeleton, float lastTime, float time, bool loop, ExposedList events, float alpha, @@ -127,7 +127,7 @@ namespace Spine { /// /// Controls how timeline values are mixed with setup pose values or current pose values when a timeline is applied with - /// alpha < 1. + /// alpha < 1. /// public enum MixBlend { /// Transitions from the setup value to the timeline value (the current value is not used). Before the first frame, the @@ -140,7 +140,7 @@ namespace Spine { /// the setup value. Timelines which perform instant transitions, such as or /// , use the setup value before the first frame. /// - /// First is intended for the first animations applied, not for animations layered on top of those. + /// First is intended for the first animations applied, not for animations layered on top of those. /// First, @@ -149,7 +149,7 @@ namespace Spine { /// Transitions from the current value to the timeline value. No change is made before the first frame (the current value is /// kept until the first frame). /// - /// Replace is intended for animations layered on top of others, not for the first animations applied. + /// Replace is intended for animations layered on top of others, not for the first animations applied. /// Replace, @@ -158,7 +158,7 @@ namespace Spine { /// Transitions from the current value to the current value plus the timeline value. No change is made before the first frame /// (the current value is kept until the first frame). /// - /// Add is intended for animations layered on top of others, not for the first animations applied. Properties + /// Add is intended for animations layered on top of others, not for the first animations applied. Properties /// set by additive animations must be set manually or by another animation before applying the additive animations, else the /// property values will increase each time the additive animations are applied. /// @@ -167,7 +167,7 @@ namespace Spine { } /// - /// Indicates whether a timeline's alpha is mixing out over time toward 0 (the setup or current pose value) or + /// Indicates whether a timeline's alpha is mixing out over time toward 0 (the setup or current pose value) or /// mixing in toward 1 (the timeline's value). Some timelines use this to decide how values are applied. /// public enum MixDirection { @@ -175,13 +175,15 @@ namespace Spine { Out } - internal enum Property { - Rotate = 0, X, Y, ScaleX, ScaleY, ShearX, ShearY, // + public enum Property { + Rotate = 0, X, Y, ScaleX, ScaleY, ShearX, ShearY, Inherit, // RGB, Alpha, RGB2, // Attachment, Deform, // Event, DrawOrder, // IkConstraint, TransformConstraint, // PathConstraintPosition, PathConstraintSpacing, PathConstraintMix, // + PhysicsConstraintInertia, PhysicsConstraintStrength, PhysicsConstraintDamping, PhysicsConstraintMass, // + PhysicsConstraintWind, PhysicsConstraintGravity, PhysicsConstraintMix, PhysicsConstraintReset, // Sequence } @@ -214,7 +216,7 @@ namespace Spine { } /// The number of frames for this timeline. - public int FrameCount { + public virtual int FrameCount { get { return frames.Length / FrameEntries; } } @@ -229,26 +231,26 @@ namespace Spine { /// skeleton components the timeline may change. /// The time this timeline was last applied. Timelines such as trigger only /// at specific times rather than every frame. In that case, the timeline triggers everything between - /// lastTime (exclusive) and time (inclusive). Pass -1 the first time an animation is + /// lastTime (exclusive) and time (inclusive). Pass -1 the first time an animation is /// applied to ensure frame 0 is triggered. /// The time in seconds that the skeleton is being posed for. Most timelines find the frame before and the frame /// after this time and interpolate between the frame values.If beyond the last frame, the last frame will be /// applied. /// If any events are fired, they are added to this list. Can be null to ignore fired events or if the timeline /// does not fire events. - /// 0 applies the current or setup value (depending on blend). 1 applies the timeline value. + /// 0 applies the current or setup value (depending on blend). 1 applies the timeline value. /// Between 0 and 1 applies a value between the current or setup value and the timeline value.By adjusting - /// alpha over time, an animation can be mixed in or out. alpha can also be useful to + /// alpha over time, an animation can be mixed in or out. alpha can also be useful to /// apply animations on top of each other (layering). - /// Controls how mixing is applied when alpha < 1. + /// Controls how mixing is applied when alpha < 1. /// Indicates whether the timeline is mixing in or out. Used by timelines which perform instant transitions, /// such as or , and other such as . public abstract void Apply (Skeleton skeleton, float lastTime, float time, ExposedList events, float alpha, MixBlend blend, MixDirection direction); /// Search using a stride of 1. - /// Must be >= the first value in frames. - /// The index of the first value <= time. + /// Must be >= the first value in frames. + /// The index of the first value <= time. internal static int Search (float[] frames, float time) { int n = frames.Length; for (int i = 1; i < n; i++) @@ -257,8 +259,8 @@ namespace Spine { } /// Search using the specified stride. - /// Must be >= the first value in frames. - /// The index of the first value <= time. + /// Must be >= the first value in frames. + /// The index of the first value <= time. internal static int Search (float[] frames, float time, int step) { int n = frames.Length; for (int i = step; i < n; i += step) @@ -295,25 +297,25 @@ namespace Spine { } /// Sets the specified frame to linear interpolation. - /// Between 0 and frameCount - 1, inclusive. + /// Between 0 and frameCount - 1, inclusive. public void SetLinear (int frame) { curves[frame] = LINEAR; } /// Sets the specified frame to stepped interpolation. - /// Between 0 and frameCount - 1, inclusive. + /// Between 0 and frameCount - 1, inclusive. public void SetStepped (int frame) { curves[frame] = STEPPED; } /// Returns the interpolation type for the specified frame. - /// Between 0 and frameCount - 1, inclusive. + /// Between 0 and frameCount - 1, inclusive. /// , or + the index of the Bezier segments. public float GetCurveType (int frame) { return (int)curves[frame]; } - /// Shrinks the storage for Bezier curves, for use when bezierCount (specified in the constructor) was larger + /// Shrinks the storage for Bezier curves, for use when bezierCount (specified in the constructor) was larger /// than the actual number of Bezier curves. public void Shrink (int bezierCount) { int size = FrameCount + bezierCount * BEZIER_SIZE; @@ -327,9 +329,9 @@ namespace Spine { /// /// Stores the segments for the specified Bezier curve. For timelines that modify multiple values, there may be more than /// one curve per frame. - /// The ordinal of this Bezier curve for this timeline, between 0 and bezierCount - 1 (specified + /// The ordinal of this Bezier curve for this timeline, between 0 and bezierCount - 1 (specified /// in the constructor), inclusive. - /// Between 0 and frameCount - 1, inclusive. + /// Between 0 and frameCount - 1, inclusive. /// The index of the value for the frame this curve is used for. /// The time for the first key. /// The value for the first key. @@ -364,8 +366,8 @@ namespace Spine { /// /// Returns the Bezier interpolated value for the specified time. - /// The index into for the values of the frame before time. - /// The offset from frameIndex to the value this curve is used for. + /// The index into for the values of the frame before time. + /// The offset from frameIndex to the value this curve is used for. /// The index of the Bezier segments. See . public float GetBezierValue (float time, int frameIndex, int valueOffset, int i) { float[] curves = this.curves; @@ -404,7 +406,7 @@ namespace Spine { } /// Sets the time and value for the specified frame. - /// Between 0 and frameCount, inclusive. + /// Between 0 and frameCount, inclusive. /// The frame time in seconds public void SetFrame (int frame, float time, float value) { frame <<= 1; @@ -433,6 +435,97 @@ namespace Spine { } return GetBezierValue(time, i, VALUE, curveType - BEZIER); } + + public float GetRelativeValue (float time, float alpha, MixBlend blend, float current, float setup) { + if (time < frames[0]) { + switch (blend) { + case MixBlend.Setup: + return setup; + case MixBlend.First: + return current + (setup - current) * alpha; + } + return current; + } + float value = GetCurveValue(time); + switch (blend) { + case MixBlend.Setup: + return setup + value * alpha; + case MixBlend.First: + case MixBlend.Replace: + value += setup - current; + break; + } + return current + value * alpha; + } + + public float GetAbsoluteValue (float time, float alpha, MixBlend blend, float current, float setup) { + if (time < frames[0]) { + switch (blend) { + case MixBlend.Setup: + return setup; + case MixBlend.First: + return current + (setup - current) * alpha; + } + return current; + } + float value = GetCurveValue(time); + if (blend == MixBlend.Setup) return setup + (value - setup) * alpha; + return current + (value - current) * alpha; + } + + public float GetAbsoluteValue (float time, float alpha, MixBlend blend, float current, float setup, float value) { + if (time < frames[0]) { + switch (blend) { + case MixBlend.Setup: + return setup; + case MixBlend.First: + return current + (setup - current) * alpha; + } + return current; + } + if (blend == MixBlend.Setup) return setup + (value - setup) * alpha; + return current + (value - current) * alpha; + } + + public float GetScaleValue (float time, float alpha, MixBlend blend, MixDirection direction, float current, float setup) { + float[] frames = this.frames; + if (time < frames[0]) { + switch (blend) { + case MixBlend.Setup: + return setup; + case MixBlend.First: + return current + (setup - current) * alpha; + } + return current; + } + float value = GetCurveValue(time) * setup; + if (alpha == 1) { + if (blend == MixBlend.Add) return current + value - setup; + return value; + } + // Mixing out uses sign of setup or current pose, else use sign of key. + if (direction == MixDirection.Out) { + switch (blend) { + case MixBlend.Setup: + return setup + (Math.Abs(value) * Math.Sign(setup) - setup) * alpha; + case MixBlend.First: + case MixBlend.Replace: + return current + (Math.Abs(value) * Math.Sign(current) - current) * alpha; + } + } else { + float s; + switch (blend) { + case MixBlend.Setup: + s = Math.Abs(setup) * Math.Sign(value); + return s + (value - s) * alpha; + case MixBlend.First: + case MixBlend.Replace: + s = Math.Abs(current) * Math.Sign(value); + return s + (value - s) * alpha; + } + } + return current + (value - setup) * alpha; + } } /// The base class for a which sets two properties. @@ -451,7 +544,7 @@ namespace Spine { } /// Sets the time and values for the specified frame. - /// Between 0 and frameCount, inclusive. + /// Between 0 and frameCount, inclusive. /// The frame time in seconds. public void SetFrame (int frame, float time, float value1, float value2) { frame *= ENTRIES; @@ -479,33 +572,7 @@ namespace Spine { override public void Apply (Skeleton skeleton, float lastTime, float time, ExposedList firedEvents, float alpha, MixBlend blend, MixDirection direction) { Bone bone = skeleton.bones.Items[boneIndex]; - if (!bone.active) return; - - if (time < frames[0]) { // Time is before first frame. - switch (blend) { - case MixBlend.Setup: - bone.rotation = bone.data.rotation; - return; - case MixBlend.First: - bone.rotation += (bone.data.rotation - bone.rotation) * alpha; - return; - } - return; - } - - float r = GetCurveValue(time); - switch (blend) { - case MixBlend.Setup: - bone.rotation = bone.data.rotation + r * alpha; - break; - case MixBlend.First: - case MixBlend.Replace: - r += bone.data.rotation - bone.rotation; - goto case MixBlend.Add; // Fall through. - case MixBlend.Add: - bone.rotation += r * alpha; - break; - } + if (bone.active) bone.rotation = GetRelativeValue(time, alpha, blend, bone.rotation, bone.data.rotation); } } @@ -532,7 +599,7 @@ namespace Spine { if (!bone.active) return; float[] frames = this.frames; - if (time < frames[0]) { // Time is before first frame. + if (time < frames[0]) { switch (blend) { case MixBlend.Setup: bone.x = bone.data.x; @@ -607,34 +674,7 @@ namespace Spine { override public void Apply (Skeleton skeleton, float lastTime, float time, ExposedList firedEvents, float alpha, MixBlend blend, MixDirection direction) { Bone bone = skeleton.bones.Items[boneIndex]; - if (!bone.active) return; - - float[] frames = this.frames; - if (time < frames[0]) { // Time is before first frame. - switch (blend) { - case MixBlend.Setup: - bone.x = bone.data.x; - return; - case MixBlend.First: - bone.x += (bone.data.x - bone.x) * alpha; - return; - } - return; - } - - float x = GetCurveValue(time); - switch (blend) { - case MixBlend.Setup: - bone.x = bone.data.x + x * alpha; - break; - case MixBlend.First: - case MixBlend.Replace: - bone.x += (bone.data.x + x - bone.x) * alpha; - break; - case MixBlend.Add: - bone.x += x * alpha; - break; - } + if (bone.active) bone.x = GetRelativeValue(time, alpha, blend, bone.x, bone.data.x); } } @@ -656,38 +696,11 @@ namespace Spine { override public void Apply (Skeleton skeleton, float lastTime, float time, ExposedList firedEvents, float alpha, MixBlend blend, MixDirection direction) { Bone bone = skeleton.bones.Items[boneIndex]; - if (!bone.active) return; - - float[] frames = this.frames; - if (time < frames[0]) { // Time is before first frame. - switch (blend) { - case MixBlend.Setup: - bone.y = bone.data.y; - return; - case MixBlend.First: - bone.y += (bone.data.y - bone.y) * alpha; - return; - } - return; - } - - float y = GetCurveValue(time); - switch (blend) { - case MixBlend.Setup: - bone.y = bone.data.y + y * alpha; - break; - case MixBlend.First: - case MixBlend.Replace: - bone.y += (bone.data.y + y - bone.y) * alpha; - break; - case MixBlend.Add: - bone.y += y * alpha; - break; - } + if (bone.active) bone.y = GetRelativeValue(time, alpha, blend, bone.y, bone.data.y); } } - /// Changes a bone's local and . + /// Changes a bone's local and . public class ScaleTimeline : CurveTimeline2, IBoneTimeline { readonly int boneIndex; @@ -710,7 +723,7 @@ namespace Spine { if (!bone.active) return; float[] frames = this.frames; - if (time < frames[0]) { // Time is before first frame. + if (time < frames[0]) { switch (blend) { case MixBlend.Setup: bone.scaleX = bone.data.scaleX; @@ -803,7 +816,7 @@ namespace Spine { } } - /// Changes a bone's local . + /// Changes a bone's local . public class ScaleXTimeline : CurveTimeline1, IBoneTimeline { readonly int boneIndex; @@ -821,66 +834,11 @@ namespace Spine { override public void Apply (Skeleton skeleton, float lastTime, float time, ExposedList firedEvents, float alpha, MixBlend blend, MixDirection direction) { Bone bone = skeleton.bones.Items[boneIndex]; - if (!bone.active) return; - - float[] frames = this.frames; - if (time < frames[0]) { // Time is before first frame. - switch (blend) { - case MixBlend.Setup: - bone.scaleX = bone.data.scaleX; - return; - case MixBlend.First: - bone.scaleX += (bone.data.scaleX - bone.scaleX) * alpha; - return; - } - return; - } - - float x = GetCurveValue(time) * bone.data.scaleX; - if (alpha == 1) { - if (blend == MixBlend.Add) - bone.scaleX += x - bone.data.scaleX; - else - bone.scaleX = x; - } else { - // Mixing out uses sign of setup or current pose, else use sign of key. - float bx; - if (direction == MixDirection.Out) { - switch (blend) { - case MixBlend.Setup: - bx = bone.data.scaleX; - bone.scaleX = bx + (Math.Abs(x) * Math.Sign(bx) - bx) * alpha; - break; - case MixBlend.First: - case MixBlend.Replace: - bx = bone.scaleX; - bone.scaleX = bx + (Math.Abs(x) * Math.Sign(bx) - bx) * alpha; - break; - case MixBlend.Add: - bone.scaleX += (x - bone.data.scaleX) * alpha; - break; - } - } else { - switch (blend) { - case MixBlend.Setup: - bx = Math.Abs(bone.data.scaleX) * Math.Sign(x); - bone.scaleX = bx + (x - bx) * alpha; - break; - case MixBlend.First: - case MixBlend.Replace: - bx = Math.Abs(bone.scaleX) * Math.Sign(x); - bone.scaleX = bx + (x - bx) * alpha; - break; - case MixBlend.Add: - bone.scaleX += (x - bone.data.scaleX) * alpha; - break; - } - } - } + if (bone.active) bone.scaleX = GetScaleValue(time, alpha, blend, direction, bone.scaleX, bone.data.scaleX); } } - /// Changes a bone's local . + /// Changes a bone's local . public class ScaleYTimeline : CurveTimeline1, IBoneTimeline { readonly int boneIndex; @@ -898,62 +856,7 @@ namespace Spine { override public void Apply (Skeleton skeleton, float lastTime, float time, ExposedList firedEvents, float alpha, MixBlend blend, MixDirection direction) { Bone bone = skeleton.bones.Items[boneIndex]; - if (!bone.active) return; - - float[] frames = this.frames; - if (time < frames[0]) { // Time is before first frame. - switch (blend) { - case MixBlend.Setup: - bone.scaleY = bone.data.scaleY; - return; - case MixBlend.First: - bone.scaleY += (bone.data.scaleY - bone.scaleY) * alpha; - return; - } - return; - } - - float y = GetCurveValue(time) * bone.data.scaleY; - if (alpha == 1) { - if (blend == MixBlend.Add) - bone.scaleY += y - bone.data.scaleY; - else - bone.scaleY = y; - } else { - // Mixing out uses sign of setup or current pose, else use sign of key. - float by; - if (direction == MixDirection.Out) { - switch (blend) { - case MixBlend.Setup: - by = bone.data.scaleY; - bone.scaleY = by + (Math.Abs(y) * Math.Sign(by) - by) * alpha; - break; - case MixBlend.First: - case MixBlend.Replace: - by = bone.scaleY; - bone.scaleY = by + (Math.Abs(y) * Math.Sign(by) - by) * alpha; - break; - case MixBlend.Add: - bone.scaleY += (y - bone.data.scaleY) * alpha; - break; - } - } else { - switch (blend) { - case MixBlend.Setup: - by = Math.Abs(bone.data.scaleY) * Math.Sign(y); - bone.scaleY = by + (y - by) * alpha; - break; - case MixBlend.First: - case MixBlend.Replace: - by = Math.Abs(bone.scaleY) * Math.Sign(y); - bone.scaleY = by + (y - by) * alpha; - break; - case MixBlend.Add: - bone.scaleY += (y - bone.data.scaleY) * alpha; - break; - } - } - } + if (bone.active) bone.scaleY = GetScaleValue(time, alpha, blend, direction, bone.scaleY, bone.data.scaleY); } } @@ -1051,34 +954,7 @@ namespace Spine { override public void Apply (Skeleton skeleton, float lastTime, float time, ExposedList firedEvents, float alpha, MixBlend blend, MixDirection direction) { Bone bone = skeleton.bones.Items[boneIndex]; - if (!bone.active) return; - - float[] frames = this.frames; - if (time < frames[0]) { // Time is before first frame. - switch (blend) { - case MixBlend.Setup: - bone.shearX = bone.data.shearX; - return; - case MixBlend.First: - bone.shearX += (bone.data.shearX - bone.shearX) * alpha; - return; - } - return; - } - - float x = GetCurveValue(time); - switch (blend) { - case MixBlend.Setup: - bone.shearX = bone.data.shearX + x * alpha; - break; - case MixBlend.First: - case MixBlend.Replace: - bone.shearX += (bone.data.shearX + x - bone.shearX) * alpha; - break; - case MixBlend.Add: - bone.shearX += x * alpha; - break; - } + if (bone.active) bone.shearX = GetRelativeValue(time, alpha, blend, bone.shearX, bone.data.shearX); } } @@ -1100,34 +976,59 @@ namespace Spine { override public void Apply (Skeleton skeleton, float lastTime, float time, ExposedList firedEvents, float alpha, MixBlend blend, MixDirection direction) { Bone bone = skeleton.bones.Items[boneIndex]; + if (bone.active) bone.shearY = GetRelativeValue(time, alpha, blend, bone.shearY, bone.data.shearY); + } + } + + /// Changes a bone's . + + public class InheritTimeline : Timeline, IBoneTimeline { + public const int ENTRIES = 2; + public const int INHERIT = 1; + + readonly int boneIndex; + + public InheritTimeline (int frameCount, int boneIndex) + : base(frameCount, (int)Property.Inherit + "|" + boneIndex) { + this.boneIndex = boneIndex; + } + + public int BoneIndex { + get { + return boneIndex; + } + } + + public override int FrameEntries { + get { return ENTRIES; } + } + + /// Sets the transform mode for the specified frame. + /// Between 0 and frameCount, inclusive. + /// The frame time in seconds. + public void SetFrame (int frame, float time, Inherit inherit) { + frame *= ENTRIES; + frames[frame] = time; + frames[frame + INHERIT] = (int)inherit; + } + + override public void Apply (Skeleton skeleton, float lastTime, float time, ExposedList firedEvents, float alpha, MixBlend blend, + MixDirection direction) { + + Bone bone = skeleton.bones.Items[boneIndex]; if (!bone.active) return; - float[] frames = this.frames; - if (time < frames[0]) { // Time is before first frame. - switch (blend) { - case MixBlend.Setup: - bone.shearY = bone.data.shearY; - return; - case MixBlend.First: - bone.shearY += (bone.data.shearY - bone.shearY) * alpha; - return; - } + if (direction == MixDirection.Out) { + if (blend == MixBlend.Setup) bone.inherit = bone.data.inherit; return; } - float y = GetCurveValue(time); - switch (blend) { - case MixBlend.Setup: - bone.shearY = bone.data.shearY + y * alpha; - break; - case MixBlend.First: - case MixBlend.Replace: - bone.shearY += (bone.data.shearY + y - bone.shearY) * alpha; - break; - case MixBlend.Add: - bone.shearY += y * alpha; - break; + float[] frames = this.frames; + if (time < frames[0]) { + if (blend == MixBlend.Setup || blend == MixBlend.First) bone.inherit = bone.data.inherit; + return; } + bone.inherit = InheritEnum.Values[(int)frames[Search(frames, time, ENTRIES) + INHERIT]]; } } @@ -1155,7 +1056,7 @@ namespace Spine { } /// Sets the time and color for the specified frame. - /// Between 0 and frameCount, inclusive. + /// Between 0 and frameCount, inclusive. /// The frame time in seconds. public void SetFrame (int frame, float time, float r, float g, float b, float a) { frame *= ENTRIES; @@ -1172,7 +1073,7 @@ namespace Spine { if (!slot.bone.active) return; float[] frames = this.frames; - if (time < frames[0]) { // Time is before first frame. + if (time < frames[0]) { SlotData setup = slot.data; switch (blend) { case MixBlend.Setup: @@ -1272,7 +1173,7 @@ namespace Spine { } /// Sets the time and color for the specified frame. - /// Between 0 and frameCount, inclusive. + /// Between 0 and frameCount, inclusive. /// The frame time in seconds. public void SetFrame (int frame, float time, float r, float g, float b) { frame <<= 2; @@ -1288,7 +1189,7 @@ namespace Spine { if (!slot.bone.active) return; float[] frames = this.frames; - if (time < frames[0]) { // Time is before first frame. + if (time < frames[0]) { SlotData setup = slot.data; switch (blend) { case MixBlend.Setup: @@ -1376,7 +1277,7 @@ namespace Spine { if (!slot.bone.active) return; float[] frames = this.frames; - if (time < frames[0]) { // Time is before first frame. + if (time < frames[0]) { SlotData setup = slot.data; switch (blend) { case MixBlend.Setup: @@ -1432,7 +1333,7 @@ namespace Spine { } /// Sets the time, light color, and dark color for the specified frame. - /// Between 0 and frameCount, inclusive. + /// Between 0 and frameCount, inclusive. /// The frame time in seconds. public void SetFrame (int frame, float time, float r, float g, float b, float a, float r2, float g2, float b2) { frame <<= 3; @@ -1452,7 +1353,7 @@ namespace Spine { if (!slot.bone.active) return; float[] frames = this.frames; - if (time < frames[0]) { // Time is before first frame. + if (time < frames[0]) { SlotData setup = slot.data; switch (blend) { case MixBlend.Setup: @@ -1592,7 +1493,7 @@ namespace Spine { } /// Sets the time, light color, and dark color for the specified frame. - /// Between 0 and frameCount, inclusive. + /// Between 0 and frameCount, inclusive. /// The frame time in seconds. public void SetFrame (int frame, float time, float r, float g, float b, float r2, float g2, float b2) { frame *= ENTRIES; @@ -1611,7 +1512,7 @@ namespace Spine { if (!slot.bone.active) return; float[] frames = this.frames; - if (time < frames[0]) { // Time is before first frame. + if (time < frames[0]) { SlotData setup = slot.data; switch (blend) { case MixBlend.Setup: @@ -1737,7 +1638,7 @@ namespace Spine { } /// Sets the time and attachment name for the specified frame. - /// Between 0 and frameCount, inclusive. + /// Between 0 and frameCount, inclusive. /// The frame time in seconds. public void SetFrame (int frame, float time, String attachmentName) { frames[frame] = time; @@ -1755,7 +1656,7 @@ namespace Spine { } float[] frames = this.frames; - if (time < frames[0]) { // Time is before first frame. + if (time < frames[0]) { if (blend == MixBlend.Setup || blend == MixBlend.First) SetAttachment(skeleton, slot, slot.data.attachmentName); return; } @@ -1802,7 +1703,7 @@ namespace Spine { } /// Sets the time and vertices for the specified frame. - /// Between 0 and frameCount, inclusive. + /// Between 0 and frameCount, inclusive. /// The frame time in seconds. /// Vertex positions for an unweighted VertexAttachment, or deform offsets if it has weights. public void SetFrame (int frame, float time, float[] vertices) { @@ -1835,7 +1736,7 @@ namespace Spine { } /// Returns the interpolated percentage for the specified time. - /// The frame before time. + /// The frame before time. private float GetCurvePercent (float time, int frame) { float[] curves = this.curves; int i = (int)curves[frame]; @@ -1881,7 +1782,7 @@ namespace Spine { float[] deform; float[] frames = this.frames; - if (time < frames[0]) { // Time is before first frame. + if (time < frames[0]) { switch (blend) { case MixBlend.Setup: deformArray.Clear(); @@ -2071,13 +1972,13 @@ namespace Spine { } /// Sets the time and event for the specified frame. - /// Between 0 and frameCount, inclusive. + /// Between 0 and frameCount, inclusive. public void SetFrame (int frame, Event e) { frames[frame] = e.time; events[frame] = e; } - /// Fires events for frames > lastTime and <= time. + /// Fires events for frames > lastTime and <= time. public override void Apply (Skeleton skeleton, float lastTime, float time, ExposedList firedEvents, float alpha, MixBlend blend, MixDirection direction) { @@ -2086,12 +1987,12 @@ namespace Spine { float[] frames = this.frames; int frameCount = frames.Length; - if (lastTime > time) { // Fire events after last time for looped animations. + if (lastTime > time) { // Apply after lastTime for looped animations. Apply(skeleton, lastTime, int.MaxValue, firedEvents, alpha, blend, direction); lastTime = -1f; } else if (lastTime >= frames[frameCount - 1]) // Last time is after last frame. return; - if (time < frames[0]) return; // Time is before first frame. + if (time < frames[0]) return; int i; if (lastTime < frames[0]) @@ -2129,7 +2030,7 @@ namespace Spine { } /// Sets the time and draw order for the specified frame. - /// Between 0 and frameCount, inclusive. + /// Between 0 and frameCount, inclusive. /// The frame time in seconds. /// For each slot in , the index of the slot in the new draw order. May be null to use /// setup pose draw order. @@ -2147,7 +2048,7 @@ namespace Spine { } float[] frames = this.frames; - if (time < frames[0]) { // Time is before first frame. + if (time < frames[0]) { if (blend == MixBlend.Setup || blend == MixBlend.First) Array.Copy(skeleton.slots.Items, 0, skeleton.drawOrder.Items, 0, skeleton.slots.Count); return; } @@ -2170,11 +2071,11 @@ namespace Spine { public const int ENTRIES = 6; private const int MIX = 1, SOFTNESS = 2, BEND_DIRECTION = 3, COMPRESS = 4, STRETCH = 5; - readonly int ikConstraintIndex; + readonly int constraintIndex; public IkConstraintTimeline (int frameCount, int bezierCount, int ikConstraintIndex) : base(frameCount, bezierCount, (int)Property.IkConstraint + "|" + ikConstraintIndex) { - this.ikConstraintIndex = ikConstraintIndex; + this.constraintIndex = ikConstraintIndex; } public override int FrameEntries { @@ -2183,16 +2084,16 @@ namespace Spine { } } - /// The index of the IK constraint slot in that will be changed when this timeline is + /// The index of the IK constraint in that will be changed when this timeline is /// applied. public int IkConstraintIndex { get { - return ikConstraintIndex; + return constraintIndex; } } /// Sets the time, mix, softness, bend direction, compress, and stretch for the specified frame. - /// Between 0 and frameCount, inclusive. + /// Between 0 and frameCount, inclusive. /// The frame time in seconds. /// 1 or -1. public void SetFrame (int frame, float time, float mix, float softness, int bendDirection, bool compress, @@ -2208,11 +2109,11 @@ namespace Spine { override public void Apply (Skeleton skeleton, float lastTime, float time, ExposedList firedEvents, float alpha, MixBlend blend, MixDirection direction) { - IkConstraint constraint = skeleton.ikConstraints.Items[ikConstraintIndex]; + IkConstraint constraint = skeleton.ikConstraints.Items[constraintIndex]; if (!constraint.active) return; float[] frames = this.frames; - if (time < frames[0]) { // Time is before first frame. + if (time < frames[0]) { switch (blend) { case MixBlend.Setup: constraint.mix = constraint.data.mix; @@ -2282,11 +2183,11 @@ namespace Spine { public const int ENTRIES = 7; private const int ROTATE = 1, X = 2, Y = 3, SCALEX = 4, SCALEY = 5, SHEARY = 6; - readonly int transformConstraintIndex; + readonly int constraintIndex; public TransformConstraintTimeline (int frameCount, int bezierCount, int transformConstraintIndex) : base(frameCount, bezierCount, (int)Property.TransformConstraint + "|" + transformConstraintIndex) { - this.transformConstraintIndex = transformConstraintIndex; + constraintIndex = transformConstraintIndex; } public override int FrameEntries { @@ -2295,16 +2196,16 @@ namespace Spine { } } - /// The index of the transform constraint slot in that will be changed when this + /// The index of the transform constraint in that will be changed when this /// timeline is applied. public int TransformConstraintIndex { get { - return transformConstraintIndex; + return constraintIndex; } } /// Sets the time, rotate mix, translate mix, scale mix, and shear mix for the specified frame. - /// Between 0 and frameCount, inclusive. + /// Between 0 and frameCount, inclusive. /// The frame time in seconds. public void SetFrame (int frame, float time, float mixRotate, float mixX, float mixY, float mixScaleX, float mixScaleY, float mixShearY) { @@ -2320,11 +2221,11 @@ namespace Spine { override public void Apply (Skeleton skeleton, float lastTime, float time, ExposedList firedEvents, float alpha, MixBlend blend, MixDirection direction) { - TransformConstraint constraint = skeleton.transformConstraints.Items[transformConstraintIndex]; + TransformConstraint constraint = skeleton.transformConstraints.Items[constraintIndex]; if (!constraint.active) return; float[] frames = this.frames; - if (time < frames[0]) { // Time is before first frame. + if (time < frames[0]) { TransformConstraintData data = constraint.data; switch (blend) { case MixBlend.Setup: @@ -2412,101 +2313,66 @@ namespace Spine { /// Changes a path constraint's . public class PathConstraintPositionTimeline : CurveTimeline1 { - readonly int pathConstraintIndex; + readonly int constraintIndex; public PathConstraintPositionTimeline (int frameCount, int bezierCount, int pathConstraintIndex) : base(frameCount, bezierCount, (int)Property.PathConstraintPosition + "|" + pathConstraintIndex) { - this.pathConstraintIndex = pathConstraintIndex; + this.constraintIndex = pathConstraintIndex; } /// The index of the path constraint slot in that will be changed when this timeline /// is applied. public int PathConstraintIndex { get { - return pathConstraintIndex; + return constraintIndex; } } override public void Apply (Skeleton skeleton, float lastTime, float time, ExposedList firedEvents, float alpha, MixBlend blend, MixDirection direction) { - PathConstraint constraint = skeleton.pathConstraints.Items[pathConstraintIndex]; - if (!constraint.active) return; - - if (time < frames[0]) { // Time is before first frame. - switch (blend) { - case MixBlend.Setup: - constraint.position = constraint.data.position; - return; - case MixBlend.First: - constraint.position += (constraint.data.position - constraint.position) * alpha; - return; - } - return; - } - - float position = GetCurveValue(time); - if (blend == MixBlend.Setup) - constraint.position = constraint.data.position + (position - constraint.data.position) * alpha; - else - constraint.position += (position - constraint.position) * alpha; + PathConstraint constraint = skeleton.pathConstraints.Items[constraintIndex]; + if (constraint.active) + constraint.position = GetAbsoluteValue(time, alpha, blend, constraint.position, constraint.data.position); } } /// Changes a path constraint's . public class PathConstraintSpacingTimeline : CurveTimeline1 { - readonly int pathConstraintIndex; + readonly int constraintIndex; public PathConstraintSpacingTimeline (int frameCount, int bezierCount, int pathConstraintIndex) : base(frameCount, bezierCount, (int)Property.PathConstraintSpacing + "|" + pathConstraintIndex) { - this.pathConstraintIndex = pathConstraintIndex; + constraintIndex = pathConstraintIndex; } - /// The index of the path constraint slot in that will be changed when this timeline + /// The index of the path constraint in that will be changed when this timeline /// is applied. public int PathConstraintIndex { get { - return pathConstraintIndex; + return constraintIndex; } } override public void Apply (Skeleton skeleton, float lastTime, float time, ExposedList events, float alpha, MixBlend blend, MixDirection direction) { - PathConstraint constraint = skeleton.pathConstraints.Items[pathConstraintIndex]; - if (!constraint.active) return; - - float[] frames = this.frames; - if (time < frames[0]) { // Time is before first frame. - switch (blend) { - case MixBlend.Setup: - constraint.spacing = constraint.data.spacing; - return; - case MixBlend.First: - constraint.spacing += (constraint.data.spacing - constraint.spacing) * alpha; - return; - } - return; - } - - float spacing = GetCurveValue(time); - if (blend == MixBlend.Setup) - constraint.spacing = constraint.data.spacing + (spacing - constraint.data.spacing) * alpha; - else - constraint.spacing += (spacing - constraint.spacing) * alpha; + PathConstraint constraint = skeleton.pathConstraints.Items[constraintIndex]; + if (constraint.active) + constraint.spacing = GetAbsoluteValue(time, alpha, blend, constraint.spacing, constraint.data.spacing); } } - /// Changes a transform constraint's , , and + /// Changes a path constraint's , , and /// . public class PathConstraintMixTimeline : CurveTimeline { public const int ENTRIES = 4; private const int ROTATE = 1, X = 2, Y = 3; - readonly int pathConstraintIndex; + readonly int constraintIndex; public PathConstraintMixTimeline (int frameCount, int bezierCount, int pathConstraintIndex) : base(frameCount, bezierCount, (int)Property.PathConstraintMix + "|" + pathConstraintIndex) { - this.pathConstraintIndex = pathConstraintIndex; + constraintIndex = pathConstraintIndex; } public override int FrameEntries { @@ -2517,12 +2383,12 @@ namespace Spine { /// is applied. public int PathConstraintIndex { get { - return pathConstraintIndex; + return constraintIndex; } } /// Sets the time and color for the specified frame. - /// Between 0 and frameCount, inclusive. + /// Between 0 and frameCount, inclusive. /// The frame time in seconds. public void SetFrame (int frame, float time, float mixRotate, float mixX, float mixY) { frame <<= 2; @@ -2534,11 +2400,11 @@ namespace Spine { override public void Apply (Skeleton skeleton, float lastTime, float time, ExposedList firedEvents, float alpha, MixBlend blend, MixDirection direction) { - PathConstraint constraint = skeleton.pathConstraints.Items[pathConstraintIndex]; + PathConstraint constraint = skeleton.pathConstraints.Items[constraintIndex]; if (!constraint.active) return; float[] frames = this.frames; - if (time < frames[0]) { // Time is before first frame. + if (time < frames[0]) { switch (blend) { case MixBlend.Setup: constraint.mixRotate = constraint.data.mixRotate; @@ -2592,6 +2458,277 @@ namespace Spine { } } + /// The base class for most timelines. + public abstract class PhysicsConstraintTimeline : CurveTimeline1 { + readonly int constraintIndex; + + /// -1 for all physics constraints in the skeleton. + public PhysicsConstraintTimeline (int frameCount, int bezierCount, int physicsConstraintIndex, Property property) + : base(frameCount, bezierCount, (int)property + "|" + physicsConstraintIndex) { + + constraintIndex = physicsConstraintIndex; + } + + /// The index of the physics constraint in that will be changed when this timeline + /// is applied, or -1 if all physics constraints in the skeleton will be changed. + public int PhysicsConstraintIndex { + get { + return constraintIndex; + } + } + + override public void Apply (Skeleton skeleton, float lastTime, float time, ExposedList firedEvents, float alpha, MixBlend blend, + MixDirection direction) { + PhysicsConstraint constraint; + if (constraintIndex == -1) { + float value = time >= frames[0] ? GetCurveValue(time) : 0; + + PhysicsConstraint[] constraints = skeleton.physicsConstraints.Items; + for (int i = 0, n = skeleton.physicsConstraints.Count; i < n; i++) { + constraint = (PhysicsConstraint)constraints[i]; + if (constraint.active && Global(constraint.data)) + Set(constraint, GetAbsoluteValue(time, alpha, blend, Get(constraint), Setup(constraint), value)); + } + } else { + constraint = skeleton.physicsConstraints.Items[constraintIndex]; + if (constraint.active) Set(constraint, GetAbsoluteValue(time, alpha, blend, Get(constraint), Setup(constraint))); + } + } + + abstract protected float Setup (PhysicsConstraint constraint); + + abstract protected float Get (PhysicsConstraint constraint); + + abstract protected void Set (PhysicsConstraint constraint, float value); + + abstract protected bool Global (PhysicsConstraintData constraint); + } + + /// Changes a physics constraint's . + public class PhysicsConstraintInertiaTimeline : PhysicsConstraintTimeline { + public PhysicsConstraintInertiaTimeline (int frameCount, int bezierCount, int physicsConstraintIndex) + : base(frameCount, bezierCount, physicsConstraintIndex, Property.PhysicsConstraintInertia) { + } + + override protected float Setup (PhysicsConstraint constraint) { + return constraint.data.inertia; + } + + override protected float Get (PhysicsConstraint constraint) { + return constraint.inertia; + } + + override protected void Set (PhysicsConstraint constraint, float value) { + constraint.inertia = value; + } + + override protected bool Global (PhysicsConstraintData constraint) { + return constraint.inertiaGlobal; + } + } + + /// Changes a physics constraint's . + public class PhysicsConstraintStrengthTimeline : PhysicsConstraintTimeline { + public PhysicsConstraintStrengthTimeline (int frameCount, int bezierCount, int physicsConstraintIndex) + : base(frameCount, bezierCount, physicsConstraintIndex, Property.PhysicsConstraintStrength) { + } + + override protected float Setup (PhysicsConstraint constraint) { + return constraint.data.strength; + } + + override protected float Get (PhysicsConstraint constraint) { + return constraint.strength; + } + + override protected void Set (PhysicsConstraint constraint, float value) { + constraint.strength = value; + } + + override protected bool Global (PhysicsConstraintData constraint) { + return constraint.strengthGlobal; + } + } + + /// Changes a physics constraint's . + public class PhysicsConstraintDampingTimeline : PhysicsConstraintTimeline { + public PhysicsConstraintDampingTimeline (int frameCount, int bezierCount, int physicsConstraintIndex) + : base(frameCount, bezierCount, physicsConstraintIndex, Property.PhysicsConstraintDamping) { + } + + override protected float Setup (PhysicsConstraint constraint) { + return constraint.data.damping; + } + + override protected float Get (PhysicsConstraint constraint) { + return constraint.damping; + } + + override protected void Set (PhysicsConstraint constraint, float value) { + constraint.damping = value; + } + + override protected bool Global (PhysicsConstraintData constraint) { + return constraint.dampingGlobal; + } + } + + /// Changes a physics constraint's . The timeline values are not inverted. + public class PhysicsConstraintMassTimeline : PhysicsConstraintTimeline { + public PhysicsConstraintMassTimeline (int frameCount, int bezierCount, int physicsConstraintIndex) + : base(frameCount, bezierCount, physicsConstraintIndex, Property.PhysicsConstraintMass) { + } + + override protected float Setup (PhysicsConstraint constraint) { + return 1 / constraint.data.massInverse; + } + + override protected float Get (PhysicsConstraint constraint) { + return 1 / constraint.massInverse; + } + + override protected void Set (PhysicsConstraint constraint, float value) { + constraint.massInverse = 1 / value; + } + + override protected bool Global (PhysicsConstraintData constraint) { + return constraint.massGlobal; + } + } + + /// Changes a physics constraint's . + public class PhysicsConstraintWindTimeline : PhysicsConstraintTimeline { + public PhysicsConstraintWindTimeline (int frameCount, int bezierCount, int physicsConstraintIndex) + : base(frameCount, bezierCount, physicsConstraintIndex, Property.PhysicsConstraintWind) { + } + + override protected float Setup (PhysicsConstraint constraint) { + return constraint.data.wind; + } + + override protected float Get (PhysicsConstraint constraint) { + return constraint.wind; + } + + override protected void Set (PhysicsConstraint constraint, float value) { + constraint.wind = value; + } + + override protected bool Global (PhysicsConstraintData constraint) { + return constraint.windGlobal; + } + } + + /// Changes a physics constraint's . + public class PhysicsConstraintGravityTimeline : PhysicsConstraintTimeline { + public PhysicsConstraintGravityTimeline (int frameCount, int bezierCount, int physicsConstraintIndex) + : base(frameCount, bezierCount, physicsConstraintIndex, Property.PhysicsConstraintGravity) { + } + + override protected float Setup (PhysicsConstraint constraint) { + return constraint.data.gravity; + } + + override protected float Get (PhysicsConstraint constraint) { + return constraint.gravity; + } + + override protected void Set (PhysicsConstraint constraint, float value) { + constraint.gravity = value; + } + + override protected bool Global (PhysicsConstraintData constraint) { + return constraint.gravityGlobal; + } + } + + /// Changes a physics constraint's . + public class PhysicsConstraintMixTimeline : PhysicsConstraintTimeline { + public PhysicsConstraintMixTimeline (int frameCount, int bezierCount, int physicsConstraintIndex) + : base(frameCount, bezierCount, physicsConstraintIndex, Property.PhysicsConstraintMix) { + } + + override protected float Setup (PhysicsConstraint constraint) { + return constraint.data.mix; + } + + override protected float Get (PhysicsConstraint constraint) { + return constraint.mix; + } + + override protected void Set (PhysicsConstraint constraint, float value) { + constraint.mix = value; + } + + override protected bool Global (PhysicsConstraintData constraint) { + return constraint.mixGlobal; + } + } + + /// Resets a physics constraint when specific animation times are reached. + public class PhysicsConstraintResetTimeline : Timeline { + static readonly string[] propertyIds = { ((int)Property.PhysicsConstraintReset).ToString() }; + + readonly int constraintIndex; + + /// -1 for all physics constraints in the skeleton. + public PhysicsConstraintResetTimeline (int frameCount, int physicsConstraintIndex) + : base(frameCount, propertyIds) { + constraintIndex = physicsConstraintIndex; + } + + /// The index of the physics constraint in that will be reset when this timeline is + /// applied, or -1 if all physics constraints in the skeleton will be reset. + public int PhysicsConstraintIndex { + get { + return constraintIndex; + } + } + + override public int FrameCount { + get { return frames.Length; } + } + + /// Sets the time for the specified frame. + /// Between 0 and frameCount, inclusive. + public void SetFrame (int frame, float time) { + frames[frame] = time; + } + + /// Resets the physics constraint when frames > lastTime and <= time. + override public void Apply (Skeleton skeleton, float lastTime, float time, ExposedList firedEvents, float alpha, MixBlend blend, + MixDirection direction) { + + PhysicsConstraint constraint = null; + if (constraintIndex != -1) { + constraint = skeleton.physicsConstraints.Items[constraintIndex]; + if (!constraint.active) return; + } + + float[] frames = this.frames; + + if (lastTime > time) { // Apply after lastTime for looped animations. + Apply(skeleton, lastTime, int.MaxValue, null, alpha, blend, direction); + lastTime = -1f; + } else if (lastTime >= frames[frames.Length - 1]) // Last time is after last frame. + return; + if (time < frames[0]) return; + + if (lastTime < frames[0] || time >= frames[Search(frames, lastTime) + 1]) { + if (constraint != null) + constraint.Reset(); + else { + PhysicsConstraint[] constraints = skeleton.physicsConstraints.Items; + for (int i = 0, n = skeleton.physicsConstraints.Count; i < n; i++) { + constraint = (PhysicsConstraint)constraints[i]; + if (constraint.active) constraint.Reset(); + } + } + } + } + } + + /// Changes a slot's for an attachment's . public class SequenceTimeline : Timeline, ISlotTimeline { public const int ENTRIES = 3; @@ -2622,7 +2759,7 @@ namespace Spine { } /// Sets the time, mode, index, and frame time for the specified frame. - /// Between 0 and frameCount, inclusive. + /// Between 0 and frameCount, inclusive. /// Seconds between frames. public void SetFrame (int frame, float time, SequenceMode mode, int index, float delay) { frame *= ENTRIES; @@ -2645,8 +2782,13 @@ namespace Spine { Sequence sequence = ((IHasTextureRegion)slotAttachment).Sequence; if (sequence == null) return; + if (direction == MixDirection.Out) { + if (blend == MixBlend.Setup) slot.SequenceIndex = -1; + return; + } + float[] frames = this.frames; - if (time < frames[0]) { // Time is before first frame. + if (time < frames[0]) { if (blend == MixBlend.Setup || blend == MixBlend.First) slot.SequenceIndex = -1; return; } @@ -2659,7 +2801,7 @@ namespace Spine { int index = modeAndIndex >> 4, count = sequence.Regions.Length; SequenceMode mode = (SequenceMode)(modeAndIndex & 0xf); if (mode != SequenceMode.Hold) { - index += (int)((time - before) / delay + 0.00001f); + index += (int)((time - before) / delay + 0.0001f); switch (mode) { case SequenceMode.Once: index = Math.Min(count - 1, index); diff --git a/Assets/ThirdParty/Spine/Runtime/spine-csharp/AnimationState.cs b/Assets/ThirdParty/Spine/Runtime/spine-csharp/AnimationState.cs index 5fb396f77..0814cd4f0 100644 --- a/Assets/ThirdParty/Spine/Runtime/spine-csharp/AnimationState.cs +++ b/Assets/ThirdParty/Spine/Runtime/spine-csharp/AnimationState.cs @@ -49,9 +49,9 @@ namespace Spine { /// 2) The next track entry applied after this one does not have a timeline to set this property. /// Result: Mix from the setup pose to the timeline pose. internal const int First = 1; - /// 1) A previously applied timeline has set this property.
- /// 2) The next track entry to be applied does have a timeline to set this property.
- /// 3) The next track entry after that one does not have a timeline to set this property.
+ /// 1) A previously applied timeline has set this property. + /// 2) The next track entry to be applied does have a timeline to set this property. + /// 3) The next track entry after that one does not have a timeline to set this property. /// Result: Mix from the current pose to the timeline pose, but do not mix out. This avoids "dipping" when crossfading /// animations that key the same property. A subsequent timeline will set this property using a mix. internal const int HoldSubsequent = 2; @@ -204,16 +204,18 @@ namespace Spine { from.animationLast = from.nextAnimationLast; from.trackLast = from.nextTrackLast; - // Require mixTime > 0 to ensure the mixing from entry was applied at least once. - if (to.mixTime > 0 && to.mixTime >= to.mixDuration) { - // Require totalAlpha == 0 to ensure mixing is complete, unless mixDuration == 0 (the transition is a single frame). - if (from.totalAlpha == 0 || to.mixDuration == 0) { - to.mixingFrom = from.mixingFrom; - if (from.mixingFrom != null) from.mixingFrom.mixingTo = to; - to.interruptAlpha = from.interruptAlpha; - queue.End(from); + if (to.nextTrackLast != -1) { // The from entry was applied at least once. + bool discard = to.mixTime == 0 && from.mixTime == 0; // Discard the from entry when neither have advanced yet. + if (to.mixTime >= to.mixDuration || discard) { + // Require totalAlpha == 0 to ensure mixing is complete or the transition is a single frame or discarded. + if (from.totalAlpha == 0 || to.mixDuration == 0 || discard) { + to.mixingFrom = from.mixingFrom; + if (from.mixingFrom != null) from.mixingFrom.mixingTo = to; + to.interruptAlpha = from.interruptAlpha; + queue.End(from); + } + return finished; } - return finished; } from.trackTime += delta * from.timeScale; @@ -241,11 +243,12 @@ namespace Spine { MixBlend blend = i == 0 ? MixBlend.First : current.mixBlend; // Apply mixing from entries first. - float mix = current.alpha; + float alpha = current.alpha; if (current.mixingFrom != null) - mix *= ApplyMixingFrom(current, skeleton, blend); + alpha *= ApplyMixingFrom(current, skeleton, blend); else if (current.trackTime >= current.trackEnd && current.next == null) // - mix = 0; // Set to setup pose the last time the entry will be applied. + alpha = 0; // Set to setup pose the last time the entry will be applied. + bool attachments = alpha >= current.alphaAttachmentThreshold; // Apply current entry. float animationLast = current.animationLast, animationTime = current.AnimationTime, applyTime = animationTime; @@ -257,13 +260,14 @@ namespace Spine { int timelineCount = current.animation.timelines.Count; Timeline[] timelines = current.animation.timelines.Items; - if ((i == 0 && mix == 1) || blend == MixBlend.Add) { + if ((i == 0 && alpha == 1) || blend == MixBlend.Add) { + if (i == 0) attachments = true; for (int ii = 0; ii < timelineCount; ii++) { Timeline timeline = timelines[ii]; if (timeline is AttachmentTimeline) - ApplyAttachmentTimeline((AttachmentTimeline)timeline, skeleton, applyTime, blend, true); + ApplyAttachmentTimeline((AttachmentTimeline)timeline, skeleton, applyTime, blend, attachments); else - timeline.Apply(skeleton, animationLast, applyTime, applyEvents, mix, blend, MixDirection.In); + timeline.Apply(skeleton, animationLast, applyTime, applyEvents, alpha, blend, MixDirection.In); } } else { int[] timelineMode = current.timelineMode.Items; @@ -278,12 +282,12 @@ namespace Spine { MixBlend timelineBlend = timelineMode[ii] == AnimationState.Subsequent ? blend : MixBlend.Setup; RotateTimeline rotateTimeline = timeline as RotateTimeline; if (!shortestRotation && rotateTimeline != null) - ApplyRotateTimeline(rotateTimeline, skeleton, applyTime, mix, timelineBlend, timelinesRotation, + ApplyRotateTimeline(rotateTimeline, skeleton, applyTime, alpha, timelineBlend, timelinesRotation, ii << 1, firstFrame); else if (timeline is AttachmentTimeline) - ApplyAttachmentTimeline((AttachmentTimeline)timeline, skeleton, applyTime, blend, true); + ApplyAttachmentTimeline((AttachmentTimeline)timeline, skeleton, applyTime, blend, attachments); else - timeline.Apply(skeleton, animationLast, applyTime, applyEvents, mix, timelineBlend, MixDirection.In); + timeline.Apply(skeleton, animationLast, applyTime, applyEvents, alpha, timelineBlend, MixDirection.In); } } QueueEvents(current, animationTime); @@ -365,7 +369,7 @@ namespace Spine { if (blend != MixBlend.First) blend = from.mixBlend; // Track 0 ignores track mix blend. } - bool attachments = mix < from.attachmentThreshold, drawOrder = mix < from.drawOrderThreshold; + bool attachments = mix < from.mixAttachmentThreshold, drawOrder = mix < from.mixDrawOrderThreshold; int timelineCount = from.animation.timelines.Count; Timeline[] timelines = from.animation.timelines.Items; float alphaHold = from.alpha * to.interruptAlpha, alphaMix = alphaHold * (1 - mix); @@ -425,7 +429,8 @@ namespace Spine { ApplyRotateTimeline(rotateTimeline, skeleton, applyTime, alpha, timelineBlend, timelinesRotation, i << 1, firstFrame); } else if (timeline is AttachmentTimeline) { - ApplyAttachmentTimeline((AttachmentTimeline)timeline, skeleton, applyTime, timelineBlend, attachments); + ApplyAttachmentTimeline((AttachmentTimeline)timeline, skeleton, applyTime, timelineBlend, + attachments && alpha >= from.alphaAttachmentThreshold); } else { if (drawOrder && timeline is DrawOrderTimeline && timelineBlend == MixBlend.Setup) direction = MixDirection.In; @@ -482,7 +487,7 @@ namespace Spine { } /// Applies the attachment timeline and sets . - /// False when: 1) the attachment timeline is mixing out, 2) mix < attachmentThreshold, and 3) the timeline + /// False when: 1) the attachment timeline is mixing out, 2) mix < attachmentThreshold, and 3) the timeline /// is not the last timeline to set the slot's attachment. In that case the timeline is applied only so subsequent /// timelines see any deform. private void ApplyAttachmentTimeline (AttachmentTimeline timeline, Skeleton skeleton, float time, MixBlend blend, @@ -544,7 +549,7 @@ namespace Spine { // Mix between rotations using the direction of the shortest route on the first frame. float total, diff = r2 - r1; - diff -= (16384 - (int)(16384.499999999996 - diff / 360)) * 360; + diff -= (float)Math.Ceiling(diff / 360 - 0.5f) * 360; if (diff == 0) { total = timelinesRotation[i]; } else { @@ -553,17 +558,21 @@ namespace Spine { lastTotal = 0; lastDiff = diff; } else { - lastTotal = timelinesRotation[i]; // Angle and direction of mix, including loops. - lastDiff = timelinesRotation[i + 1]; // Difference between bones. + lastTotal = timelinesRotation[i]; + lastDiff = timelinesRotation[i + 1]; } - bool current = diff > 0, dir = lastTotal >= 0; - // Detect cross at 0 (not 180). - if (Math.Sign(lastDiff) != Math.Sign(diff) && Math.Abs(lastDiff) <= 90) { - // A cross after a 360 rotation is a loop. - if (Math.Abs(lastTotal) > 180) lastTotal += 360 * Math.Sign(lastTotal); - dir = current; + float loops = lastTotal - lastTotal % 360; + total = diff + loops; + bool current = diff >= 0, dir = lastTotal >= 0; + if (Math.Abs(lastDiff) <= 90 && Math.Sign(lastDiff) != Math.Sign(diff)) { + if (Math.Abs(lastTotal - loops) > 180) { + total += 360 * Math.Sign(lastTotal); + dir = current; + } else if (loops != 0) + total -= 360 * Math.Sign(lastTotal); + else + dir = current; } - total = diff + lastTotal - lastTotal % 360; // Store loops as part of lastTotal. if (dir != current) total += 360 * Math.Sign(lastTotal); timelinesRotation[i] = total; } @@ -588,9 +597,14 @@ namespace Spine { // Queue complete if completed a loop iteration or the animation. bool complete = false; - if (entry.loop) - complete = duration == 0 || (trackLastWrapped > entry.trackTime % duration); - else + if (entry.loop) { + if (duration == 0) + complete = true; + else { + int cycles = (int)(entry.trackTime / duration); + complete = cycles > 0 && cycles > (int)(entry.trackLast / duration); + } + } else complete = animationTime >= animationEnd && entry.animationLast < animationEnd; if (complete) queue.Complete(entry); @@ -718,8 +732,8 @@ namespace Spine { /// equivalent to calling .
/// /// If > 0, sets . If <= 0, the delay set is the duration of the previous track entry - /// minus any mix duration (from the plus the specified Delay (ie the mix - /// ends at (Delay = 0) or before (Delay < 0) the previous track entry duration). If the + /// minus any mix duration (from the plus the specified Delay (ie the mix + /// ends at (Delay = 0) or before (Delay < 0) the previous track entry duration). If the /// previous entry is looping, its next loop completion is used instead of its duration. /// /// A track entry to allow further customization of animation playback. References to the track entry must not be kept @@ -779,8 +793,8 @@ namespace Spine { /// Track number. /// Mix duration. /// If > 0, sets . If <= 0, the delay set is the duration of the previous track entry - /// minus any mix duration plus the specified Delay (ie the mix ends at (Delay = 0) or - /// before (Delay < 0) the previous track entry duration). If the previous entry is looping, its next + /// minus any mix duration plus the specified Delay (ie the mix ends at (Delay = 0) or + /// before (Delay < 0) the previous track entry duration). If the previous entry is looping, its next /// loop completion is used instead of its duration. /// A track entry to allow further customization of animation playback. References to the track entry must not be kept /// after the event occurs. @@ -824,8 +838,9 @@ namespace Spine { entry.holdPrevious = false; entry.eventThreshold = 0; - entry.attachmentThreshold = 0; - entry.drawOrderThreshold = 0; + entry.alphaAttachmentThreshold = 0; + entry.mixAttachmentThreshold = 0; + entry.mixDrawOrderThreshold = 0; entry.animationStart = 0; entry.animationEnd = animation.Duration; @@ -857,7 +872,6 @@ namespace Spine { entry.next = null; } - public bool AnimationsChangedOptimization = false; private void AnimationsChanged () { animationsChanged = false; @@ -865,27 +879,15 @@ namespace Spine { propertyIds.Clear(); int n = tracks.Count; TrackEntry[] tracksItems = tracks.Items; - if (AnimationsChangedOptimization) - { - for (int i = 0; i < n; i++) { - TrackEntry entry = tracksItems[i]; - if (entry == null) continue; - entry.mixingFrom = null; - entry.mixingTo = null; - } - } - else - { - for (int i = 0; i < n; i++) { - TrackEntry entry = tracksItems[i]; - if (entry == null) continue; - while (entry.mixingFrom != null) // Move to last entry, then iterate in reverse. - entry = entry.mixingFrom; - do { - if (entry.mixingTo == null || entry.mixBlend != MixBlend.Add) ComputeHold(entry); - entry = entry.mixingTo; - } while (entry != null); - } + for (int i = 0; i < n; i++) { + TrackEntry entry = tracksItems[i]; + if (entry == null) continue; + while (entry.mixingFrom != null) // Move to last entry, then iterate in reverse. + entry = entry.mixingFrom; + do { + if (entry.mixingTo == null || entry.mixBlend != MixBlend.Add) ComputeHold(entry); + entry = entry.mixingTo; + } while (entry != null); } } @@ -939,6 +941,7 @@ namespace Spine { /// Discards all listener notifications that have not yet been delivered. This can be useful to call from an /// AnimationState event subscriber when it is known that further notifications that may have been already queued for delivery /// are not wanted because new animations are being set. + /// public void ClearListenerNotifications () { queue.Clear(); } @@ -951,7 +954,7 @@ namespace Spine { ///
public float TimeScale { get { return timeScale; } set { timeScale = value; } } - /// The AnimationStateData to look up mix durations. + /// The to look up mix durations. public AnimationStateData Data { get { return data; @@ -1006,7 +1009,7 @@ namespace Spine { internal int trackIndex; internal bool loop, holdPrevious, reverse, shortestRotation; - internal float eventThreshold, attachmentThreshold, drawOrderThreshold; + internal float eventThreshold, mixAttachmentThreshold, alphaAttachmentThreshold, mixDrawOrderThreshold; internal float animationStart, animationEnd, animationLast, nextAnimationLast; internal float delay, trackTime, trackLast, nextTrackLast, trackEnd, timeScale = 1f; internal float alpha, mixTime, mixDuration, interruptAlpha, totalAlpha; @@ -1046,18 +1049,18 @@ namespace Spine { /// duration.
public bool Loop { get { return loop; } set { loop = value; } } - /// + /// /// - /// Seconds to postpone playing the animation. When this track entry is the current track entry, Delay - /// postpones incrementing the . When this track entry is queued, Delay is the time from + /// Seconds to postpone playing the animation. When this track entry is the current track entry, Delay + /// postpones incrementing the . When this track entry is queued, Delay is the time from /// the start of the previous animation to when this track entry will become the current track entry (ie when the previous - /// track entry >= this track entry's Delay). + /// track entry >= this track entry's Delay). /// /// affects the delay. /// - /// When using with a delay <= 0, the delay + /// When using with a delay <= 0, the delay /// is set using the mix duration from the . If is set afterward, the delay - /// may need to be adjusted. + /// may need to be adjusted. public float Delay { get { return delay; } set { delay = value; } } /// @@ -1097,7 +1100,7 @@ namespace Spine { /// /// Seconds when this animation starts, both initially and after looping. Defaults to 0. /// - /// When changing the AnimationStart time, it often makes sense to set to the same + /// When changing the AnimationStart time, it often makes sense to set to the same /// value to prevent timeline keys before the start time from triggering. /// public float AnimationStart { get { return animationStart; } set { animationStart = value; } } @@ -1105,13 +1108,13 @@ namespace Spine { /// /// Seconds for the last frame of this animation. Non-looping animations won't play past this time. Looping animations will /// loop back to at this time. Defaults to the animation . - /// + ///
public float AnimationEnd { get { return animationEnd; } set { animationEnd = value; } } /// /// The time in seconds this animation was last applied. Some timelines use this for one-time triggers. Eg, when this - /// animation is applied, event timelines will fire all events between the AnimationLast time (exclusive) and - /// AnimationTime (inclusive). Defaults to -1 to ensure triggers on frame 0 happen the first time this animation + /// animation is applied, event timelines will fire all events between the AnimationLast time (exclusive) and + /// AnimationTime (inclusive). Defaults to -1 to ensure triggers on frame 0 happen the first time this animation /// is applied. public float AnimationLast { get { return animationLast; } @@ -1122,12 +1125,12 @@ namespace Spine { } /// - /// Uses to compute the AnimationTime. When the TrackTime is 0, the - /// AnimationTime is equal to the AnimationStart time. + /// Uses to compute the AnimationTime. When the TrackTime is 0, the + /// AnimationTime is equal to the AnimationStart time. /// - /// The animationTime is between and , except if this + /// The animationTime is between and , except if this /// track entry is non-looping and is >= to the animation , then - /// animationTime continues to increase past . + /// animationTime continues to increase past . /// public float AnimationTime { get { @@ -1146,12 +1149,12 @@ namespace Spine { /// Multiplier for the delta time when this track entry is updated, causing time for this animation to pass slower or /// faster. Defaults to 1. /// - /// Values < 0 are not supported. To play an animation in reverse, use . + /// Values < 0 are not supported. To play an animation in reverse, use . /// /// is not affected by track entry time scale, so may need to be adjusted to /// match the animation speed. /// - /// When using with a Delay <= 0, the + /// When using with a Delay <= 0, the /// is set using the mix duration from the , assuming time scale to be 1. If /// the time scale is not 1, the delay may need to be adjusted. /// @@ -1161,7 +1164,7 @@ namespace Spine { /// /// - /// Values < 1 mix this animation with the skeleton's current pose (usually the pose resulting from lower tracks). Defaults + /// Values < 1 mix this animation with the skeleton's current pose (usually the pose resulting from lower tracks). Defaults /// to 1, which overwrites the skeleton's current pose with this animation. /// /// Typically track 0 is used to completely pose the skeleton, then alpha is used on higher tracks. It doesn't make sense to @@ -1173,36 +1176,56 @@ namespace Spine { /// /// When the mix percentage ( / ) is less than the - /// EventThreshold, event timelines are applied while this animation is being mixed out. Defaults to 0, so event + /// EventThreshold, event timelines are applied while this animation is being mixed out. Defaults to 0, so event /// timelines are not applied while this animation is being mixed out. /// public float EventThreshold { get { return eventThreshold; } set { eventThreshold = value; } } /// - /// When the mix percentage ( / ) is less than the - /// AttachmentThreshold, attachment timelines are applied while this animation is being mixed out. Defaults to - /// 0, so attachment timelines are not applied while this animation is being mixed out. - /// - public float AttachmentThreshold { get { return attachmentThreshold; } set { attachmentThreshold = value; } } - - /// - /// When the mix percentage ( / ) is less than the - /// DrawOrderThreshold, draw order timelines are applied while this animation is being mixed out. Defaults to 0, - /// so draw order timelines are not applied while this animation is being mixed out. + /// When is greater than AlphaAttachmentThreshold, attachment timelines are applied. + /// Defaults to 0, so attachment timelines are always applied. /// - public float DrawOrderThreshold { get { return drawOrderThreshold; } set { drawOrderThreshold = value; } } + public float AlphaAttachmentThreshold { get { return alphaAttachmentThreshold; } set { alphaAttachmentThreshold = value; } } /// - /// The animation queued to start after this animation, or null if there is none. next makes up a doubly linked + /// When the mix percentage ( / ) is less than the + /// MixAttachmentThreshold, attachment timelines are applied while this animation is being mixed out. Defaults + /// to 0, so attachment timelines are not applied while this animation is being mixed out. + /// + public float MixAttachmentThreshold { get { return mixAttachmentThreshold; } set { mixAttachmentThreshold = value; } } + + /// + /// When the mix percentage ( / ) is less than the + /// MixDrawOrderThreshold, draw order timelines are applied while this animation is being mixed out. Defaults to + /// 0, so draw order timelines are not applied while this animation is being mixed out. + /// + public float MixDrawOrderThreshold { get { return mixDrawOrderThreshold; } set { mixDrawOrderThreshold = value; } } + + /// + /// The animation queued to start after this animation, or null if there is none. next makes up a doubly linked /// list. /// /// See to truncate the list. public TrackEntry Next { get { return next; } } /// - /// The animation queued to play before this animation, or null. previous makes up a doubly linked list. + /// The animation queued to play before this animation, or null. previous makes up a doubly linked list. public TrackEntry Previous { get { return previous; } } + /// Returns true if this track entry has been applied at least once. + /// + public bool WasApplied { + get { return nextTrackLast != -1; } + } + + /// Returns true if there is a track entry that will become the current track entry during the + /// next . + public bool IsNextReady { + get { + return (next != null) && (nextTrackLast - next.delay >= 0); + } + } + /// /// Returns true if at least one loop has been completed. /// @@ -1212,7 +1235,7 @@ namespace Spine { /// /// Seconds from 0 to the when mixing from the previous animation to this animation. May be - /// slightly more than MixDuration when the mix is complete. + /// slightly more than MixDuration when the mix is complete. public float MixTime { get { return mixTime; } set { mixTime = value; } } /// @@ -1220,36 +1243,49 @@ namespace Spine { /// Seconds for mixing from the previous animation to this animation. Defaults to the value provided by AnimationStateData /// based on the animation before this animation (if any). /// - /// The MixDuration can be set manually rather than use the value from - /// . In that case, the MixDuration can be set for a new + /// The MixDuration can be set manually rather than use the value from + /// . In that case, the MixDuration can be set for a new /// track entry only before is first called. /// - /// When using with a Delay <= 0, the - /// is set using the mix duration from the . If mixDuration is set - /// afterward, the delay may need to be adjusted. For example: - /// entry.Delay = entry.previous.TrackComplete - entry.MixDuration; - /// + /// When using with a Delay <= 0, the + /// is set using the mix duration from the . If mixDuration is set + /// afterward, the delay may need to be adjusted. For example: + /// entry.Delay = entry.previous.TrackComplete - entry.MixDuration; + /// Alternatively, can be used to recompute the delay: + /// entry.SetMixDuration(0.25f, 0); + /// public float MixDuration { get { return mixDuration; } set { mixDuration = value; } } + /// Sets both and . + /// If > 0, sets . If <= 0, the delay set is the duration of the previous track + /// entry minus the specified mix duration plus the specified delay (ie the mix ends at + /// (delay = 0) or before (delay < 0) the previous track entry duration). If the previous + /// entry is looping, its next loop completion is used instead of its duration. + public void SetMixDuration (float mixDuration, float delay) { + this.mixDuration = mixDuration; + if (previous != null && delay <= 0) delay += previous.TrackComplete - mixDuration; + this.delay = delay; + } + /// /// /// Controls how properties keyed in the animation are mixed with lower tracks. Defaults to . /// /// Track entries on track 0 ignore this setting and always use . /// - /// The MixBlend can be set for a new track entry only before is first + /// The MixBlend can be set for a new track entry only before is first /// called. /// public MixBlend MixBlend { get { return mixBlend; } set { mixBlend = value; } } /// /// The track entry for the previous animation when mixing from the previous animation to this animation, or null if no - /// mixing is currently occuring. When mixing from multiple animations, MixingFrom makes up a linked list. + /// mixing is currently occurring. When mixing from multiple animations, MixingFrom makes up a linked list. public TrackEntry MixingFrom { get { return mixingFrom; } } /// /// The track entry for the next animation when mixing from this animation to the next animation, or null if no mixing is - /// currently occuring. When mixing to multiple animations, MixingTo makes up a linked list. + /// currently occurring. When mixing to multiple animations, MixingTo makes up a linked list. public TrackEntry MixingTo { get { return mixingTo; } } /// @@ -1259,11 +1295,11 @@ namespace Spine { /// /// When mixing between animations that key the same property, if a lower track also keys that property then the value will /// briefly dip toward the lower track value during the mix. This happens because the first animation mixes from 100% to 0% - /// while the second animation mixes from 0% to 100%. Setting HoldPrevious to true applies the first animation + /// while the second animation mixes from 0% to 100%. Setting HoldPrevious to true applies the first animation /// at 100% during the mix so the lower track value is overwritten. Such dipping does not occur on the lowest track which /// keys the property, only when a higher track also keys the property. /// - /// Snapping will occur if HoldPrevious is true and this animation does not key all the same properties as the + /// Snapping will occur if HoldPrevious is true and this animation does not key all the same properties as the /// previous animation. /// public bool HoldPrevious { get { return holdPrevious; } set { holdPrevious = value; } } @@ -1282,6 +1318,7 @@ namespace Spine { /// Returns true if this entry is for the empty animation. See , /// , and . + /// public bool IsEmptyAnimation { get { return animation == AnimationState.EmptyAnimation; } } /// diff --git a/Assets/ThirdParty/Spine/Runtime/spine-csharp/Attachments/Attachment.cs b/Assets/ThirdParty/Spine/Runtime/spine-csharp/Attachments/Attachment.cs index f7bf7d3f1..2617d5f07 100644 --- a/Assets/ThirdParty/Spine/Runtime/spine-csharp/Attachments/Attachment.cs +++ b/Assets/ThirdParty/Spine/Runtime/spine-csharp/Attachments/Attachment.cs @@ -50,7 +50,7 @@ namespace Spine { return Name; } - ///Returns a copy of the attachment. + /// Returns a copy of the attachment. public abstract Attachment Copy (); } } diff --git a/Assets/ThirdParty/Spine/Runtime/spine-csharp/Attachments/MeshAttachment.cs b/Assets/ThirdParty/Spine/Runtime/spine-csharp/Attachments/MeshAttachment.cs index aaab2edd8..fd4c47df8 100644 --- a/Assets/ThirdParty/Spine/Runtime/spine-csharp/Attachments/MeshAttachment.cs +++ b/Assets/ThirdParty/Spine/Runtime/spine-csharp/Attachments/MeshAttachment.cs @@ -197,7 +197,7 @@ namespace Spine { base.ComputeWorldVertices(slot, start, count, worldVertices, offset, stride); } - ///Returns a new mesh with this mesh set as the . + /// Returns a new mesh with this mesh set as the . public MeshAttachment NewLinkedMesh () { MeshAttachment mesh = new MeshAttachment(Name); diff --git a/Assets/ThirdParty/Spine/Runtime/spine-csharp/Attachments/PointAttachment.cs b/Assets/ThirdParty/Spine/Runtime/spine-csharp/Attachments/PointAttachment.cs index 63aa21599..3b2d42d37 100644 --- a/Assets/ThirdParty/Spine/Runtime/spine-csharp/Attachments/PointAttachment.cs +++ b/Assets/ThirdParty/Spine/Runtime/spine-csharp/Attachments/PointAttachment.cs @@ -27,6 +27,8 @@ * SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. *****************************************************************************/ +using System; + namespace Spine { /// /// An attachment which is a single point and a rotation. This can be used to spawn projectiles, particles, etc. A bone can be @@ -45,7 +47,7 @@ namespace Spine { : base(name) { } - /** Copy constructor. */ + /// Copy constructor. protected PointAttachment (PointAttachment other) : base(other) { x = other.x; @@ -58,10 +60,10 @@ namespace Spine { } public float ComputeWorldRotation (Bone bone) { - float cos = MathUtils.CosDeg(rotation), sin = MathUtils.SinDeg(rotation); - float ix = cos * bone.a + sin * bone.b; - float iy = cos * bone.c + sin * bone.d; - return MathUtils.Atan2(iy, ix) * MathUtils.RadDeg; + float r = rotation * MathUtils.DegRad, cos = (float)Math.Cos(r), sin = (float)Math.Sin(r); + float x = cos * bone.a + sin * bone.b; + float y = cos * bone.c + sin * bone.d; + return MathUtils.Atan2Deg(y, x); } public override Attachment Copy () { diff --git a/Assets/ThirdParty/Spine/Runtime/spine-csharp/Attachments/RegionAttachment.cs b/Assets/ThirdParty/Spine/Runtime/spine-csharp/Attachments/RegionAttachment.cs index e565639f5..7226823df 100644 --- a/Assets/ThirdParty/Spine/Runtime/spine-csharp/Attachments/RegionAttachment.cs +++ b/Assets/ThirdParty/Spine/Runtime/spine-csharp/Attachments/RegionAttachment.cs @@ -59,7 +59,7 @@ namespace Spine { public string Path { get; set; } public TextureRegion Region { get { return region; } set { region = value; } } - /// For each of the 4 vertices, a pair of x,y values that is the local position of the vertex. + /// For each of the 4 vertices, a pair of x,y values that is the local position of the vertex. /// public float[] Offset { get { return offset; } } public float[] UVs { get { return uvs; } } @@ -106,8 +106,7 @@ namespace Spine { return; } - float width = Width; - float height = Height; + float width = Width, height = Height; float localX2 = width / 2; float localY2 = height / 2; float localX = -localX2; @@ -126,17 +125,13 @@ namespace Spine { localY2 -= (region.originalHeight - region.offsetY - region.packedHeight) / region.originalHeight * height; } } - float scaleX = ScaleX; - float scaleY = ScaleY; + float scaleX = ScaleX, scaleY = ScaleY; localX *= scaleX; localY *= scaleY; localX2 *= scaleX; localY2 *= scaleY; - float rotation = Rotation; - float cos = MathUtils.CosDeg(this.rotation); - float sin = MathUtils.SinDeg(this.rotation); - float x = X; - float y = Y; + float r = Rotation * MathUtils.DegRad, cos = (float)Math.Cos(r), sin = (float)Math.Sin(r); + float x = X, y = Y; float localXCos = localX * cos + x; float localXSin = localX * sin; float localYCos = localY * cos + y; diff --git a/Assets/ThirdParty/Spine/Runtime/spine-csharp/Attachments/VertexAttachment.cs b/Assets/ThirdParty/Spine/Runtime/spine-csharp/Attachments/VertexAttachment.cs index b057b22cf..ec98ba41c 100644 --- a/Assets/ThirdParty/Spine/Runtime/spine-csharp/Attachments/VertexAttachment.cs +++ b/Assets/ThirdParty/Spine/Runtime/spine-csharp/Attachments/VertexAttachment.cs @@ -47,7 +47,7 @@ namespace Spine { public int[] Bones { get { return bones; } set { bones = value; } } public float[] Vertices { get { return vertices; } set { vertices = value; } } public int WorldVerticesLength { get { return worldVerticesLength; } set { worldVerticesLength = value; } } - ///Timelines for the timeline attachment are also applied to this attachment. + /// Timelines for the timeline attachment are also applied to this attachment. /// May be null if no attachment-specific timelines should be applied. public VertexAttachment TimelineAttachment { get { return timelineAttachment; } set { timelineAttachment = value; } } diff --git a/Assets/ThirdParty/Spine/Runtime/spine-csharp/Bone.cs b/Assets/ThirdParty/Spine/Runtime/spine-csharp/Bone.cs index 3d3e9de46..84e3b6c00 100644 --- a/Assets/ThirdParty/Spine/Runtime/spine-csharp/Bone.cs +++ b/Assets/ThirdParty/Spine/Runtime/spine-csharp/Bone.cs @@ -30,6 +30,8 @@ using System; namespace Spine { + using Physics = Skeleton.Physics; + /// /// Stores a bone's current pose. /// @@ -50,6 +52,7 @@ namespace Spine { internal float a, b, worldX; internal float c, d, worldY; + internal Inherit inherit; internal bool sorted, active; @@ -57,8 +60,6 @@ namespace Spine { public Skeleton Skeleton { get { return skeleton; } } public Bone Parent { get { return parent; } } public ExposedList Children { get { return children; } } - /// Returns false when the bone has not been computed because is true and the - /// active skin does not contain this bone. public bool Active { get { return active; } } /// The local X translation. public float X { get { return x; } set { x = value; } } @@ -79,6 +80,9 @@ namespace Spine { /// The local shearY. public float ShearY { get { return shearY; } set { shearY = value; } } + /// Controls how parent world transforms affect this bone. + public Inherit Inherit { get { return inherit; } set { inherit = value; } } + /// The rotation, as calculated by any constraints. public float AppliedRotation { get { return arotation; } set { arotation = value; } } @@ -113,8 +117,10 @@ namespace Spine { public float WorldX { get { return worldX; } set { worldX = value; } } /// The world Y position. If changed, should be called. public float WorldY { get { return worldY; } set { worldY = value; } } - public float WorldRotationX { get { return MathUtils.Atan2(c, a) * MathUtils.RadDeg; } } - public float WorldRotationY { get { return MathUtils.Atan2(d, b) * MathUtils.RadDeg; } } + /// The world rotation for the X axis, calculated using and . + public float WorldRotationX { get { return MathUtils.Atan2Deg(c, a); } } + /// The world rotation for the Y axis, calculated using and . + public float WorldRotationY { get { return MathUtils.Atan2Deg(d, b); } } /// Returns the magnitide (always positive) of the world scale X. public float WorldScaleX { get { return (float)Math.Sqrt(a * a + c * c); } } @@ -145,10 +151,11 @@ namespace Spine { scaleY = bone.scaleY; shearX = bone.shearX; shearY = bone.shearY; + inherit = bone.inherit; } /// Computes the world transform using the parent bone and this bone's local applied transform. - public void Update () { + public void Update (Physics physics) { UpdateWorldTransform(ax, ay, arotation, ascaleX, ascaleY, ashearX, ashearY); } @@ -173,11 +180,14 @@ namespace Spine { Bone parent = this.parent; if (parent == null) { // Root bone. - float rotationY = rotation + 90 + shearY, sx = skeleton.ScaleX, sy = skeleton.ScaleY; - a = MathUtils.CosDeg(rotation + shearX) * scaleX * sx; - b = MathUtils.CosDeg(rotationY) * scaleY * sx; - c = MathUtils.SinDeg(rotation + shearX) * scaleX * sy; - d = MathUtils.SinDeg(rotationY) * scaleY * sy; + Skeleton skeleton = this.skeleton; + float sx = skeleton.scaleX, sy = skeleton.ScaleY; + float rx = (rotation + shearX) * MathUtils.DegRad; + float ry = (rotation + 90 + shearY) * MathUtils.DegRad; + a = (float)Math.Cos(rx) * scaleX * sx; + b = (float)Math.Cos(ry) * scaleY * sx; + c = (float)Math.Sin(rx) * scaleX * sy; + d = (float)Math.Sin(ry) * scaleY * sy; worldX = x * sx + skeleton.x; worldY = y * sy + skeleton.y; return; @@ -187,73 +197,77 @@ namespace Spine { worldX = pa * x + pb * y + parent.worldX; worldY = pc * x + pd * y + parent.worldY; - switch (data.transformMode) { - case TransformMode.Normal: { - float rotationY = rotation + 90 + shearY; - float la = MathUtils.CosDeg(rotation + shearX) * scaleX; - float lb = MathUtils.CosDeg(rotationY) * scaleY; - float lc = MathUtils.SinDeg(rotation + shearX) * scaleX; - float ld = MathUtils.SinDeg(rotationY) * scaleY; + switch (inherit) { + case Inherit.Normal: { + float rx = (rotation + shearX) * MathUtils.DegRad; + float ry = (rotation + 90 + shearY) * MathUtils.DegRad; + float la = (float)Math.Cos(rx) * scaleX; + float lb = (float)Math.Cos(ry) * scaleY; + float lc = (float)Math.Sin(rx) * scaleX; + float ld = (float)Math.Sin(ry) * scaleY; a = pa * la + pb * lc; b = pa * lb + pb * ld; c = pc * la + pd * lc; d = pc * lb + pd * ld; return; } - case TransformMode.OnlyTranslation: { - float rotationY = rotation + 90 + shearY; - a = MathUtils.CosDeg(rotation + shearX) * scaleX; - b = MathUtils.CosDeg(rotationY) * scaleY; - c = MathUtils.SinDeg(rotation + shearX) * scaleX; - d = MathUtils.SinDeg(rotationY) * scaleY; + case Inherit.OnlyTranslation: { + float rx = (rotation + shearX) * MathUtils.DegRad; + float ry = (rotation + 90 + shearY) * MathUtils.DegRad; + a = (float)Math.Cos(rx) * scaleX; + b = (float)Math.Cos(ry) * scaleY; + c = (float)Math.Sin(rx) * scaleX; + d = (float)Math.Sin(ry) * scaleY; break; } - case TransformMode.NoRotationOrReflection: { + case Inherit.NoRotationOrReflection: { + float sx = 1 / skeleton.scaleX, sy = 1 / skeleton.ScaleY; + pa *= sx; + pc *= sy; float s = pa * pa + pc * pc, prx; if (s > 0.0001f) { - s = Math.Abs(pa * pd - pb * pc) / s; - pa /= skeleton.ScaleX; - pc /= skeleton.ScaleY; + s = Math.Abs(pa * pd * sy - pb * sx * pc) / s; pb = pc * s; pd = pa * s; - prx = MathUtils.Atan2(pc, pa) * MathUtils.RadDeg; + prx = MathUtils.Atan2Deg(pc, pa); } else { pa = 0; pc = 0; - prx = 90 - MathUtils.Atan2(pd, pb) * MathUtils.RadDeg; + prx = 90 - MathUtils.Atan2Deg(pd, pb); } - float rx = rotation + shearX - prx; - float ry = rotation + shearY - prx + 90; - float la = MathUtils.CosDeg(rx) * scaleX; - float lb = MathUtils.CosDeg(ry) * scaleY; - float lc = MathUtils.SinDeg(rx) * scaleX; - float ld = MathUtils.SinDeg(ry) * scaleY; + float rx = (rotation + shearX - prx) * MathUtils.DegRad; + float ry = (rotation + shearY - prx + 90) * MathUtils.DegRad; + float la = (float)Math.Cos(rx) * scaleX; + float lb = (float)Math.Cos(ry) * scaleY; + float lc = (float)Math.Sin(rx) * scaleX; + float ld = (float)Math.Sin(ry) * scaleY; a = pa * la - pb * lc; b = pa * lb - pb * ld; c = pc * la + pd * lc; d = pc * lb + pd * ld; break; } - case TransformMode.NoScale: - case TransformMode.NoScaleOrReflection: { - float cos = MathUtils.CosDeg(rotation), sin = MathUtils.SinDeg(rotation); - float za = (pa * cos + pb * sin) / skeleton.ScaleX; + case Inherit.NoScale: + case Inherit.NoScaleOrReflection: { + rotation *= MathUtils.DegRad; + float cos = (float)Math.Cos(rotation), sin = (float)Math.Sin(rotation); + float za = (pa * cos + pb * sin) / skeleton.scaleX; float zc = (pc * cos + pd * sin) / skeleton.ScaleY; float s = (float)Math.Sqrt(za * za + zc * zc); if (s > 0.00001f) s = 1 / s; za *= s; zc *= s; s = (float)Math.Sqrt(za * za + zc * zc); - if (data.transformMode == TransformMode.NoScale - && (pa * pd - pb * pc < 0) != (skeleton.ScaleX < 0 != skeleton.ScaleY < 0)) s = -s; - - float r = MathUtils.PI / 2 + MathUtils.Atan2(zc, za); - float zb = MathUtils.Cos(r) * s; - float zd = MathUtils.Sin(r) * s; - float la = MathUtils.CosDeg(shearX) * scaleX; - float lb = MathUtils.CosDeg(90 + shearY) * scaleY; - float lc = MathUtils.SinDeg(shearX) * scaleX; - float ld = MathUtils.SinDeg(90 + shearY) * scaleY; + if (inherit == Inherit.NoScale && (pa * pd - pb * pc < 0) != (skeleton.scaleX < 0 != skeleton.ScaleY < 0)) s = -s; + rotation = MathUtils.PI / 2 + MathUtils.Atan2(zc, za); + float zb = (float)Math.Cos(rotation) * s; + float zd = (float)Math.Sin(rotation) * s; + shearX *= MathUtils.DegRad; + shearY = (90 + shearY) * MathUtils.DegRad; + float la = (float)Math.Cos(shearX) * scaleX; + float lb = (float)Math.Cos(shearY) * scaleY; + float lc = (float)Math.Sin(shearX) * scaleX; + float ld = (float)Math.Sin(shearY) * scaleY; a = za * la + zb * lc; b = za * lb + zb * ld; c = zc * la + zd * lc; @@ -261,22 +275,23 @@ namespace Spine { break; } } - - a *= skeleton.ScaleX; - b *= skeleton.ScaleX; + a *= skeleton.scaleX; + b *= skeleton.scaleX; c *= skeleton.ScaleY; d *= skeleton.ScaleY; } + /// Sets this bone's local transform to the setup pose. public void SetToSetupPose () { BoneData data = this.data; x = data.x; y = data.y; rotation = data.rotation; scaleX = data.scaleX; - scaleY = data.scaleY; + scaleY = data.ScaleY; shearX = data.shearX; shearY = data.shearY; + inherit = data.inherit; } /// @@ -294,41 +309,84 @@ namespace Spine { if (parent == null) { ax = worldX - skeleton.x; ay = worldY - skeleton.y; - arotation = MathUtils.Atan2(c, a) * MathUtils.RadDeg; + float a = this.a, b = this.b, c = this.c, d = this.d; + arotation = MathUtils.Atan2Deg(c, a); ascaleX = (float)Math.Sqrt(a * a + c * c); ascaleY = (float)Math.Sqrt(b * b + d * d); ashearX = 0; - ashearY = MathUtils.Atan2(a * b + c * d, a * d - b * c) * MathUtils.RadDeg; + ashearY = MathUtils.Atan2Deg(a * b + c * d, a * d - b * c); return; } + float pa = parent.a, pb = parent.b, pc = parent.c, pd = parent.d; float pid = 1 / (pa * pd - pb * pc); + float ia = pd * pid, ib = pb * pid, ic = pc * pid, id = pa * pid; float dx = worldX - parent.worldX, dy = worldY - parent.worldY; - ax = (dx * pd * pid - dy * pb * pid); - ay = (dy * pa * pid - dx * pc * pid); - float ia = pid * pd; - float id = pid * pa; - float ib = pid * pb; - float ic = pid * pc; - float ra = ia * a - ib * c; - float rb = ia * b - ib * d; - float rc = id * c - ic * a; - float rd = id * d - ic * b; + ax = (dx * ia - dy * ib); + ay = (dy * id - dx * ic); + + float ra, rb, rc, rd; + if (inherit == Inherit.OnlyTranslation) { + ra = a; + rb = b; + rc = c; + rd = d; + } else { + switch (inherit) { + case Inherit.NoRotationOrReflection: { + float s = Math.Abs(pa * pd - pb * pc) / (pa * pa + pc * pc); + float skeletonScaleY = skeleton.ScaleY; + pb = -pc * skeleton.scaleX * s / skeletonScaleY; + pd = pa * skeletonScaleY * s / skeleton.scaleX; + pid = 1 / (pa * pd - pb * pc); + ia = pd * pid; + ib = pb * pid; + break; + } + case Inherit.NoScale: + case Inherit.NoScaleOrReflection: { + float r = rotation * MathUtils.DegRad, cos = (float)Math.Cos(r), sin = (float)Math.Sin(r); + pa = (pa * cos + pb * sin) / skeleton.scaleX; + pc = (pc * cos + pd * sin) / skeleton.ScaleY; + float s = (float)Math.Sqrt(pa * pa + pc * pc); + if (s > 0.00001f) s = 1 / s; + pa *= s; + pc *= s; + s = (float)Math.Sqrt(pa * pa + pc * pc); + if (inherit == Inherit.NoScale && pid < 0 != (skeleton.scaleX < 0 != skeleton.ScaleY < 0)) s = -s; + r = MathUtils.PI / 2 + MathUtils.Atan2(pc, pa); + pb = (float)Math.Cos(r) * s; + pd = (float)Math.Sin(r) * s; + pid = 1 / (pa * pd - pb * pc); + ia = pd * pid; + ib = pb * pid; + ic = pc * pid; + id = pa * pid; + break; + } + } + ra = ia * a - ib * c; + rb = ia * b - ib * d; + rc = id * c - ic * a; + rd = id * d - ic * b; + } + ashearX = 0; ascaleX = (float)Math.Sqrt(ra * ra + rc * rc); if (ascaleX > 0.0001f) { float det = ra * rd - rb * rc; ascaleY = det / ascaleX; - ashearY = MathUtils.Atan2(ra * rb + rc * rd, det) * MathUtils.RadDeg; - arotation = MathUtils.Atan2(rc, ra) * MathUtils.RadDeg; + ashearY = -MathUtils.Atan2Deg(ra * rb + rc * rd, det); + arotation = MathUtils.Atan2Deg(rc, ra); } else { ascaleX = 0; ascaleY = (float)Math.Sqrt(rb * rb + rd * rd); ashearY = 0; - arotation = 90 - MathUtils.Atan2(rd, rb) * MathUtils.RadDeg; + arotation = 90 - MathUtils.Atan2Deg(rd, rb); } } + /// Transforms a point from world coordinates to the bone's local coordinates. public void WorldToLocal (float worldX, float worldY, out float localX, out float localY) { float a = this.a, b = this.b, c = this.c, d = this.d; float det = a * d - b * c; @@ -337,53 +395,60 @@ namespace Spine { localY = (y * a - x * c) / det; } + /// Transforms a point from the bone's local coordinates to world coordinates. public void LocalToWorld (float localX, float localY, out float worldX, out float worldY) { worldX = localX * a + localY * b + this.worldX; worldY = localX * c + localY * d + this.worldY; } - public float WorldToLocalRotationX { - get { - Bone parent = this.parent; - if (parent == null) return arotation; - float pa = parent.a, pb = parent.b, pc = parent.c, pd = parent.d, a = this.a, c = this.c; - return MathUtils.Atan2(pa * c - pc * a, pd * a - pb * c) * MathUtils.RadDeg; + /// Transforms a point from world coordinates to the parent bone's local coordinates. + public void WorldToParent (float worldX, float worldY, out float parentX, out float parentY) { + if (parent == null) { + parentX = worldX; + parentY = worldY; + } else { + parent.WorldToLocal(worldX, worldY, out parentX, out parentY); } } - public float WorldToLocalRotationY { - get { - Bone parent = this.parent; - if (parent == null) return arotation; - float pa = parent.a, pb = parent.b, pc = parent.c, pd = parent.d, b = this.b, d = this.d; - return MathUtils.Atan2(pa * d - pc * b, pd * b - pb * d) * MathUtils.RadDeg; + /// Transforms a point from the parent bone's coordinates to world coordinates. + public void ParentToWorld (float parentX, float parentY, out float worldX, out float worldY) { + if (parent == null) { + worldX = parentX; + worldY = parentY; + } else { + parent.LocalToWorld(parentX, parentY, out worldX, out worldY); } } + /// Transforms a world rotation to a local rotation. public float WorldToLocalRotation (float worldRotation) { - float sin = MathUtils.SinDeg(worldRotation), cos = MathUtils.CosDeg(worldRotation); - return MathUtils.Atan2(a * sin - c * cos, d * cos - b * sin) * MathUtils.RadDeg + rotation - shearX; + worldRotation *= MathUtils.DegRad; + float sin = (float)Math.Sin(worldRotation), cos = (float)Math.Cos(worldRotation); + return MathUtils.Atan2Deg(a * sin - c * cos, d * cos - b * sin) + rotation - shearX; } + /// Transforms a local rotation to a world rotation. public float LocalToWorldRotation (float localRotation) { - localRotation -= rotation - shearX; - float sin = MathUtils.SinDeg(localRotation), cos = MathUtils.CosDeg(localRotation); - return MathUtils.Atan2(cos * c + sin * d, cos * a + sin * b) * MathUtils.RadDeg; + localRotation = (localRotation - rotation - shearX) * MathUtils.DegRad; + float sin = (float)Math.Sin(localRotation), cos = (float)Math.Cos(localRotation); + return MathUtils.Atan2Deg(cos * c + sin * d, cos * a + sin * b); } /// /// Rotates the world transform the specified amount. /// - /// After changes are made to the world transform, should be called and will - /// need to be called on any child bones, recursively. + /// After changes are made to the world transform, should be called and + /// will need to be called on any child bones, recursively. /// public void RotateWorld (float degrees) { - float a = this.a, b = this.b, c = this.c, d = this.d; - float cos = MathUtils.CosDeg(degrees), sin = MathUtils.SinDeg(degrees); - this.a = cos * a - sin * c; - this.b = cos * b - sin * d; - this.c = sin * a + cos * c; - this.d = sin * b + cos * d; + degrees *= MathUtils.DegRad; + float sin = (float)Math.Sin(degrees), cos = (float)Math.Cos(degrees); + float ra = a, rb = b; + a = cos * ra - sin * c; + b = cos * rb - sin * d; + c = sin * ra + cos * c; + d = sin * rb + cos * d; } override public string ToString () { diff --git a/Assets/ThirdParty/Spine/Runtime/spine-csharp/BoneData.cs b/Assets/ThirdParty/Spine/Runtime/spine-csharp/BoneData.cs index c76fec5d9..49b8cec41 100644 --- a/Assets/ThirdParty/Spine/Runtime/spine-csharp/BoneData.cs +++ b/Assets/ThirdParty/Spine/Runtime/spine-csharp/BoneData.cs @@ -36,7 +36,7 @@ namespace Spine { internal BoneData parent; internal float length; internal float x, y, rotation, scaleX = 1, scaleY = 1, shearX, shearY; - internal TransformMode transformMode = TransformMode.Normal; + internal Inherit inherit = Inherit.Normal; internal bool skinRequired; /// The index of the bone in Skeleton.Bones @@ -56,7 +56,7 @@ namespace Spine { /// Local Y translation. public float Y { get { return y; } set { y = value; } } - /// Local rotation. + /// Local rotation in degrees, counter clockwise. public float Rotation { get { return rotation; } set { rotation = value; } } /// Local scaleX. @@ -71,11 +71,11 @@ namespace Spine { /// Local shearY. public float ShearY { get { return shearY; } set { shearY = value; } } - /// The transform mode for how parent world transforms affect this bone. - public TransformMode TransformMode { get { return transformMode; } set { transformMode = value; } } + /// Determines how parent world transforms affect this bone. + public Inherit Inherit { get { return inherit; } set { inherit = value; } } - ///When true, only updates this bone if the contains this - /// bone. + /// When true, only updates this bone if the contains + /// this bone. /// public bool SkinRequired { get { return skinRequired; } set { skinRequired = value; } } @@ -93,13 +93,21 @@ namespace Spine { } } - [Flags] - public enum TransformMode { - //0000 0 Flip Scale Rotation - Normal = 0, // 0000 - OnlyTranslation = 7, // 0111 - NoRotationOrReflection = 1, // 0001 - NoScale = 2, // 0010 - NoScaleOrReflection = 6, // 0110 + public enum Inherit { + Normal, + OnlyTranslation, + NoRotationOrReflection, + NoScale, + NoScaleOrReflection + } + + public class InheritEnum { + public static readonly Inherit[] Values = { + Inherit.Normal, + Inherit.OnlyTranslation, + Inherit.NoRotationOrReflection, + Inherit.NoScale, + Inherit.NoScaleOrReflection + }; } } diff --git a/Assets/ThirdParty/Spine/Runtime/spine-csharp/ConstraintData.cs b/Assets/ThirdParty/Spine/Runtime/spine-csharp/ConstraintData.cs index 04d24d438..4d705452c 100644 --- a/Assets/ThirdParty/Spine/Runtime/spine-csharp/ConstraintData.cs +++ b/Assets/ThirdParty/Spine/Runtime/spine-csharp/ConstraintData.cs @@ -45,13 +45,13 @@ namespace Spine { /// The constraint's name, which is unique across all constraints in the skeleton of the same type. public string Name { get { return name; } } - ///The ordinal of this constraint for the order a skeleton's constraints will be applied by - /// . + /// The ordinal of this constraint for the order a skeleton's constraints will be applied by + /// . public int Order { get { return order; } set { order = value; } } - ///When true, only updates this constraint if the contains - /// this constraint. - /// + /// When true, only updates this constraint if the + /// contains this constraint. + /// public bool SkinRequired { get { return skinRequired; } set { skinRequired = value; } } override public string ToString () { diff --git a/Assets/ThirdParty/Spine/Runtime/spine-csharp/IUpdatable.cs b/Assets/ThirdParty/Spine/Runtime/spine-csharp/IUpdatable.cs index 39cab1602..260cef8bf 100644 --- a/Assets/ThirdParty/Spine/Runtime/spine-csharp/IUpdatable.cs +++ b/Assets/ThirdParty/Spine/Runtime/spine-csharp/IUpdatable.cs @@ -28,15 +28,20 @@ *****************************************************************************/ namespace Spine { + using Physics = Skeleton.Physics; - ///The interface for items updated by . + /// The interface for items updated by . public interface IUpdatable { - void Update (); + /// Determines how physics and other non-deterministic updates are applied. + void Update (Physics physics); - ///Returns false when this item has not been updated because a skin is required and the active - /// skin does not contain this item. + /// Returns false when this item won't be updated by + /// because a skin is required and the + /// active skin does not contain this item. /// /// + /// + /// bool Active { get; } } } diff --git a/Assets/ThirdParty/Spine/Runtime/spine-csharp/IkConstraint.cs b/Assets/ThirdParty/Spine/Runtime/spine-csharp/IkConstraint.cs index 1885aa6e9..4d542f5f5 100644 --- a/Assets/ThirdParty/Spine/Runtime/spine-csharp/IkConstraint.cs +++ b/Assets/ThirdParty/Spine/Runtime/spine-csharp/IkConstraint.cs @@ -30,6 +30,8 @@ using System; namespace Spine { + using Physics = Skeleton.Physics; + /// /// /// Stores the current pose for an IK constraint. An IK constraint adjusts the rotation of 1 or 2 constrained bones so the tip of @@ -49,29 +51,25 @@ namespace Spine { public IkConstraint (IkConstraintData data, Skeleton skeleton) { if (data == null) throw new ArgumentNullException("data", "data cannot be null."); - if (skeleton == null) throw new ArgumentNullException("skeleton", "skeleton cannot be null."); this.data = data; + + bones = new ExposedList(data.bones.Count); + foreach (BoneData boneData in data.bones) + bones.Add(skeleton.bones.Items[boneData.index]); + + target = skeleton.bones.Items[data.target.index]; + mix = data.mix; softness = data.softness; bendDirection = data.bendDirection; compress = data.compress; stretch = data.stretch; - - bones = new ExposedList(data.bones.Count); - foreach (BoneData boneData in data.bones) - bones.Add(skeleton.bones.Items[boneData.index]); - target = skeleton.bones.Items[data.target.index]; } /// Copy constructor. - public IkConstraint (IkConstraint constraint, Skeleton skeleton) { - if (constraint == null) throw new ArgumentNullException("constraint cannot be null."); - if (skeleton == null) throw new ArgumentNullException("skeleton cannot be null."); - data = constraint.data; - bones = new ExposedList(constraint.Bones.Count); - foreach (Bone bone in constraint.Bones) - bones.Add(skeleton.Bones.Items[bone.data.index]); - target = skeleton.Bones.Items[constraint.target.data.index]; + public IkConstraint (IkConstraint constraint, Skeleton skeleton) + : this(constraint.data, skeleton) { + mix = constraint.mix; softness = constraint.softness; bendDirection = constraint.bendDirection; @@ -79,7 +77,16 @@ namespace Spine { stretch = constraint.stretch; } - public void Update () { + public void SetToSetupPose () { + IkConstraintData data = this.data; + mix = data.mix; + softness = data.softness; + bendDirection = data.bendDirection; + compress = data.compress; + stretch = data.stretch; + } + + public void Update (Physics physics) { if (mix == 0) return; Bone target = this.target; Bone[] bones = this.bones.Items; @@ -166,18 +173,18 @@ namespace Spine { float rotationIK = -bone.ashearX - bone.arotation; float tx = 0, ty = 0; - switch (bone.data.transformMode) { - case TransformMode.OnlyTranslation: + switch (bone.inherit) { + case Inherit.OnlyTranslation: tx = (targetX - bone.worldX) * Math.Sign(bone.skeleton.ScaleX); ty = (targetY - bone.worldY) * Math.Sign(bone.skeleton.ScaleY); break; - case TransformMode.NoRotationOrReflection: { + case Inherit.NoRotationOrReflection: { float s = Math.Abs(pa * pd - pb * pc) / Math.Max(0.0001f, pa * pa + pc * pc); - float sa = pa / bone.skeleton.ScaleX; + float sa = pa / bone.skeleton.scaleX; float sc = pc / bone.skeleton.ScaleY; - pb = -sc * s * bone.skeleton.ScaleX; + pb = -sc * s * bone.skeleton.scaleX; pd = sa * s * bone.skeleton.ScaleY; - rotationIK += (float)Math.Atan2(sc, sa) * MathUtils.RadDeg; + rotationIK += MathUtils.Atan2Deg(sc, sa); goto default; // Fall through. } default: { @@ -194,7 +201,7 @@ namespace Spine { } } - rotationIK += (float)Math.Atan2(ty, tx) * MathUtils.RadDeg; + rotationIK += MathUtils.Atan2Deg(ty, tx); if (bone.ascaleX < 0) rotationIK += 180; if (rotationIK > 180) rotationIK -= 360; @@ -203,18 +210,21 @@ namespace Spine { float sx = bone.ascaleX, sy = bone.ascaleY; if (compress || stretch) { - switch (bone.data.transformMode) { - case TransformMode.NoScale: - case TransformMode.NoScaleOrReflection: + switch (bone.inherit) { + case Inherit.NoScale: + case Inherit.NoScaleOrReflection: tx = targetX - bone.worldX; ty = targetY - bone.worldY; break; } - float b = bone.data.length * sx, dd = (float)Math.Sqrt(tx * tx + ty * ty); - if ((compress && dd < b) || (stretch && dd > b) && b > 0.0001f) { - float s = (dd / b - 1) * alpha + 1; - sx *= s; - if (uniform) sy *= s; + float b = bone.data.length * sx; + if (b > 0.0001f) { + float dd = tx * tx + ty * ty; + if ((compress && dd < b * b) || (stretch && dd > b * b)) { + float s = ((float)Math.Sqrt(dd) / b - 1) * alpha + 1; + sx *= s; + if (uniform) sy *= s; + } } } bone.UpdateWorldTransform(bone.ax, bone.ay, bone.arotation + rotationIK * alpha, sx, sy, bone.ashearX, bone.ashearY); @@ -226,6 +236,7 @@ namespace Spine { float softness, float alpha) { if (parent == null) throw new ArgumentNullException("parent", "parent cannot be null."); if (child == null) throw new ArgumentNullException("child", "child cannot be null."); + if (parent.inherit != Inherit.Normal || child.inherit != Inherit.Normal) return; float px = parent.ax, py = parent.ay, psx = parent.ascaleX, psy = parent.ascaleY, sx = psx, sy = psy, csx = child.ascaleX; int os1, os2, s2; if (psx < 0) { @@ -317,8 +328,9 @@ namespace Spine { q = -(c1 + q) * 0.5f; float r0 = q / c2, r1 = c / q; float r = Math.Abs(r0) < Math.Abs(r1) ? r0 : r1; - if (r * r <= dd) { - y = (float)Math.Sqrt(dd - r * r) * bendDir; + r0 = dd - r * r; + if (r0 >= 0) { + y = (float)Math.Sqrt(r0) * bendDir; a1 = ta - (float)Math.Atan2(y, r); a2 = (float)Math.Atan2(y / psy, (r - l1) / psx); goto break_outer; // break outer; diff --git a/Assets/ThirdParty/Spine/Runtime/spine-csharp/IkConstraintData.cs b/Assets/ThirdParty/Spine/Runtime/spine-csharp/IkConstraintData.cs index 7a7d6a782..86e4b93bf 100644 --- a/Assets/ThirdParty/Spine/Runtime/spine-csharp/IkConstraintData.cs +++ b/Assets/ThirdParty/Spine/Runtime/spine-csharp/IkConstraintData.cs @@ -35,9 +35,9 @@ namespace Spine { public class IkConstraintData : ConstraintData { internal ExposedList bones = new ExposedList(); internal BoneData target; - internal int bendDirection = 1; + internal int bendDirection; internal bool compress, stretch, uniform; - internal float mix = 1, softness; + internal float mix, softness; public IkConstraintData (string name) : base(name) { } diff --git a/Assets/ThirdParty/Spine/Runtime/spine-csharp/MathUtils.cs b/Assets/ThirdParty/Spine/Runtime/spine-csharp/MathUtils.cs index 8c5e951ea..43e2de572 100644 --- a/Assets/ThirdParty/Spine/Runtime/spine-csharp/MathUtils.cs +++ b/Assets/ThirdParty/Spine/Runtime/spine-csharp/MathUtils.cs @@ -35,6 +35,7 @@ namespace Spine { public static class MathUtils { public const float PI = 3.1415927f; public const float PI2 = PI * 2; + public const float InvPI2 = 1 / PI2; public const float RadDeg = 180f / PI; public const float DegRad = PI / 180; @@ -77,6 +78,10 @@ namespace Spine { return sin[(int)((degrees + 90) * DegToIndex) & SIN_MASK]; } + static public float Atan2Deg (float y, float x) { + return Atan2(y, x) * RadDeg; + } + /// Returns atan2 in radians, faster but less accurate than Math.Atan2. Average error of 0.00231 radians (0.1323 /// degrees), largest error of 0.00488 radians (0.2796 degrees). static public float Atan2 (float y, float x) { @@ -115,6 +120,12 @@ namespace Spine { return (float)Math.Cos(degrees * DegRad); } + + static public float Atan2Deg (float y, float x) { + return (float)Math.Atan2(y, x) * RadDeg; + } + + /// Returns the atan2 using Math.Atan2. static public float Atan2 (float y, float x) { return (float)Math.Atan2(y, x); diff --git a/Assets/ThirdParty/Spine/Runtime/spine-csharp/PathConstraint.cs b/Assets/ThirdParty/Spine/Runtime/spine-csharp/PathConstraint.cs index 8ccc4587d..944839510 100644 --- a/Assets/ThirdParty/Spine/Runtime/spine-csharp/PathConstraint.cs +++ b/Assets/ThirdParty/Spine/Runtime/spine-csharp/PathConstraint.cs @@ -30,6 +30,7 @@ using System; namespace Spine { + using Physics = Skeleton.Physics; /// /// @@ -57,10 +58,13 @@ namespace Spine { if (data == null) throw new ArgumentNullException("data", "data cannot be null."); if (skeleton == null) throw new ArgumentNullException("skeleton", "skeleton cannot be null."); this.data = data; + bones = new ExposedList(data.Bones.Count); foreach (BoneData boneData in data.bones) bones.Add(skeleton.bones.Items[boneData.index]); + target = skeleton.slots.Items[data.target.index]; + position = data.position; spacing = data.spacing; mixRotate = data.mixRotate; @@ -69,14 +73,9 @@ namespace Spine { } /// Copy constructor. - public PathConstraint (PathConstraint constraint, Skeleton skeleton) { - if (constraint == null) throw new ArgumentNullException("constraint cannot be null."); - if (skeleton == null) throw new ArgumentNullException("skeleton cannot be null."); - data = constraint.data; - bones = new ExposedList(constraint.bones.Count); - foreach (Bone bone in constraint.bones) - bones.Add(skeleton.bones.Items[bone.data.index]); - target = skeleton.slots.Items[constraint.target.data.index]; + public PathConstraint (PathConstraint constraint, Skeleton skeleton) + : this(constraint.data, skeleton) { + position = constraint.position; spacing = constraint.spacing; mixRotate = constraint.mixRotate; @@ -89,7 +88,16 @@ namespace Spine { a[i] = val; } - public void Update () { + public void SetToSetupPose () { + PathConstraintData data = this.data; + position = data.position; + spacing = data.spacing; + mixRotate = data.mixRotate; + mixX = data.mixX; + mixY = data.mixY; + } + + public void Update (Physics physics) { PathAttachment attachment = target.Attachment as PathAttachment; if (attachment == null) return; @@ -108,12 +116,8 @@ namespace Spine { for (int i = 0, n = spacesCount - 1; i < n; i++) { Bone bone = bonesItems[i]; float setupLength = bone.data.length; - if (setupLength < PathConstraint.Epsilon) - lengths[i] = 0; - else { - float x = setupLength * bone.a, y = setupLength * bone.c; - lengths[i] = (float)Math.Sqrt(x * x + y * y); - } + float x = setupLength * bone.a, y = setupLength * bone.c; + lengths[i] = (float)Math.Sqrt(x * x + y * y); } } ArraysFill(spaces, 1, spacesCount, spacing); diff --git a/Assets/ThirdParty/Spine/Runtime/spine-csharp/PhysicsConstraint.cs b/Assets/ThirdParty/Spine/Runtime/spine-csharp/PhysicsConstraint.cs new file mode 100644 index 000000000..dcb19dacf --- /dev/null +++ b/Assets/ThirdParty/Spine/Runtime/spine-csharp/PhysicsConstraint.cs @@ -0,0 +1,326 @@ + +/****************************************************************************** + * Spine Runtimes License Agreement + * Last updated July 28, 2023. Replaces all prior versions. + * + * Copyright (c) 2013-2023, Esoteric Software LLC + * + * Integration of the Spine Runtimes into software or otherwise creating + * derivative works of the Spine Runtimes is permitted under the terms and + * conditions of Section 2 of the Spine Editor License Agreement: + * http://esotericsoftware.com/spine-editor-license + * + * Otherwise, it is permitted to integrate the Spine Runtimes into software or + * otherwise create derivative works of the Spine Runtimes (collectively, + * "Products"), provided that each user of the Products must obtain their own + * Spine Editor license and redistribution of the Products in any form must + * include this license and copyright notice. + * + * THE SPINE RUNTIMES ARE PROVIDED BY ESOTERIC SOFTWARE LLC "AS IS" AND ANY + * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + * DISCLAIMED. IN NO EVENT SHALL ESOTERIC SOFTWARE LLC BE LIABLE FOR ANY + * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, + * BUSINESS INTERRUPTION, OR LOSS OF USE, DATA, OR PROFITS) HOWEVER CAUSED AND + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THE + * SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + *****************************************************************************/ + +using System; + +namespace Spine { + using Physics = Skeleton.Physics; + + /// + /// Stores the current pose for a physics constraint. A physics constraint applies physics to bones. + /// + /// See Physics constraints in the Spine User Guide. + /// + public class PhysicsConstraint : IUpdatable { + internal readonly PhysicsConstraintData data; + public Bone bone; + internal float inertia, strength, damping, massInverse, wind, gravity, mix; + + bool reset = true; + float ux, uy, cx, cy, tx, ty; + float xOffset, xVelocity; + float yOffset, yVelocity; + float rotateOffset, rotateVelocity; + float scaleOffset, scaleVelocity; + + internal bool active; + + readonly Skeleton skeleton; + float remaining, lastTime; + + public PhysicsConstraint (PhysicsConstraintData data, Skeleton skeleton) { + if (data == null) throw new ArgumentNullException("data", "data cannot be null."); + if (skeleton == null) throw new ArgumentNullException("skeleton", "skeleton cannot be null."); + this.data = data; + this.skeleton = skeleton; + + bone = skeleton.bones.Items[data.bone.index]; + + inertia = data.inertia; + strength = data.strength; + damping = data.damping; + massInverse = data.massInverse; + wind = data.wind; + gravity = data.gravity; + mix = data.mix; + } + + /// Copy constructor. + public PhysicsConstraint (PhysicsConstraint constraint, Skeleton skeleton) + : this(constraint.data, skeleton) { + + inertia = constraint.inertia; + strength = constraint.strength; + damping = constraint.damping; + massInverse = constraint.massInverse; + wind = constraint.wind; + gravity = constraint.gravity; + mix = constraint.mix; + } + + public void Reset () { + remaining = 0; + lastTime = skeleton.time; + reset = true; + xOffset = 0; + xVelocity = 0; + yOffset = 0; + yVelocity = 0; + rotateOffset = 0; + rotateVelocity = 0; + scaleOffset = 0; + scaleVelocity = 0; + } + + public void SetToSetupPose () { + PhysicsConstraintData data = this.data; + inertia = data.inertia; + strength = data.strength; + damping = data.damping; + massInverse = data.massInverse; + wind = data.wind; + gravity = data.gravity; + mix = data.mix; + } + + /// + /// Translates the physics constraint so next forces are applied as if the bone moved an additional + /// amount in world space. + /// + public void Translate (float x, float y) { + ux -= x; + uy -= y; + cx -= x; + cy -= y; + } + + /// + /// Rotates the physics constraint so next forces are applied as if the bone rotated around the + /// specified point in world space. + /// + public void Rotate (float x, float y, float degrees) { + float r = degrees * MathUtils.DegRad, cos = (float)Math.Cos(r), sin = (float)Math.Sin(r); + float dx = cx - x, dy = cy - y; + Translate(dx * cos - dy * sin - dx, dx * sin + dy * cos - dy); + } + + /// Applies the constraint to the constrained bones. + public void Update (Physics physics) { + float mix = this.mix; + if (mix == 0) return; + + bool x = data.x > 0, y = data.y > 0, rotateOrShearX = data.rotate > 0 || data.shearX > 0, scaleX = data.scaleX > 0; + Bone bone = this.bone; + float l = bone.data.length; + + switch (physics) { + case Physics.None: + return; + case Physics.Reset: + Reset(); + goto case Physics.Update; // Fall through. + case Physics.Update: + Skeleton skeleton = this.skeleton; + float delta = Math.Max(skeleton.time - lastTime, 0); + remaining += delta; + lastTime = skeleton.time; + + float bx = bone.worldX, by = bone.worldY; + if (reset) { + reset = false; + ux = bx; + uy = by; + } else { + float a = remaining, i = inertia, t = data.step, f = skeleton.data.referenceScale, d = -1; + float qx = data.limit * delta, qy = qx * Math.Abs(skeleton.ScaleY); + qx *= Math.Abs(skeleton.ScaleX); + + if (x || y) { + if (x) { + float u = (ux - bx) * i; + xOffset += u > qx ? qx : u < -qx ? -qx : u; + ux = bx; + } + if (y) { + float u = (uy - by) * i; + yOffset += u > qy ? qy : u < -qy ? -qy : u; + uy = by; + } + if (a >= t) { + d = (float)Math.Pow(damping, 60 * t); + float m = massInverse * t, e = strength, w = wind * f * skeleton.ScaleX, g = gravity * f * skeleton.ScaleY; + do { + if (x) { + xVelocity += (w - xOffset * e) * m; + xOffset += xVelocity * t; + xVelocity *= d; + } + if (y) { + yVelocity -= (g + yOffset * e) * m; + yOffset += yVelocity * t; + yVelocity *= d; + } + a -= t; + } while (a >= t); + } + if (x) bone.worldX += xOffset * mix * data.x; + if (y) bone.worldY += yOffset * mix * data.y; + } + if (rotateOrShearX || scaleX) { + float ca = (float)Math.Atan2(bone.c, bone.a), c, s, mr = 0; + float dx = cx - bone.worldX, dy = cy - bone.worldY; + if (dx > qx) + dx = qx; + else if (dx < -qx) + dx = -qx; + if (dy > qy) + dy = qy; + else if (dy < -qy) + dy = -qy; + if (rotateOrShearX) { + mr = (data.rotate + data.shearX) * mix; + float r = (float)Math.Atan2(dy + ty, dx + tx) - ca - rotateOffset * mr; + rotateOffset += (r - (float)Math.Ceiling(r * MathUtils.InvPI2 - 0.5f) * MathUtils.PI2) * i; + r = rotateOffset * mr + ca; + c = (float)Math.Cos(r); + s = (float)Math.Sin(r); + if (scaleX) { + r = l * bone.WorldScaleX; + if (r > 0) scaleOffset += (dx * c + dy * s) * i / r; + } + } else { + c = (float)Math.Cos(ca); + s = (float)Math.Sin(ca); + float r = l * bone.WorldScaleX; + if (r > 0) scaleOffset += (dx * c + dy * s) * i / r; + } + a = remaining; + if (a >= t) { + if (d == -1) d = (float)Math.Pow(damping, 60 * t); + float m = massInverse * t, e = strength, w = wind, g = (Bone.yDown ? -gravity : gravity), h = l / f; + while (true) { + a -= t; + if (scaleX) { + scaleVelocity += (w * c - g * s - scaleOffset * e) * m; + scaleOffset += scaleVelocity * t; + scaleVelocity *= d; + } + if (rotateOrShearX) { + rotateVelocity -= ((w * s + g * c) * h + rotateOffset * e) * m; + rotateOffset += rotateVelocity * t; + rotateVelocity *= d; + if (a < t) break; + float r = rotateOffset * mr + ca; + c = (float)Math.Cos(r); + s = (float)Math.Sin(r); + } else if (a < t) // + break; + } + } + } + remaining = a; + } + cx = bone.worldX; + cy = bone.worldY; + break; + case Physics.Pose: + if (x) bone.worldX += xOffset * mix * data.x; + if (y) bone.worldY += yOffset * mix * data.y; + break; + } + + if (rotateOrShearX) { + float o = rotateOffset * mix, s, c, a; + if (data.shearX > 0) { + float r = 0; + if (data.rotate > 0) { + r = o * data.rotate; + s = (float)Math.Sin(r); + c = (float)Math.Cos(r); + a = bone.b; + bone.b = c * a - s * bone.d; + bone.d = s * a + c * bone.d; + } + r += o * data.shearX; + s = (float)Math.Sin(r); + c = (float)Math.Cos(r); + a = bone.a; + bone.a = c * a - s * bone.c; + bone.c = s * a + c * bone.c; + } else { + o *= data.rotate; + s = (float)Math.Sin(o); + c = (float)Math.Cos(o); + a = bone.a; + bone.a = c * a - s * bone.c; + bone.c = s * a + c * bone.c; + a = bone.b; + bone.b = c * a - s * bone.d; + bone.d = s * a + c * bone.d; + } + } + if (scaleX) { + float s = 1 + scaleOffset * mix * data.scaleX; + bone.a *= s; + bone.c *= s; + } + if (physics != Physics.Pose) { + tx = l * bone.a; + ty = l * bone.c; + } + bone.UpdateAppliedTransform(); + } + + /// The bone constrained by this physics constraint. + public Bone Bone { get { return bone; } set { bone = value; } } + public float Inertia { get { return inertia; } set { inertia = value; } } + public float Strength { get { return strength; } set { strength = value; } } + public float Damping { get { return damping; } set { damping = value; } } + public float MassInverse { get { return massInverse; } set { massInverse = value; } } + public float Wind { get { return wind; } set { wind = value; } } + public float Gravity { get { return gravity; } set { gravity = value; } } + /// A percentage (0-1) that controls the mix between the constrained and unconstrained poses. + public float Mix { get { return mix; } set { mix = value; } } + public bool Active { get { return active; } } + + + /// The physics constraint's setup pose data. + public PhysicsConstraintData getData () { + return data; + } + + /// The physics constraint's setup pose data. + public PhysicsConstraintData Data { get { return data; } } + + override public string ToString () { + return data.name; + } + } +} diff --git a/Assets/ThirdParty/Spine/Runtime/spine-csharp/PhysicsConstraint.cs.meta b/Assets/ThirdParty/Spine/Runtime/spine-csharp/PhysicsConstraint.cs.meta new file mode 100644 index 000000000..e06a49dfe --- /dev/null +++ b/Assets/ThirdParty/Spine/Runtime/spine-csharp/PhysicsConstraint.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: e2816491d178b3b4986920107586ce55 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/ThirdParty/Spine/Runtime/spine-csharp/PhysicsConstraintData.cs b/Assets/ThirdParty/Spine/Runtime/spine-csharp/PhysicsConstraintData.cs new file mode 100644 index 000000000..4db8a2185 --- /dev/null +++ b/Assets/ThirdParty/Spine/Runtime/spine-csharp/PhysicsConstraintData.cs @@ -0,0 +1,71 @@ +/****************************************************************************** + * Spine Runtimes License Agreement + * Last updated July 28, 2023. Replaces all prior versions. + * + * Copyright (c) 2013-2023, Esoteric Software LLC + * + * Integration of the Spine Runtimes into software or otherwise creating + * derivative works of the Spine Runtimes is permitted under the terms and + * conditions of Section 2 of the Spine Editor License Agreement: + * http://esotericsoftware.com/spine-editor-license + * + * Otherwise, it is permitted to integrate the Spine Runtimes into software or + * otherwise create derivative works of the Spine Runtimes (collectively, + * "Products"), provided that each user of the Products must obtain their own + * Spine Editor license and redistribution of the Products in any form must + * include this license and copyright notice. + * + * THE SPINE RUNTIMES ARE PROVIDED BY ESOTERIC SOFTWARE LLC "AS IS" AND ANY + * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + * DISCLAIMED. IN NO EVENT SHALL ESOTERIC SOFTWARE LLC BE LIABLE FOR ANY + * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, + * BUSINESS INTERRUPTION, OR LOSS OF USE, DATA, OR PROFITS) HOWEVER CAUSED AND + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THE + * SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + *****************************************************************************/ + +namespace Spine { + /// + /// Stores the setup pose for a . + /// + /// See Physics constraints in the Spine User Guide. + /// + public class PhysicsConstraintData : ConstraintData { + internal BoneData bone; + internal float x, y, rotate, scaleX, shearX, limit; + internal float step, inertia, strength, damping, massInverse, wind, gravity, mix; + internal bool inertiaGlobal, strengthGlobal, dampingGlobal, massGlobal, windGlobal, gravityGlobal, mixGlobal; + + public PhysicsConstraintData (string name) : base(name) { + } + + /// The bone constrained by this physics constraint. + public BoneData Bone { get { return bone; } } + + public float Step { get { return step; } set { step = value; } } + public float X { get { return x; } set { x = value; } } + public float Y { get { return y; } set { y = value; } } + public float Rotate { get { return rotate; } set { rotate = value; } } + public float ScaleX { get { return scaleX; } set { scaleX = value; } } + public float ShearX { get { return shearX; } set { shearX = value; } } + public float Limit { get { return limit; } set { limit = value; } } + public float Inertia { get { return inertia; } set { inertia = value; } } + public float Strength { get { return strength; } set { strength = value; } } + public float Damping { get { return damping; } set { damping = value; } } + public float MassInverse { get { return massInverse; } set { massInverse = value; } } + public float Wind { get { return wind; } set { wind = value; } } + public float Gravity { get { return gravity; } set { gravity = value; } } + /// A percentage (0-1) that controls the mix between the constrained and unconstrained poses. + public float Mix { get { return mix; } set { mix = value; } } + public bool InertiaGlobal { get { return inertiaGlobal; } set { inertiaGlobal = value; } } + public bool StrengthGlobal { get { return strengthGlobal; } set { strengthGlobal = value; } } + public bool DampingGlobal { get { return dampingGlobal; } set { dampingGlobal = value; } } + public bool MassGlobal { get { return massGlobal; } set { massGlobal = value; } } + public bool WindGlobal { get { return windGlobal; } set { windGlobal = value; } } + public bool GravityGlobal { get { return gravityGlobal; } set { gravityGlobal = value; } } + public bool MixGlobal { get { return mixGlobal; } set { mixGlobal = value; } } + } +} diff --git a/Assets/ThirdParty/Spine/Runtime/spine-csharp/PhysicsConstraintData.cs.meta b/Assets/ThirdParty/Spine/Runtime/spine-csharp/PhysicsConstraintData.cs.meta new file mode 100644 index 000000000..d883a6d05 --- /dev/null +++ b/Assets/ThirdParty/Spine/Runtime/spine-csharp/PhysicsConstraintData.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 438688f6194e6dc40953a23d05d48e1a +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/ThirdParty/Spine/Runtime/spine-csharp/Skeleton.cs b/Assets/ThirdParty/Spine/Runtime/spine-csharp/Skeleton.cs index 839294aae..345779bec 100644 --- a/Assets/ThirdParty/Spine/Runtime/spine-csharp/Skeleton.cs +++ b/Assets/ThirdParty/Spine/Runtime/spine-csharp/Skeleton.cs @@ -31,6 +31,7 @@ using System; namespace Spine { public class Skeleton { + static private readonly int[] quadTriangles = { 0, 1, 2, 2, 3, 0 }; internal SkeletonData data; internal ExposedList bones; internal ExposedList slots; @@ -38,21 +39,36 @@ namespace Spine { internal ExposedList ikConstraints; internal ExposedList transformConstraints; internal ExposedList pathConstraints; + internal ExposedList physicsConstraints; internal ExposedList updateCache = new ExposedList(); internal Skin skin; internal float r = 1, g = 1, b = 1, a = 1; - private float scaleX = 1, scaleY = 1; - internal float x, y; + internal float x, y, scaleX = 1, time; + /// Private to enforce usage of ScaleY getter taking Bone.yDown into account. + private float scaleY = 1; + /// The skeleton's setup pose data. public SkeletonData Data { get { return data; } } + /// The skeleton's bones, sorted parent first. The root bone is always the first bone. public ExposedList Bones { get { return bones; } } + /// The list of bones and constraints, sorted in the order they should be updated, + /// as computed by . public ExposedList UpdateCacheList { get { return updateCache; } } + /// The skeleton's slots. public ExposedList Slots { get { return slots; } } + /// The skeleton's slots in the order they should be drawn. + /// The returned array may be modified to change the draw order. public ExposedList DrawOrder { get { return drawOrder; } } + /// The skeleton's IK constraints. public ExposedList IkConstraints { get { return ikConstraints; } } + /// The skeleton's path constraints. public ExposedList PathConstraints { get { return pathConstraints; } } + /// The skeleton's physics constraints. + public ExposedList PhysicsConstraints { get { return physicsConstraints; } } + /// The skeleton's transform constraints. public ExposedList TransformConstraints { get { return transformConstraints; } } + /// The skeleton's current skin. May be null. See public Skin Skin { /// The skeleton's current skin. May be null. get { return skin; } @@ -63,9 +79,21 @@ namespace Spine { public float G { get { return g; } set { g = value; } } public float B { get { return b; } set { b = value; } } public float A { get { return a; } set { a = value; } } + /// The skeleton X position, which is added to the root bone worldX position. + /// + /// Bones that do not inherit translation are still affected by this property. public float X { get { return x; } set { x = value; } } + /// The skeleton Y position, which is added to the root bone worldY position. + /// + /// Bones that do not inherit translation are still affected by this property. public float Y { get { return y; } set { y = value; } } + /// Scales the entire skeleton on the X axis. + /// + /// Bones that do not inherit scale are still affected by this property. public float ScaleX { get { return scaleX; } set { scaleX = value; } } + /// Scales the entire skeleton on the Y axis. + /// + /// Bones that do not inherit scale are still affected by this property. public float ScaleY { get { return scaleY * (Bone.yDown ? -1 : 1); } set { scaleY = value; } } [Obsolete("Use ScaleX instead. FlipX is when ScaleX is negative.")] @@ -73,6 +101,9 @@ namespace Spine { [Obsolete("Use ScaleY instead. FlipY is when ScaleY is negative.")] public bool FlipY { get { return scaleY < 0; } set { scaleY = value ? -1f : 1f; } } + /// Returns the skeleton's time. This is used for time-based manipulations, such as . + /// + public float Time { get { return time; } set { time = value; } } /// Returns the root bone, or null if the skeleton has no bones. public Bone RootBone { @@ -118,6 +149,10 @@ namespace Spine { foreach (PathConstraintData pathConstraintData in data.pathConstraints) pathConstraints.Add(new PathConstraint(pathConstraintData, this)); + physicsConstraints = new ExposedList(data.physicsConstraints.Count); + foreach (PhysicsConstraintData physicsConstraintData in data.physicsConstraints) + physicsConstraints.Add(new PhysicsConstraint(physicsConstraintData, this)); + UpdateCache(); } @@ -153,23 +188,30 @@ namespace Spine { ikConstraints = new ExposedList(skeleton.ikConstraints.Count); foreach (IkConstraint ikConstraint in skeleton.ikConstraints) - ikConstraints.Add(new IkConstraint(ikConstraint, this)); + ikConstraints.Add(new IkConstraint(ikConstraint, skeleton)); transformConstraints = new ExposedList(skeleton.transformConstraints.Count); foreach (TransformConstraint transformConstraint in skeleton.transformConstraints) - transformConstraints.Add(new TransformConstraint(transformConstraint, this)); + transformConstraints.Add(new TransformConstraint(transformConstraint, skeleton)); pathConstraints = new ExposedList(skeleton.pathConstraints.Count); foreach (PathConstraint pathConstraint in skeleton.pathConstraints) - pathConstraints.Add(new PathConstraint(pathConstraint, this)); + pathConstraints.Add(new PathConstraint(pathConstraint, skeleton)); + + physicsConstraints = new ExposedList(skeleton.physicsConstraints.Count); + foreach (PhysicsConstraint physicsConstraint in skeleton.physicsConstraints) + physicsConstraints.Add(new PhysicsConstraint(physicsConstraint, skeleton)); skin = skeleton.skin; r = skeleton.r; g = skeleton.g; b = skeleton.b; a = skeleton.a; + x = skeleton.x; + y = skeleton.y; scaleX = skeleton.scaleX; scaleY = skeleton.scaleY; + time = skeleton.time; UpdateCache(); } @@ -199,11 +241,13 @@ namespace Spine { } } - int ikCount = this.ikConstraints.Count, transformCount = this.transformConstraints.Count, pathCount = this.pathConstraints.Count; + int ikCount = this.ikConstraints.Count, transformCount = this.transformConstraints.Count, pathCount = this.pathConstraints.Count, + physicsCount = this.physicsConstraints.Count; IkConstraint[] ikConstraints = this.ikConstraints.Items; TransformConstraint[] transformConstraints = this.transformConstraints.Items; PathConstraint[] pathConstraints = this.pathConstraints.Items; - int constraintCount = ikCount + transformCount + pathCount; + PhysicsConstraint[] physicsConstraints = this.physicsConstraints.Items; + int constraintCount = ikCount + transformCount + pathCount + physicsCount; for (int i = 0; i < constraintCount; i++) { for (int ii = 0; ii < ikCount; ii++) { IkConstraint constraint = ikConstraints[ii]; @@ -226,6 +270,13 @@ namespace Spine { goto continue_outer; } } + for (int ii = 0; ii < physicsCount; ii++) { + PhysicsConstraint constraint = physicsConstraints[ii]; + if (constraint.data.order == i) { + SortPhysicsConstraint(constraint); + goto continue_outer; + } + } continue_outer: { } } @@ -336,6 +387,20 @@ namespace Spine { } } + private void SortPhysicsConstraint (PhysicsConstraint constraint) { + Bone bone = constraint.bone; + constraint.active = bone.active + && (!constraint.data.skinRequired || (skin != null && skin.constraints.Contains(constraint.data))); + if (!constraint.active) return; + + SortBone(bone); + + updateCache.Add(constraint); + + SortReset(bone.children); + bone.sorted = true; + } + private void SortBone (Bone bone) { if (bone.sorted) return; Bone parent = bone.parent; @@ -360,7 +425,7 @@ namespace Spine { /// See World transforms in the Spine /// Runtimes Guide. /// - public void UpdateWorldTransform () { + public void UpdateWorldTransform (Physics physics) { Bone[] bones = this.bones.Items; for (int i = 0, n = this.bones.Count; i < n; i++) { Bone bone = bones[i]; @@ -375,14 +440,14 @@ namespace Spine { IUpdatable[] updateCache = this.updateCache.Items; for (int i = 0, n = this.updateCache.Count; i < n; i++) - updateCache[i].Update(); + updateCache[i].Update(physics); } /// /// Temporarily sets the root bone as a child of the specified bone, then updates the world transform for each bone and applies /// all constraints. /// - public void UpdateWorldTransform (Bone parent) { + public void UpdateWorldTransform (Physics physics, Bone parent) { if (parent == null) throw new ArgumentNullException("parent", "parent cannot be null."); // Apply the parent bone transform to the root bone. The root bone always inherits scale, rotation and reflection. @@ -391,11 +456,12 @@ namespace Spine { rootBone.worldX = pa * x + pb * y + parent.worldX; rootBone.worldY = pc * x + pd * y + parent.worldY; - float rotationY = rootBone.rotation + 90 + rootBone.shearY; - float la = MathUtils.CosDeg(rootBone.rotation + rootBone.shearX) * rootBone.scaleX; - float lb = MathUtils.CosDeg(rotationY) * rootBone.scaleY; - float lc = MathUtils.SinDeg(rootBone.rotation + rootBone.shearX) * rootBone.scaleX; - float ld = MathUtils.SinDeg(rotationY) * rootBone.scaleY; + float rx = (rootBone.rotation + rootBone.shearX) * MathUtils.DegRad; + float ry = (rootBone.rotation + 90 + rootBone.shearY) * MathUtils.DegRad; + float la = (float)Math.Cos(rx) * rootBone.scaleX; + float lb = (float)Math.Cos(ry) * rootBone.scaleY; + float lc = (float)Math.Sin(rx) * rootBone.scaleX; + float ld = (float)Math.Sin(ry) * rootBone.scaleY; rootBone.a = (pa * la + pb * lc) * scaleX; rootBone.b = (pa * lb + pb * ld) * scaleX; rootBone.c = (pc * la + pd * lc) * scaleY; @@ -405,10 +471,33 @@ namespace Spine { IUpdatable[] updateCache = this.updateCache.Items; for (int i = 0, n = this.updateCache.Count; i < n; i++) { IUpdatable updatable = updateCache[i]; - if (updatable != rootBone) updatable.Update(); + if (updatable != rootBone) updatable.Update(physics); } } + /// + /// Calls for each physics constraint. + /// + public void PhysicsTranslate (float x, float y) { + PhysicsConstraint[] physicsConstraints = this.physicsConstraints.Items; + for (int i = 0, n = this.physicsConstraints.Count; i < n; i++) + physicsConstraints[i].Translate(x, y); + } + + /// + /// Calls for each physics constraint. + /// + public void PhysicsRotate (float x, float y, float degrees) { + PhysicsConstraint[] physicsConstraints = this.physicsConstraints.Items; + for (int i = 0, n = this.physicsConstraints.Count; i < n; i++) + physicsConstraints[i].Rotate(x, y, degrees); + } + + /// Increments the skeleton's . + public void Update (float delta) { + time += delta; + } + /// Sets the bones, constraints, and slots to their setup pose values. public void SetToSetupPose () { SetBonesToSetupPose(); @@ -422,38 +511,20 @@ namespace Spine { bones[i].SetToSetupPose(); IkConstraint[] ikConstraints = this.ikConstraints.Items; - for (int i = 0, n = this.ikConstraints.Count; i < n; i++) { - IkConstraint constraint = ikConstraints[i]; - IkConstraintData data = constraint.data; - constraint.mix = data.mix; - constraint.softness = data.softness; - constraint.bendDirection = data.bendDirection; - constraint.compress = data.compress; - constraint.stretch = data.stretch; - } + for (int i = 0, n = this.ikConstraints.Count; i < n; i++) + ikConstraints[i].SetToSetupPose(); TransformConstraint[] transformConstraints = this.transformConstraints.Items; - for (int i = 0, n = this.transformConstraints.Count; i < n; i++) { - TransformConstraint constraint = transformConstraints[i]; - TransformConstraintData data = constraint.data; - constraint.mixRotate = data.mixRotate; - constraint.mixX = data.mixX; - constraint.mixY = data.mixY; - constraint.mixScaleX = data.mixScaleX; - constraint.mixScaleY = data.mixScaleY; - constraint.mixShearY = data.mixShearY; - } + for (int i = 0, n = this.transformConstraints.Count; i < n; i++) + transformConstraints[i].SetToSetupPose(); PathConstraint[] pathConstraints = this.pathConstraints.Items; - for (int i = 0, n = this.pathConstraints.Count; i < n; i++) { - PathConstraint constraint = pathConstraints[i]; - PathConstraintData data = constraint.data; - constraint.position = data.position; - constraint.spacing = data.spacing; - constraint.mixRotate = data.mixRotate; - constraint.mixX = data.mixX; - constraint.mixY = data.mixY; - } + for (int i = 0, n = this.pathConstraints.Count; i < n; i++) + pathConstraints[i].SetToSetupPose(); + + PhysicsConstraint[] physicsConstraints = this.physicsConstraints.Items; + for (int i = 0, n = this.physicsConstraints.Count; i < n; i++) + physicsConstraints[i].SetToSetupPose(); } public void SetSlotsToSetupPose () { @@ -490,7 +561,7 @@ namespace Spine { return null; } - /// Sets a skin by name (see ). + /// Sets a skin by name (see ). public void SetSkin (string skinName) { Skin foundSkin = data.FindSkin(skinName); if (foundSkin == null) throw new ArgumentException("Skin not found: " + skinName, "skinName"); @@ -607,13 +678,28 @@ namespace Spine { return null; } + /// Finds a physics constraint by comparing each physics constraint's name. It is more efficient to cache the results of this + /// method than to call it repeatedly. + /// May be null. + public PhysicsConstraint FindPhysicsConstraint (String constraintName) { + if (constraintName == null) throw new ArgumentNullException("constraintName", "constraintName cannot be null."); + PhysicsConstraint[] physicsConstraints = this.physicsConstraints.Items; + for (int i = 0, n = this.physicsConstraints.Count; i < n; i++) { + PhysicsConstraint constraint = physicsConstraints[i]; + if (constraint.data.name.Equals(constraintName)) return constraint; + } + return null; + } + /// Returns the axis aligned bounding box (AABB) of the region and mesh attachments for the current pose. /// The horizontal distance between the skeleton origin and the left side of the AABB. /// The vertical distance between the skeleton origin and the bottom side of the AABB. /// The width of the AABB /// The height of the AABB. /// Reference to hold a float[]. May be a null reference. This method will assign it a new float[] with the appropriate size as needed. - public void GetBounds (out float x, out float y, out float width, out float height, ref float[] vertexBuffer) { + public void GetBounds (out float x, out float y, out float width, out float height, ref float[] vertexBuffer, + SkeletonClipping clipper = null) { + float[] temp = vertexBuffer; temp = temp ?? new float[8]; Slot[] drawOrder = this.drawOrder.Items; @@ -623,6 +709,7 @@ namespace Spine { if (!slot.bone.active) continue; int verticesLength = 0; float[] vertices = null; + int[] triangles = null; Attachment attachment = slot.attachment; RegionAttachment region = attachment as RegionAttachment; if (region != null) { @@ -630,6 +717,7 @@ namespace Spine { vertices = temp; if (vertices.Length < 8) vertices = temp = new float[8]; region.ComputeWorldVertices(slot, temp, 0, 2); + triangles = quadTriangles; } else { MeshAttachment mesh = attachment as MeshAttachment; if (mesh != null) { @@ -637,10 +725,23 @@ namespace Spine { vertices = temp; if (vertices.Length < verticesLength) vertices = temp = new float[verticesLength]; mesh.ComputeWorldVertices(slot, 0, verticesLength, temp, 0, 2); + triangles = mesh.Triangles; + } else if (clipper != null) { + ClippingAttachment clip = attachment as ClippingAttachment; + if (clip != null) { + clipper.ClipStart(slot, clip); + continue; + } } } if (vertices != null) { + if (clipper != null && clipper.IsClipping) { + clipper.ClipTriangles(vertices, triangles, triangles.Length); + vertices = clipper.ClippedVertices.Items; + verticesLength = clipper.ClippedVertices.Count; + } + for (int ii = 0; ii < verticesLength; ii += 2) { float vx = vertices[ii], vy = vertices[ii + 1]; minX = Math.Min(minX, vx); @@ -649,12 +750,33 @@ namespace Spine { maxY = Math.Max(maxY, vy); } } + if (clipper != null) clipper.ClipEnd(slot); } + if (clipper != null) clipper.ClipEnd(); x = minX; y = minY; width = maxX - minX; height = maxY - minY; vertexBuffer = temp; } + + override public string ToString () { + return data.name; + } + + /// Determines how physics and other non-deterministic updates are applied. + public enum Physics { + /// Physics are not updated or applied. + None, + + /// Physics are reset to the current pose. + Reset, + + /// Physics are updated and the pose from physics is applied. + Update, + + /// Physics are not updated but the pose from physics is applied. + Pose + } } } diff --git a/Assets/ThirdParty/Spine/Runtime/spine-csharp/SkeletonBinary.cs b/Assets/ThirdParty/Spine/Runtime/spine-csharp/SkeletonBinary.cs index 1687fecd9..bd3de1c9e 100644 --- a/Assets/ThirdParty/Spine/Runtime/spine-csharp/SkeletonBinary.cs +++ b/Assets/ThirdParty/Spine/Runtime/spine-csharp/SkeletonBinary.cs @@ -53,6 +53,7 @@ namespace Spine { public const int BONE_SHEAR = 7; public const int BONE_SHEARX = 8; public const int BONE_SHEARY = 9; + public const int BONE_INHERIT = 10; public const int SLOT_ATTACHMENT = 0; public const int SLOT_RGBA = 1; @@ -68,10 +69,21 @@ namespace Spine { public const int PATH_SPACING = 1; public const int PATH_MIX = 2; + public const int PHYSICS_INERTIA = 0; + public const int PHYSICS_STRENGTH = 1; + public const int PHYSICS_DAMPING = 2; + public const int PHYSICS_MASS = 4; + public const int PHYSICS_WIND = 5; + public const int PHYSICS_GRAVITY = 6; + public const int PHYSICS_MIX = 7; + public const int PHYSICS_RESET = 8; + public const int CURVE_LINEAR = 0; public const int CURVE_STEPPED = 1; public const int CURVE_BEZIER = 2; + private readonly List linkedMeshes = new List(); + public SkeletonBinary (AttachmentLoader attachmentLoader) : base(attachmentLoader) { } @@ -107,14 +119,6 @@ namespace Spine { } #endif // WINDOWS_STOREAPP - public static readonly TransformMode[] TransformModeValues = { - TransformMode.Normal, - TransformMode.OnlyTranslation, - TransformMode.NoRotationOrReflection, - TransformMode.NoScale, - TransformMode.NoScaleOrReflection - }; - /// Returns the version string of binary skeleton data. public static string GetVersionString (Stream file) { if (file == null) throw new ArgumentNullException("file"); @@ -140,6 +144,7 @@ namespace Spine { skeletonData.y = input.ReadFloat(); skeletonData.width = input.ReadFloat(); skeletonData.height = input.ReadFloat(); + skeletonData.referenceScale = input.ReadFloat() * scale; bool nonessential = input.ReadBoolean(); @@ -175,9 +180,13 @@ namespace Spine { data.shearX = input.ReadFloat(); data.shearY = input.ReadFloat(); data.Length = input.ReadFloat() * scale; - data.transformMode = TransformModeValues[input.ReadInt(true)]; + data.inherit = InheritEnum.Values[input.ReadInt(true)]; data.skinRequired = input.ReadBoolean(); - if (nonessential) input.ReadInt(); // Skip bone color. + if (nonessential) { // discard non-essential data + input.ReadInt(); // Color.rgba8888ToColor(data.color, input.readInt()); + input.ReadString(); // data.icon = input.readString(); + input.ReadBoolean(); // data.visible = input.readBoolean(); + } bones[i] = data; } @@ -185,6 +194,7 @@ namespace Spine { SlotData[] slots = skeletonData.slots.Resize(n = input.ReadInt(true)).Items; for (int i = 0; i < n; i++) { String slotName = input.ReadString(); + BoneData boneData = bones[input.ReadInt(true)]; SlotData slotData = new SlotData(i, slotName, boneData); int color = input.ReadInt(); @@ -203,6 +213,9 @@ namespace Spine { slotData.attachmentName = input.ReadStringRef(); slotData.blendMode = (BlendMode)input.ReadInt(true); + if (nonessential) { + input.ReadBoolean(); // data.visible = input.readBoolean(); data.path = path; + } slots[i] = slotData; } @@ -211,17 +224,18 @@ namespace Spine { for (int i = 0, nn; i < n; i++) { IkConstraintData data = new IkConstraintData(input.ReadString()); data.order = input.ReadInt(true); - data.skinRequired = input.ReadBoolean(); BoneData[] constraintBones = data.bones.Resize(nn = input.ReadInt(true)).Items; for (int ii = 0; ii < nn; ii++) constraintBones[ii] = bones[input.ReadInt(true)]; data.target = bones[input.ReadInt(true)]; - data.mix = input.ReadFloat(); - data.softness = input.ReadFloat() * scale; - data.bendDirection = input.ReadSByte(); - data.compress = input.ReadBoolean(); - data.stretch = input.ReadBoolean(); - data.uniform = input.ReadBoolean(); + int flags = input.Read(); + data.skinRequired = (flags & 1) != 0; + data.bendDirection = (flags & 2) != 0 ? 1 : -1; + data.compress = (flags & 4) != 0; + data.stretch = (flags & 8) != 0; + data.uniform = (flags & 16) != 0; + if ((flags & 32) != 0) data.mix = (flags & 64) != 0 ? input.ReadFloat() : 1; + if ((flags & 128) != 0) data.softness = input.ReadFloat() * scale; o[i] = data; } @@ -230,25 +244,27 @@ namespace Spine { for (int i = 0, nn; i < n; i++) { TransformConstraintData data = new TransformConstraintData(input.ReadString()); data.order = input.ReadInt(true); - data.skinRequired = input.ReadBoolean(); BoneData[] constraintBones = data.bones.Resize(nn = input.ReadInt(true)).Items; for (int ii = 0; ii < nn; ii++) constraintBones[ii] = bones[input.ReadInt(true)]; data.target = bones[input.ReadInt(true)]; - data.local = input.ReadBoolean(); - data.relative = input.ReadBoolean(); - data.offsetRotation = input.ReadFloat(); - data.offsetX = input.ReadFloat() * scale; - data.offsetY = input.ReadFloat() * scale; - data.offsetScaleX = input.ReadFloat(); - data.offsetScaleY = input.ReadFloat(); - data.offsetShearY = input.ReadFloat(); - data.mixRotate = input.ReadFloat(); - data.mixX = input.ReadFloat(); - data.mixY = input.ReadFloat(); - data.mixScaleX = input.ReadFloat(); - data.mixScaleY = input.ReadFloat(); - data.mixShearY = input.ReadFloat(); + int flags = input.Read(); + data.skinRequired = (flags & 1) != 0; + data.local = (flags & 2) != 0; + data.relative = (flags & 4) != 0; + if ((flags & 8) != 0) data.offsetRotation = input.ReadFloat(); + if ((flags & 16) != 0) data.offsetX = input.ReadFloat() * scale; + if ((flags & 32) != 0) data.offsetY = input.ReadFloat() * scale; + if ((flags & 64) != 0) data.offsetScaleX = input.ReadFloat(); + if ((flags & 128) != 0) data.offsetScaleY = input.ReadFloat(); + flags = input.Read(); + if ((flags & 1) != 0) data.offsetShearY = input.ReadFloat(); + if ((flags & 2) != 0) data.mixRotate = input.ReadFloat(); + if ((flags & 4) != 0) data.mixX = input.ReadFloat(); + if ((flags & 8) != 0) data.mixY = input.ReadFloat(); + if ((flags & 16) != 0) data.mixScaleX = input.ReadFloat(); + if ((flags & 32) != 0) data.mixScaleY = input.ReadFloat(); + if ((flags & 64) != 0) data.mixShearY = input.ReadFloat(); o[i] = data; } @@ -258,14 +274,16 @@ namespace Spine { PathConstraintData data = new PathConstraintData(input.ReadString()); data.order = input.ReadInt(true); data.skinRequired = input.ReadBoolean(); - Object[] constraintBones = data.bones.Resize(nn = input.ReadInt(true)).Items; + BoneData[] constraintBones = data.bones.Resize(nn = input.ReadInt(true)).Items; for (int ii = 0; ii < nn; ii++) constraintBones[ii] = bones[input.ReadInt(true)]; data.target = slots[input.ReadInt(true)]; - data.positionMode = (PositionMode)Enum.GetValues(typeof(PositionMode)).GetValue(input.ReadInt(true)); - data.spacingMode = (SpacingMode)Enum.GetValues(typeof(SpacingMode)).GetValue(input.ReadInt(true)); - data.rotateMode = (RotateMode)Enum.GetValues(typeof(RotateMode)).GetValue(input.ReadInt(true)); - data.offsetRotation = input.ReadFloat(); + int flags = input.Read(); + data.positionMode = (PositionMode)Enum.GetValues(typeof(PositionMode)).GetValue(flags & 1); + data.spacingMode = (SpacingMode)Enum.GetValues(typeof(SpacingMode)).GetValue((flags >> 1) & 3); + data.rotateMode = (RotateMode)Enum.GetValues(typeof(RotateMode)).GetValue((flags >> 3) & 3); + if ((flags & 128) != 0) data.offsetRotation = input.ReadFloat(); + data.position = input.ReadFloat(); if (data.positionMode == PositionMode.Fixed) data.position *= scale; data.spacing = input.ReadFloat(); @@ -276,6 +294,39 @@ namespace Spine { o[i] = data; } + // Physics constraints. + o = skeletonData.physicsConstraints.Resize(n = input.ReadInt(true)).Items; + for (int i = 0; i < n; i++) { + PhysicsConstraintData data = new PhysicsConstraintData(input.ReadString()); + data.order = input.ReadInt(true); + data.bone = bones[input.ReadInt(true)]; + int flags = input.Read(); + data.skinRequired = (flags & 1) != 0; + if ((flags & 2) != 0) data.x = input.ReadFloat(); + if ((flags & 4) != 0) data.y = input.ReadFloat(); + if ((flags & 8) != 0) data.rotate = input.ReadFloat(); + if ((flags & 16) != 0) data.scaleX = input.ReadFloat(); + if ((flags & 32) != 0) data.shearX = input.ReadFloat(); + data.limit = ((flags & 64) != 0 ? input.ReadFloat() : 5000) * scale; + data.step = 1f / input.ReadUByte(); + data.inertia = input.ReadFloat(); + data.strength = input.ReadFloat(); + data.damping = input.ReadFloat(); + data.massInverse = (flags & 128) != 0 ? input.ReadFloat() : 1; + data.wind = input.ReadFloat(); + data.gravity = input.ReadFloat(); + flags = input.Read(); + if ((flags & 1) != 0) data.inertiaGlobal = true; + if ((flags & 2) != 0) data.strengthGlobal = true; + if ((flags & 4) != 0) data.dampingGlobal = true; + if ((flags & 8) != 0) data.massGlobal = true; + if ((flags & 16) != 0) data.windGlobal = true; + if ((flags & 32) != 0) data.gravityGlobal = true; + if ((flags & 64) != 0) data.mixGlobal = true; + data.mix = (flags & 128) != 0 ? input.ReadFloat() : 1; + o[i] = data; + } + // Default skin. Skin defaultSkin = ReadSkin(input, skeletonData, true, nonessential); if (defaultSkin != null) { @@ -295,8 +346,7 @@ namespace Spine { n = linkedMeshes.Count; for (int i = 0; i < n; i++) { LinkedMesh linkedMesh = linkedMeshes[i]; - Skin skin = linkedMesh.skin == null ? skeletonData.DefaultSkin : skeletonData.FindSkin(linkedMesh.skin); - if (skin == null) throw new Exception("Skin not found: " + linkedMesh.skin); + Skin skin = skeletonData.skins.Items[linkedMesh.skinIndex]; Attachment parent = skin.GetAttachment(linkedMesh.slotIndex, linkedMesh.parent); if (parent == null) throw new Exception("Parent mesh not found: " + linkedMesh.parent); linkedMesh.mesh.TimelineAttachment = linkedMesh.inheritTimelines ? (VertexAttachment)parent : linkedMesh.mesh; @@ -308,7 +358,7 @@ namespace Spine { // Events. o = skeletonData.events.Resize(n = input.ReadInt(true)).Items; for (int i = 0; i < n; i++) { - EventData data = new EventData(input.ReadStringRef()); + EventData data = new EventData(input.ReadString()); data.Int = input.ReadInt(false); data.Float = input.ReadFloat(); data.String = input.ReadString(); @@ -339,7 +389,10 @@ namespace Spine { if (slotCount == 0) return null; skin = new Skin("default"); } else { - skin = new Skin(input.ReadStringRef()); + skin = new Skin(input.ReadString()); + + if (nonessential) input.ReadInt(); // discard, Color.rgba8888ToColor(skin.color, input.readInt()); + Object[] bones = skin.bones.Resize(input.ReadInt(true)).Items; BoneData[] bonesItems = skeletonData.bones.Items; for (int i = 0, n = skin.bones.Count; i < n; i++) @@ -354,6 +407,9 @@ namespace Spine { PathConstraintData[] pathConstraintsItems = skeletonData.pathConstraints.Items; for (int i = 0, n = input.ReadInt(true); i < n; i++) skin.constraints.Add(pathConstraintsItems[input.ReadInt(true)]); + PhysicsConstraintData[] physicsConstraintsItems = skeletonData.physicsConstraints.Items; + for (int i = 0, n = input.ReadInt(true); i < n; i++) + skin.constraints.Add(physicsConstraintsItems[input.ReadInt(true)]); skin.constraints.TrimExcess(); slotCount = input.ReadInt(true); @@ -373,21 +429,21 @@ namespace Spine { String attachmentName, bool nonessential) { float scale = this.scale; - String name = input.ReadStringRef(); - if (name == null) name = attachmentName; + int flags = input.ReadUByte(); + string name = (flags & 8) != 0 ? input.ReadStringRef() : attachmentName; - switch ((AttachmentType)input.ReadByte()) { + switch ((AttachmentType)(flags & 0x7)) { // 0b111 case AttachmentType.Region: { - String path = input.ReadStringRef(); - float rotation = input.ReadFloat(); + string path = (flags & 16) != 0 ? input.ReadStringRef() : null; + uint color = (flags & 32) != 0 ? (uint)input.ReadInt() : 0xffffffff; + Sequence sequence = (flags & 64) != 0 ? ReadSequence(input) : null; + float rotation = (flags & 128) != 0 ? input.ReadFloat() : 0; float x = input.ReadFloat(); float y = input.ReadFloat(); float scaleX = input.ReadFloat(); float scaleY = input.ReadFloat(); float width = input.ReadFloat(); float height = input.ReadFloat(); - int color = input.ReadInt(); - Sequence sequence = ReadSequence(input); if (path == null) path = name; RegionAttachment region = attachmentLoader.NewRegionAttachment(skin, name, path, sequence); @@ -409,36 +465,34 @@ namespace Spine { return region; } case AttachmentType.Boundingbox: { - int vertexCount = input.ReadInt(true); - Vertices vertices = ReadVertices(input, vertexCount); - if (nonessential) input.ReadInt(); //int color = nonessential ? input.ReadInt() : 0; // Avoid unused local warning. + Vertices vertices = ReadVertices(input, (flags & 16) != 0); + if (nonessential) input.ReadInt(); // discard, int color = nonessential ? input.readInt() : 0; BoundingBoxAttachment box = attachmentLoader.NewBoundingBoxAttachment(skin, name); if (box == null) return null; - box.worldVerticesLength = vertexCount << 1; + box.worldVerticesLength = vertices.length; box.vertices = vertices.vertices; box.bones = vertices.bones; // skipped porting: if (nonessential) Color.rgba8888ToColor(box.getColor(), color); return box; } case AttachmentType.Mesh: { - String path = input.ReadStringRef(); - int color = input.ReadInt(); - int vertexCount = input.ReadInt(true); - float[] uvs = ReadFloatArray(input, vertexCount << 1, 1); - int[] triangles = ReadShortArray(input); - Vertices vertices = ReadVertices(input, vertexCount); + string path = (flags & 16) != 0 ? input.ReadStringRef() : name; + uint color = (flags & 32) != 0 ? (uint)input.ReadInt() : 0xffffffff; + Sequence sequence = (flags & 64) != 0 ? ReadSequence(input) : null; int hullLength = input.ReadInt(true); - Sequence sequence = ReadSequence(input); + Vertices vertices = ReadVertices(input, (flags & 128) != 0); + float[] uvs = ReadFloatArray(input, vertices.length, 1); + int[] triangles = ReadShortArray(input, (vertices.length - hullLength - 2) * 3); + int[] edges = null; float width = 0, height = 0; if (nonessential) { - edges = ReadShortArray(input); + edges = ReadShortArray(input, input.ReadInt(true)); width = input.ReadFloat(); height = input.ReadFloat(); } - if (path == null) path = name; MeshAttachment mesh = attachmentLoader.NewMeshAttachment(skin, name, path, sequence); if (mesh == null) return null; mesh.Path = path; @@ -448,7 +502,7 @@ namespace Spine { mesh.a = ((color & 0x000000ff)) / 255f; mesh.bones = vertices.bones; mesh.vertices = vertices.vertices; - mesh.WorldVerticesLength = vertexCount << 1; + mesh.WorldVerticesLength = vertices.length; mesh.triangles = triangles; mesh.regionUVs = uvs; if (sequence == null) mesh.UpdateRegion(); @@ -462,19 +516,18 @@ namespace Spine { return mesh; } case AttachmentType.Linkedmesh: { - String path = input.ReadStringRef(); - int color = input.ReadInt(); - String skinName = input.ReadStringRef(); - String parent = input.ReadStringRef(); - bool inheritTimelines = input.ReadBoolean(); - Sequence sequence = ReadSequence(input); + String path = (flags & 16) != 0 ? input.ReadStringRef() : name; + uint color = (flags & 32) != 0 ? (uint)input.ReadInt() : 0xffffffff; + Sequence sequence = (flags & 64) != 0 ? ReadSequence(input) : null; + bool inheritTimelines = (flags & 128) != 0; + int skinIndex = input.ReadInt(true); + string parent = input.ReadStringRef(); float width = 0, height = 0; if (nonessential) { width = input.ReadFloat(); height = input.ReadFloat(); } - if (path == null) path = name; MeshAttachment mesh = attachmentLoader.NewMeshAttachment(skin, name, path, sequence); if (mesh == null) return null; mesh.Path = path; @@ -487,15 +540,14 @@ namespace Spine { mesh.Width = width * scale; mesh.Height = height * scale; } - linkedMeshes.Add(new SkeletonJson.LinkedMesh(mesh, skinName, slotIndex, parent, inheritTimelines)); + linkedMeshes.Add(new LinkedMesh(mesh, skinIndex, slotIndex, parent, inheritTimelines)); return mesh; } case AttachmentType.Path: { - bool closed = input.ReadBoolean(); - bool constantSpeed = input.ReadBoolean(); - int vertexCount = input.ReadInt(true); - Vertices vertices = ReadVertices(input, vertexCount); - float[] lengths = new float[vertexCount / 3]; + bool closed = (flags & 16) != 0; + bool constantSpeed = (flags & 32) != 0; + Vertices vertices = ReadVertices(input, (flags & 64) != 0); + float[] lengths = new float[vertices.length / 6]; for (int i = 0, n = lengths.Length; i < n; i++) lengths[i] = input.ReadFloat() * scale; if (nonessential) input.ReadInt(); //int color = nonessential ? input.ReadInt() : 0; @@ -504,7 +556,7 @@ namespace Spine { if (path == null) return null; path.closed = closed; path.constantSpeed = constantSpeed; - path.worldVerticesLength = vertexCount << 1; + path.worldVerticesLength = vertices.length; path.vertices = vertices.vertices; path.bones = vertices.bones; path.lengths = lengths; @@ -527,14 +579,13 @@ namespace Spine { } case AttachmentType.Clipping: { int endSlotIndex = input.ReadInt(true); - int vertexCount = input.ReadInt(true); - Vertices vertices = ReadVertices(input, vertexCount); + Vertices vertices = ReadVertices(input, (flags & 16) != 0); if (nonessential) input.ReadInt(); ClippingAttachment clip = attachmentLoader.NewClippingAttachment(skin, name); if (clip == null) return null; clip.EndSlot = skeletonData.slots.Items[endSlotIndex]; - clip.worldVerticesLength = vertexCount << 1; + clip.worldVerticesLength = vertices.length; clip.vertices = vertices.vertices; clip.bones = vertices.bones; // skipped porting: if (nonessential) Color.rgba8888ToColor(clip.getColor(), color); @@ -545,7 +596,6 @@ namespace Spine { } private Sequence ReadSequence (SkeletonInput input) { - if (!input.ReadBoolean()) return null; Sequence sequence = new Sequence(input.ReadInt(true)); sequence.Start = input.ReadInt(true); sequence.Digits = input.ReadInt(true); @@ -553,16 +603,17 @@ namespace Spine { return sequence; } - private Vertices ReadVertices (SkeletonInput input, int vertexCount) { + private Vertices ReadVertices (SkeletonInput input, bool weighted) { float scale = this.scale; - int verticesLength = vertexCount << 1; + int vertexCount = input.ReadInt(true); Vertices vertices = new Vertices(); - if (!input.ReadBoolean()) { - vertices.vertices = ReadFloatArray(input, verticesLength, scale); + vertices.length = vertexCount << 1; + if (!weighted) { + vertices.vertices = ReadFloatArray(input, vertices.length, scale); return vertices; } - ExposedList weights = new ExposedList(verticesLength * 3 * 3); - ExposedList bonesArray = new ExposedList(verticesLength * 3); + ExposedList weights = new ExposedList(vertices.length * 3 * 3); + ExposedList bonesArray = new ExposedList(vertices.length * 3); for (int i = 0; i < vertexCount; i++) { int boneCount = input.ReadInt(true); bonesArray.Add(boneCount); @@ -591,11 +642,10 @@ namespace Spine { return array; } - private int[] ReadShortArray (SkeletonInput input) { - int n = input.ReadInt(true); + private int[] ReadShortArray (SkeletonInput input, int n) { int[] array = new int[n]; for (int i = 0; i < n; i++) - array[i] = (input.ReadByte() << 8) | input.ReadByte(); + array[i] = input.ReadInt(true); return array; } @@ -609,7 +659,7 @@ namespace Spine { for (int i = 0, n = input.ReadInt(true); i < n; i++) { int slotIndex = input.ReadInt(true); for (int ii = 0, nn = input.ReadInt(true); ii < nn; ii++) { - int timelineType = input.ReadByte(), frameCount = input.ReadInt(true), frameLast = frameCount - 1; + int timelineType = input.ReadUByte(), frameCount = input.ReadInt(true), frameLast = frameCount - 1; switch (timelineType) { case SLOT_ATTACHMENT: { AttachmentTimeline timeline = new AttachmentTimeline(frameCount, slotIndex); @@ -629,7 +679,7 @@ namespace Spine { float time2 = input.ReadFloat(); float r2 = input.Read() / 255f, g2 = input.Read() / 255f; float b2 = input.Read() / 255f, a2 = input.Read() / 255f; - switch (input.ReadByte()) { + switch (input.ReadUByte()) { case CURVE_STEPPED: timeline.SetStepped(frame); break; @@ -658,7 +708,7 @@ namespace Spine { if (frame == frameLast) break; float time2 = input.ReadFloat(); float r2 = input.Read() / 255f, g2 = input.Read() / 255f, b2 = input.Read() / 255f; - switch (input.ReadByte()) { + switch (input.ReadUByte()) { case CURVE_STEPPED: timeline.SetStepped(frame); break; @@ -689,7 +739,7 @@ namespace Spine { float nr = input.Read() / 255f, ng = input.Read() / 255f; float nb = input.Read() / 255f, na = input.Read() / 255f; float nr2 = input.Read() / 255f, ng2 = input.Read() / 255f, nb2 = input.Read() / 255f; - switch (input.ReadByte()) { + switch (input.ReadUByte()) { case CURVE_STEPPED: timeline.SetStepped(frame); break; @@ -726,7 +776,7 @@ namespace Spine { float time2 = input.ReadFloat(); float nr = input.Read() / 255f, ng = input.Read() / 255f, nb = input.Read() / 255f; float nr2 = input.Read() / 255f, ng2 = input.Read() / 255f, nb2 = input.Read() / 255f; - switch (input.ReadByte()) { + switch (input.ReadUByte()) { case CURVE_STEPPED: timeline.SetStepped(frame); break; @@ -758,7 +808,7 @@ namespace Spine { if (frame == frameLast) break; float time2 = input.ReadFloat(); float a2 = input.Read() / 255f; - switch (input.ReadByte()) { + switch (input.ReadUByte()) { case CURVE_STEPPED: timeline.SetStepped(frame); break; @@ -780,37 +830,45 @@ namespace Spine { for (int i = 0, n = input.ReadInt(true); i < n; i++) { int boneIndex = input.ReadInt(true); for (int ii = 0, nn = input.ReadInt(true); ii < nn; ii++) { - int type = input.ReadByte(), frameCount = input.ReadInt(true), bezierCount = input.ReadInt(true); + int type = input.ReadUByte(), frameCount = input.ReadInt(true); + if (type == BONE_INHERIT) { + InheritTimeline timeline = new InheritTimeline(frameCount, boneIndex); + for (int frame = 0; frame < frameCount; frame++) + timeline.SetFrame(frame, input.ReadFloat(), InheritEnum.Values[input.ReadUByte()]); + timelines.Add(timeline); + continue; + } + int bezierCount = input.ReadInt(true); switch (type) { case BONE_ROTATE: - timelines.Add(ReadTimeline(input, new RotateTimeline(frameCount, bezierCount, boneIndex), 1)); + ReadTimeline(input, timelines, new RotateTimeline(frameCount, bezierCount, boneIndex), 1); break; case BONE_TRANSLATE: - timelines.Add(ReadTimeline(input, new TranslateTimeline(frameCount, bezierCount, boneIndex), scale)); + ReadTimeline(input, timelines, new TranslateTimeline(frameCount, bezierCount, boneIndex), scale); break; case BONE_TRANSLATEX: - timelines.Add(ReadTimeline(input, new TranslateXTimeline(frameCount, bezierCount, boneIndex), scale)); + ReadTimeline(input, timelines, new TranslateXTimeline(frameCount, bezierCount, boneIndex), scale); break; case BONE_TRANSLATEY: - timelines.Add(ReadTimeline(input, new TranslateYTimeline(frameCount, bezierCount, boneIndex), scale)); + ReadTimeline(input, timelines, new TranslateYTimeline(frameCount, bezierCount, boneIndex), scale); break; case BONE_SCALE: - timelines.Add(ReadTimeline(input, new ScaleTimeline(frameCount, bezierCount, boneIndex), 1)); + ReadTimeline(input, timelines, new ScaleTimeline(frameCount, bezierCount, boneIndex), 1); break; case BONE_SCALEX: - timelines.Add(ReadTimeline(input, new ScaleXTimeline(frameCount, bezierCount, boneIndex), 1)); + ReadTimeline(input, timelines, new ScaleXTimeline(frameCount, bezierCount, boneIndex), 1); break; case BONE_SCALEY: - timelines.Add(ReadTimeline(input, new ScaleYTimeline(frameCount, bezierCount, boneIndex), 1)); + ReadTimeline(input, timelines, new ScaleYTimeline(frameCount, bezierCount, boneIndex), 1); break; case BONE_SHEAR: - timelines.Add(ReadTimeline(input, new ShearTimeline(frameCount, bezierCount, boneIndex), 1)); + ReadTimeline(input, timelines, new ShearTimeline(frameCount, bezierCount, boneIndex), 1); break; case BONE_SHEARX: - timelines.Add(ReadTimeline(input, new ShearXTimeline(frameCount, bezierCount, boneIndex), 1)); + ReadTimeline(input, timelines, new ShearXTimeline(frameCount, bezierCount, boneIndex), 1); break; case BONE_SHEARY: - timelines.Add(ReadTimeline(input, new ShearYTimeline(frameCount, bezierCount, boneIndex), 1)); + ReadTimeline(input, timelines, new ShearYTimeline(frameCount, bezierCount, boneIndex), 1); break; } } @@ -820,19 +878,21 @@ namespace Spine { for (int i = 0, n = input.ReadInt(true); i < n; i++) { int index = input.ReadInt(true), frameCount = input.ReadInt(true), frameLast = frameCount - 1; IkConstraintTimeline timeline = new IkConstraintTimeline(frameCount, input.ReadInt(true), index); - float time = input.ReadFloat(), mix = input.ReadFloat(), softness = input.ReadFloat() * scale; + int flags = input.Read(); + float time = input.ReadFloat(), mix = (flags & 1) != 0 ? ((flags & 2) != 0 ? input.ReadFloat() : 1) : 0; + float softness = (flags & 4) != 0 ? input.ReadFloat() * scale : 0; for (int frame = 0, bezier = 0; ; frame++) { - timeline.SetFrame(frame, time, mix, softness, input.ReadSByte(), input.ReadBoolean(), input.ReadBoolean()); + timeline.SetFrame(frame, time, mix, softness, (flags & 8) != 0 ? 1 : -1, (flags & 16) != 0, (flags & 32) != 0); + if (frame == frameLast) break; - float time2 = input.ReadFloat(), mix2 = input.ReadFloat(), softness2 = input.ReadFloat() * scale; - switch (input.ReadByte()) { - case CURVE_STEPPED: + flags = input.Read(); + float time2 = input.ReadFloat(), mix2 = (flags & 1) != 0 ? ((flags & 2) != 0 ? input.ReadFloat() : 1) : 0; + float softness2 = (flags & 4) != 0 ? input.ReadFloat() * scale : 0; + if ((flags & 64) != 0) timeline.SetStepped(frame); - break; - case CURVE_BEZIER: + else if ((flags & 128) != 0) { SetBezier(input, timeline, bezier++, frame, 0, time, time2, mix, mix2, 1); SetBezier(input, timeline, bezier++, frame, 1, time, time2, softness, softness2, scale); - break; } time = time2; mix = mix2; @@ -852,7 +912,7 @@ namespace Spine { if (frame == frameLast) break; float time2 = input.ReadFloat(), mixRotate2 = input.ReadFloat(), mixX2 = input.ReadFloat(), mixY2 = input.ReadFloat(), mixScaleX2 = input.ReadFloat(), mixScaleY2 = input.ReadFloat(), mixShearY2 = input.ReadFloat(); - switch (input.ReadByte()) { + switch (input.ReadUByte()) { case CURVE_STEPPED: timeline.SetStepped(frame); break; @@ -881,27 +941,25 @@ namespace Spine { int index = input.ReadInt(true); PathConstraintData data = skeletonData.pathConstraints.Items[index]; for (int ii = 0, nn = input.ReadInt(true); ii < nn; ii++) { - switch (input.ReadByte()) { + int type = input.ReadUByte(), frameCount = input.ReadInt(true), bezierCount = input.ReadInt(true); + switch (type) { case PATH_POSITION: - timelines - .Add(ReadTimeline(input, new PathConstraintPositionTimeline(input.ReadInt(true), input.ReadInt(true), index), - data.positionMode == PositionMode.Fixed ? scale : 1)); + ReadTimeline(input, timelines, new PathConstraintPositionTimeline(frameCount, bezierCount, index), + data.positionMode == PositionMode.Fixed ? scale : 1); break; case PATH_SPACING: - timelines - .Add(ReadTimeline(input, new PathConstraintSpacingTimeline(input.ReadInt(true), input.ReadInt(true), index), - data.spacingMode == SpacingMode.Length || data.spacingMode == SpacingMode.Fixed ? scale : 1)); + ReadTimeline(input, timelines, new PathConstraintSpacingTimeline(frameCount, bezierCount, index), + data.spacingMode == SpacingMode.Length || data.spacingMode == SpacingMode.Fixed ? scale : 1); break; case PATH_MIX: - PathConstraintMixTimeline timeline = new PathConstraintMixTimeline(input.ReadInt(true), input.ReadInt(true), - index); + PathConstraintMixTimeline timeline = new PathConstraintMixTimeline(frameCount, bezierCount, index); float time = input.ReadFloat(), mixRotate = input.ReadFloat(), mixX = input.ReadFloat(), mixY = input.ReadFloat(); for (int frame = 0, bezier = 0, frameLast = timeline.FrameCount - 1; ; frame++) { timeline.SetFrame(frame, time, mixRotate, mixX, mixY); if (frame == frameLast) break; float time2 = input.ReadFloat(), mixRotate2 = input.ReadFloat(), mixX2 = input.ReadFloat(), mixY2 = input.ReadFloat(); - switch (input.ReadByte()) { + switch (input.ReadUByte()) { case CURVE_STEPPED: timeline.SetStepped(frame); break; @@ -922,6 +980,45 @@ namespace Spine { } } + // Physics timelines. + for (int i = 0, n = input.ReadInt(true); i < n; i++) { + int index = input.ReadInt(true) - 1; + for (int ii = 0, nn = input.ReadInt(true); ii < nn; ii++) { + int type = input.ReadUByte(), frameCount = input.ReadInt(true); + if (type == PHYSICS_RESET) { + PhysicsConstraintResetTimeline timeline = new PhysicsConstraintResetTimeline(frameCount, index); + for (int frame = 0; frame < frameCount; frame++) + timeline.SetFrame(frame, input.ReadFloat()); + timelines.Add(timeline); + continue; + } + int bezierCount = input.ReadInt(true); + switch (type) { + case PHYSICS_INERTIA: + ReadTimeline(input, timelines, new PhysicsConstraintInertiaTimeline(frameCount, bezierCount, index), 1); + break; + case PHYSICS_STRENGTH: + ReadTimeline(input, timelines, new PhysicsConstraintStrengthTimeline(frameCount, bezierCount, index), 1); + break; + case PHYSICS_DAMPING: + ReadTimeline(input, timelines, new PhysicsConstraintDampingTimeline(frameCount, bezierCount, index), 1); + break; + case PHYSICS_MASS: + ReadTimeline(input, timelines, new PhysicsConstraintMassTimeline(frameCount, bezierCount, index), 1); + break; + case PHYSICS_WIND: + ReadTimeline(input, timelines, new PhysicsConstraintWindTimeline(frameCount, bezierCount, index), 1); + break; + case PHYSICS_GRAVITY: + ReadTimeline(input, timelines, new PhysicsConstraintGravityTimeline(frameCount, bezierCount, index), 1); + break; + case PHYSICS_MIX: + ReadTimeline(input, timelines, new PhysicsConstraintMixTimeline(frameCount, bezierCount, index), 1); + break; + } + } + } + // Attachment timelines. for (int i = 0, n = input.ReadInt(true); i < n; i++) { Skin skin = skeletonData.skins.Items[input.ReadInt(true)]; @@ -932,7 +1029,7 @@ namespace Spine { Attachment attachment = skin.GetAttachment(slotIndex, attachmentName); if (attachment == null) throw new SerializationException("Timeline attachment not found: " + attachmentName); - int timelineType = input.ReadByte(), frameCount = input.ReadInt(true), frameLast = frameCount - 1; + int timelineType = input.ReadUByte(), frameCount = input.ReadInt(true), frameLast = frameCount - 1; switch (timelineType) { case ATTACHMENT_DEFORM: { VertexAttachment vertexAttachment = (VertexAttachment)attachment; @@ -967,7 +1064,7 @@ namespace Spine { timeline.SetFrame(frame, time, deform); if (frame == frameLast) break; float time2 = input.ReadFloat(); - switch (input.ReadByte()) { + switch (input.ReadUByte()) { case CURVE_STEPPED: timeline.SetStepped(frame); break; @@ -1038,7 +1135,8 @@ namespace Spine { Event e = new Event(time, eventData); e.intValue = input.ReadInt(false); e.floatValue = input.ReadFloat(); - e.stringValue = input.ReadBoolean() ? input.ReadString() : eventData.String; + e.stringValue = input.ReadString(); + if (e.stringValue == null) e.stringValue = eventData.String; if (e.Data.AudioPath != null) { e.volume = input.ReadFloat(); e.balance = input.ReadFloat(); @@ -1056,13 +1154,13 @@ namespace Spine { } /// Throws IOException when a read operation fails. - private Timeline ReadTimeline (SkeletonInput input, CurveTimeline1 timeline, float scale) { + private void ReadTimeline (SkeletonInput input, ExposedList timelines, CurveTimeline1 timeline, float scale) { float time = input.ReadFloat(), value = input.ReadFloat() * scale; for (int frame = 0, bezier = 0, frameLast = timeline.FrameCount - 1; ; frame++) { timeline.SetFrame(frame, time, value); if (frame == frameLast) break; float time2 = input.ReadFloat(), value2 = input.ReadFloat() * scale; - switch (input.ReadByte()) { + switch (input.ReadUByte()) { case CURVE_STEPPED: timeline.SetStepped(frame); break; @@ -1073,17 +1171,17 @@ namespace Spine { time = time2; value = value2; } - return timeline; + timelines.Add(timeline); } /// Throws IOException when a read operation fails. - private Timeline ReadTimeline (SkeletonInput input, CurveTimeline2 timeline, float scale) { + private void ReadTimeline (SkeletonInput input, ExposedList timelines, CurveTimeline2 timeline, float scale) { float time = input.ReadFloat(), value1 = input.ReadFloat() * scale, value2 = input.ReadFloat() * scale; for (int frame = 0, bezier = 0, frameLast = timeline.FrameCount - 1; ; frame++) { timeline.SetFrame(frame, time, value1, value2); if (frame == frameLast) break; float time2 = input.ReadFloat(), nvalue1 = input.ReadFloat() * scale, nvalue2 = input.ReadFloat() * scale; - switch (input.ReadByte()) { + switch (input.ReadUByte()) { case CURVE_STEPPED: timeline.SetStepped(frame); break; @@ -1096,7 +1194,7 @@ namespace Spine { value1 = nvalue1; value2 = nvalue2; } - return timeline; + timelines.Add(timeline); } /// Throws IOException when a read operation fails. @@ -1107,6 +1205,7 @@ namespace Spine { } internal class Vertices { + public int length; public int[] bones; public float[] vertices; } @@ -1125,10 +1224,14 @@ namespace Spine { return input.ReadByte(); } - public byte ReadByte () { + /// Explicit unsigned byte variant to prevent pitfalls porting Java reference implementation + /// where byte is signed vs C# where byte is unsigned. + public byte ReadUByte () { return (byte)input.ReadByte(); } + /// Explicit signed byte variant to prevent pitfalls porting Java reference implementation + /// where byte is signed vs C# where byte is unsigned. public sbyte ReadSByte () { int value = input.ReadByte(); if (value == -1) throw new EndOfStreamException(); @@ -1202,7 +1305,7 @@ namespace Spine { return System.Text.Encoding.UTF8.GetString(buffer, 0, byteCount); } - ///May be null. + /// May be null. public String ReadStringRef () { int index = ReadInt(true); return index == 0 ? null : strings[index - 1]; @@ -1257,5 +1360,20 @@ namespace Spine { throw new ArgumentException("Stream does not contain valid binary Skeleton Data."); } } + + private class LinkedMesh { + internal string parent; + internal int skinIndex, slotIndex; + internal MeshAttachment mesh; + internal bool inheritTimelines; + + public LinkedMesh (MeshAttachment mesh, int skinIndex, int slotIndex, string parent, bool inheritTimelines) { + this.mesh = mesh; + this.skinIndex = skinIndex; + this.slotIndex = slotIndex; + this.parent = parent; + this.inheritTimelines = inheritTimelines; + } + } } } diff --git a/Assets/ThirdParty/Spine/Runtime/spine-csharp/SkeletonClipping.cs b/Assets/ThirdParty/Spine/Runtime/spine-csharp/SkeletonClipping.cs index b76c1c91b..72fd00cb8 100644 --- a/Assets/ThirdParty/Spine/Runtime/spine-csharp/SkeletonClipping.cs +++ b/Assets/ThirdParty/Spine/Runtime/spine-csharp/SkeletonClipping.cs @@ -78,7 +78,71 @@ namespace Spine { clippingPolygon.Clear(); } - public void ClipTriangles (float[] vertices, int verticesLength, int[] triangles, int trianglesLength, float[] uvs) { + public void ClipTriangles (float[] vertices, int[] triangles, int trianglesLength) { + ExposedList clipOutput = this.clipOutput, clippedVertices = this.clippedVertices; + ExposedList clippedTriangles = this.clippedTriangles; + ExposedList[] polygons = clippingPolygons.Items; + int polygonsCount = clippingPolygons.Count; + + int index = 0; + clippedVertices.Clear(); + clippedTriangles.Clear(); + for (int i = 0; i < trianglesLength; i += 3) { + int vertexOffset = triangles[i] << 1; + float x1 = vertices[vertexOffset], y1 = vertices[vertexOffset + 1]; + + vertexOffset = triangles[i + 1] << 1; + float x2 = vertices[vertexOffset], y2 = vertices[vertexOffset + 1]; + + vertexOffset = triangles[i + 2] << 1; + float x3 = vertices[vertexOffset], y3 = vertices[vertexOffset + 1]; + + for (int p = 0; p < polygonsCount; p++) { + int s = clippedVertices.Count; + if (Clip(x1, y1, x2, y2, x3, y3, polygons[p], clipOutput)) { + int clipOutputLength = clipOutput.Count; + if (clipOutputLength == 0) continue; + + int clipOutputCount = clipOutputLength >> 1; + float[] clipOutputItems = clipOutput.Items; + float[] clippedVerticesItems = clippedVertices.Resize(s + clipOutputCount * 2).Items; + for (int ii = 0; ii < clipOutputLength; ii += 2, s += 2) { + float x = clipOutputItems[ii], y = clipOutputItems[ii + 1]; + clippedVerticesItems[s] = x; + clippedVerticesItems[s + 1] = y; + } + + s = clippedTriangles.Count; + int[] clippedTrianglesItems = clippedTriangles.Resize(s + 3 * (clipOutputCount - 2)).Items; + clipOutputCount--; + for (int ii = 1; ii < clipOutputCount; ii++, s += 3) { + clippedTrianglesItems[s] = index; + clippedTrianglesItems[s + 1] = index + ii; + clippedTrianglesItems[s + 2] = index + ii + 1; + } + index += clipOutputCount + 1; + } else { + float[] clippedVerticesItems = clippedVertices.Resize(s + 3 * 2).Items; + clippedVerticesItems[s] = x1; + clippedVerticesItems[s + 1] = y1; + clippedVerticesItems[s + 2] = x2; + clippedVerticesItems[s + 3] = y2; + clippedVerticesItems[s + 4] = x3; + clippedVerticesItems[s + 5] = y3; + + s = clippedTriangles.Count; + int[] clippedTrianglesItems = clippedTriangles.Resize(s + 3).Items; + clippedTrianglesItems[s] = index; + clippedTrianglesItems[s + 1] = index + 1; + clippedTrianglesItems[s + 2] = index + 2; + index += 3; + break; + } + } + } + } + + public void ClipTriangles (float[] vertices, int[] triangles, int trianglesLength, float[] uvs) { ExposedList clipOutput = this.clipOutput, clippedVertices = this.clippedVertices; ExposedList clippedTriangles = this.clippedTriangles; ExposedList[] polygons = clippingPolygons.Items; @@ -88,7 +152,7 @@ namespace Spine { clippedVertices.Clear(); clippedUVs.Clear(); clippedTriangles.Clear(); - //outer: + for (int i = 0; i < trianglesLength; i += 3) { int vertexOffset = triangles[i] << 1; float x1 = vertices[vertexOffset], y1 = vertices[vertexOffset + 1]; @@ -114,7 +178,7 @@ namespace Spine { float[] clipOutputItems = clipOutput.Items; float[] clippedVerticesItems = clippedVertices.Resize(s + clipOutputCount * 2).Items; float[] clippedUVsItems = clippedUVs.Resize(s + clipOutputCount * 2).Items; - for (int ii = 0; ii < clipOutputLength; ii += 2) { + for (int ii = 0; ii < clipOutputLength; ii += 2, s += 2) { float x = clipOutputItems[ii], y = clipOutputItems[ii + 1]; clippedVerticesItems[s] = x; clippedVerticesItems[s + 1] = y; @@ -124,17 +188,15 @@ namespace Spine { float c = 1 - a - b; clippedUVsItems[s] = u1 * a + u2 * b + u3 * c; clippedUVsItems[s + 1] = v1 * a + v2 * b + v3 * c; - s += 2; } s = clippedTriangles.Count; int[] clippedTrianglesItems = clippedTriangles.Resize(s + 3 * (clipOutputCount - 2)).Items; clipOutputCount--; - for (int ii = 1; ii < clipOutputCount; ii++) { + for (int ii = 1; ii < clipOutputCount; ii++, s += 3) { clippedTrianglesItems[s] = index; clippedTrianglesItems[s + 1] = index + ii; clippedTrianglesItems[s + 2] = index + ii + 1; - s += 3; } index += clipOutputCount + 1; } else { @@ -160,15 +222,14 @@ namespace Spine { clippedTrianglesItems[s + 1] = index + 1; clippedTrianglesItems[s + 2] = index + 2; index += 3; - break; //continue outer; + break; } } } - } - /** Clips the input triangle against the convex, clockwise clipping area. If the triangle lies entirely within the clipping - * area, false is returned. The clipping area must duplicate the first vertex at the end of the vertices list. */ + ///Clips the input triangle against the convex, clockwise clipping area. If the triangle lies entirely within the clipping + /// area, false is returned. The clipping area must duplicate the first vertex at the end of the vertices list. internal bool Clip (float x1, float y1, float x2, float y2, float x3, float y3, ExposedList clippingArea, ExposedList output) { ExposedList originalOutput = output; bool clipped = false; @@ -193,49 +254,49 @@ namespace Spine { input.Add(y1); output.Clear(); - float[] clippingVertices = clippingArea.Items; int clippingVerticesLast = clippingArea.Count - 4; + float[] clippingVertices = clippingArea.Items; for (int i = 0; ; i += 2) { float edgeX = clippingVertices[i], edgeY = clippingVertices[i + 1]; - float edgeX2 = clippingVertices[i + 2], edgeY2 = clippingVertices[i + 3]; - float deltaX = edgeX - edgeX2, deltaY = edgeY - edgeY2; + float ex = edgeX - clippingVertices[i + 2], ey = edgeY - clippingVertices[i + 3]; + int outputStart = output.Count; float[] inputVertices = input.Items; - int inputVerticesLength = input.Count - 2, outputStart = output.Count; - for (int ii = 0; ii < inputVerticesLength; ii += 2) { + for (int ii = 0, nn = input.Count - 2; ii < nn;) { + float inputX = inputVertices[ii], inputY = inputVertices[ii + 1]; - float inputX2 = inputVertices[ii + 2], inputY2 = inputVertices[ii + 3]; - bool side2 = deltaX * (inputY2 - edgeY2) - deltaY * (inputX2 - edgeX2) > 0; - if (deltaX * (inputY - edgeY2) - deltaY * (inputX - edgeX2) > 0) { - if (side2) { // v1 inside, v2 inside + ii += 2; + float inputX2 = inputVertices[ii], inputY2 = inputVertices[ii + 1]; + bool s2 = ey * (edgeX - inputX2) > ex * (edgeY - inputY2); + float s1 = ey * (edgeX - inputX) - ex * (edgeY - inputY); + if (s1 > 0) { + if (s2) { // v1 inside, v2 inside output.Add(inputX2); output.Add(inputY2); continue; } // v1 inside, v2 outside - float c0 = inputY2 - inputY, c2 = inputX2 - inputX; - float s = c0 * (edgeX2 - edgeX) - c2 * (edgeY2 - edgeY); - if (Math.Abs(s) > 0.000001f) { - float ua = (c2 * (edgeY - inputY) - c0 * (edgeX - inputX)) / s; - output.Add(edgeX + (edgeX2 - edgeX) * ua); - output.Add(edgeY + (edgeY2 - edgeY) * ua); + float ix = inputX2 - inputX, iy = inputY2 - inputY, t = s1 / (ix * ey - iy * ex); + if (t >= 0 && t <= 1) { + output.Add(inputX + ix * t); + output.Add(inputY + iy * t); } else { - output.Add(edgeX); - output.Add(edgeY); + output.Add(inputX2); + output.Add(inputY2); + continue; } - } else if (side2) { // v1 outside, v2 inside - float c0 = inputY2 - inputY, c2 = inputX2 - inputX; - float s = c0 * (edgeX2 - edgeX) - c2 * (edgeY2 - edgeY); - if (Math.Abs(s) > 0.000001f) { - float ua = (c2 * (edgeY - inputY) - c0 * (edgeX - inputX)) / s; - output.Add(edgeX + (edgeX2 - edgeX) * ua); - output.Add(edgeY + (edgeY2 - edgeY) * ua); + } else if (s2) { // v1 outside, v2 inside + float ix = inputX2 - inputX, iy = inputY2 - inputY, t = s1 / (ix * ey - iy * ex); + if (t >= 0 && t <= 1) { + output.Add(inputX + ix * t); + output.Add(inputY + iy * t); + output.Add(inputX2); + output.Add(inputY2); } else { - output.Add(edgeX); - output.Add(edgeY); + output.Add(inputX2); + output.Add(inputY2); + continue; } - output.Add(inputX2); - output.Add(inputY2); } clipped = true; } diff --git a/Assets/ThirdParty/Spine/Runtime/spine-csharp/SkeletonData.cs b/Assets/ThirdParty/Spine/Runtime/spine-csharp/SkeletonData.cs index ea1ac4304..f57d2ea08 100644 --- a/Assets/ThirdParty/Spine/Runtime/spine-csharp/SkeletonData.cs +++ b/Assets/ThirdParty/Spine/Runtime/spine-csharp/SkeletonData.cs @@ -43,20 +43,22 @@ namespace Spine { internal ExposedList ikConstraints = new ExposedList(); internal ExposedList transformConstraints = new ExposedList(); internal ExposedList pathConstraints = new ExposedList(); - internal float x, y, width, height; + internal ExposedList physicsConstraints = new ExposedList(); + internal float x, y, width, height, referenceScale = 100; internal string version, hash; // Nonessential. internal float fps; internal string imagesPath, audioPath; - ///The skeleton's name, which by default is the name of the skeleton data file when possible, or null when a name hasn't been - ///set. + /// The skeleton's name, which by default is the name of the skeleton data file when possible, or null when a name hasn't been + /// set. public string Name { get { return name; } set { name = value; } } /// The skeleton's bones, sorted parent first. The root bone is always the first bone. public ExposedList Bones { get { return bones; } } + /// The skeleton's slots in the setup pose draw order. public ExposedList Slots { get { return slots; } } /// All skins, including the default skin. @@ -69,21 +71,33 @@ namespace Spine { /// May be null. public Skin DefaultSkin { get { return defaultSkin; } set { defaultSkin = value; } } + /// The skeleton's events. public ExposedList Events { get { return events; } set { events = value; } } + /// The skeleton's animations. public ExposedList Animations { get { return animations; } set { animations = value; } } + /// The skeleton's IK constraints. public ExposedList IkConstraints { get { return ikConstraints; } set { ikConstraints = value; } } + /// The skeleton's transform constraints. public ExposedList TransformConstraints { get { return transformConstraints; } set { transformConstraints = value; } } + /// The skeleton's path constraints. public ExposedList PathConstraints { get { return pathConstraints; } set { pathConstraints = value; } } + /// The skeleton's physics constraints. + public ExposedList PhysicsConstraints { get { return physicsConstraints; } set { physicsConstraints = value; } } public float X { get { return x; } set { x = value; } } public float Y { get { return y; } set { y = value; } } public float Width { get { return width; } set { width = value; } } public float Height { get { return height; } set { height = value; } } + + /// Baseline scale factor for applying distance-dependent effects on non-scalable properties, such as angle or scale. Default + /// is 100. + public float ReferenceScale { get { return referenceScale; } set { referenceScale = value; } } + /// The Spine version used to export this data, or null. public string Version { get { return version; } set { version = value; } } - ///The skeleton data hash. This value will change if any of the skeleton data has changed. - ///May be null. + /// The skeleton data hash. This value will change if any of the skeleton data has changed. + /// May be null. public string Hash { get { return hash; } set { hash = value; } } public string ImagesPath { get { return imagesPath; } set { imagesPath = value; } } @@ -200,6 +214,23 @@ namespace Spine { return null; } + // --- Physics constraints + + /// + /// Finds a physics constraint by comparing each physics constraint's name. It is more efficient to cache the results of this + /// method than to call it multiple times. + /// + /// May be null. + public PhysicsConstraintData FindPhysicsConstraint (String constraintName) { + if (constraintName == null) throw new ArgumentNullException("constraintName", "constraintName cannot be null."); + PhysicsConstraintData[] physicsConstraints = this.physicsConstraints.Items; + for (int i = 0, n = this.physicsConstraints.Count; i < n; i++) { + PhysicsConstraintData constraint = (PhysicsConstraintData)physicsConstraints[i]; + if (constraint.name.Equals(constraintName)) return constraint; + } + return null; + } + // --- override public string ToString () { diff --git a/Assets/ThirdParty/Spine/Runtime/spine-csharp/SkeletonJson.cs b/Assets/ThirdParty/Spine/Runtime/spine-csharp/SkeletonJson.cs index 6519968e4..d992d5ebf 100644 --- a/Assets/ThirdParty/Spine/Runtime/spine-csharp/SkeletonJson.cs +++ b/Assets/ThirdParty/Spine/Runtime/spine-csharp/SkeletonJson.cs @@ -52,6 +52,7 @@ namespace Spine { /// Runtimes Guide. /// public class SkeletonJson : SkeletonLoader { + private readonly List linkedMeshes = new List(); public SkeletonJson (AttachmentLoader attachmentLoader) : base(attachmentLoader) { @@ -107,6 +108,7 @@ namespace Spine { skeletonData.y = GetFloat(skeletonMap, "y", 0); skeletonData.width = GetFloat(skeletonMap, "width", 0); skeletonData.height = GetFloat(skeletonMap, "height", 0); + skeletonData.referenceScale = GetFloat(skeletonMap, "referenceScale", 100) * scale; skeletonData.fps = GetFloat(skeletonMap, "fps", 30); skeletonData.imagesPath = GetString(skeletonMap, "images", null); skeletonData.audioPath = GetString(skeletonMap, "audio", null); @@ -131,8 +133,8 @@ namespace Spine { data.shearX = GetFloat(boneMap, "shearX", 0); data.shearY = GetFloat(boneMap, "shearY", 0); - string tm = GetString(boneMap, "transform", TransformMode.Normal.ToString()); - data.transformMode = (TransformMode)Enum.Parse(typeof(TransformMode), tm, true); + string inheritString = GetString(boneMap, "inherit", Inherit.Normal.ToString()); + data.inherit = (Inherit)Enum.Parse(typeof(Inherit), inheritString, true); data.skinRequired = GetBoolean(boneMap, "skin", false); skeletonData.bones.Add(data); @@ -169,6 +171,7 @@ namespace Spine { data.blendMode = (BlendMode)Enum.Parse(typeof(BlendMode), (string)slotMap["blend"], true); else data.blendMode = BlendMode.Normal; + //data.visible = slotMap.getBoolean("visible", true); skeletonData.slots.Add(data); } } @@ -277,6 +280,43 @@ namespace Spine { } } + // Physics constraints. + if (root.ContainsKey("physics")) { + foreach (Dictionary constraintMap in (List)root["physics"]) { + PhysicsConstraintData data = new PhysicsConstraintData((string)constraintMap["name"]); + data.order = GetInt(constraintMap, "order", 0); + data.skinRequired = GetBoolean(constraintMap, "skin", false); + + string boneName = (string)constraintMap["bone"]; + data.bone = skeletonData.FindBone(boneName); + if (data.bone == null) throw new Exception("Physics bone not found: " + boneName); + + data.x = GetFloat(constraintMap, "x", 0); + data.y = GetFloat(constraintMap, "y", 0); + data.rotate = GetFloat(constraintMap, "rotate", 0); + data.scaleX = GetFloat(constraintMap, "scaleX", 0); + data.shearX = GetFloat(constraintMap, "shearX", 0); + data.limit = GetFloat(constraintMap, "limit", 5000) * scale; + data.step = 1f / GetInt(constraintMap, "fps", 60); + data.inertia = GetFloat(constraintMap, "inertia", 1); + data.strength = GetFloat(constraintMap, "strength", 100); + data.damping = GetFloat(constraintMap, "damping", 1); + data.massInverse = 1f / GetFloat(constraintMap, "mass", 1); + data.wind = GetFloat(constraintMap, "wind", 0); + data.gravity = GetFloat(constraintMap, "gravity", 0); + data.mix = GetFloat(constraintMap, "mix", 1); + data.inertiaGlobal = GetBoolean(constraintMap, "inertiaGlobal", false); + data.strengthGlobal = GetBoolean(constraintMap, "strengthGlobal", false); + data.dampingGlobal = GetBoolean(constraintMap, "dampingGlobal", false); + data.massGlobal = GetBoolean(constraintMap, "massGlobal", false); + data.windGlobal = GetBoolean(constraintMap, "windGlobal", false); + data.gravityGlobal = GetBoolean(constraintMap, "gravityGlobal", false); + data.mixGlobal = GetBoolean(constraintMap, "mixGlobal", false); + + skeletonData.physicsConstraints.Add(data); + } + } + // Skins. if (root.ContainsKey("skins")) { foreach (Dictionary skinMap in (List)root["skins"]) { @@ -310,6 +350,13 @@ namespace Spine { skin.constraints.Add(constraint); } } + if (skinMap.ContainsKey("physics")) { + foreach (string entryName in (List)skinMap["physics"]) { + PhysicsConstraintData constraint = skeletonData.FindPhysicsConstraint(entryName); + if (constraint == null) throw new Exception("Skin physics constraint not found: " + entryName); + skin.constraints.Add(constraint); + } + } skin.constraints.TrimExcess(); if (skinMap.ContainsKey("attachments")) { foreach (KeyValuePair slotEntry in (Dictionary)skinMap["attachments"]) { @@ -820,7 +867,19 @@ namespace Spine { timelines.Add(ReadTimeline(ref keyMapEnumerator, new ShearXTimeline(frames, frames, boneIndex), 0, 1)); else if (timelineName == "sheary") timelines.Add(ReadTimeline(ref keyMapEnumerator, new ShearYTimeline(frames, frames, boneIndex), 0, 1)); - else + else if (timelineName == "inherit") { + InheritTimeline timeline = new InheritTimeline(frames, boneIndex); + for (int frame = 0; ; frame++) { + Dictionary keyMap = (Dictionary)keyMapEnumerator.Current; + float time = GetFloat(keyMap, "time", 0); + Inherit inherit = (Inherit)Enum.Parse(typeof(Inherit), GetString(keyMap, "inherit", Inherit.Normal.ToString()), true); + timeline.SetFrame(frame, time, inherit); + if (!keyMapEnumerator.MoveNext()) { + break; + } + } + timelines.Add(timeline); + } else throw new Exception("Invalid timeline type for a bone: " + timelineName + " (" + boneName + ")"); } } @@ -964,6 +1023,55 @@ namespace Spine { } } + // Physics constraint timelines. + if (map.ContainsKey("physics")) { + foreach (KeyValuePair constraintMap in (Dictionary)map["physics"]) { + int index = -1; + if (!string.IsNullOrEmpty(constraintMap.Key)) { + PhysicsConstraintData constraint = skeletonData.FindPhysicsConstraint(constraintMap.Key); + if (constraint == null) throw new Exception("Physics constraint not found: " + constraintMap.Key); + index = skeletonData.physicsConstraints.IndexOf(constraint); + } + Dictionary timelineMap = (Dictionary)constraintMap.Value; + foreach (KeyValuePair timelineEntry in timelineMap) { + List values = (List)timelineEntry.Value; + List.Enumerator keyMapEnumerator = values.GetEnumerator(); + if (!keyMapEnumerator.MoveNext()) continue; + + int frames = values.Count; + string timelineName = (string)timelineEntry.Key; + if (timelineName == "reset") { + PhysicsConstraintResetTimeline timeline1 = new PhysicsConstraintResetTimeline(frames, index); + int frame = 0; + foreach (Dictionary keyMap in values) { + timeline1.SetFrame(frame++, GetFloat(keyMap, "time", 0)); + } + timelines.Add(timeline1); + continue; + } + + CurveTimeline1 timeline; + if (timelineName == "inertia") + timeline = new PhysicsConstraintInertiaTimeline(frames, frames, index); + else if (timelineName == "strength") + timeline = new PhysicsConstraintStrengthTimeline(frames, frames, index); + else if (timelineName == "damping") + timeline = new PhysicsConstraintDampingTimeline(frames, frames, index); + else if (timelineName == "mass") + timeline = new PhysicsConstraintMassTimeline(frames, frames, index); + else if (timelineName == "wind") + timeline = new PhysicsConstraintWindTimeline(frames, frames, index); + else if (timelineName == "gravity") + timeline = new PhysicsConstraintGravityTimeline(frames, frames, index); + else if (timelineName == "mix") // + timeline = new PhysicsConstraintMixTimeline(frames, frames, index); + else + continue; + timelines.Add(ReadTimeline(ref keyMapEnumerator, timeline, 0, 1)); + } + } + } + // Attachment timelines. if (map.ContainsKey("attachments")) { foreach (KeyValuePair attachmentsMap in (Dictionary)map["attachments"]) { @@ -1051,13 +1159,13 @@ namespace Spine { DrawOrderTimeline timeline = new DrawOrderTimeline(values.Count); int slotCount = skeletonData.slots.Count; int frame = 0; - foreach (Dictionary drawOrderMap in values) { + foreach (Dictionary keyMap in values) { int[] drawOrder = null; - if (drawOrderMap.ContainsKey("offsets")) { + if (keyMap.ContainsKey("offsets")) { drawOrder = new int[slotCount]; for (int i = slotCount - 1; i >= 0; i--) drawOrder[i] = -1; - List offsets = (List)drawOrderMap["offsets"]; + List offsets = (List)keyMap["offsets"]; int[] unchanged = new int[slotCount - offsets.Count]; int originalIndex = 0, unchangedIndex = 0; foreach (Dictionary offsetMap in offsets) { @@ -1076,7 +1184,7 @@ namespace Spine { for (int i = slotCount - 1; i >= 0; i--) if (drawOrder[i] == -1) drawOrder[i] = unchanged[--unchangedIndex]; } - timeline.SetFrame(frame, GetFloat(drawOrderMap, "time", 0), drawOrder); + timeline.SetFrame(frame, GetFloat(keyMap, "time", 0), drawOrder); ++frame; } timelines.Add(timeline); @@ -1087,17 +1195,17 @@ namespace Spine { List eventsMap = (List)map["events"]; EventTimeline timeline = new EventTimeline(eventsMap.Count); int frame = 0; - foreach (Dictionary eventMap in eventsMap) { - EventData eventData = skeletonData.FindEvent((string)eventMap["name"]); - if (eventData == null) throw new Exception("Event not found: " + eventMap["name"]); - Event e = new Event(GetFloat(eventMap, "time", 0), eventData) { - intValue = GetInt(eventMap, "int", eventData.Int), - floatValue = GetFloat(eventMap, "float", eventData.Float), - stringValue = GetString(eventMap, "string", eventData.String) + foreach (Dictionary keyMap in eventsMap) { + EventData eventData = skeletonData.FindEvent((string)keyMap["name"]); + if (eventData == null) throw new Exception("Event not found: " + keyMap["name"]); + Event e = new Event(GetFloat(keyMap, "time", 0), eventData) { + intValue = GetInt(keyMap, "int", eventData.Int), + floatValue = GetFloat(keyMap, "float", eventData.Float), + stringValue = GetString(keyMap, "string", eventData.String) }; if (e.data.AudioPath != null) { - e.volume = GetFloat(eventMap, "volume", eventData.Volume); - e.balance = GetFloat(eventMap, "balance", eventData.Balance); + e.volume = GetFloat(keyMap, "volume", eventData.Volume); + e.balance = GetFloat(keyMap, "balance", eventData.Balance); } timeline.SetFrame(frame, e); ++frame; @@ -1236,5 +1344,20 @@ namespace Spine { throw new ArgumentException("Color hexadecimal length must be " + expectedLength + ", received: " + hexString, "hexString"); return Convert.ToInt32(hexString.Substring(colorIndex * 2, 2), 16) / (float)255; } + + private class LinkedMesh { + internal string parent, skin; + internal int slotIndex; + internal MeshAttachment mesh; + internal bool inheritTimelines; + + public LinkedMesh (MeshAttachment mesh, string skin, int slotIndex, string parent, bool inheritTimelines) { + this.mesh = mesh; + this.skin = skin; + this.slotIndex = slotIndex; + this.parent = parent; + this.inheritTimelines = inheritTimelines; + } + } } } diff --git a/Assets/ThirdParty/Spine/Runtime/spine-csharp/SkeletonLoader.cs b/Assets/ThirdParty/Spine/Runtime/spine-csharp/SkeletonLoader.cs index f43e43427..b6f5139c5 100644 --- a/Assets/ThirdParty/Spine/Runtime/spine-csharp/SkeletonLoader.cs +++ b/Assets/ThirdParty/Spine/Runtime/spine-csharp/SkeletonLoader.cs @@ -42,7 +42,6 @@ namespace Spine { public abstract class SkeletonLoader { protected readonly AttachmentLoader attachmentLoader; protected float scale = 1; - protected readonly List linkedMeshes = new List(); /// Creates a skeleton loader that loads attachments using an with the specified atlas. /// @@ -72,21 +71,5 @@ namespace Spine { } public abstract SkeletonData ReadSkeletonData (string path); - - protected class LinkedMesh { - internal string parent, skin; - internal int slotIndex; - internal MeshAttachment mesh; - internal bool inheritTimelines; - - public LinkedMesh (MeshAttachment mesh, string skin, int slotIndex, string parent, bool inheritTimelines) { - this.mesh = mesh; - this.skin = skin; - this.slotIndex = slotIndex; - this.parent = parent; - this.inheritTimelines = inheritTimelines; - } - } - } } diff --git a/Assets/ThirdParty/Spine/Runtime/spine-csharp/Skin.cs b/Assets/ThirdParty/Spine/Runtime/spine-csharp/Skin.cs index c4948314e..08fff124f 100644 --- a/Assets/ThirdParty/Spine/Runtime/spine-csharp/Skin.cs +++ b/Assets/ThirdParty/Spine/Runtime/spine-csharp/Skin.cs @@ -45,7 +45,7 @@ namespace Spine { internal readonly ExposedList constraints = new ExposedList(); public string Name { get { return name; } } - ///Returns all attachments contained in this skin. + /// Returns all attachments contained in this skin. public ICollection Attachments { get { return attachments.Values; } } public ExposedList Bones { get { return bones; } } public ExposedList Constraints { get { return constraints; } } @@ -62,7 +62,7 @@ namespace Spine { attachments[new SkinKey(slotIndex, name)] = new SkinEntry(slotIndex, name, attachment); } - ///Adds all attachments, bones, and constraints from the specified skin to this skin. + /// Adds all attachments, bones, and constraints from the specified skin to this skin. public void AddSkin (Skin skin) { foreach (BoneData data in skin.bones) if (!bones.Contains(data)) bones.Add(data); @@ -76,7 +76,7 @@ namespace Spine { } } - ///Adds all attachments from the specified skin to this skin. Attachments are deep copied. + /// Adds all attachments from the specified skin to this skin. Attachments are deep copied. public void CopySkin (Skin skin) { foreach (BoneData data in skin.bones) if (!bones.Contains(data)) bones.Add(data); @@ -108,7 +108,7 @@ namespace Spine { } /// Returns all attachments in this skin for the specified slot index. - /// The target slotIndex. To find the slot index, use and . + /// The target slotIndex. To find the slot index, use and . public void GetAttachments (int slotIndex, List attachments) { if (slotIndex < 0) throw new ArgumentException("slotIndex must be >= 0."); if (attachments == null) throw new ArgumentNullException("attachments", "attachments cannot be null."); @@ -118,7 +118,7 @@ namespace Spine { } } - ///Clears all attachments, bones, and constraints. + /// Clears all attachments, bones, and constraints. public void Clear () { attachments.Clear(); bones.Clear(); diff --git a/Assets/ThirdParty/Spine/Runtime/spine-csharp/Slot.cs b/Assets/ThirdParty/Spine/Runtime/spine-csharp/Slot.cs index d544093a0..903cc8c3c 100644 --- a/Assets/ThirdParty/Spine/Runtime/spine-csharp/Slot.cs +++ b/Assets/ThirdParty/Spine/Runtime/spine-csharp/Slot.cs @@ -131,6 +131,11 @@ namespace Spine { b2 = MathUtils.Clamp(b2, 0, 1); } + /// + /// The current attachment for the slot, or null if the slot has no attachment. + /// If the attachment is changed, resets and clears the . + /// The deform is not cleared if the old attachment has the same as the + /// specified attachment. public Attachment Attachment { /// The current attachment for the slot, or null if the slot has no attachment. get { return attachment; } diff --git a/Assets/ThirdParty/Spine/Runtime/spine-csharp/SlotData.cs b/Assets/ThirdParty/Spine/Runtime/spine-csharp/SlotData.cs index cf4099a92..4d44402e7 100644 --- a/Assets/ThirdParty/Spine/Runtime/spine-csharp/SlotData.cs +++ b/Assets/ThirdParty/Spine/Runtime/spine-csharp/SlotData.cs @@ -40,6 +40,9 @@ namespace Spine { internal string attachmentName; internal BlendMode blendMode; + // Nonessential. + // bool visible = true; + /// The index of the slot in . public int Index { get { return index; } } /// The name of the slot, which is unique across all slots in the skeleton. diff --git a/Assets/ThirdParty/Spine/Runtime/spine-csharp/TransformConstraint.cs b/Assets/ThirdParty/Spine/Runtime/spine-csharp/TransformConstraint.cs index 6e9802fef..e9f0ce15f 100644 --- a/Assets/ThirdParty/Spine/Runtime/spine-csharp/TransformConstraint.cs +++ b/Assets/ThirdParty/Spine/Runtime/spine-csharp/TransformConstraint.cs @@ -30,6 +30,8 @@ using System; namespace Spine { + using Physics = Skeleton.Physics; + /// /// /// Stores the current pose for a transform constraint. A transform constraint adjusts the world transform of the constrained @@ -49,28 +51,25 @@ namespace Spine { if (data == null) throw new ArgumentNullException("data", "data cannot be null."); if (skeleton == null) throw new ArgumentNullException("skeleton", "skeleton cannot be null."); this.data = data; + + bones = new ExposedList(); + foreach (BoneData boneData in data.bones) + bones.Add(skeleton.bones.Items[boneData.index]); + + target = skeleton.bones.Items[data.target.index]; + mixRotate = data.mixRotate; mixX = data.mixX; mixY = data.mixY; mixScaleX = data.mixScaleX; mixScaleY = data.mixScaleY; mixShearY = data.mixShearY; - bones = new ExposedList(); - foreach (BoneData boneData in data.bones) - bones.Add(skeleton.bones.Items[boneData.index]); - - target = skeleton.bones.Items[data.target.index]; } /// Copy constructor. - public TransformConstraint (TransformConstraint constraint, Skeleton skeleton) { - if (constraint == null) throw new ArgumentNullException("constraint cannot be null."); - if (skeleton == null) throw new ArgumentNullException("skeleton cannot be null."); - data = constraint.data; - bones = new ExposedList(constraint.Bones.Count); - foreach (Bone bone in constraint.Bones) - bones.Add(skeleton.Bones.Items[bone.data.index]); - target = skeleton.Bones.Items[constraint.target.data.index]; + public TransformConstraint (TransformConstraint constraint, Skeleton skeleton) + : this(constraint.data, skeleton) { + mixRotate = constraint.mixRotate; mixX = constraint.mixX; mixY = constraint.mixY; @@ -79,7 +78,17 @@ namespace Spine { mixShearY = constraint.mixShearY; } - public void Update () { + public void SetToSetupPose () { + TransformConstraintData data = this.data; + mixRotate = data.mixRotate; + mixX = data.mixX; + mixY = data.mixY; + mixScaleX = data.mixScaleX; + mixScaleY = data.mixScaleY; + mixShearY = data.mixShearY; + } + + public void Update (Physics physics) { if (mixRotate == 0 && mixX == 0 && mixY == 0 && mixScaleX == 0 && mixScaleY == 0 && mixShearY == 0) return; if (data.local) { if (data.relative) @@ -236,11 +245,7 @@ namespace Spine { Bone bone = bones[i]; float rotation = bone.arotation; - if (mixRotate != 0) { - float r = target.arotation - rotation + data.offsetRotation; - r -= (16384 - (int)(16384.499999999996 - r / 360)) * 360; - rotation += r * mixRotate; - } + if (mixRotate != 0) rotation += (target.arotation - rotation + data.offsetRotation) * mixRotate; float x = bone.ax, y = bone.ay; x += (target.ax - x + data.offsetX) * mixX; @@ -253,11 +258,7 @@ namespace Spine { scaleY = (scaleY + (target.ascaleY - scaleY + data.offsetScaleY) * mixScaleY) / scaleY; float shearY = bone.ashearY; - if (mixShearY != 0) { - float r = target.ashearY - shearY + data.offsetShearY; - r -= (16384 - (int)(16384.499999999996 - r / 360)) * 360; - shearY += r * mixShearY; - } + if (mixShearY != 0) shearY += (target.ashearY - shearY + data.offsetShearY) * mixShearY; bone.UpdateWorldTransform(x, y, rotation, scaleX, scaleY, bone.ashearX, shearY); } diff --git a/Assets/ThirdParty/Spine/Runtime/spine-csharp/package.json b/Assets/ThirdParty/Spine/Runtime/spine-csharp/package.json index 37f72e46d..b22663897 100644 --- a/Assets/ThirdParty/Spine/Runtime/spine-csharp/package.json +++ b/Assets/ThirdParty/Spine/Runtime/spine-csharp/package.json @@ -2,7 +2,7 @@ "name": "com.esotericsoftware.spine.spine-csharp", "displayName": "spine-csharp Runtime", "description": "This plugin provides the spine-csharp core runtime.", - "version": "4.1.2", + "version": "4.2.34", "unity": "2018.3", "author": { "name": "Esoteric Software", diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Asset Types/BlendModeMaterials.cs b/Assets/ThirdParty/Spine/Runtime/spine-unity/Asset Types/BlendModeMaterials.cs index dc3543f8b..22e0fc9f9 100644 --- a/Assets/ThirdParty/Spine/Runtime/spine-unity/Asset Types/BlendModeMaterials.cs +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Asset Types/BlendModeMaterials.cs @@ -37,6 +37,10 @@ namespace Spine.Unity { [System.Serializable] public class BlendModeMaterials { + public const string MATERIAL_SUFFIX_MULTIPLY = "-Multiply"; + public const string MATERIAL_SUFFIX_SCREEN = "-Screen"; + public const string MATERIAL_SUFFIX_ADDITIVE = "-Additive"; + [System.Serializable] public class ReplacementMaterial { public string pageName; @@ -66,6 +70,7 @@ namespace Spine.Unity { public void TransferSettingsFrom (BlendModeMaterialsAsset modifierAsset) { applyAdditiveMaterial = modifierAsset.applyAdditiveMaterial; } +#endif public bool UpdateBlendmodeMaterialsRequiredState (SkeletonData skeletonData) { requiresBlendModeMaterials = false; @@ -92,7 +97,146 @@ namespace Spine.Unity { } return false; } -#endif + + [System.Serializable] + public class TemplateMaterials { + public Material additiveTemplate; + public Material multiplyTemplate; + public Material screenTemplate; + }; + + public delegate bool CreateForRegionDelegate (ref List replacementMaterials, + ref bool anyReplacementMaterialsChanged, + AtlasRegion originalRegion, Material materialTemplate, string materialSuffix, + SkeletonDataAsset skeletonDataAsset); + + public static bool CreateAndAssignMaterials (SkeletonDataAsset skeletonDataAsset, + TemplateMaterials templateMaterials, ref bool anyReplacementMaterialsChanged) { + + return CreateAndAssignMaterials(skeletonDataAsset, + templateMaterials, ref anyReplacementMaterialsChanged, + (asset) => { asset.Clear(); }, null, CreateForRegion); + } + + public static bool CreateAndAssignMaterials (SkeletonDataAsset skeletonDataAsset, + TemplateMaterials templateMaterials, ref bool anyReplacementMaterialsChanged, + System.Action clearSkeletonDataAssetFunc, + System.Action afterAssetModifiedFunc, + CreateForRegionDelegate createForRegionFunc) { + + bool anyCreationFailed = false; + BlendModeMaterials blendModeMaterials = skeletonDataAsset.blendModeMaterials; + bool applyAdditiveMaterial = blendModeMaterials.applyAdditiveMaterial; + + List skinEntries = new List(); + + clearSkeletonDataAssetFunc(skeletonDataAsset); + skeletonDataAsset.isUpgradingBlendModeMaterials = true; + SkeletonData skeletonData = skeletonDataAsset.GetSkeletonData(true); + + SlotData[] slotsItems = skeletonData.Slots.Items; + for (int slotIndex = 0, slotCount = skeletonData.Slots.Count; slotIndex < slotCount; slotIndex++) { + SlotData slot = slotsItems[slotIndex]; + if (slot.BlendMode == BlendMode.Normal) continue; + if (!applyAdditiveMaterial && slot.BlendMode == BlendMode.Additive) continue; + + List replacementMaterials = null; + Material materialTemplate = null; + string materialSuffix = null; + switch (slot.BlendMode) { + case BlendMode.Multiply: + replacementMaterials = blendModeMaterials.multiplyMaterials; + materialTemplate = templateMaterials.multiplyTemplate; + materialSuffix = MATERIAL_SUFFIX_MULTIPLY; + break; + case BlendMode.Screen: + replacementMaterials = blendModeMaterials.screenMaterials; + materialTemplate = templateMaterials.screenTemplate; + materialSuffix = MATERIAL_SUFFIX_SCREEN; + break; + case BlendMode.Additive: + replacementMaterials = blendModeMaterials.additiveMaterials; + materialTemplate = templateMaterials.additiveTemplate; + materialSuffix = MATERIAL_SUFFIX_ADDITIVE; + break; + } + + skinEntries.Clear(); + foreach (Skin skin in skeletonData.Skins) + skin.GetAttachments(slotIndex, skinEntries); + + foreach (Skin.SkinEntry entry in skinEntries) { + IHasTextureRegion renderableAttachment = entry.Attachment as IHasTextureRegion; + if (renderableAttachment != null) { + AtlasRegion originalRegion = (AtlasRegion)renderableAttachment.Region; + if (originalRegion != null) { + anyCreationFailed |= createForRegionFunc( + ref replacementMaterials, ref anyReplacementMaterialsChanged, + originalRegion, materialTemplate, materialSuffix, skeletonDataAsset); + } else { + Sequence sequence = renderableAttachment.Sequence; + if (sequence != null && sequence.Regions != null) { + for (int i = 0, count = sequence.Regions.Length; i < count; ++i) { + originalRegion = (AtlasRegion)sequence.Regions[i]; + anyCreationFailed |= createForRegionFunc( + ref replacementMaterials, ref anyReplacementMaterialsChanged, + originalRegion, materialTemplate, materialSuffix, skeletonDataAsset); + } + } + } + } + } + } + skeletonDataAsset.isUpgradingBlendModeMaterials = false; + if (afterAssetModifiedFunc != null) afterAssetModifiedFunc(skeletonDataAsset); + return !anyCreationFailed; + } + + protected static bool CreateForRegion (ref List replacementMaterials, + ref bool anyReplacementMaterialsChanged, + AtlasRegion originalRegion, Material materialTemplate, string materialSuffix, + SkeletonDataAsset skeletonDataAsset) { + + bool anyCreationFailed = false; + bool replacementExists = replacementMaterials.Exists( + replacement => replacement.pageName == originalRegion.page.name); + if (!replacementExists) { + BlendModeMaterials.ReplacementMaterial replacement = CreateReplacementMaterial(originalRegion, materialTemplate, materialSuffix); + if (replacement != null) { + replacementMaterials.Add(replacement); + anyReplacementMaterialsChanged = true; + } else { + Debug.LogError(string.Format("Failed creating blend mode Material for SkeletonData asset '{0}'," + + " atlas page '{1}', template '{2}'.", + skeletonDataAsset.name, originalRegion.page.name, materialTemplate.name), + skeletonDataAsset); + anyCreationFailed = true; + } + } + return anyCreationFailed; + } + + protected static BlendModeMaterials.ReplacementMaterial CreateReplacementMaterial ( + AtlasRegion originalRegion, Material materialTemplate, string materialSuffix) { + + BlendModeMaterials.ReplacementMaterial newReplacement = new BlendModeMaterials.ReplacementMaterial(); + AtlasPage originalPage = originalRegion.page; + Material originalMaterial = originalPage.rendererObject as Material; + + newReplacement.pageName = originalPage.name; + + Material blendModeMaterial = new Material(materialTemplate) { + name = originalMaterial.name + " " + materialTemplate.name, + mainTexture = originalMaterial.mainTexture + }; + newReplacement.material = blendModeMaterial; + + if (newReplacement.material) + return newReplacement; + else + return null; + } + public void ApplyMaterials (SkeletonData skeletonData) { if (skeletonData == null) throw new ArgumentNullException("skeletonData"); if (!requiresBlendModeMaterials) diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Asset Types/OnDemandTextureLoader.cs b/Assets/ThirdParty/Spine/Runtime/spine-unity/Asset Types/OnDemandTextureLoader.cs index 26be52a68..038d60a90 100644 --- a/Assets/ThirdParty/Spine/Runtime/spine-unity/Asset Types/OnDemandTextureLoader.cs +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Asset Types/OnDemandTextureLoader.cs @@ -36,6 +36,11 @@ using UnityEngine; namespace Spine.Unity { public abstract class OnDemandTextureLoader : ScriptableObject { public AtlasAssetBase atlasAsset; + /// + /// Additional reference, currently only used to cover blend mode materials + /// which are not stored at atlasAsset. + /// + public SkeletonDataAsset skeletonDataAsset; /// Original texture name without extension. /// The placeholder texture's name for a given original target texture name. @@ -89,6 +94,7 @@ namespace Spine.Unity { public delegate void TextureLoadDelegate (OnDemandTextureLoader loader, Material material, int textureIndex); protected event TextureLoadDelegate onTextureRequested; protected event TextureLoadDelegate onTextureLoaded; + protected event TextureLoadDelegate onTextureLoadFailed; protected event TextureLoadDelegate onTextureUnloaded; public event TextureLoadDelegate TextureRequested { @@ -99,6 +105,10 @@ namespace Spine.Unity { add { onTextureLoaded += value; } remove { onTextureLoaded -= value; } } + public event TextureLoadDelegate TextureLoadFailed { + add { onTextureLoadFailed += value; } + remove { onTextureLoadFailed -= value; } + } public event TextureLoadDelegate TextureUnloaded { add { onTextureUnloaded += value; } remove { onTextureUnloaded -= value; } @@ -112,6 +122,10 @@ namespace Spine.Unity { if (onTextureLoaded != null) onTextureLoaded(this, material, textureIndex); } + protected void OnTextureLoadFailed (Material material, int textureIndex) { + if (onTextureLoadFailed != null) + onTextureLoadFailed(this, material, textureIndex); + } protected void OnTextureUnloaded (Material material, int textureIndex) { if (onTextureUnloaded != null) onTextureUnloaded(this, material, textureIndex); diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Asset Types/RegionlessAttachmentLoader.cs b/Assets/ThirdParty/Spine/Runtime/spine-unity/Asset Types/RegionlessAttachmentLoader.cs index 527028690..7cac95b8e 100644 --- a/Assets/ThirdParty/Spine/Runtime/spine-unity/Asset Types/RegionlessAttachmentLoader.cs +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Asset Types/RegionlessAttachmentLoader.cs @@ -38,11 +38,17 @@ namespace Spine.Unity { static AtlasRegion EmptyRegion { get { if (emptyRegion == null) { + Shader hiddenShader = Shader.Find("Spine/Special/HiddenPass"); + if (hiddenShader == null) { + Debug.LogError("Shader \"Spine/Special/HiddenPass\" not found while loading SkeletonDataAsset" + + " with 0 Atlas Assets. Please add this shader to Project Settings - Graphics - Always" + + " Included Shaders, or make sure your SkeletonDataAssets all have an AtlasAsset assigned."); + } emptyRegion = new AtlasRegion { name = "Empty AtlasRegion", page = new AtlasPage { name = "Empty AtlasPage", - rendererObject = new Material(Shader.Find("Spine/Special/HiddenPass")) { name = "NoRender Material" } + rendererObject = new Material(hiddenShader) { name = "NoRender Material" } } }; } diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Asset Types/SkeletonDataAsset.cs b/Assets/ThirdParty/Spine/Runtime/spine-unity/Asset Types/SkeletonDataAsset.cs index 264f9edb7..62d003816 100644 --- a/Assets/ThirdParty/Spine/Runtime/spine-unity/Asset Types/SkeletonDataAsset.cs +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Asset Types/SkeletonDataAsset.cs @@ -85,7 +85,8 @@ namespace Spine.Unity { } /// - /// Creates a runtime SkeletonDataAsset. + /// Creates a runtime SkeletonDataAsset. + /// If you require blend mode materials, call afterwards. public static SkeletonDataAsset CreateRuntimeInstance (TextAsset skeletonDataFile, AtlasAssetBase[] atlasAssets, bool initialize, float scale = 0.01f) { SkeletonDataAsset skeletonDataAsset = ScriptableObject.CreateInstance(); skeletonDataAsset.Clear(); @@ -98,6 +99,19 @@ namespace Spine.Unity { return skeletonDataAsset; } + + /// If this SkeletonDataAsset has been created via , + /// this method sets up blend mode materials for it. + public void SetupRuntimeBlendModeMaterials (bool applyAdditiveMaterial, + BlendModeMaterials.TemplateMaterials templateMaterials) { + blendModeMaterials.applyAdditiveMaterial = applyAdditiveMaterial; + blendModeMaterials.UpdateBlendmodeMaterialsRequiredState(GetSkeletonData(true)); + bool anyMaterialsChanged = false; + BlendModeMaterials.CreateAndAssignMaterials(this, templateMaterials, ref anyMaterialsChanged); + + Clear(); + GetSkeletonData(true); + } #endregion /// Clears the loaded SkeletonData and AnimationStateData. Use this to force a reload for the next time GetSkeletonData is called. diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Asset Types/SkeletonDataCompatibility.cs b/Assets/ThirdParty/Spine/Runtime/spine-unity/Asset Types/SkeletonDataCompatibility.cs index 00ab75c8c..3bfdc4b47 100644 --- a/Assets/ThirdParty/Spine/Runtime/spine-unity/Asset Types/SkeletonDataCompatibility.cs +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Asset Types/SkeletonDataCompatibility.cs @@ -41,8 +41,8 @@ namespace Spine.Unity { public static class SkeletonDataCompatibility { #if UNITY_EDITOR - static readonly int[][] compatibleBinaryVersions = { new[] { 4, 1, 0 } }; - static readonly int[][] compatibleJsonVersions = { new[] { 4, 1, 0 } }; + static readonly int[][] compatibleBinaryVersions = { new[] { 4, 2, 0 } }; + static readonly int[][] compatibleJsonVersions = { new[] { 4, 2, 0 } }; static bool wasVersionDialogShown = false; static readonly Regex jsonVersionRegex = new Regex(@"""spine""\s*:\s*""([^""]+)""", RegexOptions.CultureInvariant); diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Asset Types/SpineAtlasAsset.cs b/Assets/ThirdParty/Spine/Runtime/spine-unity/Asset Types/SpineAtlasAsset.cs index 19e30f248..50a03c8cc 100644 --- a/Assets/ThirdParty/Spine/Runtime/spine-unity/Asset Types/SpineAtlasAsset.cs +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Asset Types/SpineAtlasAsset.cs @@ -78,10 +78,13 @@ namespace Spine.Unity { /// atlas asset JSON file. When procedurally creating textures, each Texture.name /// needs to be set to the atlas page texture filename without the .png extension, /// e.g. 'my_skeleton' if the png filename listed in the atlas asset file is 'my_skeleton.png'. + /// If true, newly created materials will be renamed to the atlas texture page name. + /// If false, the materials keep the name of the materialPropertySource material they are copied from. /// public static SpineAtlasAsset CreateRuntimeInstance (TextAsset atlasText, Texture2D[] textures, Material materialPropertySource, bool initialize, - Func newCustomTextureLoader = null) { + Func newCustomTextureLoader = null, + bool renameMaterial = false) { // Get atlas page names. string atlasString = atlasText.text; @@ -106,6 +109,8 @@ namespace Spine.Unity { // Match found. mat = new Material(materialPropertySource); mat.mainTexture = textures[j]; + if (renameMaterial) + mat.name = pageName; break; } } diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Components/Following/BoneFollower.cs b/Assets/ThirdParty/Spine/Runtime/spine-unity/Components/Following/BoneFollower.cs index a65010f0e..ce62df2d6 100644 --- a/Assets/ThirdParty/Spine/Runtime/spine-unity/Components/Following/BoneFollower.cs +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Components/Following/BoneFollower.cs @@ -113,7 +113,7 @@ namespace Spine.Unity { Initialize(); } - public void Initialize () { + public virtual void Initialize () { bone = null; valid = skeletonRenderer != null && skeletonRenderer.valid; if (!valid) return; @@ -137,7 +137,7 @@ namespace Spine.Unity { skeletonRenderer.OnRebuild -= HandleRebuildRenderer; } - public void LateUpdate () { + public virtual void LateUpdate () { if (!valid) { Initialize(); return; diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Components/Following/BoneFollowerGraphic.cs b/Assets/ThirdParty/Spine/Runtime/spine-unity/Components/Following/BoneFollowerGraphic.cs index eb21c4523..6d07d9cb0 100644 --- a/Assets/ThirdParty/Spine/Runtime/spine-unity/Components/Following/BoneFollowerGraphic.cs +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Components/Following/BoneFollowerGraphic.cs @@ -99,7 +99,7 @@ namespace Spine.Unity { if (initializeOnAwake) Initialize(); } - public void Initialize () { + public virtual void Initialize () { bone = null; valid = skeletonGraphic != null && skeletonGraphic.IsValid; if (!valid) return; @@ -119,7 +119,7 @@ namespace Spine.Unity { #endif } - public void LateUpdate () { + public virtual void LateUpdate () { if (!valid) { Initialize(); return; @@ -140,17 +140,19 @@ namespace Spine.Unity { if (thisTransform == null) return; float scale = skeletonGraphic.MeshScale; + Vector2 offset = skeletonGraphic.MeshOffset; float additionalFlipScale = 1; if (skeletonTransformIsParent) { // Recommended setup: Use local transform properties if Spine GameObject is the immediate parent - thisTransform.localPosition = new Vector3(followXYPosition ? bone.WorldX * scale : thisTransform.localPosition.x, - followXYPosition ? bone.WorldY * scale : thisTransform.localPosition.y, + thisTransform.localPosition = new Vector3(followXYPosition ? bone.WorldX * scale + offset.x : thisTransform.localPosition.x, + followXYPosition ? bone.WorldY * scale + offset.y : thisTransform.localPosition.y, followZPosition ? 0f : thisTransform.localPosition.z); if (followBoneRotation) thisTransform.localRotation = bone.GetQuaternion(); } else { // For special cases: Use transform world properties if transform relationship is complicated - Vector3 targetWorldPosition = skeletonTransform.TransformPoint(new Vector3(bone.WorldX * scale, bone.WorldY * scale, 0f)); + Vector3 targetWorldPosition = skeletonTransform.TransformPoint( + new Vector3(bone.WorldX * scale + offset.x, bone.WorldY * scale + offset.y, 0f)); if (!followZPosition) targetWorldPosition.z = thisTransform.position.z; if (!followXYPosition) { targetWorldPosition.x = thisTransform.position.x; diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Components/RootMotion/SkeletonMecanimRootMotion.cs b/Assets/ThirdParty/Spine/Runtime/spine-unity/Components/RootMotion/SkeletonMecanimRootMotion.cs index fd2121bc1..49b1dd737 100644 --- a/Assets/ThirdParty/Spine/Runtime/spine-unity/Components/RootMotion/SkeletonMecanimRootMotion.cs +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Components/RootMotion/SkeletonMecanimRootMotion.cs @@ -88,8 +88,8 @@ namespace Spine.Unity { mecanimLayerFlags = DefaultMecanimLayerFlags; } - protected override void Start () { - base.Start(); + public override void Initialize () { + base.Initialize(); skeletonMecanim = GetComponent(); if (skeletonMecanim) { skeletonMecanim.Translator.OnClipApplied -= OnClipApplied; diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Components/RootMotion/SkeletonRootMotion.cs b/Assets/ThirdParty/Spine/Runtime/spine-unity/Components/RootMotion/SkeletonRootMotion.cs index e3fd53dfc..02412f8f6 100644 --- a/Assets/ThirdParty/Spine/Runtime/spine-unity/Components/RootMotion/SkeletonRootMotion.cs +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Components/RootMotion/SkeletonRootMotion.cs @@ -88,8 +88,8 @@ namespace Spine.Unity { animationTrackFlags = DefaultAnimationTrackFlags; } - protected override void Start () { - base.Start(); + public override void Initialize () { + base.Initialize(); IAnimationStateComponent animstateComponent = skeletonComponent as IAnimationStateComponent; this.animationState = (animstateComponent != null) ? animstateComponent.AnimationState : null; diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Components/RootMotion/SkeletonRootMotionBase.cs b/Assets/ThirdParty/Spine/Runtime/spine-unity/Components/RootMotion/SkeletonRootMotionBase.cs index 7755507ea..84ef3f241 100644 --- a/Assets/ThirdParty/Spine/Runtime/spine-unity/Components/RootMotion/SkeletonRootMotionBase.cs +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Components/RootMotion/SkeletonRootMotionBase.cs @@ -27,6 +27,12 @@ * SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. *****************************************************************************/ +// In order to respect TransformConstraints modifying the scale of parent bones, +// GetScaleAffectingRootMotion() now uses parentBone.AScaleX and AScaleY instead +// of previously used ScaleX and ScaleY. If you require the previous behaviour, +// comment out the define below. +#define USE_APPLIED_PARENT_SCALE + using Spine.Unity.AnimationTools; using System; using System.Collections.Generic; @@ -42,8 +48,7 @@ namespace Spine.Unity { #region Inspector [SpineBone] - [SerializeField] - protected string rootMotionBoneName = "root"; + public string rootMotionBoneName = "root"; public bool transformPositionX = true; public bool transformPositionY = true; public bool transformRotation = false; @@ -155,6 +160,14 @@ namespace Spine.Unity { } protected virtual void Start () { + Initialize(); + } + + protected void InitializeOnRebuild (ISkeletonAnimation animatedSkeletonComponent) { + Initialize(); + } + + public virtual void Initialize () { skeletonComponent = GetComponent(); GatherTopLevelBones(); SetRootMotionBone(rootMotionBoneName); @@ -167,6 +180,16 @@ namespace Spine.Unity { if (skeletonAnimation != null) { skeletonAnimation.UpdateLocal -= HandleUpdateLocal; skeletonAnimation.UpdateLocal += HandleUpdateLocal; + + skeletonAnimation.OnAnimationRebuild -= InitializeOnRebuild; + skeletonAnimation.OnAnimationRebuild += InitializeOnRebuild; + + SkeletonUtility skeletonUtility = GetComponent(); + if (skeletonUtility != null) { + // SkeletonUtilityBone shall receive UpdateLocal callbacks for bone-following after root motion + // clears the root-bone position. + skeletonUtility.ResubscribeEvents(); + } } } @@ -198,6 +221,13 @@ namespace Spine.Unity { } Vector2 rigidbodyDisplacement2D = new Vector2(rigidbodyDisplacement.x, rigidbodyDisplacement.y); + // Note: MovePosition seems to be the only precise and reliable way to set movement delta, + // for both 2D and 3D rigidbodies. + // Setting velocity like "rigidBody2D.velocity = movement/deltaTime" works perfectly in mid-air + // without gravity and ground collision, unfortunately when on the ground, friction causes severe + // slowdown. Using a zero-friction PhysicsMaterial leads to sliding endlessly along the ground as + // soon as forces are applied. Additionally, there is no rigidBody2D.isGrounded, requiring our own + // checks. rigidBody2D.MovePosition(gravityAndVelocityMovement + new Vector2(rigidBody2D.position.x, rigidBody2D.position.y) + rigidbodyDisplacement2D + additionalRigidbody2DMovement); rigidBody2D.MoveRotation(rigidbody2DRotation + rigidBody2D.rotation); @@ -213,7 +243,7 @@ namespace Spine.Unity { Vector2 parentBoneScale; GetScaleAffectingRootMotion(out parentBoneScale); ClearEffectiveBoneOffsets(parentBoneScale); - skeletonComponent.Skeleton.UpdateWorldTransform(); + skeletonComponent.Skeleton.UpdateWorldTransform(Skeleton.Physics.Pose); } ClearRigidbodyTempMovement(); @@ -271,7 +301,8 @@ namespace Spine.Unity { this.rootMotionBone = bone; FindTransformConstraintsAffectingBone(); } else { - Debug.Log("Bone named \"" + name + "\" could not be found."); + Debug.Log("Bone named \"" + name + "\" could not be found. " + + "Set 'skeletonRootMotion.rootMotionBoneName' before calling 'skeletonAnimation.Initialize(true)'."); this.rootMotionBoneIndex = 0; this.rootMotionBone = skeleton.RootBone; } @@ -605,7 +636,7 @@ namespace Spine.Unity { // apply the constraint and sets Bone.ax, Bone.ay and Bone.arotation values. /// Update is based on Bone.x, Bone.y and Bone.rotation, so skeleton.UpdateWorldTransform() /// can be called afterwards without having a different starting point. - constraint.Update(); + constraint.Update(Skeleton.Physics.None); } } @@ -623,8 +654,13 @@ namespace Spine.Unity { parentBoneScale = Vector2.one; Bone scaleBone = rootMotionBone; while ((scaleBone = scaleBone.Parent) != null) { +#if USE_APPLIED_PARENT_SCALE + parentBoneScale.x *= scaleBone.AScaleX; + parentBoneScale.y *= scaleBone.AScaleY; +#else parentBoneScale.x *= scaleBone.ScaleX; parentBoneScale.y *= scaleBone.ScaleY; +#endif } totalScale = Vector2.Scale(totalScale, parentBoneScale); totalScale *= AdditionalScale; diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Components/SkeletonAnimation.cs b/Assets/ThirdParty/Spine/Runtime/spine-unity/Components/SkeletonAnimation.cs index 6fc3b32eb..846ca2230 100644 --- a/Assets/ThirdParty/Spine/Runtime/spine-unity/Components/SkeletonAnimation.cs +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Components/SkeletonAnimation.cs @@ -86,7 +86,8 @@ namespace Spine.Unity { /// /// Occurs after the Skeleton's bone world space values are resolved (including all constraints). /// Using this callback will cause the world space values to be solved an extra time. - /// Use this callback if want to use bone world space values, and also set bone local values. + /// Use this callback if want to use bone world space values, and also set bone local values. + /// public event UpdateBonesDelegate UpdateWorld { add { _UpdateWorld += value; } remove { _UpdateWorld -= value; } } /// @@ -233,19 +234,25 @@ namespace Spine.Unity { return; UpdateAnimationStatus(deltaTime); - if (updateMode == UpdateMode.OnlyAnimationStatus) { - state.ApplyEventTimelinesOnly(skeleton, issueEvents: false); + if (updateMode == UpdateMode.OnlyAnimationStatus) return; - } ApplyAnimation(); } protected void UpdateAnimationStatus (float deltaTime) { deltaTime *= timeScale; state.Update(deltaTime); + skeleton.Update(deltaTime); + + ApplyTransformMovementToPhysics(); + + if (updateMode == UpdateMode.OnlyAnimationStatus) { + state.ApplyEventTimelinesOnly(skeleton, issueEvents: false); + return; + } } - protected void ApplyAnimation () { + public virtual void ApplyAnimation () { if (_BeforeApply != null) _BeforeApply(this); @@ -261,11 +268,12 @@ namespace Spine.Unity { if (_UpdateLocal != null) _UpdateLocal(this); - skeleton.UpdateWorldTransform(); - - if (_UpdateWorld != null) { + if (_UpdateWorld == null) { + UpdateWorldTransform(Skeleton.Physics.Update); + } else { + UpdateWorldTransform(Skeleton.Physics.Pose); _UpdateWorld(this); - skeleton.UpdateWorldTransform(); + UpdateWorldTransform(Skeleton.Physics.Update); } if (_UpdateComplete != null) { diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Components/SkeletonGraphic.cs b/Assets/ThirdParty/Spine/Runtime/spine-unity/Components/SkeletonGraphic.cs index 4f53c73e8..0eadfb11f 100644 --- a/Assets/ThirdParty/Spine/Runtime/spine-unity/Components/SkeletonGraphic.cs +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Components/SkeletonGraphic.cs @@ -60,6 +60,13 @@ namespace Spine.Unity { public Material multiplyMaterial; public Material screenMaterial; + /// Own color to replace Graphic.m_Color. + [UnityEngine.Serialization.FormerlySerializedAs("m_Color")] + [SerializeField] protected Color m_SkeletonColor = Color.white; + /// Sets the color of the skeleton. Does not call and + /// unnecessarily as Graphic.color would otherwise do. + override public Color color { get { return m_SkeletonColor; } set { m_SkeletonColor = value; } } + [SpineSkin(dataField: "skeletonDataAsset", defaultAsEmptyString: true)] public string initialSkinName; public bool initialFlipX, initialFlipY; @@ -70,7 +77,9 @@ namespace Spine.Unity { public float timeScale = 1f; public bool freeze; protected float meshScale = 1f; + protected Vector2 meshOffset = Vector2.zero; public float MeshScale { get { return meshScale; } } + public Vector2 MeshOffset { get { return meshOffset; } } public enum LayoutMode { None = 0, @@ -81,7 +90,10 @@ namespace Spine.Unity { } public LayoutMode layoutScaleMode = LayoutMode.None; [SerializeField] protected Vector2 referenceSize = Vector2.one; + /// Offset relative to the pivot position, before potential layout scale is applied. + [SerializeField] protected Vector2 pivotOffset = Vector2.zero; [SerializeField] protected float referenceScale = 1f; + [SerializeField] protected float layoutScale = 1f; #if UNITY_EDITOR protected LayoutMode previousLayoutScaleMode = LayoutMode.None; [SerializeField] protected Vector2 rectTransformSize = Vector2.zero; @@ -352,10 +364,8 @@ namespace Spine.Unity { return; UpdateAnimationStatus(deltaTime); - if (updateMode == UpdateMode.OnlyAnimationStatus) { - state.ApplyEventTimelinesOnly(skeleton, issueEvents: false); + if (updateMode == UpdateMode.OnlyAnimationStatus) return; - } ApplyAnimation(); } @@ -380,9 +390,65 @@ namespace Spine.Unity { protected void UpdateAnimationStatus (float deltaTime) { deltaTime *= timeScale; state.Update(deltaTime); + skeleton.Update(deltaTime); + + ApplyTransformMovementToPhysics(); + + if (updateMode == UpdateMode.OnlyAnimationStatus) { + state.ApplyEventTimelinesOnly(skeleton, issueEvents: false); + return; + } } - protected void ApplyAnimation () { + public virtual void ApplyTransformMovementToPhysics () { + if (Application.isPlaying) { + if (physicsPositionInheritanceFactor != Vector2.zero) { + Vector2 position = GetPhysicsTransformPosition(); + Vector2 positionDelta = (position - lastPosition) / meshScale; + + positionDelta = transform.InverseTransformVector(positionDelta); + if (physicsMovementRelativeTo != null) { + positionDelta = physicsMovementRelativeTo.TransformVector(positionDelta); + } + positionDelta.x *= physicsPositionInheritanceFactor.x; + positionDelta.y *= physicsPositionInheritanceFactor.y; + + skeleton.PhysicsTranslate(positionDelta.x, positionDelta.y); + lastPosition = position; + } + if (physicsRotationInheritanceFactor != 0f) { + float rotation = GetPhysicsTransformRotation(); + skeleton.PhysicsRotate(0, 0, physicsRotationInheritanceFactor * (rotation - lastRotation)); + lastRotation = rotation; + } + } + } + + protected Vector2 GetPhysicsTransformPosition () { + if (physicsMovementRelativeTo == null) { + return transform.position; + } else { + if (physicsMovementRelativeTo == transform.parent) + return transform.localPosition; + else + return physicsMovementRelativeTo.InverseTransformPoint(transform.position); + } + } + + protected float GetPhysicsTransformRotation () { + if (physicsMovementRelativeTo == null) { + return this.transform.rotation.eulerAngles.z; + } else { + if (physicsMovementRelativeTo == this.transform.parent) + return this.transform.localRotation.eulerAngles.z; + else { + Quaternion relative = Quaternion.Inverse(physicsMovementRelativeTo.rotation) * this.transform.rotation; + return relative.eulerAngles.z; + } + } + } + + public virtual void ApplyAnimation () { if (BeforeApply != null) BeforeApply(this); @@ -394,21 +460,26 @@ namespace Spine.Unity { AfterAnimationApplied(); } - public void AfterAnimationApplied () { + public virtual void AfterAnimationApplied () { if (UpdateLocal != null) UpdateLocal(this); - skeleton.UpdateWorldTransform(); - - if (UpdateWorld != null) { + if (UpdateWorld == null) { + UpdateWorldTransform(Skeleton.Physics.Update); + } else { + UpdateWorldTransform(Skeleton.Physics.Pose); UpdateWorld(this); - skeleton.UpdateWorldTransform(); + UpdateWorldTransform(Skeleton.Physics.Update); } if (UpdateComplete != null) UpdateComplete(this); } + protected void UpdateWorldTransform (Skeleton.Physics physics) { + skeleton.UpdateWorldTransform(physics); + } + public void LateUpdate () { if (!this.IsValid) return; // instantiation can happen from Update() after this component, leading to a missing Update() call. @@ -462,6 +533,7 @@ namespace Spine.Unity { #region API protected Skeleton skeleton; + public Skeleton Skeleton { get { Initialize(false); @@ -504,6 +576,73 @@ namespace Spine.Unity { } } + /// + [SerializeField] protected Vector2 physicsPositionInheritanceFactor = Vector2.one; + /// + [SerializeField] protected float physicsRotationInheritanceFactor = 1.0f; + /// Reference transform relative to which physics movement will be calculated, or null to use world location. + [SerializeField] protected Transform physicsMovementRelativeTo = null; + + /// Used for applying Transform translation to skeleton PhysicsConstraints. + protected Vector2 lastPosition; + /// Used for applying Transform rotation to skeleton PhysicsConstraints. + protected float lastRotation; + + /// When set to non-zero, Transform position movement in X and Y direction + /// is applied to skeleton PhysicsConstraints, multiplied by this scale factor. + /// Typical values are Vector2.one to apply XY movement 1:1, + /// Vector2(2f, 2f) to apply movement with double intensity, + /// Vector2(1f, 0f) to apply only horizontal movement, or + /// Vector2.zero to not apply any Transform position movement at all. + public Vector2 PhysicsPositionInheritanceFactor { + get { + return physicsPositionInheritanceFactor; + } + set { + if (physicsPositionInheritanceFactor == Vector2.zero && value != Vector2.zero) ResetLastPosition(); + physicsPositionInheritanceFactor = value; + } + } + + /// When set to non-zero, Transform rotation movement is applied to skeleton PhysicsConstraints, + /// multiplied by this scale factor. Typical values are 1 to apply movement 1:1, + /// 2 to apply movement with double intensity, or + /// 0 to not apply any Transform rotation movement at all. + public float PhysicsRotationInheritanceFactor { + get { + return physicsRotationInheritanceFactor; + } + set { + if (physicsRotationInheritanceFactor == 0f && value != 0f) ResetLastRotation(); + physicsRotationInheritanceFactor = value; + } + } + + /// Reference transform relative to which physics movement will be calculated, or null to use world location. + public Transform PhysicsMovementRelativeTo { + get { + return physicsMovementRelativeTo; + } + set { + physicsMovementRelativeTo = value; + if (physicsPositionInheritanceFactor != Vector2.zero) ResetLastPosition(); + if (physicsRotationInheritanceFactor != 0f) ResetLastRotation(); + } + } + + public void ResetLastPosition () { + lastPosition = GetPhysicsTransformPosition(); + } + + public void ResetLastRotation () { + lastRotation = GetPhysicsTransformRotation(); + } + + public void ResetLastPositionAndRotation () { + lastPosition = GetPhysicsTransformPosition(); + lastRotation = GetPhysicsTransformRotation(); + } + [SerializeField] protected Spine.Unity.MeshGenerator meshGenerator = new MeshGenerator(); public Spine.Unity.MeshGenerator MeshGenerator { get { return this.meshGenerator; } } DoubleBuffered meshBuffers; @@ -512,6 +651,11 @@ namespace Spine.Unity { readonly ExposedList usedMaterials = new ExposedList(); readonly ExposedList usedTextures = new ExposedList(); + /// Returns the used by this renderer for use with e.g. + /// + /// + public SkeletonClipping SkeletonClipping { get { return meshGenerator.SkeletonClipping; } } + public ExposedList MeshesMultipleCanvasRenderers { get { return meshes; } } public ExposedList MaterialsMultipleCanvasRenderers { get { return usedMaterials; } } public ExposedList TexturesMultipleCanvasRenderers { get { return usedTextures; } } @@ -599,8 +743,9 @@ namespace Spine.Unity { SetRectTransformSize(submeshGraphic, size); submeshGraphic.rectTransform.pivot = p; } - this.referenceSize = size; + referenceScale = referenceScale * layoutScale; + layoutScale = 1f; } public static void SetRectTransformSize (Graphic target, Vector2 size) { @@ -683,6 +828,8 @@ namespace Spine.Unity { baseTexture = skeletonDataAsset.atlasAssets[0].PrimaryMaterial.mainTexture; canvasRenderer.SetTexture(this.mainTexture); // Needed for overwriting initializations. + ResetLastPositionAndRotation(); + // Set the initial Skin and Animation if (!string.IsNullOrEmpty(initialSkinName)) skeleton.SetSkin(initialSkinName); @@ -798,10 +945,19 @@ namespace Spine.Unity { meshScale = (canvas == null) ? 100 : canvas.referencePixelsPerUnit; if (layoutScaleMode != LayoutMode.None) { meshScale *= referenceScale; - if (!EditReferenceRect) - meshScale *= GetLayoutScale(layoutScaleMode); + layoutScale = GetLayoutScale(layoutScaleMode); + if (!EditReferenceRect) { + meshScale *= layoutScale; + } + meshOffset = pivotOffset * layoutScale; + } else { + meshOffset = pivotOffset; } - meshGenerator.ScaleVertexData(meshScale); + if (meshOffset == Vector2.zero) + meshGenerator.ScaleVertexData(meshScale); + else + meshGenerator.ScaleAndOffsetVertexData(meshScale, meshOffset); + if (OnPostProcessVertices != null) OnPostProcessVertices.Invoke(this.meshGenerator.Buffers); Mesh mesh = smartMesh.mesh; @@ -889,8 +1045,13 @@ namespace Spine.Unity { meshScale = (canvas == null) ? 100 : canvas.referencePixelsPerUnit; if (layoutScaleMode != LayoutMode.None) { meshScale *= referenceScale; - if (!EditReferenceRect) - meshScale *= GetLayoutScale(layoutScaleMode); + layoutScale = GetLayoutScale(layoutScaleMode); + if (!EditReferenceRect) { + meshScale *= layoutScale; + } + meshOffset = pivotOffset * layoutScale; + } else { + meshOffset = pivotOffset; } // Generate meshes. int submeshCount = currentInstructions.submeshInstructions.Count; @@ -911,7 +1072,10 @@ namespace Spine.Unity { meshGenerator.AddSubmesh(submeshInstructionItem); Mesh targetMesh = meshesItems[i]; - meshGenerator.ScaleVertexData(meshScale); + if (meshOffset == Vector2.zero) + meshGenerator.ScaleVertexData(meshScale); + else + meshGenerator.ScaleAndOffsetVertexData(meshScale, meshOffset); if (OnPostProcessVertices != null) OnPostProcessVertices.Invoke(this.meshGenerator.Buffers); meshGenerator.FillVertexData(targetMesh); meshGenerator.FillTriangles(targetMesh); @@ -1210,9 +1374,9 @@ namespace Spine.Unity { SetRectTransformSize(this, rectTransformSize); } } - if (editReferenceRect || layoutScaleMode == LayoutMode.None) { + if (editReferenceRect || layoutScaleMode == LayoutMode.None) referenceSize = GetCurrentRectSize(); - } + previousLayoutScaleMode = layoutScaleMode; } @@ -1233,13 +1397,7 @@ namespace Spine.Unity { float referenceAspect = referenceSize.x / referenceSize.y; Vector2 newSize = GetCurrentRectSize(); - LayoutMode mode = previousLayoutScaleMode; - float frameAspect = newSize.x / newSize.y; - if (mode == LayoutMode.FitInParent) - mode = frameAspect > referenceAspect ? LayoutMode.HeightControlsWidth : LayoutMode.WidthControlsHeight; - else if (mode == LayoutMode.EnvelopeParent) - mode = frameAspect > referenceAspect ? LayoutMode.WidthControlsHeight : LayoutMode.HeightControlsWidth; - + LayoutMode mode = GetEffectiveLayoutMode(previousLayoutScaleMode); if (mode == LayoutMode.WidthControlsHeight) newSize.y = newSize.x / referenceAspect; else if (mode == LayoutMode.HeightControlsWidth) @@ -1250,17 +1408,22 @@ namespace Spine.Unity { public Vector2 GetReferenceRectSize () { return referenceSize * GetLayoutScale(layoutScaleMode); } + + public Vector2 GetPivotOffset () { + return pivotOffset; + } + + public Vector2 GetScaledPivotOffset () { + return pivotOffset * GetLayoutScale(layoutScaleMode); + } #endif + public void SetScaledPivotOffset (Vector2 pivotOffsetScaled) { + pivotOffset = pivotOffsetScaled / GetLayoutScale(layoutScaleMode); + } protected float GetLayoutScale (LayoutMode mode) { Vector2 currentSize = GetCurrentRectSize(); - float referenceAspect = referenceSize.x / referenceSize.y; - float frameAspect = currentSize.x / currentSize.y; - if (mode == LayoutMode.FitInParent) - mode = frameAspect > referenceAspect ? LayoutMode.HeightControlsWidth : LayoutMode.WidthControlsHeight; - else if (mode == LayoutMode.EnvelopeParent) - mode = frameAspect > referenceAspect ? LayoutMode.WidthControlsHeight : LayoutMode.HeightControlsWidth; - + mode = GetEffectiveLayoutMode(mode); if (mode == LayoutMode.WidthControlsHeight) { return currentSize.x / referenceSize.x; } else if (mode == LayoutMode.HeightControlsWidth) { @@ -1269,6 +1432,22 @@ namespace Spine.Unity { return 1f; } + /// + /// LayoutMode FitInParent and EnvelopeParent actually result in + /// HeightControlsWidth or WidthControlsHeight depending on the actual vs reference aspect ratio. + /// This method returns the respective LayoutMode of the two for any given input mode. + /// + protected LayoutMode GetEffectiveLayoutMode (LayoutMode mode) { + Vector2 currentSize = GetCurrentRectSize(); + float referenceAspect = referenceSize.x / referenceSize.y; + float frameAspect = currentSize.x / currentSize.y; + if (mode == LayoutMode.FitInParent) + mode = frameAspect > referenceAspect ? LayoutMode.HeightControlsWidth : LayoutMode.WidthControlsHeight; + else if (mode == LayoutMode.EnvelopeParent) + mode = frameAspect > referenceAspect ? LayoutMode.WidthControlsHeight : LayoutMode.HeightControlsWidth; + return mode; + } + private Vector2 GetCurrentRectSize () { return this.rectTransform.rect.size; } diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Components/SkeletonMecanim.cs b/Assets/ThirdParty/Spine/Runtime/spine-unity/Components/SkeletonMecanim.cs index b63a8ea67..987a0e53b 100644 --- a/Assets/ThirdParty/Spine/Runtime/spine-unity/Components/SkeletonMecanim.cs +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Components/SkeletonMecanim.cs @@ -66,7 +66,8 @@ namespace Spine.Unity { /// /// Occurs after the Skeleton's bone world space values are resolved (including all constraints). /// Using this callback will cause the world space values to be solved an extra time. - /// Use this callback if want to use bone world space values, and also set bone local values. + /// Use this callback if want to use bone world space values, and also set bone local values. + /// public event UpdateBonesDelegate UpdateWorld { add { _UpdateWorld += value; } remove { _UpdateWorld -= value; } } /// @@ -101,32 +102,36 @@ namespace Spine.Unity { public virtual void Update () { if (!valid || updateTiming != UpdateTiming.InUpdate) return; - UpdateAnimation(); + UpdateAnimation(Time.deltaTime); } public virtual void FixedUpdate () { if (!valid || updateTiming != UpdateTiming.InFixedUpdate) return; - UpdateAnimation(); + UpdateAnimation(Time.deltaTime); } /// Manual animation update. Required when updateTiming is set to ManualUpdate. /// Ignored parameter. public virtual void Update (float deltaTime) { if (!valid) return; - UpdateAnimation(); + UpdateAnimation(deltaTime); } - protected void UpdateAnimation () { + protected void UpdateAnimation (float deltaTime) { wasUpdatedAfterInit = true; // animation status is kept by Mecanim Animator component if (updateMode <= UpdateMode.OnlyAnimationStatus) return; + skeleton.Update(deltaTime); + + ApplyTransformMovementToPhysics(); + ApplyAnimation(); } - protected void ApplyAnimation () { + public virtual void ApplyAnimation () { if (_BeforeApply != null) _BeforeApply(this); @@ -148,27 +153,28 @@ namespace Spine.Unity { #else translator.Apply(skeleton); #endif + AfterAnimationApplied(); + } - // UpdateWorldTransform and Bone Callbacks - { - if (_UpdateLocal != null) - _UpdateLocal(this); + public virtual void AfterAnimationApplied () { + if (_UpdateLocal != null) + _UpdateLocal(this); - skeleton.UpdateWorldTransform(); - - if (_UpdateWorld != null) { - _UpdateWorld(this); - skeleton.UpdateWorldTransform(); - } - - if (_UpdateComplete != null) - _UpdateComplete(this); + if (_UpdateWorld == null) { + UpdateWorldTransform(Skeleton.Physics.Update); + } else { + UpdateWorldTransform(Skeleton.Physics.Pose); + _UpdateWorld(this); + UpdateWorldTransform(Skeleton.Physics.Update); } + + if (_UpdateComplete != null) + _UpdateComplete(this); } public override void LateUpdate () { if (updateTiming == UpdateTiming.InLateUpdate && valid && translator != null && translator.Animator != null) - UpdateAnimation(); + UpdateAnimation(Time.deltaTime); // instantiation can happen from Update() after this component, leading to a missing Update() call. if (!wasUpdatedAfterInit) Update(); base.LateUpdate(); @@ -204,7 +210,7 @@ namespace Spine.Unity { public event OnClipAppliedDelegate OnClipApplied { add { _OnClipApplied += value; } remove { _OnClipApplied -= value; } } - public enum MixMode { AlwaysMix, MixNext, Hard } + public enum MixMode { AlwaysMix, MixNext, Hard, Match } readonly Dictionary animationTable = new Dictionary(IntEqualityComparer.Instance); readonly Dictionary clipNameHashCodeTable = new Dictionary(AnimationClipEqualityComparer.Instance); @@ -220,6 +226,9 @@ namespace Spine.Unity { public readonly List clipInfos = new List(); public readonly List nextClipInfos = new List(); public readonly List interruptingClipInfos = new List(); + public float[] clipResolvedWeights = new float[0]; + public float[] nextClipResolvedWeights = new float[0]; + public float[] interruptingClipResolvedWeights = new float[0]; public AnimatorStateInfo stateInfo; public AnimatorStateInfo nextStateInfo; @@ -267,7 +276,8 @@ namespace Spine.Unity { } private bool ApplyAnimation (Skeleton skeleton, AnimatorClipInfo info, AnimatorStateInfo stateInfo, - int layerIndex, float layerWeight, MixBlend layerBlendMode, bool useClipWeight1 = false) { + int layerIndex, float layerWeight, MixBlend layerBlendMode, + bool useCustomClipWeight = false, float customClipWeight = 1.0f) { float weight = info.weight * layerWeight; if (weight < WeightEpsilon) return false; @@ -277,7 +287,7 @@ namespace Spine.Unity { return false; float time = AnimationTime(stateInfo.normalizedTime, info.clip.length, info.clip.isLooping, stateInfo.speed < 0); - weight = useClipWeight1 ? layerWeight : weight; + weight = useCustomClipWeight ? layerWeight * customClipWeight : weight; clip.Apply(skeleton, 0, time, info.clip.isLooping, null, weight, layerBlendMode, MixDirection.In); if (_OnClipApplied != null) @@ -288,7 +298,7 @@ namespace Spine.Unity { private bool ApplyInterruptionAnimation (Skeleton skeleton, bool interpolateWeightTo1, AnimatorClipInfo info, AnimatorStateInfo stateInfo, int layerIndex, float layerWeight, MixBlend layerBlendMode, float interruptingClipTimeAddition, - bool useClipWeight1 = false) { + bool useCustomClipWeight = false, float customClipWeight = 1.0f) { float clipWeight = interpolateWeightTo1 ? (info.weight + 1.0f) * 0.5f : info.weight; float weight = clipWeight * layerWeight; @@ -301,7 +311,7 @@ namespace Spine.Unity { float time = AnimationTime(stateInfo.normalizedTime + interruptingClipTimeAddition, info.clip.length, info.clip.isLooping, stateInfo.speed < 0); - weight = useClipWeight1 ? layerWeight : weight; + weight = useCustomClipWeight ? layerWeight * customClipWeight : weight; clip.Apply(skeleton, 0, time, info.clip.isLooping, null, weight, layerBlendMode, MixDirection.In); if (_OnClipApplied != null) { @@ -436,11 +446,39 @@ namespace Spine.Unity { layer, layerWeight, layerBlendMode, interruptingClipTimeAddition); } } + } else if (mode == MixMode.Match) { + // Calculate matching Spine lerp(lerp(A, B, w2), C, w3) weights + // from Unity's absolute weights A*W1 + B*W2 + C*W3. + MatchWeights(layerClipInfos[layer], hasNext, isInterruptionActive, clipInfoCount, nextClipInfoCount, interruptingClipInfoCount, + clipInfo, nextClipInfo, interruptingClipInfo); + + float[] customWeights = layerClipInfos[layer].clipResolvedWeights; + for (int c = 0; c < clipInfoCount; c++) { + ApplyAnimation(skeleton, clipInfo[c], stateInfo, layer, layerWeight, layerBlendMode, + true, customWeights[c]); + } + if (hasNext) { + customWeights = layerClipInfos[layer].nextClipResolvedWeights; + for (int c = 0; c < nextClipInfoCount; c++) { + ApplyAnimation(skeleton, nextClipInfo[c], nextStateInfo, layer, layerWeight, layerBlendMode, + true, customWeights[c]); + } + } + if (isInterruptionActive) { + customWeights = layerClipInfos[layer].interruptingClipResolvedWeights; + for (int c = 0; c < interruptingClipInfoCount; c++) { + ApplyInterruptionAnimation(skeleton, interpolateWeightTo1, + interruptingClipInfo[c], interruptingStateInfo, + layer, layerWeight, layerBlendMode, interruptingClipTimeAddition, + true, customWeights[c]); + } + } } else { // case MixNext || Hard // Apply first non-zero weighted clip int c = 0; for (; c < clipInfoCount; c++) { - if (!ApplyAnimation(skeleton, clipInfo[c], stateInfo, layer, layerWeight, layerBlendMode, useClipWeight1: true)) + if (!ApplyAnimation(skeleton, clipInfo[c], stateInfo, layer, layerWeight, layerBlendMode, + true, 1.0f)) continue; ++c; break; } @@ -454,7 +492,8 @@ namespace Spine.Unity { // Apply next clip directly instead of mixing (ie: no crossfade, ignores mecanim transition weights) if (mode == MixMode.Hard) { for (; c < nextClipInfoCount; c++) { - if (!ApplyAnimation(skeleton, nextClipInfo[c], nextStateInfo, layer, layerWeight, layerBlendMode, useClipWeight1: true)) + if (!ApplyAnimation(skeleton, nextClipInfo[c], nextStateInfo, layer, layerWeight, layerBlendMode, + true, 1.0f)) continue; ++c; break; } @@ -473,7 +512,7 @@ namespace Spine.Unity { for (; c < interruptingClipInfoCount; c++) { if (ApplyInterruptionAnimation(skeleton, interpolateWeightTo1, interruptingClipInfo[c], interruptingStateInfo, - layer, layerWeight, layerBlendMode, interruptingClipTimeAddition, useClipWeight1: true)) { + layer, layerWeight, layerBlendMode, interruptingClipTimeAddition, true, 1.0f)) { ++c; break; } @@ -490,6 +529,46 @@ namespace Spine.Unity { } } + /// + /// Resolve matching weights from Unity's absolute weights A*w1 + B*w2 + C*w3 to + /// Spine's lerp(lerp(A, B, x), C, y) weights, in reverse order of clips. + /// + protected void MatchWeights (ClipInfos clipInfos, bool hasNext, bool isInterruptionActive, + int clipInfoCount, int nextClipInfoCount, int interruptingClipInfoCount, + IList clipInfo, IList nextClipInfo, IList interruptingClipInfo) { + + if (clipInfos.clipResolvedWeights.Length < clipInfoCount) { + System.Array.Resize(ref clipInfos.clipResolvedWeights, clipInfoCount); + } + if (hasNext && clipInfos.nextClipResolvedWeights.Length < nextClipInfoCount) { + System.Array.Resize(ref clipInfos.nextClipResolvedWeights, nextClipInfoCount); + } + if (isInterruptionActive && clipInfos.interruptingClipResolvedWeights.Length < interruptingClipInfoCount) { + System.Array.Resize(ref clipInfos.interruptingClipResolvedWeights, interruptingClipInfoCount); + } + + float inverseWeight = 1.0f; + if (isInterruptionActive) { + for (int c = interruptingClipInfoCount - 1; c >= 0; c--) { + float unityWeight = interruptingClipInfo[c].weight; + clipInfos.interruptingClipResolvedWeights[c] = interruptingClipInfo[c].weight * inverseWeight; + inverseWeight /= (1.0f - unityWeight); + } + } + if (hasNext) { + for (int c = nextClipInfoCount - 1; c >= 0; c--) { + float unityWeight = nextClipInfo[c].weight; + clipInfos.nextClipResolvedWeights[c] = nextClipInfo[c].weight * inverseWeight; + inverseWeight /= (1.0f - unityWeight); + } + } + for (int c = clipInfoCount - 1; c >= 0; c--) { + float unityWeight = clipInfo[c].weight; + clipInfos.clipResolvedWeights[c] = (c == 0) ? 1f : clipInfo[c].weight * inverseWeight; + inverseWeight /= (1.0f - unityWeight); + } + } + public KeyValuePair GetActiveAnimationAndTime (int layer) { if (layer >= layerClipInfos.Length) return new KeyValuePair(null, 0); diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Components/SkeletonRenderSeparator/SkeletonRenderSeparator.cs b/Assets/ThirdParty/Spine/Runtime/spine-unity/Components/SkeletonRenderSeparator/SkeletonRenderSeparator.cs index 7f5921fc1..bfc0fa07e 100644 --- a/Assets/ThirdParty/Spine/Runtime/spine-unity/Components/SkeletonRenderSeparator/SkeletonRenderSeparator.cs +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Components/SkeletonRenderSeparator/SkeletonRenderSeparator.cs @@ -73,6 +73,7 @@ namespace Spine.Unity { [Tooltip("Copies MeshRenderer flags into each parts renderer")] public bool copyMeshRendererFlags = true; public List partsRenderers = new List(); + [System.NonSerialized] public bool isVisible = true; #if UNITY_EDITOR void Reset () { @@ -197,6 +198,10 @@ namespace Spine.Unity { skeletonRenderer.LateUpdateMesh(); } + public void Update () { + UpdateVisibility(); + } + public void OnDisable () { if (skeletonRenderer == null) return; #if SPINE_OPTIONAL_RENDEROVERRIDE @@ -206,6 +211,24 @@ namespace Spine.Unity { ClearPartsRendererMeshes(); } + public void UpdateVisibility () { + foreach (SkeletonPartsRenderer partsRenderer in partsRenderers) { + if (partsRenderer == null) continue; + + if (partsRenderer.MeshRenderer.isVisible) { + if (!isVisible) { + skeletonRenderer.OnBecameVisible(); + isVisible = true; + } + return; + } + } + if (isVisible) { + isVisible = false; + skeletonRenderer.OnBecameInvisible(); + } + } + MaterialPropertyBlock copiedBlock; void HandleRender (SkeletonRendererInstruction instruction) { diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Components/SkeletonRenderer.cs b/Assets/ThirdParty/Spine/Runtime/spine-unity/Components/SkeletonRenderer.cs index 9f0ee69a4..3ba2c43e3 100644 --- a/Assets/ThirdParty/Spine/Runtime/spine-unity/Components/SkeletonRenderer.cs +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Components/SkeletonRenderer.cs @@ -271,6 +271,11 @@ namespace Spine.Unity { [System.NonSerialized] readonly SkeletonRendererInstruction currentInstructions = new SkeletonRendererInstruction(); readonly MeshGenerator meshGenerator = new MeshGenerator(); [System.NonSerialized] readonly MeshRendererBuffers rendererBuffers = new MeshRendererBuffers(); + + /// Returns the used by this renderer for use with e.g. + /// + /// + public SkeletonClipping SkeletonClipping { get { return meshGenerator.SkeletonClipping; } } #endregion #region Cached component references @@ -289,6 +294,75 @@ namespace Spine.Unity { } #endregion + #region Physics + /// + [SerializeField] protected Vector2 physicsPositionInheritanceFactor = Vector2.one; + /// + [SerializeField] protected float physicsRotationInheritanceFactor = 1.0f; + /// Reference transform relative to which physics movement will be calculated, or null to use world location. + [SerializeField] protected Transform physicsMovementRelativeTo = null; + + /// Used for applying Transform translation to skeleton PhysicsConstraints. + protected Vector3 lastPosition; + /// Used for applying Transform rotation to skeleton PhysicsConstraints. + protected float lastRotation; + + /// When set to non-zero, Transform position movement in X and Y direction + /// is applied to skeleton PhysicsConstraints, multiplied by this scale factor. + /// Typical values are Vector2.one to apply XY movement 1:1, + /// Vector2(2f, 2f) to apply movement with double intensity, + /// Vector2(1f, 0f) to apply only horizontal movement, or + /// Vector2.zero to not apply any Transform position movement at all. + public Vector2 PhysicsPositionInheritanceFactor { + get { + return physicsPositionInheritanceFactor; + } + set { + if (physicsPositionInheritanceFactor == Vector2.zero && value != Vector2.zero) ResetLastPosition(); + physicsPositionInheritanceFactor = value; + } + } + + /// When set to non-zero, Transform rotation movement is applied to skeleton PhysicsConstraints, + /// multiplied by this scale factor. Typical values are 1 to apply movement 1:1, + /// 2 to apply movement with double intensity, or + /// 0 to not apply any Transform rotation movement at all. + public float PhysicsRotationInheritanceFactor { + get { + return physicsRotationInheritanceFactor; + } + set { + if (physicsRotationInheritanceFactor == 0f && value != 0f) ResetLastRotation(); + physicsRotationInheritanceFactor = value; + } + } + + /// Reference transform relative to which physics movement will be calculated, or null to use world location. + public Transform PhysicsMovementRelativeTo { + get { + return physicsMovementRelativeTo; + } + set { + physicsMovementRelativeTo = value; + if (physicsPositionInheritanceFactor != Vector2.zero) ResetLastPosition(); + if (physicsRotationInheritanceFactor != 0f) ResetLastRotation(); + } + } + + public void ResetLastPosition () { + lastPosition = GetPhysicsTransformPosition(); + } + + public void ResetLastRotation () { + lastRotation = GetPhysicsTransformRotation(); + } + + public void ResetLastPositionAndRotation () { + lastPosition = GetPhysicsTransformPosition(); + lastRotation = GetPhysicsTransformRotation(); + } + #endregion + public delegate void SkeletonRendererDelegate (SkeletonRenderer skeletonRenderer); /// OnRebuild is raised after the Skeleton is successfully initialized. @@ -399,7 +473,7 @@ namespace Spine.Unity { if (skeletonDataAsset == null) return; - SkeletonData skeletonData = skeletonDataAsset.GetSkeletonData(false); + SkeletonData skeletonData = skeletonDataAsset.GetSkeletonData(quiet); if (skeletonData == null) return; valid = true; @@ -415,6 +489,8 @@ namespace Spine.Unity { ScaleY = initialFlipY ? -1 : 1 }; + ResetLastPositionAndRotation(); + if (!string.IsNullOrEmpty(initialSkinName) && !string.Equals(initialSkinName, "default", System.StringComparison.Ordinal)) skeleton.SetSkin(initialSkinName); @@ -425,7 +501,7 @@ namespace Spine.Unity { // Generate mesh once, required to update mesh bounds for visibility UpdateMode updateModeSaved = updateMode; updateMode = UpdateMode.FullUpdate; - skeleton.UpdateWorldTransform(); + UpdateWorldTransform(Skeleton.Physics.Update); LateUpdate(); updateMode = updateModeSaved; @@ -441,6 +517,58 @@ namespace Spine.Unity { #endif } + public virtual void ApplyTransformMovementToPhysics () { + if (Application.isPlaying) { + if (physicsPositionInheritanceFactor != Vector2.zero) { + Vector3 position = GetPhysicsTransformPosition(); + Vector3 positionDelta = position - lastPosition; + + positionDelta = transform.InverseTransformVector(positionDelta); + if (physicsMovementRelativeTo != null) { + positionDelta = physicsMovementRelativeTo.TransformVector(positionDelta); + } + positionDelta.x *= physicsPositionInheritanceFactor.x; + positionDelta.y *= physicsPositionInheritanceFactor.y; + + skeleton.PhysicsTranslate(positionDelta.x, positionDelta.y); + lastPosition = position; + } + if (physicsRotationInheritanceFactor != 0f) { + float rotation = GetPhysicsTransformRotation(); + skeleton.PhysicsRotate(0, 0, physicsRotationInheritanceFactor * (rotation - lastRotation)); + lastRotation = rotation; + } + } + } + + protected Vector3 GetPhysicsTransformPosition () { + if (physicsMovementRelativeTo == null) { + return transform.position; + } else { + if (physicsMovementRelativeTo == transform.parent) + return transform.localPosition; + else + return physicsMovementRelativeTo.InverseTransformPoint(transform.position); + } + } + + protected float GetPhysicsTransformRotation () { + if (physicsMovementRelativeTo == null) { + return this.transform.rotation.eulerAngles.z; + } else { + if (physicsMovementRelativeTo == this.transform.parent) + return this.transform.localRotation.eulerAngles.z; + else { + Quaternion relative = Quaternion.Inverse(physicsMovementRelativeTo.rotation) * this.transform.rotation; + return relative.eulerAngles.z; + } + } + } + + protected virtual void UpdateWorldTransform (Skeleton.Physics physics) { + skeleton.UpdateWorldTransform(physics); + } + /// /// Generates a new UnityEngine.Mesh from the internal Skeleton. public virtual void LateUpdate () { diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Components/SkeletonUtility/SkeletonUtility.cs b/Assets/ThirdParty/Spine/Runtime/spine-unity/Components/SkeletonUtility/SkeletonUtility.cs index 071ad9a30..aa75739c1 100644 --- a/Assets/ThirdParty/Spine/Runtime/spine-unity/Components/SkeletonUtility/SkeletonUtility.cs +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Components/SkeletonUtility/SkeletonUtility.cs @@ -159,6 +159,38 @@ namespace Spine.Unity { if (skeletonGraphic != null) { positionScale = skeletonGraphic.MeshScale; + lastPositionScale = positionScale; + if (boneRoot) { + positionOffset = skeletonGraphic.MeshOffset; + if (positionOffset != Vector2.zero) { + boneRoot.localPosition = positionOffset; + } + } + } + } + + void UpdateToMeshScaleAndOffset (MeshGeneratorBuffers ignoredParameter) { + if (skeletonGraphic == null) return; + + positionScale = skeletonGraphic.MeshScale; + if (boneRoot) { + positionOffset = skeletonGraphic.MeshOffset; + if (positionOffset != Vector2.zero) { + boneRoot.localPosition = positionOffset; + } + } + + // Note: skeletonGraphic.MeshScale and MeshOffset can be one frame behind in Update() above. + // Unfortunately update order is: + // 1. SkeletonGraphic.Update updating skeleton bones and calling UpdateWorld callback, + // calling SkeletonUtilityBone.DoUpdate() reading hierarchy.PositionScale. + // 2. Layout change triggers SkeletonGraphic.Rebuild, updating MeshScale and MeshOffset. + // Thus to prevent a one-frame-behind offset after a layout change affecting mesh scale, + // we have to re-evaluate the callbacks via the lines below. + if (lastPositionScale != positionScale) { + UpdateLocal(skeletonAnimation); + UpdateWorld(skeletonAnimation); + UpdateComplete(skeletonAnimation); } } @@ -170,7 +202,6 @@ namespace Spine.Unity { [System.NonSerialized] public List boneComponents = new List(); [System.NonSerialized] public List constraintComponents = new List(); - public ISkeletonComponent SkeletonComponent { get { if (skeletonComponent == null) { @@ -197,15 +228,47 @@ namespace Spine.Unity { } public float PositionScale { get { return positionScale; } } + public Vector2 PositionOffset { get { return positionOffset; } } float positionScale = 1.0f; + float lastPositionScale = 1.0f; + Vector2 positionOffset = Vector2.zero; bool hasOverrideBones; bool hasConstraints; bool needToReprocessBones; public void ResubscribeEvents () { - OnDisable(); - OnEnable(); + ResubscribeIndependentEvents(); + ResubscribeDependentEvents(); + } + + void ResubscribeIndependentEvents () { + if (skeletonRenderer != null) { + skeletonRenderer.OnRebuild -= HandleRendererReset; + skeletonRenderer.OnRebuild += HandleRendererReset; + } else if (skeletonGraphic != null) { + skeletonGraphic.OnRebuild -= HandleRendererReset; + skeletonGraphic.OnRebuild += HandleRendererReset; + skeletonGraphic.OnPostProcessVertices -= UpdateToMeshScaleAndOffset; + skeletonGraphic.OnPostProcessVertices += UpdateToMeshScaleAndOffset; + } + + if (skeletonAnimation != null) { + skeletonAnimation.UpdateLocal -= UpdateLocal; + skeletonAnimation.UpdateLocal += UpdateLocal; + } + } + + void ResubscribeDependentEvents () { + if (skeletonAnimation != null) { + skeletonAnimation.UpdateWorld -= UpdateWorld; + skeletonAnimation.UpdateComplete -= UpdateComplete; + + if (hasOverrideBones || hasConstraints) + skeletonAnimation.UpdateWorld += UpdateWorld; + if (hasConstraints) + skeletonAnimation.UpdateComplete += UpdateComplete; + } } void OnEnable () { @@ -225,21 +288,8 @@ namespace Spine.Unity { skeletonGraphic != null ? skeletonGraphic.GetComponent() : GetComponent(); } - - if (skeletonRenderer != null) { - skeletonRenderer.OnRebuild -= HandleRendererReset; - skeletonRenderer.OnRebuild += HandleRendererReset; - } else if (skeletonGraphic != null) { - skeletonGraphic.OnRebuild -= HandleRendererReset; - skeletonGraphic.OnRebuild += HandleRendererReset; - } - - if (skeletonAnimation != null) { - skeletonAnimation.UpdateLocal -= UpdateLocal; - skeletonAnimation.UpdateLocal += UpdateLocal; - } - CollectBones(); + ResubscribeEvents(); } void Start () { @@ -250,8 +300,10 @@ namespace Spine.Unity { void OnDisable () { if (skeletonRenderer != null) skeletonRenderer.OnRebuild -= HandleRendererReset; - if (skeletonGraphic != null) + if (skeletonGraphic != null) { skeletonGraphic.OnRebuild -= HandleRendererReset; + skeletonGraphic.OnPostProcessVertices -= UpdateToMeshScaleAndOffset; + } if (skeletonAnimation != null) { skeletonAnimation.UpdateLocal -= UpdateLocal; @@ -322,23 +374,12 @@ namespace Spine.Unity { } hasConstraints |= constraintComponents.Count > 0; - - if (skeletonAnimation != null) { - skeletonAnimation.UpdateWorld -= UpdateWorld; - skeletonAnimation.UpdateComplete -= UpdateComplete; - - if (hasOverrideBones || hasConstraints) - skeletonAnimation.UpdateWorld += UpdateWorld; - - if (hasConstraints) - skeletonAnimation.UpdateComplete += UpdateComplete; - } - needToReprocessBones = false; } else { boneComponents.Clear(); constraintComponents.Clear(); } + ResubscribeDependentEvents(); } void UpdateLocal (ISkeletonAnimation anim) { @@ -449,7 +490,7 @@ namespace Spine.Unity { if (mode == SkeletonUtilityBone.Mode.Override) { if (rot) goTransform.localRotation = Quaternion.Euler(0, 0, b.bone.AppliedRotation); - if (pos) goTransform.localPosition = new Vector3(b.bone.X * positionScale, b.bone.Y * positionScale, 0); + if (pos) goTransform.localPosition = new Vector3(b.bone.X * positionScale + positionOffset.x, b.bone.Y * positionScale + positionOffset.y, 0); goTransform.localScale = new Vector3(b.bone.ScaleX, b.bone.ScaleY, 0); } diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Components/SkeletonUtility/SkeletonUtilityBone.cs b/Assets/ThirdParty/Spine/Runtime/spine-unity/Components/SkeletonUtility/SkeletonUtilityBone.cs index f65aa9d72..367fcc8a4 100644 --- a/Assets/ThirdParty/Spine/Runtime/spine-unity/Components/SkeletonUtility/SkeletonUtilityBone.cs +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Components/SkeletonUtility/SkeletonUtilityBone.cs @@ -130,10 +130,11 @@ namespace Spine.Unity { switch (phase) { case UpdatePhase.Local: if (position) - thisTransform.localPosition = new Vector3(bone.X * positionScale, bone.Y * positionScale, 0); + thisTransform.localPosition = new Vector3(bone.X * positionScale, bone.Y * positionScale, + zPosition ? 0 : thisTransform.localPosition.z); if (rotation) { - if (bone.Data.TransformMode.InheritsRotation()) { + if (bone.Data.Inherit.InheritsRotation()) { thisTransform.localRotation = Quaternion.Euler(0, 0, bone.Rotation); } else { Vector3 euler = skeletonTransform.rotation.eulerAngles; @@ -149,10 +150,11 @@ namespace Spine.Unity { case UpdatePhase.World: case UpdatePhase.Complete: if (position) - thisTransform.localPosition = new Vector3(bone.AX * positionScale, bone.AY * positionScale, 0); + thisTransform.localPosition = new Vector3(bone.AX * positionScale, bone.AY * positionScale, + zPosition ? 0 : thisTransform.localPosition.z); if (rotation) { - if (bone.Data.TransformMode.InheritsRotation()) { + if (bone.Data.Inherit.InheritsRotation()) { thisTransform.localRotation = Quaternion.Euler(0, 0, bone.AppliedRotation); } else { Vector3 euler = skeletonTransform.rotation.eulerAngles; @@ -220,7 +222,7 @@ namespace Spine.Unity { } public static bool BoneTransformModeIncompatible (Bone bone) { - return !bone.Data.TransformMode.InheritsScale(); + return !bone.Data.Inherit.InheritsScale(); } public void AddBoundingBox (string skinName, string slotName, string attachmentName) { diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-PMATexture.meta b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-PMATexture.meta new file mode 100644 index 000000000..028782d06 --- /dev/null +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-PMATexture.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: c3a20550c5d72724ba4dc07eb0c12fb0 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-PMATexture/CanvasGroup.meta b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-PMATexture/CanvasGroup.meta new file mode 100644 index 000000000..53066998f --- /dev/null +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-PMATexture/CanvasGroup.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: e179aebfa743e6c43aa4a8a7de5f9172 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-PMATexture/CanvasGroup/SkeletonGraphicAdditive-CanvasGroup.mat b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-PMATexture/CanvasGroup/SkeletonGraphicAdditive-CanvasGroup.mat new file mode 100644 index 000000000..c92d24610 --- /dev/null +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-PMATexture/CanvasGroup/SkeletonGraphicAdditive-CanvasGroup.mat @@ -0,0 +1,99 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!21 &2100000 +Material: + serializedVersion: 6 + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: SkeletonGraphicAdditive-CanvasGroup + m_Shader: {fileID: 4800000, guid: a1e4ab34b07f81e4e94f0d241c416669, type: 3} + m_ShaderKeywords: _CANVAS_GROUP_COMPATIBLE + m_LightmapFlags: 5 + m_EnableInstancingVariants: 0 + m_DoubleSidedGI: 0 + m_CustomRenderQueue: -1 + stringTagMap: {} + disabledShaderPasses: [] + m_SavedProperties: + serializedVersion: 3 + m_TexEnvs: + - _AlphaTex: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _BumpMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailAlbedoMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailMask: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailNormalMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _EmissionMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _MainTex: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _MetallicGlossMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _OcclusionMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _ParallaxMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + m_Floats: + - PixelSnap: 0 + - _BumpScale: 1 + - _CanvasGroupCompatible: 1 + - _ColorMask: 15 + - _Cutoff: 0.5 + - _DetailNormalMapScale: 1 + - _DstBlend: 0 + - _EnableExternalAlpha: 0 + - _Glossiness: 0.5 + - _Metallic: 0 + - _Mode: 0 + - _OcclusionStrength: 1 + - _OutlineMipLevel: 0 + - _OutlineOpaqueAlpha: 1 + - _OutlineReferenceTexWidth: 1024 + - _OutlineSmoothness: 1 + - _OutlineWidth: 3 + - _Parallax: 0.02 + - _SrcBlend: 1 + - _Stencil: 0 + - _StencilComp: 8 + - _StencilOp: 0 + - _StencilReadMask: 255 + - _StencilWriteMask: 255 + - _StraightAlphaInput: 0 + - _ThresholdEnd: 0.25 + - _UVSec: 0 + - _Use8Neighbourhood: 1 + - _UseUIAlphaClip: 0 + - _ZWrite: 1 + m_Colors: + - _Color: {r: 1, g: 1, b: 1, a: 1} + - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} + - _Flip: {r: 1, g: 1, b: 1, a: 1} + - _OutlineColor: {r: 1, g: 1, b: 0, a: 1} + - _RendererColor: {r: 1, g: 1, b: 1, a: 1} + m_BuildTextureStacks: [] diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/2D.meta b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-PMATexture/CanvasGroup/SkeletonGraphicAdditive-CanvasGroup.mat.meta similarity index 54% rename from Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/2D.meta rename to Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-PMATexture/CanvasGroup/SkeletonGraphicAdditive-CanvasGroup.mat.meta index 9d5307cf8..6d7bb6f2c 100644 --- a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/2D.meta +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-PMATexture/CanvasGroup/SkeletonGraphicAdditive-CanvasGroup.mat.meta @@ -1,8 +1,8 @@ -fileFormatVersion: 2 -guid: af82c172444238a4e8c5a4cccc9293f0 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: +fileFormatVersion: 2 +guid: 3e764190161692c419740074bda0982c +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 0 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-PMATexture/CanvasGroup/SkeletonGraphicDefault-CanvasGroup.mat b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-PMATexture/CanvasGroup/SkeletonGraphicDefault-CanvasGroup.mat new file mode 100644 index 000000000..58d6122e5 --- /dev/null +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-PMATexture/CanvasGroup/SkeletonGraphicDefault-CanvasGroup.mat @@ -0,0 +1,99 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!21 &2100000 +Material: + serializedVersion: 6 + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: SkeletonGraphicDefault-CanvasGroup + m_Shader: {fileID: 4800000, guid: fa95b0fb6983c0f40a152e6f9aa82bfb, type: 3} + m_ShaderKeywords: _CANVAS_GROUP_COMPATIBLE + m_LightmapFlags: 5 + m_EnableInstancingVariants: 0 + m_DoubleSidedGI: 0 + m_CustomRenderQueue: -1 + stringTagMap: {} + disabledShaderPasses: [] + m_SavedProperties: + serializedVersion: 3 + m_TexEnvs: + - _AlphaTex: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _BumpMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailAlbedoMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailMask: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailNormalMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _EmissionMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _MainTex: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _MetallicGlossMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _OcclusionMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _ParallaxMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + m_Floats: + - PixelSnap: 0 + - _BumpScale: 1 + - _CanvasGroupCompatible: 1 + - _ColorMask: 15 + - _Cutoff: 0.5 + - _DetailNormalMapScale: 1 + - _DstBlend: 0 + - _EnableExternalAlpha: 0 + - _Glossiness: 0.5 + - _Metallic: 0 + - _Mode: 0 + - _OcclusionStrength: 1 + - _OutlineMipLevel: 0 + - _OutlineOpaqueAlpha: 1 + - _OutlineReferenceTexWidth: 1024 + - _OutlineSmoothness: 1 + - _OutlineWidth: 3 + - _Parallax: 0.02 + - _SrcBlend: 1 + - _Stencil: 0 + - _StencilComp: 8 + - _StencilOp: 0 + - _StencilReadMask: 255 + - _StencilWriteMask: 255 + - _StraightAlphaInput: 0 + - _ThresholdEnd: 0.25 + - _UVSec: 0 + - _Use8Neighbourhood: 1 + - _UseUIAlphaClip: 0 + - _ZWrite: 1 + m_Colors: + - _Color: {r: 1, g: 1, b: 1, a: 1} + - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} + - _Flip: {r: 1, g: 1, b: 1, a: 1} + - _OutlineColor: {r: 1, g: 1, b: 0, a: 1} + - _RendererColor: {r: 1, g: 1, b: 1, a: 1} + m_BuildTextureStacks: [] diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-PMATexture/CanvasGroup/SkeletonGraphicDefault-CanvasGroup.mat.meta b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-PMATexture/CanvasGroup/SkeletonGraphicDefault-CanvasGroup.mat.meta new file mode 100644 index 000000000..3437d0930 --- /dev/null +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-PMATexture/CanvasGroup/SkeletonGraphicDefault-CanvasGroup.mat.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 066d2ecbc1c3c0d4292b48cd9b457715 +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 0 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-PMATexture/CanvasGroup/SkeletonGraphicDefaultGrayscale-CanvasGroup.mat b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-PMATexture/CanvasGroup/SkeletonGraphicDefaultGrayscale-CanvasGroup.mat new file mode 100644 index 000000000..e8612b6e0 --- /dev/null +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-PMATexture/CanvasGroup/SkeletonGraphicDefaultGrayscale-CanvasGroup.mat @@ -0,0 +1,99 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!21 &2100000 +Material: + serializedVersion: 6 + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: SkeletonGraphicDefaultGrayscale-CanvasGroup + m_Shader: {fileID: 4800000, guid: fa95b0fb6983c0f40a152e6f9aa82bfb, type: 3} + m_ShaderKeywords: _CANVAS_GROUP_COMPATIBLE + m_LightmapFlags: 5 + m_EnableInstancingVariants: 0 + m_DoubleSidedGI: 0 + m_CustomRenderQueue: -1 + stringTagMap: {} + disabledShaderPasses: [] + m_SavedProperties: + serializedVersion: 3 + m_TexEnvs: + - _AlphaTex: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _BumpMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailAlbedoMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailMask: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailNormalMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _EmissionMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _MainTex: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _MetallicGlossMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _OcclusionMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _ParallaxMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + m_Floats: + - PixelSnap: 0 + - _BumpScale: 1 + - _CanvasGroupCompatible: 1 + - _ColorMask: 15 + - _Cutoff: 0.5 + - _DetailNormalMapScale: 1 + - _DstBlend: 0 + - _EnableExternalAlpha: 0 + - _Glossiness: 0.5 + - _Metallic: 0 + - _Mode: 0 + - _OcclusionStrength: 1 + - _OutlineMipLevel: 0 + - _OutlineOpaqueAlpha: 1 + - _OutlineReferenceTexWidth: 1024 + - _OutlineSmoothness: 1 + - _OutlineWidth: 3 + - _Parallax: 0.02 + - _SrcBlend: 1 + - _Stencil: 0 + - _StencilComp: 8 + - _StencilOp: 0 + - _StencilReadMask: 255 + - _StencilWriteMask: 255 + - _StraightAlphaInput: 0 + - _ThresholdEnd: 0.25 + - _UVSec: 0 + - _Use8Neighbourhood: 1 + - _UseUIAlphaClip: 0 + - _ZWrite: 1 + m_Colors: + - _Color: {r: 1, g: 1, b: 1, a: 1} + - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} + - _Flip: {r: 1, g: 1, b: 1, a: 1} + - _OutlineColor: {r: 1, g: 1, b: 0, a: 1} + - _RendererColor: {r: 1, g: 1, b: 1, a: 1} + m_BuildTextureStacks: [] diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-PMATexture/CanvasGroup/SkeletonGraphicDefaultGrayscale-CanvasGroup.mat.meta b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-PMATexture/CanvasGroup/SkeletonGraphicDefaultGrayscale-CanvasGroup.mat.meta new file mode 100644 index 000000000..7b373a50f --- /dev/null +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-PMATexture/CanvasGroup/SkeletonGraphicDefaultGrayscale-CanvasGroup.mat.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 60a164b8b81e803449b4182f9d744776 +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 0 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-PMATexture/CanvasGroup/SkeletonGraphicDefaultOutline-CanvasGroup.mat b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-PMATexture/CanvasGroup/SkeletonGraphicDefaultOutline-CanvasGroup.mat new file mode 100644 index 000000000..b97b10cea --- /dev/null +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-PMATexture/CanvasGroup/SkeletonGraphicDefaultOutline-CanvasGroup.mat @@ -0,0 +1,99 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!21 &2100000 +Material: + serializedVersion: 6 + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: SkeletonGraphicDefaultOutline-CanvasGroup + m_Shader: {fileID: 4800000, guid: 8f5d14d2a7fedb84998c50eb96c8b748, type: 3} + m_ShaderKeywords: _CANVAS_GROUP_COMPATIBLE _USE8NEIGHBOURHOOD_ON + m_LightmapFlags: 5 + m_EnableInstancingVariants: 0 + m_DoubleSidedGI: 0 + m_CustomRenderQueue: -1 + stringTagMap: {} + disabledShaderPasses: [] + m_SavedProperties: + serializedVersion: 3 + m_TexEnvs: + - _AlphaTex: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _BumpMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailAlbedoMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailMask: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailNormalMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _EmissionMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _MainTex: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _MetallicGlossMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _OcclusionMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _ParallaxMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + m_Floats: + - PixelSnap: 0 + - _BumpScale: 1 + - _CanvasGroupCompatible: 1 + - _ColorMask: 15 + - _Cutoff: 0.5 + - _DetailNormalMapScale: 1 + - _DstBlend: 0 + - _EnableExternalAlpha: 0 + - _Glossiness: 0.5 + - _Metallic: 0 + - _Mode: 0 + - _OcclusionStrength: 1 + - _OutlineMipLevel: 0 + - _OutlineOpaqueAlpha: 1 + - _OutlineReferenceTexWidth: 1024 + - _OutlineSmoothness: 1 + - _OutlineWidth: 3 + - _Parallax: 0.02 + - _SrcBlend: 1 + - _Stencil: 0 + - _StencilComp: 8 + - _StencilOp: 0 + - _StencilReadMask: 255 + - _StencilWriteMask: 255 + - _StraightAlphaInput: 0 + - _ThresholdEnd: 0.25 + - _UVSec: 0 + - _Use8Neighbourhood: 1 + - _UseUIAlphaClip: 0 + - _ZWrite: 1 + m_Colors: + - _Color: {r: 1, g: 1, b: 1, a: 1} + - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} + - _Flip: {r: 1, g: 1, b: 1, a: 1} + - _OutlineColor: {r: 1, g: 1, b: 0, a: 1} + - _RendererColor: {r: 1, g: 1, b: 1, a: 1} + m_BuildTextureStacks: [] diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-PMATexture/CanvasGroup/SkeletonGraphicDefaultOutline-CanvasGroup.mat.meta b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-PMATexture/CanvasGroup/SkeletonGraphicDefaultOutline-CanvasGroup.mat.meta new file mode 100644 index 000000000..ebd7a197c --- /dev/null +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-PMATexture/CanvasGroup/SkeletonGraphicDefaultOutline-CanvasGroup.mat.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 7a7d714c0736ac648a211af82dabcd73 +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 0 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-PMATexture/CanvasGroup/SkeletonGraphicFill-CanvasGroup.mat b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-PMATexture/CanvasGroup/SkeletonGraphicFill-CanvasGroup.mat new file mode 100644 index 000000000..5a0311e2c --- /dev/null +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-PMATexture/CanvasGroup/SkeletonGraphicFill-CanvasGroup.mat @@ -0,0 +1,101 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!21 &2100000 +Material: + serializedVersion: 6 + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: SkeletonGraphicFill-CanvasGroup + m_Shader: {fileID: 4800000, guid: c02377d9afbb50e49ab27049e59fb5f8, type: 3} + m_ShaderKeywords: _CANVAS_GROUP_COMPATIBLE _USE8NEIGHBOURHOOD_ON + m_LightmapFlags: 5 + m_EnableInstancingVariants: 0 + m_DoubleSidedGI: 0 + m_CustomRenderQueue: -1 + stringTagMap: {} + disabledShaderPasses: [] + m_SavedProperties: + serializedVersion: 3 + m_TexEnvs: + - _AlphaTex: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _BumpMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailAlbedoMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailMask: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailNormalMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _EmissionMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _MainTex: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _MetallicGlossMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _OcclusionMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _ParallaxMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + m_Floats: + - PixelSnap: 0 + - _BumpScale: 1 + - _CanvasGroupCompatible: 1 + - _ColorMask: 15 + - _Cutoff: 0.5 + - _DetailNormalMapScale: 1 + - _DstBlend: 0 + - _EnableExternalAlpha: 0 + - _FillPhase: 1 + - _Glossiness: 0.5 + - _Metallic: 0 + - _Mode: 0 + - _OcclusionStrength: 1 + - _OutlineMipLevel: 0 + - _OutlineOpaqueAlpha: 1 + - _OutlineReferenceTexWidth: 1024 + - _OutlineSmoothness: 1 + - _OutlineWidth: 3 + - _Parallax: 0.02 + - _SrcBlend: 1 + - _Stencil: 0 + - _StencilComp: 8 + - _StencilOp: 0 + - _StencilReadMask: 255 + - _StencilWriteMask: 255 + - _StraightAlphaInput: 0 + - _ThresholdEnd: 0.25 + - _UVSec: 0 + - _Use8Neighbourhood: 1 + - _UseUIAlphaClip: 0 + - _ZWrite: 1 + m_Colors: + - _Color: {r: 1, g: 1, b: 1, a: 1} + - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} + - _FillColor: {r: 1, g: 1, b: 1, a: 1} + - _Flip: {r: 1, g: 1, b: 1, a: 1} + - _OutlineColor: {r: 1, g: 1, b: 0, a: 1} + - _RendererColor: {r: 1, g: 1, b: 1, a: 1} + m_BuildTextureStacks: [] diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-PMATexture/CanvasGroup/SkeletonGraphicFill-CanvasGroup.mat.meta b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-PMATexture/CanvasGroup/SkeletonGraphicFill-CanvasGroup.mat.meta new file mode 100644 index 000000000..f4ea0c56a --- /dev/null +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-PMATexture/CanvasGroup/SkeletonGraphicFill-CanvasGroup.mat.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: d6194e6915200c247ab8fe03fba08afd +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 0 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-PMATexture/CanvasGroup/SkeletonGraphicMultiply-CanvasGroup.mat b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-PMATexture/CanvasGroup/SkeletonGraphicMultiply-CanvasGroup.mat new file mode 100644 index 000000000..f2003e12b --- /dev/null +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-PMATexture/CanvasGroup/SkeletonGraphicMultiply-CanvasGroup.mat @@ -0,0 +1,99 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!21 &2100000 +Material: + serializedVersion: 6 + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: SkeletonGraphicMultiply-CanvasGroup + m_Shader: {fileID: 4800000, guid: cfbf95ed0fe6c554c8c2ee6c8325937c, type: 3} + m_ShaderKeywords: _CANVAS_GROUP_COMPATIBLE + m_LightmapFlags: 5 + m_EnableInstancingVariants: 0 + m_DoubleSidedGI: 0 + m_CustomRenderQueue: -1 + stringTagMap: {} + disabledShaderPasses: [] + m_SavedProperties: + serializedVersion: 3 + m_TexEnvs: + - _AlphaTex: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _BumpMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailAlbedoMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailMask: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailNormalMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _EmissionMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _MainTex: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _MetallicGlossMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _OcclusionMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _ParallaxMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + m_Floats: + - PixelSnap: 0 + - _BumpScale: 1 + - _CanvasGroupCompatible: 1 + - _ColorMask: 15 + - _Cutoff: 0.5 + - _DetailNormalMapScale: 1 + - _DstBlend: 0 + - _EnableExternalAlpha: 0 + - _Glossiness: 0.5 + - _Metallic: 0 + - _Mode: 0 + - _OcclusionStrength: 1 + - _OutlineMipLevel: 0 + - _OutlineOpaqueAlpha: 1 + - _OutlineReferenceTexWidth: 1024 + - _OutlineSmoothness: 1 + - _OutlineWidth: 3 + - _Parallax: 0.02 + - _SrcBlend: 1 + - _Stencil: 0 + - _StencilComp: 8 + - _StencilOp: 0 + - _StencilReadMask: 255 + - _StencilWriteMask: 255 + - _StraightAlphaInput: 0 + - _ThresholdEnd: 0.25 + - _UVSec: 0 + - _Use8Neighbourhood: 1 + - _UseUIAlphaClip: 0 + - _ZWrite: 1 + m_Colors: + - _Color: {r: 1, g: 1, b: 1, a: 1} + - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} + - _Flip: {r: 1, g: 1, b: 1, a: 1} + - _OutlineColor: {r: 1, g: 1, b: 0, a: 1} + - _RendererColor: {r: 1, g: 1, b: 1, a: 1} + m_BuildTextureStacks: [] diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-PMATexture/CanvasGroup/SkeletonGraphicMultiply-CanvasGroup.mat.meta b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-PMATexture/CanvasGroup/SkeletonGraphicMultiply-CanvasGroup.mat.meta new file mode 100644 index 000000000..101074e9f --- /dev/null +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-PMATexture/CanvasGroup/SkeletonGraphicMultiply-CanvasGroup.mat.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 7a74ac6c9b6638f4991ecdb090b8d5e0 +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 0 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-PMATexture/CanvasGroup/SkeletonGraphicScreen-CanvasGroup.mat b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-PMATexture/CanvasGroup/SkeletonGraphicScreen-CanvasGroup.mat new file mode 100644 index 000000000..16720664f --- /dev/null +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-PMATexture/CanvasGroup/SkeletonGraphicScreen-CanvasGroup.mat @@ -0,0 +1,99 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!21 &2100000 +Material: + serializedVersion: 6 + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: SkeletonGraphicScreen-CanvasGroup + m_Shader: {fileID: 4800000, guid: c61244023592f95479fddd71b5067683, type: 3} + m_ShaderKeywords: _CANVAS_GROUP_COMPATIBLE + m_LightmapFlags: 5 + m_EnableInstancingVariants: 0 + m_DoubleSidedGI: 0 + m_CustomRenderQueue: -1 + stringTagMap: {} + disabledShaderPasses: [] + m_SavedProperties: + serializedVersion: 3 + m_TexEnvs: + - _AlphaTex: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _BumpMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailAlbedoMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailMask: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailNormalMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _EmissionMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _MainTex: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _MetallicGlossMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _OcclusionMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _ParallaxMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + m_Floats: + - PixelSnap: 0 + - _BumpScale: 1 + - _CanvasGroupCompatible: 1 + - _ColorMask: 15 + - _Cutoff: 0.5 + - _DetailNormalMapScale: 1 + - _DstBlend: 0 + - _EnableExternalAlpha: 0 + - _Glossiness: 0.5 + - _Metallic: 0 + - _Mode: 0 + - _OcclusionStrength: 1 + - _OutlineMipLevel: 0 + - _OutlineOpaqueAlpha: 1 + - _OutlineReferenceTexWidth: 1024 + - _OutlineSmoothness: 1 + - _OutlineWidth: 3 + - _Parallax: 0.02 + - _SrcBlend: 1 + - _Stencil: 0 + - _StencilComp: 8 + - _StencilOp: 0 + - _StencilReadMask: 255 + - _StencilWriteMask: 255 + - _StraightAlphaInput: 0 + - _ThresholdEnd: 0.25 + - _UVSec: 0 + - _Use8Neighbourhood: 1 + - _UseUIAlphaClip: 0 + - _ZWrite: 1 + m_Colors: + - _Color: {r: 1, g: 1, b: 1, a: 1} + - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} + - _Flip: {r: 1, g: 1, b: 1, a: 1} + - _OutlineColor: {r: 1, g: 1, b: 0, a: 1} + - _RendererColor: {r: 1, g: 1, b: 1, a: 1} + m_BuildTextureStacks: [] diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-PMATexture/CanvasGroup/SkeletonGraphicScreen-CanvasGroup.mat.meta b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-PMATexture/CanvasGroup/SkeletonGraphicScreen-CanvasGroup.mat.meta new file mode 100644 index 000000000..408b94050 --- /dev/null +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-PMATexture/CanvasGroup/SkeletonGraphicScreen-CanvasGroup.mat.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 0506213a2fbcbb24083fb750fc42d32d +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 0 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/SkeletonGraphicTintBlack.mat b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-PMATexture/CanvasGroup/SkeletonGraphicTintBlack-CanvasGroup.mat similarity index 73% rename from Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/SkeletonGraphicTintBlack.mat rename to Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-PMATexture/CanvasGroup/SkeletonGraphicTintBlack-CanvasGroup.mat index 405a0ecc2..e95048ac4 100644 --- a/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/SkeletonGraphicTintBlack.mat +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-PMATexture/CanvasGroup/SkeletonGraphicTintBlack-CanvasGroup.mat @@ -2,18 +2,26 @@ %TAG !u! tag:unity3d.com,2011: --- !u!21 &2100000 Material: - serializedVersion: 6 + serializedVersion: 8 m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_Name: SkeletonGraphicTintBlack + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: SkeletonGraphicTintBlack-CanvasGroup m_Shader: {fileID: 4800000, guid: f64c7bc238bb2c246b8ca1912b2b6b9c, type: 3} - m_ShaderKeywords: + m_Parent: {fileID: 0} + m_ModifiedSerializedProperties: 0 + m_ValidKeywords: + - _CANVAS_GROUP_COMPATIBLE + m_InvalidKeywords: + - _USE8NEIGHBOURHOOD_ON m_LightmapFlags: 5 m_EnableInstancingVariants: 0 + m_DoubleSidedGI: 0 m_CustomRenderQueue: -1 stringTagMap: {} disabledShaderPasses: [] + m_LockedProperties: m_SavedProperties: serializedVersion: 3 m_TexEnvs: @@ -53,17 +61,24 @@ Material: m_Texture: {fileID: 0} m_Scale: {x: 1, y: 1} m_Offset: {x: 0, y: 0} + m_Ints: [] m_Floats: - _BumpScale: 1 - _CanvasGroupCompatible: 1 - _ColorMask: 15 - _Cutoff: 0.5 + - _DarkColorAlphaAdditive: 0 - _DetailNormalMapScale: 1 - _DstBlend: 0 - _Glossiness: 0.5 - _Metallic: 0 - _Mode: 0 - _OcclusionStrength: 1 + - _OutlineMipLevel: 0 + - _OutlineOpaqueAlpha: 1 + - _OutlineReferenceTexWidth: 1024 + - _OutlineSmoothness: 1 + - _OutlineWidth: 3 - _Parallax: 0.02 - _SrcBlend: 1 - _Stencil: 0 @@ -71,10 +86,15 @@ Material: - _StencilOp: 0 - _StencilReadMask: 255 - _StencilWriteMask: 255 + - _StraightAlphaInput: 0 + - _ThresholdEnd: 0.25 - _UVSec: 0 + - _Use8Neighbourhood: 1 - _UseUIAlphaClip: 0 - _ZWrite: 1 m_Colors: - _Black: {r: 0, g: 0, b: 0, a: 0} - _Color: {r: 1, g: 1, b: 1, a: 1} - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} + - _OutlineColor: {r: 1, g: 1, b: 0, a: 1} + m_BuildTextureStacks: [] diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-PMATexture/CanvasGroup/SkeletonGraphicTintBlack-CanvasGroup.mat.meta b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-PMATexture/CanvasGroup/SkeletonGraphicTintBlack-CanvasGroup.mat.meta new file mode 100644 index 000000000..d39e0aacc --- /dev/null +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-PMATexture/CanvasGroup/SkeletonGraphicTintBlack-CanvasGroup.mat.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 9af1ae5066792d3498617d1d9924e7df +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 0 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-PMATexture/CanvasGroup/SkeletonGraphicTintBlackAdditive-CanvasGroup.mat b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-PMATexture/CanvasGroup/SkeletonGraphicTintBlackAdditive-CanvasGroup.mat new file mode 100644 index 000000000..ca6dc8cb4 --- /dev/null +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-PMATexture/CanvasGroup/SkeletonGraphicTintBlackAdditive-CanvasGroup.mat @@ -0,0 +1,108 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!21 &2100000 +Material: + serializedVersion: 8 + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: SkeletonGraphicTintBlackAdditive-CanvasGroup + m_Shader: {fileID: 4800000, guid: 1d081289ec7074140a6b96982be27e02, type: 3} + m_Parent: {fileID: 0} + m_ModifiedSerializedProperties: 0 + m_ValidKeywords: + - _CANVAS_GROUP_COMPATIBLE + m_InvalidKeywords: + - _USE8NEIGHBOURHOOD_ON + m_LightmapFlags: 5 + m_EnableInstancingVariants: 0 + m_DoubleSidedGI: 0 + m_CustomRenderQueue: -1 + stringTagMap: {} + disabledShaderPasses: [] + m_LockedProperties: + m_SavedProperties: + serializedVersion: 3 + m_TexEnvs: + - _AlphaTex: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _BumpMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailAlbedoMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailMask: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailNormalMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _EmissionMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _MainTex: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _MetallicGlossMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _OcclusionMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _ParallaxMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + m_Ints: [] + m_Floats: + - PixelSnap: 0 + - _BumpScale: 1 + - _CanvasGroupCompatible: 1 + - _ColorMask: 15 + - _Cutoff: 0.5 + - _DarkColorAlphaAdditive: 0 + - _DetailNormalMapScale: 1 + - _DstBlend: 0 + - _EnableExternalAlpha: 0 + - _Glossiness: 0.5 + - _Metallic: 0 + - _Mode: 0 + - _OcclusionStrength: 1 + - _OutlineMipLevel: 0 + - _OutlineOpaqueAlpha: 1 + - _OutlineReferenceTexWidth: 1024 + - _OutlineSmoothness: 1 + - _OutlineWidth: 3 + - _Parallax: 0.02 + - _SrcBlend: 1 + - _Stencil: 0 + - _StencilComp: 8 + - _StencilOp: 0 + - _StencilReadMask: 255 + - _StencilWriteMask: 255 + - _StraightAlphaInput: 0 + - _ThresholdEnd: 0.25 + - _UVSec: 0 + - _Use8Neighbourhood: 1 + - _UseUIAlphaClip: 0 + - _ZWrite: 1 + m_Colors: + - _Black: {r: 0, g: 0, b: 0, a: 0} + - _Color: {r: 1, g: 1, b: 1, a: 1} + - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} + - _Flip: {r: 1, g: 1, b: 1, a: 1} + - _OutlineColor: {r: 1, g: 1, b: 0, a: 1} + - _RendererColor: {r: 1, g: 1, b: 1, a: 1} + m_BuildTextureStacks: [] diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-PMATexture/CanvasGroup/SkeletonGraphicTintBlackAdditive-CanvasGroup.mat.meta b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-PMATexture/CanvasGroup/SkeletonGraphicTintBlackAdditive-CanvasGroup.mat.meta new file mode 100644 index 000000000..62b0db88d --- /dev/null +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-PMATexture/CanvasGroup/SkeletonGraphicTintBlackAdditive-CanvasGroup.mat.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 71b432e36e1e9ce4083abb515b314c4c +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 0 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-PMATexture/CanvasGroup/SkeletonGraphicTintBlackMultiply-CanvasGroup.mat b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-PMATexture/CanvasGroup/SkeletonGraphicTintBlackMultiply-CanvasGroup.mat new file mode 100644 index 000000000..936cf0f03 --- /dev/null +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-PMATexture/CanvasGroup/SkeletonGraphicTintBlackMultiply-CanvasGroup.mat @@ -0,0 +1,108 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!21 &2100000 +Material: + serializedVersion: 8 + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: SkeletonGraphicTintBlackMultiply-CanvasGroup + m_Shader: {fileID: 4800000, guid: d006d50db496cce459741dc6689e2662, type: 3} + m_Parent: {fileID: 0} + m_ModifiedSerializedProperties: 0 + m_ValidKeywords: + - _CANVAS_GROUP_COMPATIBLE + m_InvalidKeywords: + - _USE8NEIGHBOURHOOD_ON + m_LightmapFlags: 5 + m_EnableInstancingVariants: 0 + m_DoubleSidedGI: 0 + m_CustomRenderQueue: -1 + stringTagMap: {} + disabledShaderPasses: [] + m_LockedProperties: + m_SavedProperties: + serializedVersion: 3 + m_TexEnvs: + - _AlphaTex: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _BumpMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailAlbedoMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailMask: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailNormalMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _EmissionMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _MainTex: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _MetallicGlossMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _OcclusionMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _ParallaxMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + m_Ints: [] + m_Floats: + - PixelSnap: 0 + - _BumpScale: 1 + - _CanvasGroupCompatible: 1 + - _ColorMask: 15 + - _Cutoff: 0.5 + - _DarkColorAlphaAdditive: 0 + - _DetailNormalMapScale: 1 + - _DstBlend: 0 + - _EnableExternalAlpha: 0 + - _Glossiness: 0.5 + - _Metallic: 0 + - _Mode: 0 + - _OcclusionStrength: 1 + - _OutlineMipLevel: 0 + - _OutlineOpaqueAlpha: 1 + - _OutlineReferenceTexWidth: 1024 + - _OutlineSmoothness: 1 + - _OutlineWidth: 3 + - _Parallax: 0.02 + - _SrcBlend: 1 + - _Stencil: 0 + - _StencilComp: 8 + - _StencilOp: 0 + - _StencilReadMask: 255 + - _StencilWriteMask: 255 + - _StraightAlphaInput: 0 + - _ThresholdEnd: 0.25 + - _UVSec: 0 + - _Use8Neighbourhood: 1 + - _UseUIAlphaClip: 0 + - _ZWrite: 1 + m_Colors: + - _Black: {r: 0, g: 0, b: 0, a: 0} + - _Color: {r: 1, g: 1, b: 1, a: 1} + - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} + - _Flip: {r: 1, g: 1, b: 1, a: 1} + - _OutlineColor: {r: 1, g: 1, b: 0, a: 1} + - _RendererColor: {r: 1, g: 1, b: 1, a: 1} + m_BuildTextureStacks: [] diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-PMATexture/CanvasGroup/SkeletonGraphicTintBlackMultiply-CanvasGroup.mat.meta b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-PMATexture/CanvasGroup/SkeletonGraphicTintBlackMultiply-CanvasGroup.mat.meta new file mode 100644 index 000000000..fab25b28b --- /dev/null +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-PMATexture/CanvasGroup/SkeletonGraphicTintBlackMultiply-CanvasGroup.mat.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 37823b966b3f8094bb7c7d53d75c54f2 +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 2100000 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-PMATexture/CanvasGroup/SkeletonGraphicTintBlackOutline-CanvasGroup.mat b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-PMATexture/CanvasGroup/SkeletonGraphicTintBlackOutline-CanvasGroup.mat new file mode 100644 index 000000000..9480b1be4 --- /dev/null +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-PMATexture/CanvasGroup/SkeletonGraphicTintBlackOutline-CanvasGroup.mat @@ -0,0 +1,99 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!21 &2100000 +Material: + serializedVersion: 8 + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: SkeletonGraphicTintBlackOutline-CanvasGroup + m_Shader: {fileID: 4800000, guid: d55d64dd09c46af40a319933a62fa1b2, type: 3} + m_Parent: {fileID: 0} + m_ModifiedSerializedProperties: 0 + m_ValidKeywords: + - _CANVAS_GROUP_COMPATIBLE + - _USE8NEIGHBOURHOOD_ON + m_InvalidKeywords: [] + m_LightmapFlags: 5 + m_EnableInstancingVariants: 0 + m_DoubleSidedGI: 0 + m_CustomRenderQueue: -1 + stringTagMap: {} + disabledShaderPasses: [] + m_LockedProperties: + m_SavedProperties: + serializedVersion: 3 + m_TexEnvs: + - _BumpMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailAlbedoMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailMask: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailNormalMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _EmissionMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _MainTex: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _MetallicGlossMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _OcclusionMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _ParallaxMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + m_Ints: [] + m_Floats: + - _BumpScale: 1 + - _CanvasGroupCompatible: 1 + - _ColorMask: 15 + - _Cutoff: 0.5 + - _DetailNormalMapScale: 1 + - _DstBlend: 0 + - _Glossiness: 0.5 + - _Metallic: 0 + - _Mode: 0 + - _OcclusionStrength: 1 + - _OutlineMipLevel: 0 + - _OutlineOpaqueAlpha: 1 + - _OutlineReferenceTexWidth: 1024 + - _OutlineSmoothness: 1 + - _OutlineWidth: 3 + - _Parallax: 0.02 + - _SrcBlend: 1 + - _Stencil: 0 + - _StencilComp: 8 + - _StencilOp: 0 + - _StencilReadMask: 255 + - _StencilWriteMask: 255 + - _StraightAlphaInput: 0 + - _ThresholdEnd: 0.25 + - _UVSec: 0 + - _Use8Neighbourhood: 1 + - _UseUIAlphaClip: 0 + - _ZWrite: 1 + m_Colors: + - _Black: {r: 0, g: 0, b: 0, a: 0} + - _Color: {r: 1, g: 1, b: 1, a: 1} + - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} + - _OutlineColor: {r: 1, g: 1, b: 0, a: 1} + m_BuildTextureStacks: [] diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-PMATexture/CanvasGroup/SkeletonGraphicTintBlackOutline-CanvasGroup.mat.meta b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-PMATexture/CanvasGroup/SkeletonGraphicTintBlackOutline-CanvasGroup.mat.meta new file mode 100644 index 000000000..d75fa26d0 --- /dev/null +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-PMATexture/CanvasGroup/SkeletonGraphicTintBlackOutline-CanvasGroup.mat.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 48fa3c254acf4a54eb9721d6ccc44437 +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 0 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-PMATexture/CanvasGroup/SkeletonGraphicTintBlackScreen-CanvasGroup.mat b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-PMATexture/CanvasGroup/SkeletonGraphicTintBlackScreen-CanvasGroup.mat new file mode 100644 index 000000000..3c0d75490 --- /dev/null +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-PMATexture/CanvasGroup/SkeletonGraphicTintBlackScreen-CanvasGroup.mat @@ -0,0 +1,108 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!21 &2100000 +Material: + serializedVersion: 8 + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: SkeletonGraphicTintBlackScreen-CanvasGroup + m_Shader: {fileID: 4800000, guid: 7cb5b7d45d2ae2847970ba2e30fdc597, type: 3} + m_Parent: {fileID: 0} + m_ModifiedSerializedProperties: 0 + m_ValidKeywords: + - _CANVAS_GROUP_COMPATIBLE + m_InvalidKeywords: + - _USE8NEIGHBOURHOOD_ON + m_LightmapFlags: 5 + m_EnableInstancingVariants: 0 + m_DoubleSidedGI: 0 + m_CustomRenderQueue: -1 + stringTagMap: {} + disabledShaderPasses: [] + m_LockedProperties: + m_SavedProperties: + serializedVersion: 3 + m_TexEnvs: + - _AlphaTex: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _BumpMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailAlbedoMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailMask: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailNormalMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _EmissionMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _MainTex: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _MetallicGlossMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _OcclusionMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _ParallaxMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + m_Ints: [] + m_Floats: + - PixelSnap: 0 + - _BumpScale: 1 + - _CanvasGroupCompatible: 1 + - _ColorMask: 15 + - _Cutoff: 0.5 + - _DarkColorAlphaAdditive: 0 + - _DetailNormalMapScale: 1 + - _DstBlend: 0 + - _EnableExternalAlpha: 0 + - _Glossiness: 0.5 + - _Metallic: 0 + - _Mode: 0 + - _OcclusionStrength: 1 + - _OutlineMipLevel: 0 + - _OutlineOpaqueAlpha: 1 + - _OutlineReferenceTexWidth: 1024 + - _OutlineSmoothness: 1 + - _OutlineWidth: 3 + - _Parallax: 0.02 + - _SrcBlend: 1 + - _Stencil: 0 + - _StencilComp: 8 + - _StencilOp: 0 + - _StencilReadMask: 255 + - _StencilWriteMask: 255 + - _StraightAlphaInput: 0 + - _ThresholdEnd: 0.25 + - _UVSec: 0 + - _Use8Neighbourhood: 1 + - _UseUIAlphaClip: 0 + - _ZWrite: 1 + m_Colors: + - _Black: {r: 0, g: 0, b: 0, a: 0} + - _Color: {r: 1, g: 1, b: 1, a: 1} + - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} + - _Flip: {r: 1, g: 1, b: 1, a: 1} + - _OutlineColor: {r: 1, g: 1, b: 0, a: 1} + - _RendererColor: {r: 1, g: 1, b: 1, a: 1} + m_BuildTextureStacks: [] diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-PMATexture/CanvasGroup/SkeletonGraphicTintBlackScreen-CanvasGroup.mat.meta b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-PMATexture/CanvasGroup/SkeletonGraphicTintBlackScreen-CanvasGroup.mat.meta new file mode 100644 index 000000000..27a11b2d8 --- /dev/null +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-PMATexture/CanvasGroup/SkeletonGraphicTintBlackScreen-CanvasGroup.mat.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 7571633a9d682cc4caa501e8d7fbd1c3 +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 2100000 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/SkeletonGraphicAdditive.mat b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-PMATexture/SkeletonGraphicAdditive.mat similarity index 100% rename from Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/SkeletonGraphicAdditive.mat rename to Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-PMATexture/SkeletonGraphicAdditive.mat diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/SkeletonGraphicAdditive.mat.meta b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-PMATexture/SkeletonGraphicAdditive.mat.meta similarity index 100% rename from Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/SkeletonGraphicAdditive.mat.meta rename to Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-PMATexture/SkeletonGraphicAdditive.mat.meta diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/SkeletonGraphicDefault.mat b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-PMATexture/SkeletonGraphicDefault.mat similarity index 100% rename from Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/SkeletonGraphicDefault.mat rename to Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-PMATexture/SkeletonGraphicDefault.mat diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/SkeletonGraphicDefault.mat.meta b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-PMATexture/SkeletonGraphicDefault.mat.meta similarity index 100% rename from Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/SkeletonGraphicDefault.mat.meta rename to Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-PMATexture/SkeletonGraphicDefault.mat.meta diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/SkeletonGraphicDefaultGrayscale.mat b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-PMATexture/SkeletonGraphicDefaultGrayscale.mat similarity index 88% rename from Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/SkeletonGraphicDefaultGrayscale.mat rename to Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-PMATexture/SkeletonGraphicDefaultGrayscale.mat index 487d698c2..daa4fb06c 100644 --- a/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/SkeletonGraphicDefaultGrayscale.mat +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-PMATexture/SkeletonGraphicDefaultGrayscale.mat @@ -2,20 +2,25 @@ %TAG !u! tag:unity3d.com,2011: --- !u!21 &2100000 Material: - serializedVersion: 6 + serializedVersion: 8 m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_Name: SkeletonGraphicDefaultGrayscale - m_Shader: {fileID: 4800000, guid: fa95b0fb6983c0f40a152e6f9aa82bfb, type: 3} - m_ShaderKeywords: + m_Shader: {fileID: 4800000, guid: 81eed00979b4e554cb3022dc0b83b517, type: 3} + m_Parent: {fileID: 0} + m_ModifiedSerializedProperties: 0 + m_ValidKeywords: [] + m_InvalidKeywords: + - _USE8NEIGHBOURHOOD_ON m_LightmapFlags: 5 m_EnableInstancingVariants: 0 m_DoubleSidedGI: 0 m_CustomRenderQueue: -1 stringTagMap: {} disabledShaderPasses: [] + m_LockedProperties: m_SavedProperties: serializedVersion: 3 m_TexEnvs: @@ -59,6 +64,7 @@ Material: m_Texture: {fileID: 0} m_Scale: {x: 1, y: 1} m_Offset: {x: 0, y: 0} + m_Ints: [] m_Floats: - PixelSnap: 0 - _BumpScale: 1 @@ -69,10 +75,12 @@ Material: - _DstBlend: 0 - _EnableExternalAlpha: 0 - _Glossiness: 0.5 + - _GrayPhase: 1 - _Metallic: 0 - _Mode: 0 - _OcclusionStrength: 1 - _OutlineMipLevel: 0 + - _OutlineOpaqueAlpha: 1 - _OutlineReferenceTexWidth: 1024 - _OutlineSmoothness: 1 - _OutlineWidth: 3 diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/SkeletonGraphicDefaultGrayscale.mat.meta b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-PMATexture/SkeletonGraphicDefaultGrayscale.mat.meta similarity index 100% rename from Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/SkeletonGraphicDefaultGrayscale.mat.meta rename to Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-PMATexture/SkeletonGraphicDefaultGrayscale.mat.meta diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/SkeletonGraphicDefaultOutline.mat b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-PMATexture/SkeletonGraphicDefaultOutline.mat similarity index 91% rename from Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/SkeletonGraphicDefaultOutline.mat rename to Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-PMATexture/SkeletonGraphicDefaultOutline.mat index e9b26cb7c..0edc9f697 100644 --- a/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/SkeletonGraphicDefaultOutline.mat +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-PMATexture/SkeletonGraphicDefaultOutline.mat @@ -2,20 +2,25 @@ %TAG !u! tag:unity3d.com,2011: --- !u!21 &2100000 Material: - serializedVersion: 6 + serializedVersion: 8 m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_Name: SkeletonGraphicDefaultOutline m_Shader: {fileID: 4800000, guid: 8f5d14d2a7fedb84998c50eb96c8b748, type: 3} - m_ShaderKeywords: _CANVAS_GROUP_COMPATIBLE _USE8NEIGHBOURHOOD_ON + m_Parent: {fileID: 0} + m_ModifiedSerializedProperties: 0 + m_ValidKeywords: + - _USE8NEIGHBOURHOOD_ON + m_InvalidKeywords: [] m_LightmapFlags: 5 m_EnableInstancingVariants: 0 m_DoubleSidedGI: 0 m_CustomRenderQueue: -1 stringTagMap: {} disabledShaderPasses: [] + m_LockedProperties: m_SavedProperties: serializedVersion: 3 m_TexEnvs: @@ -63,7 +68,7 @@ Material: m_Floats: - PixelSnap: 0 - _BumpScale: 1 - - _CanvasGroupCompatible: 1 + - _CanvasGroupCompatible: 0 - _ColorMask: 15 - _Cutoff: 0.5 - _DetailNormalMapScale: 1 @@ -74,6 +79,7 @@ Material: - _Mode: 0 - _OcclusionStrength: 1 - _OutlineMipLevel: 0 + - _OutlineOpaqueAlpha: 1 - _OutlineReferenceTexWidth: 1024 - _OutlineSmoothness: 1 - _OutlineWidth: 3 diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/SkeletonGraphicDefaultOutline.mat.meta b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-PMATexture/SkeletonGraphicDefaultOutline.mat.meta similarity index 100% rename from Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/SkeletonGraphicDefaultOutline.mat.meta rename to Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-PMATexture/SkeletonGraphicDefaultOutline.mat.meta diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/SkeletonGraphicFill.mat b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-PMATexture/SkeletonGraphicFill.mat similarity index 100% rename from Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/SkeletonGraphicFill.mat rename to Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-PMATexture/SkeletonGraphicFill.mat diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/SkeletonGraphicFill.mat.meta b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-PMATexture/SkeletonGraphicFill.mat.meta similarity index 100% rename from Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/SkeletonGraphicFill.mat.meta rename to Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-PMATexture/SkeletonGraphicFill.mat.meta diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/SkeletonGraphicMultiply.mat b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-PMATexture/SkeletonGraphicMultiply.mat similarity index 100% rename from Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/SkeletonGraphicMultiply.mat rename to Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-PMATexture/SkeletonGraphicMultiply.mat diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/SkeletonGraphicMultiply.mat.meta b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-PMATexture/SkeletonGraphicMultiply.mat.meta similarity index 100% rename from Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/SkeletonGraphicMultiply.mat.meta rename to Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-PMATexture/SkeletonGraphicMultiply.mat.meta diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/SkeletonGraphicScreen.mat b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-PMATexture/SkeletonGraphicScreen.mat similarity index 100% rename from Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/SkeletonGraphicScreen.mat rename to Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-PMATexture/SkeletonGraphicScreen.mat diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/SkeletonGraphicScreen.mat.meta b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-PMATexture/SkeletonGraphicScreen.mat.meta similarity index 100% rename from Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/SkeletonGraphicScreen.mat.meta rename to Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-PMATexture/SkeletonGraphicScreen.mat.meta diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-PMATexture/SkeletonGraphicTintBlack.mat b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-PMATexture/SkeletonGraphicTintBlack.mat new file mode 100644 index 000000000..a2b86075c --- /dev/null +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-PMATexture/SkeletonGraphicTintBlack.mat @@ -0,0 +1,54 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!21 &2100000 +Material: + serializedVersion: 8 + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: SkeletonGraphicTintBlack + m_Shader: {fileID: 4800000, guid: f64c7bc238bb2c246b8ca1912b2b6b9c, type: 3} + m_Parent: {fileID: 0} + m_ModifiedSerializedProperties: 0 + m_ValidKeywords: [] + m_InvalidKeywords: + - _USE8NEIGHBOURHOOD_ON + m_LightmapFlags: 4 + m_EnableInstancingVariants: 0 + m_DoubleSidedGI: 0 + m_CustomRenderQueue: -1 + stringTagMap: {} + disabledShaderPasses: [] + m_LockedProperties: + m_SavedProperties: + serializedVersion: 3 + m_TexEnvs: + - _MainTex: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + m_Ints: [] + m_Floats: + - _CanvasGroupCompatible: 0 + - _ColorMask: 15 + - _DarkColorAlphaAdditive: 0 + - _OutlineMipLevel: 0 + - _OutlineOpaqueAlpha: 1 + - _OutlineReferenceTexWidth: 1024 + - _OutlineSmoothness: 1 + - _OutlineWidth: 3 + - _Stencil: 0 + - _StencilComp: 8 + - _StencilOp: 0 + - _StencilReadMask: 255 + - _StencilWriteMask: 255 + - _StraightAlphaInput: 0 + - _ThresholdEnd: 0.25 + - _Use8Neighbourhood: 1 + - _UseUIAlphaClip: 0 + m_Colors: + - _Black: {r: 0, g: 0, b: 0, a: 0} + - _Color: {r: 1, g: 1, b: 1, a: 1} + - _OutlineColor: {r: 1, g: 1, b: 0, a: 1} + m_BuildTextureStacks: [] diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/SkeletonGraphicTintBlack.mat.meta b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-PMATexture/SkeletonGraphicTintBlack.mat.meta similarity index 100% rename from Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/SkeletonGraphicTintBlack.mat.meta rename to Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-PMATexture/SkeletonGraphicTintBlack.mat.meta diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-PMATexture/SkeletonGraphicTintBlackAdditive.mat b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-PMATexture/SkeletonGraphicTintBlackAdditive.mat new file mode 100644 index 000000000..68c342551 --- /dev/null +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-PMATexture/SkeletonGraphicTintBlackAdditive.mat @@ -0,0 +1,107 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!21 &2100000 +Material: + serializedVersion: 8 + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: SkeletonGraphicTintBlackAdditive + m_Shader: {fileID: 4800000, guid: 1d081289ec7074140a6b96982be27e02, type: 3} + m_Parent: {fileID: 0} + m_ModifiedSerializedProperties: 0 + m_ValidKeywords: [] + m_InvalidKeywords: + - _USE8NEIGHBOURHOOD_ON + m_LightmapFlags: 5 + m_EnableInstancingVariants: 0 + m_DoubleSidedGI: 0 + m_CustomRenderQueue: -1 + stringTagMap: {} + disabledShaderPasses: [] + m_LockedProperties: + m_SavedProperties: + serializedVersion: 3 + m_TexEnvs: + - _AlphaTex: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _BumpMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailAlbedoMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailMask: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailNormalMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _EmissionMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _MainTex: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _MetallicGlossMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _OcclusionMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _ParallaxMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + m_Ints: [] + m_Floats: + - PixelSnap: 0 + - _BumpScale: 1 + - _CanvasGroupCompatible: 0 + - _ColorMask: 15 + - _Cutoff: 0.5 + - _DarkColorAlphaAdditive: 0 + - _DetailNormalMapScale: 1 + - _DstBlend: 0 + - _EnableExternalAlpha: 0 + - _Glossiness: 0.5 + - _Metallic: 0 + - _Mode: 0 + - _OcclusionStrength: 1 + - _OutlineMipLevel: 0 + - _OutlineOpaqueAlpha: 1 + - _OutlineReferenceTexWidth: 1024 + - _OutlineSmoothness: 1 + - _OutlineWidth: 3 + - _Parallax: 0.02 + - _SrcBlend: 1 + - _Stencil: 0 + - _StencilComp: 8 + - _StencilOp: 0 + - _StencilReadMask: 255 + - _StencilWriteMask: 255 + - _StraightAlphaInput: 0 + - _ThresholdEnd: 0.25 + - _UVSec: 0 + - _Use8Neighbourhood: 1 + - _UseUIAlphaClip: 0 + - _ZWrite: 1 + m_Colors: + - _Black: {r: 0, g: 0, b: 0, a: 0} + - _Color: {r: 1, g: 1, b: 1, a: 1} + - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} + - _Flip: {r: 1, g: 1, b: 1, a: 1} + - _OutlineColor: {r: 1, g: 1, b: 0, a: 1} + - _RendererColor: {r: 1, g: 1, b: 1, a: 1} + m_BuildTextureStacks: [] diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-PMATexture/SkeletonGraphicTintBlackAdditive.mat.meta b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-PMATexture/SkeletonGraphicTintBlackAdditive.mat.meta new file mode 100644 index 000000000..bc51a0746 --- /dev/null +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-PMATexture/SkeletonGraphicTintBlackAdditive.mat.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 617e02037d06a554cb68f28fcd73151b +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 0 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-PMATexture/SkeletonGraphicTintBlackMultiply.mat b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-PMATexture/SkeletonGraphicTintBlackMultiply.mat new file mode 100644 index 000000000..f264a4e7a --- /dev/null +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-PMATexture/SkeletonGraphicTintBlackMultiply.mat @@ -0,0 +1,107 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!21 &2100000 +Material: + serializedVersion: 8 + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: SkeletonGraphicTintBlackMultiply + m_Shader: {fileID: 4800000, guid: d006d50db496cce459741dc6689e2662, type: 3} + m_Parent: {fileID: 0} + m_ModifiedSerializedProperties: 0 + m_ValidKeywords: [] + m_InvalidKeywords: + - _USE8NEIGHBOURHOOD_ON + m_LightmapFlags: 5 + m_EnableInstancingVariants: 0 + m_DoubleSidedGI: 0 + m_CustomRenderQueue: -1 + stringTagMap: {} + disabledShaderPasses: [] + m_LockedProperties: + m_SavedProperties: + serializedVersion: 3 + m_TexEnvs: + - _AlphaTex: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _BumpMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailAlbedoMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailMask: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailNormalMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _EmissionMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _MainTex: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _MetallicGlossMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _OcclusionMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _ParallaxMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + m_Ints: [] + m_Floats: + - PixelSnap: 0 + - _BumpScale: 1 + - _CanvasGroupCompatible: 0 + - _ColorMask: 15 + - _Cutoff: 0.5 + - _DarkColorAlphaAdditive: 0 + - _DetailNormalMapScale: 1 + - _DstBlend: 0 + - _EnableExternalAlpha: 0 + - _Glossiness: 0.5 + - _Metallic: 0 + - _Mode: 0 + - _OcclusionStrength: 1 + - _OutlineMipLevel: 0 + - _OutlineOpaqueAlpha: 1 + - _OutlineReferenceTexWidth: 1024 + - _OutlineSmoothness: 1 + - _OutlineWidth: 3 + - _Parallax: 0.02 + - _SrcBlend: 1 + - _Stencil: 0 + - _StencilComp: 8 + - _StencilOp: 0 + - _StencilReadMask: 255 + - _StencilWriteMask: 255 + - _StraightAlphaInput: 0 + - _ThresholdEnd: 0.25 + - _UVSec: 0 + - _Use8Neighbourhood: 1 + - _UseUIAlphaClip: 0 + - _ZWrite: 1 + m_Colors: + - _Black: {r: 0, g: 0, b: 0, a: 0} + - _Color: {r: 1, g: 1, b: 1, a: 1} + - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} + - _Flip: {r: 1, g: 1, b: 1, a: 1} + - _OutlineColor: {r: 1, g: 1, b: 0, a: 1} + - _RendererColor: {r: 1, g: 1, b: 1, a: 1} + m_BuildTextureStacks: [] diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-PMATexture/SkeletonGraphicTintBlackMultiply.mat.meta b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-PMATexture/SkeletonGraphicTintBlackMultiply.mat.meta new file mode 100644 index 000000000..5d1f3937a --- /dev/null +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-PMATexture/SkeletonGraphicTintBlackMultiply.mat.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: bcf75a2565a7dbd47b3332aa48adc5d7 +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 0 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/SkeletonGraphicTintBlackOutline.mat b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-PMATexture/SkeletonGraphicTintBlackOutline.mat similarity index 85% rename from Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/SkeletonGraphicTintBlackOutline.mat rename to Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-PMATexture/SkeletonGraphicTintBlackOutline.mat index eb44eb89e..d687900a4 100644 --- a/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/SkeletonGraphicTintBlackOutline.mat +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-PMATexture/SkeletonGraphicTintBlackOutline.mat @@ -2,19 +2,25 @@ %TAG !u! tag:unity3d.com,2011: --- !u!21 &2100000 Material: - serializedVersion: 6 + serializedVersion: 8 m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} m_Name: SkeletonGraphicTintBlackOutline m_Shader: {fileID: 4800000, guid: d55d64dd09c46af40a319933a62fa1b2, type: 3} - m_ShaderKeywords: _USE8NEIGHBOURHOOD_ON + m_Parent: {fileID: 0} + m_ModifiedSerializedProperties: 0 + m_ValidKeywords: + - _USE8NEIGHBOURHOOD_ON + m_InvalidKeywords: [] m_LightmapFlags: 5 m_EnableInstancingVariants: 0 m_DoubleSidedGI: 0 m_CustomRenderQueue: -1 stringTagMap: {} disabledShaderPasses: [] + m_LockedProperties: m_SavedProperties: serializedVersion: 3 m_TexEnvs: @@ -54,9 +60,10 @@ Material: m_Texture: {fileID: 0} m_Scale: {x: 1, y: 1} m_Offset: {x: 0, y: 0} + m_Ints: [] m_Floats: - _BumpScale: 1 - - _CanvasGroupCompatible: 1 + - _CanvasGroupCompatible: 0 - _ColorMask: 15 - _Cutoff: 0.5 - _DetailNormalMapScale: 1 @@ -66,6 +73,7 @@ Material: - _Mode: 0 - _OcclusionStrength: 1 - _OutlineMipLevel: 0 + - _OutlineOpaqueAlpha: 1 - _OutlineReferenceTexWidth: 1024 - _OutlineSmoothness: 1 - _OutlineWidth: 3 @@ -87,3 +95,4 @@ Material: - _Color: {r: 1, g: 1, b: 1, a: 1} - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} - _OutlineColor: {r: 1, g: 1, b: 0, a: 1} + m_BuildTextureStacks: [] diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/SkeletonGraphicTintBlackOutline.mat.meta b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-PMATexture/SkeletonGraphicTintBlackOutline.mat.meta similarity index 100% rename from Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/SkeletonGraphicTintBlackOutline.mat.meta rename to Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-PMATexture/SkeletonGraphicTintBlackOutline.mat.meta diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-PMATexture/SkeletonGraphicTintBlackScreen.mat b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-PMATexture/SkeletonGraphicTintBlackScreen.mat new file mode 100644 index 000000000..290c1dd22 --- /dev/null +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-PMATexture/SkeletonGraphicTintBlackScreen.mat @@ -0,0 +1,107 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!21 &2100000 +Material: + serializedVersion: 8 + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: SkeletonGraphicTintBlackScreen + m_Shader: {fileID: 4800000, guid: 7cb5b7d45d2ae2847970ba2e30fdc597, type: 3} + m_Parent: {fileID: 0} + m_ModifiedSerializedProperties: 0 + m_ValidKeywords: [] + m_InvalidKeywords: + - _USE8NEIGHBOURHOOD_ON + m_LightmapFlags: 5 + m_EnableInstancingVariants: 0 + m_DoubleSidedGI: 0 + m_CustomRenderQueue: -1 + stringTagMap: {} + disabledShaderPasses: [] + m_LockedProperties: + m_SavedProperties: + serializedVersion: 3 + m_TexEnvs: + - _AlphaTex: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _BumpMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailAlbedoMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailMask: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailNormalMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _EmissionMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _MainTex: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _MetallicGlossMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _OcclusionMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _ParallaxMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + m_Ints: [] + m_Floats: + - PixelSnap: 0 + - _BumpScale: 1 + - _CanvasGroupCompatible: 0 + - _ColorMask: 15 + - _Cutoff: 0.5 + - _DarkColorAlphaAdditive: 0 + - _DetailNormalMapScale: 1 + - _DstBlend: 0 + - _EnableExternalAlpha: 0 + - _Glossiness: 0.5 + - _Metallic: 0 + - _Mode: 0 + - _OcclusionStrength: 1 + - _OutlineMipLevel: 0 + - _OutlineOpaqueAlpha: 1 + - _OutlineReferenceTexWidth: 1024 + - _OutlineSmoothness: 1 + - _OutlineWidth: 3 + - _Parallax: 0.02 + - _SrcBlend: 1 + - _Stencil: 0 + - _StencilComp: 8 + - _StencilOp: 0 + - _StencilReadMask: 255 + - _StencilWriteMask: 255 + - _StraightAlphaInput: 0 + - _ThresholdEnd: 0.25 + - _UVSec: 0 + - _Use8Neighbourhood: 1 + - _UseUIAlphaClip: 0 + - _ZWrite: 1 + m_Colors: + - _Black: {r: 0, g: 0, b: 0, a: 0} + - _Color: {r: 1, g: 1, b: 1, a: 1} + - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} + - _Flip: {r: 1, g: 1, b: 1, a: 1} + - _OutlineColor: {r: 1, g: 1, b: 0, a: 1} + - _RendererColor: {r: 1, g: 1, b: 1, a: 1} + m_BuildTextureStacks: [] diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-PMATexture/SkeletonGraphicTintBlackScreen.mat.meta b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-PMATexture/SkeletonGraphicTintBlackScreen.mat.meta new file mode 100644 index 000000000..94621e316 --- /dev/null +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-PMATexture/SkeletonGraphicTintBlackScreen.mat.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: aa5f8f03ad4de5349a8233c00993ffcf +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 0 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-StraightAlphaTex.meta b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-StraightAlphaTex.meta new file mode 100644 index 000000000..c4b24db88 --- /dev/null +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-StraightAlphaTex.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 2378e6548958fc3429f20fb015c8861f +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-StraightAlphaTex/CanvasGroup.meta b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-StraightAlphaTex/CanvasGroup.meta new file mode 100644 index 000000000..9182e6b43 --- /dev/null +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-StraightAlphaTex/CanvasGroup.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 243249c7cd3587447a74b602d2501695 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-StraightAlphaTex/CanvasGroup/SkeletonGraphicAdditive-CanvasGroupStraight.mat b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-StraightAlphaTex/CanvasGroup/SkeletonGraphicAdditive-CanvasGroupStraight.mat new file mode 100644 index 000000000..b76866e56 --- /dev/null +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-StraightAlphaTex/CanvasGroup/SkeletonGraphicAdditive-CanvasGroupStraight.mat @@ -0,0 +1,99 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!21 &2100000 +Material: + serializedVersion: 6 + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: SkeletonGraphicAdditive-CanvasGroupStraight + m_Shader: {fileID: 4800000, guid: a1e4ab34b07f81e4e94f0d241c416669, type: 3} + m_ShaderKeywords: _CANVAS_GROUP_COMPATIBLE _STRAIGHT_ALPHA_INPUT + m_LightmapFlags: 5 + m_EnableInstancingVariants: 0 + m_DoubleSidedGI: 0 + m_CustomRenderQueue: -1 + stringTagMap: {} + disabledShaderPasses: [] + m_SavedProperties: + serializedVersion: 3 + m_TexEnvs: + - _AlphaTex: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _BumpMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailAlbedoMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailMask: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailNormalMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _EmissionMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _MainTex: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _MetallicGlossMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _OcclusionMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _ParallaxMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + m_Floats: + - PixelSnap: 0 + - _BumpScale: 1 + - _CanvasGroupCompatible: 1 + - _ColorMask: 15 + - _Cutoff: 0.5 + - _DetailNormalMapScale: 1 + - _DstBlend: 0 + - _EnableExternalAlpha: 0 + - _Glossiness: 0.5 + - _Metallic: 0 + - _Mode: 0 + - _OcclusionStrength: 1 + - _OutlineMipLevel: 0 + - _OutlineOpaqueAlpha: 1 + - _OutlineReferenceTexWidth: 1024 + - _OutlineSmoothness: 1 + - _OutlineWidth: 3 + - _Parallax: 0.02 + - _SrcBlend: 1 + - _Stencil: 0 + - _StencilComp: 8 + - _StencilOp: 0 + - _StencilReadMask: 255 + - _StencilWriteMask: 255 + - _StraightAlphaInput: 1 + - _ThresholdEnd: 0.25 + - _UVSec: 0 + - _Use8Neighbourhood: 1 + - _UseUIAlphaClip: 0 + - _ZWrite: 1 + m_Colors: + - _Color: {r: 1, g: 1, b: 1, a: 1} + - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} + - _Flip: {r: 1, g: 1, b: 1, a: 1} + - _OutlineColor: {r: 1, g: 1, b: 0, a: 1} + - _RendererColor: {r: 1, g: 1, b: 1, a: 1} + m_BuildTextureStacks: [] diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-StraightAlphaTex/CanvasGroup/SkeletonGraphicAdditive-CanvasGroupStraight.mat.meta b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-StraightAlphaTex/CanvasGroup/SkeletonGraphicAdditive-CanvasGroupStraight.mat.meta new file mode 100644 index 000000000..746f84ad1 --- /dev/null +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-StraightAlphaTex/CanvasGroup/SkeletonGraphicAdditive-CanvasGroupStraight.mat.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 2961e326241f1e24fa0520cf9aebff98 +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 0 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-StraightAlphaTex/CanvasGroup/SkeletonGraphicDefault-CanvasGroupStraight.mat b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-StraightAlphaTex/CanvasGroup/SkeletonGraphicDefault-CanvasGroupStraight.mat new file mode 100644 index 000000000..0f0a641d5 --- /dev/null +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-StraightAlphaTex/CanvasGroup/SkeletonGraphicDefault-CanvasGroupStraight.mat @@ -0,0 +1,99 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!21 &2100000 +Material: + serializedVersion: 6 + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: SkeletonGraphicDefault-CanvasGroupStraight + m_Shader: {fileID: 4800000, guid: fa95b0fb6983c0f40a152e6f9aa82bfb, type: 3} + m_ShaderKeywords: _CANVAS_GROUP_COMPATIBLE _STRAIGHT_ALPHA_INPUT + m_LightmapFlags: 5 + m_EnableInstancingVariants: 0 + m_DoubleSidedGI: 0 + m_CustomRenderQueue: -1 + stringTagMap: {} + disabledShaderPasses: [] + m_SavedProperties: + serializedVersion: 3 + m_TexEnvs: + - _AlphaTex: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _BumpMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailAlbedoMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailMask: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailNormalMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _EmissionMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _MainTex: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _MetallicGlossMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _OcclusionMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _ParallaxMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + m_Floats: + - PixelSnap: 0 + - _BumpScale: 1 + - _CanvasGroupCompatible: 1 + - _ColorMask: 15 + - _Cutoff: 0.5 + - _DetailNormalMapScale: 1 + - _DstBlend: 0 + - _EnableExternalAlpha: 0 + - _Glossiness: 0.5 + - _Metallic: 0 + - _Mode: 0 + - _OcclusionStrength: 1 + - _OutlineMipLevel: 0 + - _OutlineOpaqueAlpha: 1 + - _OutlineReferenceTexWidth: 1024 + - _OutlineSmoothness: 1 + - _OutlineWidth: 3 + - _Parallax: 0.02 + - _SrcBlend: 1 + - _Stencil: 0 + - _StencilComp: 8 + - _StencilOp: 0 + - _StencilReadMask: 255 + - _StencilWriteMask: 255 + - _StraightAlphaInput: 1 + - _ThresholdEnd: 0.25 + - _UVSec: 0 + - _Use8Neighbourhood: 1 + - _UseUIAlphaClip: 0 + - _ZWrite: 1 + m_Colors: + - _Color: {r: 1, g: 1, b: 1, a: 1} + - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} + - _Flip: {r: 1, g: 1, b: 1, a: 1} + - _OutlineColor: {r: 1, g: 1, b: 0, a: 1} + - _RendererColor: {r: 1, g: 1, b: 1, a: 1} + m_BuildTextureStacks: [] diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-StraightAlphaTex/CanvasGroup/SkeletonGraphicDefault-CanvasGroupStraight.mat.meta b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-StraightAlphaTex/CanvasGroup/SkeletonGraphicDefault-CanvasGroupStraight.mat.meta new file mode 100644 index 000000000..4a3fd9637 --- /dev/null +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-StraightAlphaTex/CanvasGroup/SkeletonGraphicDefault-CanvasGroupStraight.mat.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 841cfbaa0261b0042b3a039c52637bb7 +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 0 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-StraightAlphaTex/CanvasGroup/SkeletonGraphicDefaultGrayscale-CanvasGroupStraight.mat b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-StraightAlphaTex/CanvasGroup/SkeletonGraphicDefaultGrayscale-CanvasGroupStraight.mat new file mode 100644 index 000000000..4e6946e73 --- /dev/null +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-StraightAlphaTex/CanvasGroup/SkeletonGraphicDefaultGrayscale-CanvasGroupStraight.mat @@ -0,0 +1,99 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!21 &2100000 +Material: + serializedVersion: 6 + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: SkeletonGraphicDefaultGrayscale-CanvasGroupStraight + m_Shader: {fileID: 4800000, guid: fa95b0fb6983c0f40a152e6f9aa82bfb, type: 3} + m_ShaderKeywords: _CANVAS_GROUP_COMPATIBLE _STRAIGHT_ALPHA_INPUT + m_LightmapFlags: 5 + m_EnableInstancingVariants: 0 + m_DoubleSidedGI: 0 + m_CustomRenderQueue: -1 + stringTagMap: {} + disabledShaderPasses: [] + m_SavedProperties: + serializedVersion: 3 + m_TexEnvs: + - _AlphaTex: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _BumpMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailAlbedoMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailMask: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailNormalMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _EmissionMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _MainTex: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _MetallicGlossMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _OcclusionMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _ParallaxMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + m_Floats: + - PixelSnap: 0 + - _BumpScale: 1 + - _CanvasGroupCompatible: 1 + - _ColorMask: 15 + - _Cutoff: 0.5 + - _DetailNormalMapScale: 1 + - _DstBlend: 0 + - _EnableExternalAlpha: 0 + - _Glossiness: 0.5 + - _Metallic: 0 + - _Mode: 0 + - _OcclusionStrength: 1 + - _OutlineMipLevel: 0 + - _OutlineOpaqueAlpha: 1 + - _OutlineReferenceTexWidth: 1024 + - _OutlineSmoothness: 1 + - _OutlineWidth: 3 + - _Parallax: 0.02 + - _SrcBlend: 1 + - _Stencil: 0 + - _StencilComp: 8 + - _StencilOp: 0 + - _StencilReadMask: 255 + - _StencilWriteMask: 255 + - _StraightAlphaInput: 1 + - _ThresholdEnd: 0.25 + - _UVSec: 0 + - _Use8Neighbourhood: 1 + - _UseUIAlphaClip: 0 + - _ZWrite: 1 + m_Colors: + - _Color: {r: 1, g: 1, b: 1, a: 1} + - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} + - _Flip: {r: 1, g: 1, b: 1, a: 1} + - _OutlineColor: {r: 1, g: 1, b: 0, a: 1} + - _RendererColor: {r: 1, g: 1, b: 1, a: 1} + m_BuildTextureStacks: [] diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-StraightAlphaTex/CanvasGroup/SkeletonGraphicDefaultGrayscale-CanvasGroupStraight.mat.meta b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-StraightAlphaTex/CanvasGroup/SkeletonGraphicDefaultGrayscale-CanvasGroupStraight.mat.meta new file mode 100644 index 000000000..b5381b381 --- /dev/null +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-StraightAlphaTex/CanvasGroup/SkeletonGraphicDefaultGrayscale-CanvasGroupStraight.mat.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 6b01e9f5884349545a8cf87686cee7d5 +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 0 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-StraightAlphaTex/CanvasGroup/SkeletonGraphicDefaultOutline-CanvasGroupStraight.mat b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-StraightAlphaTex/CanvasGroup/SkeletonGraphicDefaultOutline-CanvasGroupStraight.mat new file mode 100644 index 000000000..a9216c2ae --- /dev/null +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-StraightAlphaTex/CanvasGroup/SkeletonGraphicDefaultOutline-CanvasGroupStraight.mat @@ -0,0 +1,99 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!21 &2100000 +Material: + serializedVersion: 6 + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: SkeletonGraphicDefaultOutline-CanvasGroupStraight + m_Shader: {fileID: 4800000, guid: 8f5d14d2a7fedb84998c50eb96c8b748, type: 3} + m_ShaderKeywords: _CANVAS_GROUP_COMPATIBLE _STRAIGHT_ALPHA_INPUT _USE8NEIGHBOURHOOD_ON + m_LightmapFlags: 5 + m_EnableInstancingVariants: 0 + m_DoubleSidedGI: 0 + m_CustomRenderQueue: -1 + stringTagMap: {} + disabledShaderPasses: [] + m_SavedProperties: + serializedVersion: 3 + m_TexEnvs: + - _AlphaTex: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _BumpMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailAlbedoMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailMask: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailNormalMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _EmissionMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _MainTex: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _MetallicGlossMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _OcclusionMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _ParallaxMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + m_Floats: + - PixelSnap: 0 + - _BumpScale: 1 + - _CanvasGroupCompatible: 1 + - _ColorMask: 15 + - _Cutoff: 0.5 + - _DetailNormalMapScale: 1 + - _DstBlend: 0 + - _EnableExternalAlpha: 0 + - _Glossiness: 0.5 + - _Metallic: 0 + - _Mode: 0 + - _OcclusionStrength: 1 + - _OutlineMipLevel: 0 + - _OutlineOpaqueAlpha: 1 + - _OutlineReferenceTexWidth: 1024 + - _OutlineSmoothness: 1 + - _OutlineWidth: 3 + - _Parallax: 0.02 + - _SrcBlend: 1 + - _Stencil: 0 + - _StencilComp: 8 + - _StencilOp: 0 + - _StencilReadMask: 255 + - _StencilWriteMask: 255 + - _StraightAlphaInput: 1 + - _ThresholdEnd: 0.25 + - _UVSec: 0 + - _Use8Neighbourhood: 1 + - _UseUIAlphaClip: 0 + - _ZWrite: 1 + m_Colors: + - _Color: {r: 1, g: 1, b: 1, a: 1} + - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} + - _Flip: {r: 1, g: 1, b: 1, a: 1} + - _OutlineColor: {r: 1, g: 1, b: 0, a: 1} + - _RendererColor: {r: 1, g: 1, b: 1, a: 1} + m_BuildTextureStacks: [] diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-StraightAlphaTex/CanvasGroup/SkeletonGraphicDefaultOutline-CanvasGroupStraight.mat.meta b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-StraightAlphaTex/CanvasGroup/SkeletonGraphicDefaultOutline-CanvasGroupStraight.mat.meta new file mode 100644 index 000000000..e1551628b --- /dev/null +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-StraightAlphaTex/CanvasGroup/SkeletonGraphicDefaultOutline-CanvasGroupStraight.mat.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: f4c1f1de25ff57e488c98341f4d48349 +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 0 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-StraightAlphaTex/CanvasGroup/SkeletonGraphicFill-CanvasGroupStraight.mat b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-StraightAlphaTex/CanvasGroup/SkeletonGraphicFill-CanvasGroupStraight.mat new file mode 100644 index 000000000..40789afd2 --- /dev/null +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-StraightAlphaTex/CanvasGroup/SkeletonGraphicFill-CanvasGroupStraight.mat @@ -0,0 +1,101 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!21 &2100000 +Material: + serializedVersion: 6 + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: SkeletonGraphicFill-CanvasGroupStraight + m_Shader: {fileID: 4800000, guid: c02377d9afbb50e49ab27049e59fb5f8, type: 3} + m_ShaderKeywords: _CANVAS_GROUP_COMPATIBLE _STRAIGHT_ALPHA_INPUT _USE8NEIGHBOURHOOD_ON + m_LightmapFlags: 5 + m_EnableInstancingVariants: 0 + m_DoubleSidedGI: 0 + m_CustomRenderQueue: -1 + stringTagMap: {} + disabledShaderPasses: [] + m_SavedProperties: + serializedVersion: 3 + m_TexEnvs: + - _AlphaTex: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _BumpMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailAlbedoMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailMask: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailNormalMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _EmissionMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _MainTex: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _MetallicGlossMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _OcclusionMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _ParallaxMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + m_Floats: + - PixelSnap: 0 + - _BumpScale: 1 + - _CanvasGroupCompatible: 1 + - _ColorMask: 15 + - _Cutoff: 0.5 + - _DetailNormalMapScale: 1 + - _DstBlend: 0 + - _EnableExternalAlpha: 0 + - _FillPhase: 1 + - _Glossiness: 0.5 + - _Metallic: 0 + - _Mode: 0 + - _OcclusionStrength: 1 + - _OutlineMipLevel: 0 + - _OutlineOpaqueAlpha: 1 + - _OutlineReferenceTexWidth: 1024 + - _OutlineSmoothness: 1 + - _OutlineWidth: 3 + - _Parallax: 0.02 + - _SrcBlend: 1 + - _Stencil: 0 + - _StencilComp: 8 + - _StencilOp: 0 + - _StencilReadMask: 255 + - _StencilWriteMask: 255 + - _StraightAlphaInput: 1 + - _ThresholdEnd: 0.25 + - _UVSec: 0 + - _Use8Neighbourhood: 1 + - _UseUIAlphaClip: 0 + - _ZWrite: 1 + m_Colors: + - _Color: {r: 1, g: 1, b: 1, a: 1} + - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} + - _FillColor: {r: 1, g: 1, b: 1, a: 1} + - _Flip: {r: 1, g: 1, b: 1, a: 1} + - _OutlineColor: {r: 1, g: 1, b: 0, a: 1} + - _RendererColor: {r: 1, g: 1, b: 1, a: 1} + m_BuildTextureStacks: [] diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-StraightAlphaTex/CanvasGroup/SkeletonGraphicFill-CanvasGroupStraight.mat.meta b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-StraightAlphaTex/CanvasGroup/SkeletonGraphicFill-CanvasGroupStraight.mat.meta new file mode 100644 index 000000000..41948286c --- /dev/null +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-StraightAlphaTex/CanvasGroup/SkeletonGraphicFill-CanvasGroupStraight.mat.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: f20a217b20de2144bb4e78833d9b7241 +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 0 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-StraightAlphaTex/CanvasGroup/SkeletonGraphicMultiply-CanvasGroupStraight.mat b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-StraightAlphaTex/CanvasGroup/SkeletonGraphicMultiply-CanvasGroupStraight.mat new file mode 100644 index 000000000..97c27207b --- /dev/null +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-StraightAlphaTex/CanvasGroup/SkeletonGraphicMultiply-CanvasGroupStraight.mat @@ -0,0 +1,99 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!21 &2100000 +Material: + serializedVersion: 6 + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: SkeletonGraphicMultiply-CanvasGroupStraight + m_Shader: {fileID: 4800000, guid: cfbf95ed0fe6c554c8c2ee6c8325937c, type: 3} + m_ShaderKeywords: _CANVAS_GROUP_COMPATIBLE _STRAIGHT_ALPHA_INPUT + m_LightmapFlags: 5 + m_EnableInstancingVariants: 0 + m_DoubleSidedGI: 0 + m_CustomRenderQueue: -1 + stringTagMap: {} + disabledShaderPasses: [] + m_SavedProperties: + serializedVersion: 3 + m_TexEnvs: + - _AlphaTex: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _BumpMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailAlbedoMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailMask: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailNormalMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _EmissionMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _MainTex: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _MetallicGlossMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _OcclusionMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _ParallaxMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + m_Floats: + - PixelSnap: 0 + - _BumpScale: 1 + - _CanvasGroupCompatible: 1 + - _ColorMask: 15 + - _Cutoff: 0.5 + - _DetailNormalMapScale: 1 + - _DstBlend: 0 + - _EnableExternalAlpha: 0 + - _Glossiness: 0.5 + - _Metallic: 0 + - _Mode: 0 + - _OcclusionStrength: 1 + - _OutlineMipLevel: 0 + - _OutlineOpaqueAlpha: 1 + - _OutlineReferenceTexWidth: 1024 + - _OutlineSmoothness: 1 + - _OutlineWidth: 3 + - _Parallax: 0.02 + - _SrcBlend: 1 + - _Stencil: 0 + - _StencilComp: 8 + - _StencilOp: 0 + - _StencilReadMask: 255 + - _StencilWriteMask: 255 + - _StraightAlphaInput: 1 + - _ThresholdEnd: 0.25 + - _UVSec: 0 + - _Use8Neighbourhood: 1 + - _UseUIAlphaClip: 0 + - _ZWrite: 1 + m_Colors: + - _Color: {r: 1, g: 1, b: 1, a: 1} + - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} + - _Flip: {r: 1, g: 1, b: 1, a: 1} + - _OutlineColor: {r: 1, g: 1, b: 0, a: 1} + - _RendererColor: {r: 1, g: 1, b: 1, a: 1} + m_BuildTextureStacks: [] diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-StraightAlphaTex/CanvasGroup/SkeletonGraphicMultiply-CanvasGroupStraight.mat.meta b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-StraightAlphaTex/CanvasGroup/SkeletonGraphicMultiply-CanvasGroupStraight.mat.meta new file mode 100644 index 000000000..79bdd3a46 --- /dev/null +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-StraightAlphaTex/CanvasGroup/SkeletonGraphicMultiply-CanvasGroupStraight.mat.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 3443e8731ab8eb34eb6262c5673fb8a0 +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 0 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-StraightAlphaTex/CanvasGroup/SkeletonGraphicScreen-CanvasGroupStraight.mat b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-StraightAlphaTex/CanvasGroup/SkeletonGraphicScreen-CanvasGroupStraight.mat new file mode 100644 index 000000000..7321c107e --- /dev/null +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-StraightAlphaTex/CanvasGroup/SkeletonGraphicScreen-CanvasGroupStraight.mat @@ -0,0 +1,99 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!21 &2100000 +Material: + serializedVersion: 6 + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: SkeletonGraphicScreen-CanvasGroupStraight + m_Shader: {fileID: 4800000, guid: c61244023592f95479fddd71b5067683, type: 3} + m_ShaderKeywords: _CANVAS_GROUP_COMPATIBLE _STRAIGHT_ALPHA_INPUT + m_LightmapFlags: 5 + m_EnableInstancingVariants: 0 + m_DoubleSidedGI: 0 + m_CustomRenderQueue: -1 + stringTagMap: {} + disabledShaderPasses: [] + m_SavedProperties: + serializedVersion: 3 + m_TexEnvs: + - _AlphaTex: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _BumpMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailAlbedoMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailMask: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailNormalMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _EmissionMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _MainTex: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _MetallicGlossMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _OcclusionMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _ParallaxMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + m_Floats: + - PixelSnap: 0 + - _BumpScale: 1 + - _CanvasGroupCompatible: 1 + - _ColorMask: 15 + - _Cutoff: 0.5 + - _DetailNormalMapScale: 1 + - _DstBlend: 0 + - _EnableExternalAlpha: 0 + - _Glossiness: 0.5 + - _Metallic: 0 + - _Mode: 0 + - _OcclusionStrength: 1 + - _OutlineMipLevel: 0 + - _OutlineOpaqueAlpha: 1 + - _OutlineReferenceTexWidth: 1024 + - _OutlineSmoothness: 1 + - _OutlineWidth: 3 + - _Parallax: 0.02 + - _SrcBlend: 1 + - _Stencil: 0 + - _StencilComp: 8 + - _StencilOp: 0 + - _StencilReadMask: 255 + - _StencilWriteMask: 255 + - _StraightAlphaInput: 1 + - _ThresholdEnd: 0.25 + - _UVSec: 0 + - _Use8Neighbourhood: 1 + - _UseUIAlphaClip: 0 + - _ZWrite: 1 + m_Colors: + - _Color: {r: 1, g: 1, b: 1, a: 1} + - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} + - _Flip: {r: 1, g: 1, b: 1, a: 1} + - _OutlineColor: {r: 1, g: 1, b: 0, a: 1} + - _RendererColor: {r: 1, g: 1, b: 1, a: 1} + m_BuildTextureStacks: [] diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-StraightAlphaTex/CanvasGroup/SkeletonGraphicScreen-CanvasGroupStraight.mat.meta b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-StraightAlphaTex/CanvasGroup/SkeletonGraphicScreen-CanvasGroupStraight.mat.meta new file mode 100644 index 000000000..025df64a0 --- /dev/null +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-StraightAlphaTex/CanvasGroup/SkeletonGraphicScreen-CanvasGroupStraight.mat.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 47ab35b3338fe304b93e693445fe40ac +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 0 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-StraightAlphaTex/CanvasGroup/SkeletonGraphicTintBlack-CanvasGroupStraight.mat b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-StraightAlphaTex/CanvasGroup/SkeletonGraphicTintBlack-CanvasGroupStraight.mat new file mode 100644 index 000000000..3b9a93b7b --- /dev/null +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-StraightAlphaTex/CanvasGroup/SkeletonGraphicTintBlack-CanvasGroupStraight.mat @@ -0,0 +1,101 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!21 &2100000 +Material: + serializedVersion: 8 + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: SkeletonGraphicTintBlack-CanvasGroupStraight + m_Shader: {fileID: 4800000, guid: f64c7bc238bb2c246b8ca1912b2b6b9c, type: 3} + m_Parent: {fileID: 0} + m_ModifiedSerializedProperties: 0 + m_ValidKeywords: + - _CANVAS_GROUP_COMPATIBLE + - _STRAIGHT_ALPHA_INPUT + m_InvalidKeywords: + - _USE8NEIGHBOURHOOD_ON + m_LightmapFlags: 5 + m_EnableInstancingVariants: 0 + m_DoubleSidedGI: 0 + m_CustomRenderQueue: -1 + stringTagMap: {} + disabledShaderPasses: [] + m_LockedProperties: + m_SavedProperties: + serializedVersion: 3 + m_TexEnvs: + - _BumpMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailAlbedoMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailMask: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailNormalMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _EmissionMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _MainTex: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _MetallicGlossMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _OcclusionMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _ParallaxMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + m_Ints: [] + m_Floats: + - _BumpScale: 1 + - _CanvasGroupCompatible: 1 + - _ColorMask: 15 + - _Cutoff: 0.5 + - _DarkColorAlphaAdditive: 0 + - _DetailNormalMapScale: 1 + - _DstBlend: 0 + - _Glossiness: 0.5 + - _Metallic: 0 + - _Mode: 0 + - _OcclusionStrength: 1 + - _OutlineMipLevel: 0 + - _OutlineOpaqueAlpha: 1 + - _OutlineReferenceTexWidth: 1024 + - _OutlineSmoothness: 1 + - _OutlineWidth: 3 + - _Parallax: 0.02 + - _SrcBlend: 1 + - _Stencil: 0 + - _StencilComp: 8 + - _StencilOp: 0 + - _StencilReadMask: 255 + - _StencilWriteMask: 255 + - _StraightAlphaInput: 1 + - _ThresholdEnd: 0.25 + - _UVSec: 0 + - _Use8Neighbourhood: 1 + - _UseUIAlphaClip: 0 + - _ZWrite: 1 + m_Colors: + - _Black: {r: 0, g: 0, b: 0, a: 0} + - _Color: {r: 1, g: 1, b: 1, a: 1} + - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} + - _OutlineColor: {r: 1, g: 1, b: 0, a: 1} + m_BuildTextureStacks: [] diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-StraightAlphaTex/CanvasGroup/SkeletonGraphicTintBlack-CanvasGroupStraight.mat.meta b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-StraightAlphaTex/CanvasGroup/SkeletonGraphicTintBlack-CanvasGroupStraight.mat.meta new file mode 100644 index 000000000..c04420dbc --- /dev/null +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-StraightAlphaTex/CanvasGroup/SkeletonGraphicTintBlack-CanvasGroupStraight.mat.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: b7ef91ba7f119364da99ab69744e53a8 +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 0 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-StraightAlphaTex/CanvasGroup/SkeletonGraphicTintBlackAdditive-CanvasGroupStraight.mat b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-StraightAlphaTex/CanvasGroup/SkeletonGraphicTintBlackAdditive-CanvasGroupStraight.mat new file mode 100644 index 000000000..ba2601e2b --- /dev/null +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-StraightAlphaTex/CanvasGroup/SkeletonGraphicTintBlackAdditive-CanvasGroupStraight.mat @@ -0,0 +1,101 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!21 &2100000 +Material: + serializedVersion: 8 + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: SkeletonGraphicTintBlackAdditive-CanvasGroupStraight + m_Shader: {fileID: 4800000, guid: 1d081289ec7074140a6b96982be27e02, type: 3} + m_Parent: {fileID: 0} + m_ModifiedSerializedProperties: 0 + m_ValidKeywords: + - _CANVAS_GROUP_COMPATIBLE + - _STRAIGHT_ALPHA_INPUT + m_InvalidKeywords: + - _USE8NEIGHBOURHOOD_ON + m_LightmapFlags: 5 + m_EnableInstancingVariants: 0 + m_DoubleSidedGI: 0 + m_CustomRenderQueue: -1 + stringTagMap: {} + disabledShaderPasses: [] + m_LockedProperties: + m_SavedProperties: + serializedVersion: 3 + m_TexEnvs: + - _BumpMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailAlbedoMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailMask: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailNormalMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _EmissionMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _MainTex: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _MetallicGlossMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _OcclusionMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _ParallaxMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + m_Ints: [] + m_Floats: + - _BumpScale: 1 + - _CanvasGroupCompatible: 1 + - _ColorMask: 15 + - _Cutoff: 0.5 + - _DarkColorAlphaAdditive: 0 + - _DetailNormalMapScale: 1 + - _DstBlend: 0 + - _Glossiness: 0.5 + - _Metallic: 0 + - _Mode: 0 + - _OcclusionStrength: 1 + - _OutlineMipLevel: 0 + - _OutlineOpaqueAlpha: 1 + - _OutlineReferenceTexWidth: 1024 + - _OutlineSmoothness: 1 + - _OutlineWidth: 3 + - _Parallax: 0.02 + - _SrcBlend: 1 + - _Stencil: 0 + - _StencilComp: 8 + - _StencilOp: 0 + - _StencilReadMask: 255 + - _StencilWriteMask: 255 + - _StraightAlphaInput: 1 + - _ThresholdEnd: 0.25 + - _UVSec: 0 + - _Use8Neighbourhood: 1 + - _UseUIAlphaClip: 0 + - _ZWrite: 1 + m_Colors: + - _Black: {r: 0, g: 0, b: 0, a: 0} + - _Color: {r: 1, g: 1, b: 1, a: 1} + - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} + - _OutlineColor: {r: 1, g: 1, b: 0, a: 1} + m_BuildTextureStacks: [] diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-StraightAlphaTex/CanvasGroup/SkeletonGraphicTintBlackAdditive-CanvasGroupStraight.mat.meta b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-StraightAlphaTex/CanvasGroup/SkeletonGraphicTintBlackAdditive-CanvasGroupStraight.mat.meta new file mode 100644 index 000000000..e7fba6ede --- /dev/null +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-StraightAlphaTex/CanvasGroup/SkeletonGraphicTintBlackAdditive-CanvasGroupStraight.mat.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 590aa6fe487965f4baf0aa47db53a8d0 +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 2100000 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-StraightAlphaTex/CanvasGroup/SkeletonGraphicTintBlackMultiply-CanvasGroupStraight.mat b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-StraightAlphaTex/CanvasGroup/SkeletonGraphicTintBlackMultiply-CanvasGroupStraight.mat new file mode 100644 index 000000000..9fcae644a --- /dev/null +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-StraightAlphaTex/CanvasGroup/SkeletonGraphicTintBlackMultiply-CanvasGroupStraight.mat @@ -0,0 +1,101 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!21 &2100000 +Material: + serializedVersion: 8 + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: SkeletonGraphicTintBlackMultiply-CanvasGroupStraight + m_Shader: {fileID: 4800000, guid: d006d50db496cce459741dc6689e2662, type: 3} + m_Parent: {fileID: 0} + m_ModifiedSerializedProperties: 0 + m_ValidKeywords: + - _CANVAS_GROUP_COMPATIBLE + - _STRAIGHT_ALPHA_INPUT + m_InvalidKeywords: + - _USE8NEIGHBOURHOOD_ON + m_LightmapFlags: 5 + m_EnableInstancingVariants: 0 + m_DoubleSidedGI: 0 + m_CustomRenderQueue: -1 + stringTagMap: {} + disabledShaderPasses: [] + m_LockedProperties: + m_SavedProperties: + serializedVersion: 3 + m_TexEnvs: + - _BumpMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailAlbedoMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailMask: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailNormalMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _EmissionMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _MainTex: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _MetallicGlossMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _OcclusionMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _ParallaxMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + m_Ints: [] + m_Floats: + - _BumpScale: 1 + - _CanvasGroupCompatible: 1 + - _ColorMask: 15 + - _Cutoff: 0.5 + - _DarkColorAlphaAdditive: 0 + - _DetailNormalMapScale: 1 + - _DstBlend: 0 + - _Glossiness: 0.5 + - _Metallic: 0 + - _Mode: 0 + - _OcclusionStrength: 1 + - _OutlineMipLevel: 0 + - _OutlineOpaqueAlpha: 1 + - _OutlineReferenceTexWidth: 1024 + - _OutlineSmoothness: 1 + - _OutlineWidth: 3 + - _Parallax: 0.02 + - _SrcBlend: 1 + - _Stencil: 0 + - _StencilComp: 8 + - _StencilOp: 0 + - _StencilReadMask: 255 + - _StencilWriteMask: 255 + - _StraightAlphaInput: 1 + - _ThresholdEnd: 0.25 + - _UVSec: 0 + - _Use8Neighbourhood: 1 + - _UseUIAlphaClip: 0 + - _ZWrite: 1 + m_Colors: + - _Black: {r: 0, g: 0, b: 0, a: 0} + - _Color: {r: 1, g: 1, b: 1, a: 1} + - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} + - _OutlineColor: {r: 1, g: 1, b: 0, a: 1} + m_BuildTextureStacks: [] diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-StraightAlphaTex/CanvasGroup/SkeletonGraphicTintBlackMultiply-CanvasGroupStraight.mat.meta b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-StraightAlphaTex/CanvasGroup/SkeletonGraphicTintBlackMultiply-CanvasGroupStraight.mat.meta new file mode 100644 index 000000000..13af80f72 --- /dev/null +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-StraightAlphaTex/CanvasGroup/SkeletonGraphicTintBlackMultiply-CanvasGroupStraight.mat.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 21288a3469465d54981d6351c94c03f6 +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 2100000 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-StraightAlphaTex/CanvasGroup/SkeletonGraphicTintBlackOutline-CanvasGroupStraight.mat b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-StraightAlphaTex/CanvasGroup/SkeletonGraphicTintBlackOutline-CanvasGroupStraight.mat new file mode 100644 index 000000000..19913200e --- /dev/null +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-StraightAlphaTex/CanvasGroup/SkeletonGraphicTintBlackOutline-CanvasGroupStraight.mat @@ -0,0 +1,100 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!21 &2100000 +Material: + serializedVersion: 8 + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: SkeletonGraphicTintBlackOutline-CanvasGroupStraight + m_Shader: {fileID: 4800000, guid: d55d64dd09c46af40a319933a62fa1b2, type: 3} + m_Parent: {fileID: 0} + m_ModifiedSerializedProperties: 0 + m_ValidKeywords: + - _CANVAS_GROUP_COMPATIBLE + - _STRAIGHT_ALPHA_INPUT + - _USE8NEIGHBOURHOOD_ON + m_InvalidKeywords: [] + m_LightmapFlags: 5 + m_EnableInstancingVariants: 0 + m_DoubleSidedGI: 0 + m_CustomRenderQueue: -1 + stringTagMap: {} + disabledShaderPasses: [] + m_LockedProperties: + m_SavedProperties: + serializedVersion: 3 + m_TexEnvs: + - _BumpMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailAlbedoMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailMask: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailNormalMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _EmissionMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _MainTex: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _MetallicGlossMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _OcclusionMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _ParallaxMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + m_Ints: [] + m_Floats: + - _BumpScale: 1 + - _CanvasGroupCompatible: 1 + - _ColorMask: 15 + - _Cutoff: 0.5 + - _DetailNormalMapScale: 1 + - _DstBlend: 0 + - _Glossiness: 0.5 + - _Metallic: 0 + - _Mode: 0 + - _OcclusionStrength: 1 + - _OutlineMipLevel: 0 + - _OutlineOpaqueAlpha: 1 + - _OutlineReferenceTexWidth: 1024 + - _OutlineSmoothness: 1 + - _OutlineWidth: 3 + - _Parallax: 0.02 + - _SrcBlend: 1 + - _Stencil: 0 + - _StencilComp: 8 + - _StencilOp: 0 + - _StencilReadMask: 255 + - _StencilWriteMask: 255 + - _StraightAlphaInput: 1 + - _ThresholdEnd: 0.25 + - _UVSec: 0 + - _Use8Neighbourhood: 1 + - _UseUIAlphaClip: 0 + - _ZWrite: 1 + m_Colors: + - _Black: {r: 0, g: 0, b: 0, a: 0} + - _Color: {r: 1, g: 1, b: 1, a: 1} + - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} + - _OutlineColor: {r: 1, g: 1, b: 0, a: 1} + m_BuildTextureStacks: [] diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-StraightAlphaTex/CanvasGroup/SkeletonGraphicTintBlackOutline-CanvasGroupStraight.mat.meta b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-StraightAlphaTex/CanvasGroup/SkeletonGraphicTintBlackOutline-CanvasGroupStraight.mat.meta new file mode 100644 index 000000000..e711b9b9d --- /dev/null +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-StraightAlphaTex/CanvasGroup/SkeletonGraphicTintBlackOutline-CanvasGroupStraight.mat.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 80b83ed1a883abc42ad32d8b00db0ae0 +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 0 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-StraightAlphaTex/CanvasGroup/SkeletonGraphicTintBlackScreen-CanvasGroupStraight.mat b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-StraightAlphaTex/CanvasGroup/SkeletonGraphicTintBlackScreen-CanvasGroupStraight.mat new file mode 100644 index 000000000..ad51a93d3 --- /dev/null +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-StraightAlphaTex/CanvasGroup/SkeletonGraphicTintBlackScreen-CanvasGroupStraight.mat @@ -0,0 +1,101 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!21 &2100000 +Material: + serializedVersion: 8 + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: SkeletonGraphicTintBlackScreen-CanvasGroupStraight + m_Shader: {fileID: 4800000, guid: 7cb5b7d45d2ae2847970ba2e30fdc597, type: 3} + m_Parent: {fileID: 0} + m_ModifiedSerializedProperties: 0 + m_ValidKeywords: + - _CANVAS_GROUP_COMPATIBLE + - _STRAIGHT_ALPHA_INPUT + m_InvalidKeywords: + - _USE8NEIGHBOURHOOD_ON + m_LightmapFlags: 5 + m_EnableInstancingVariants: 0 + m_DoubleSidedGI: 0 + m_CustomRenderQueue: -1 + stringTagMap: {} + disabledShaderPasses: [] + m_LockedProperties: + m_SavedProperties: + serializedVersion: 3 + m_TexEnvs: + - _BumpMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailAlbedoMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailMask: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailNormalMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _EmissionMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _MainTex: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _MetallicGlossMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _OcclusionMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _ParallaxMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + m_Ints: [] + m_Floats: + - _BumpScale: 1 + - _CanvasGroupCompatible: 1 + - _ColorMask: 15 + - _Cutoff: 0.5 + - _DarkColorAlphaAdditive: 0 + - _DetailNormalMapScale: 1 + - _DstBlend: 0 + - _Glossiness: 0.5 + - _Metallic: 0 + - _Mode: 0 + - _OcclusionStrength: 1 + - _OutlineMipLevel: 0 + - _OutlineOpaqueAlpha: 1 + - _OutlineReferenceTexWidth: 1024 + - _OutlineSmoothness: 1 + - _OutlineWidth: 3 + - _Parallax: 0.02 + - _SrcBlend: 1 + - _Stencil: 0 + - _StencilComp: 8 + - _StencilOp: 0 + - _StencilReadMask: 255 + - _StencilWriteMask: 255 + - _StraightAlphaInput: 1 + - _ThresholdEnd: 0.25 + - _UVSec: 0 + - _Use8Neighbourhood: 1 + - _UseUIAlphaClip: 0 + - _ZWrite: 1 + m_Colors: + - _Black: {r: 0, g: 0, b: 0, a: 0} + - _Color: {r: 1, g: 1, b: 1, a: 1} + - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} + - _OutlineColor: {r: 1, g: 1, b: 0, a: 1} + m_BuildTextureStacks: [] diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-StraightAlphaTex/CanvasGroup/SkeletonGraphicTintBlackScreen-CanvasGroupStraight.mat.meta b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-StraightAlphaTex/CanvasGroup/SkeletonGraphicTintBlackScreen-CanvasGroupStraight.mat.meta new file mode 100644 index 000000000..524000b57 --- /dev/null +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-StraightAlphaTex/CanvasGroup/SkeletonGraphicTintBlackScreen-CanvasGroupStraight.mat.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 88cfd9da2d30c984fb2a70b86c6c3fcc +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 2100000 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-StraightAlphaTex/SkeletonGraphicAdditive-Straight.mat b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-StraightAlphaTex/SkeletonGraphicAdditive-Straight.mat new file mode 100644 index 000000000..d7572a989 --- /dev/null +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-StraightAlphaTex/SkeletonGraphicAdditive-Straight.mat @@ -0,0 +1,106 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!21 &2100000 +Material: + serializedVersion: 8 + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: SkeletonGraphicAdditive-Straight + m_Shader: {fileID: 4800000, guid: a1e4ab34b07f81e4e94f0d241c416669, type: 3} + m_Parent: {fileID: 0} + m_ModifiedSerializedProperties: 0 + m_ValidKeywords: + - _STRAIGHT_ALPHA_INPUT + m_InvalidKeywords: + - _USE8NEIGHBOURHOOD_ON + m_LightmapFlags: 5 + m_EnableInstancingVariants: 0 + m_DoubleSidedGI: 0 + m_CustomRenderQueue: -1 + stringTagMap: {} + disabledShaderPasses: [] + m_LockedProperties: + m_SavedProperties: + serializedVersion: 3 + m_TexEnvs: + - _AlphaTex: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _BumpMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailAlbedoMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailMask: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailNormalMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _EmissionMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _MainTex: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _MetallicGlossMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _OcclusionMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _ParallaxMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + m_Ints: [] + m_Floats: + - PixelSnap: 0 + - _BumpScale: 1 + - _CanvasGroupCompatible: 0 + - _ColorMask: 15 + - _Cutoff: 0.5 + - _DetailNormalMapScale: 1 + - _DstBlend: 0 + - _EnableExternalAlpha: 0 + - _Glossiness: 0.5 + - _Metallic: 0 + - _Mode: 0 + - _OcclusionStrength: 1 + - _OutlineMipLevel: 0 + - _OutlineOpaqueAlpha: 1 + - _OutlineReferenceTexWidth: 1024 + - _OutlineSmoothness: 1 + - _OutlineWidth: 3 + - _Parallax: 0.02 + - _SrcBlend: 1 + - _Stencil: 0 + - _StencilComp: 8 + - _StencilOp: 0 + - _StencilReadMask: 255 + - _StencilWriteMask: 255 + - _StraightAlphaInput: 1 + - _ThresholdEnd: 0.25 + - _UVSec: 0 + - _Use8Neighbourhood: 1 + - _UseUIAlphaClip: 0 + - _ZWrite: 1 + m_Colors: + - _Color: {r: 1, g: 1, b: 1, a: 1} + - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} + - _Flip: {r: 1, g: 1, b: 1, a: 1} + - _OutlineColor: {r: 1, g: 1, b: 0, a: 1} + - _RendererColor: {r: 1, g: 1, b: 1, a: 1} + m_BuildTextureStacks: [] diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-StraightAlphaTex/SkeletonGraphicAdditive-Straight.mat.meta b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-StraightAlphaTex/SkeletonGraphicAdditive-Straight.mat.meta new file mode 100644 index 000000000..105c292a2 --- /dev/null +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-StraightAlphaTex/SkeletonGraphicAdditive-Straight.mat.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: cad8f402683e18141a860042c37d6242 +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 2100000 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-StraightAlphaTex/SkeletonGraphicDefault-Straight.mat b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-StraightAlphaTex/SkeletonGraphicDefault-Straight.mat new file mode 100644 index 000000000..69a00ee5d --- /dev/null +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-StraightAlphaTex/SkeletonGraphicDefault-Straight.mat @@ -0,0 +1,106 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!21 &2100000 +Material: + serializedVersion: 8 + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: SkeletonGraphicDefault-Straight + m_Shader: {fileID: 4800000, guid: fa95b0fb6983c0f40a152e6f9aa82bfb, type: 3} + m_Parent: {fileID: 0} + m_ModifiedSerializedProperties: 0 + m_ValidKeywords: + - _STRAIGHT_ALPHA_INPUT + m_InvalidKeywords: + - _USE8NEIGHBOURHOOD_ON + m_LightmapFlags: 5 + m_EnableInstancingVariants: 0 + m_DoubleSidedGI: 0 + m_CustomRenderQueue: -1 + stringTagMap: {} + disabledShaderPasses: [] + m_LockedProperties: + m_SavedProperties: + serializedVersion: 3 + m_TexEnvs: + - _AlphaTex: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _BumpMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailAlbedoMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailMask: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailNormalMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _EmissionMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _MainTex: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _MetallicGlossMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _OcclusionMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _ParallaxMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + m_Ints: [] + m_Floats: + - PixelSnap: 0 + - _BumpScale: 1 + - _CanvasGroupCompatible: 0 + - _ColorMask: 15 + - _Cutoff: 0.5 + - _DetailNormalMapScale: 1 + - _DstBlend: 0 + - _EnableExternalAlpha: 0 + - _Glossiness: 0.5 + - _Metallic: 0 + - _Mode: 0 + - _OcclusionStrength: 1 + - _OutlineMipLevel: 0 + - _OutlineOpaqueAlpha: 1 + - _OutlineReferenceTexWidth: 1024 + - _OutlineSmoothness: 1 + - _OutlineWidth: 3 + - _Parallax: 0.02 + - _SrcBlend: 1 + - _Stencil: 0 + - _StencilComp: 8 + - _StencilOp: 0 + - _StencilReadMask: 255 + - _StencilWriteMask: 255 + - _StraightAlphaInput: 1 + - _ThresholdEnd: 0.25 + - _UVSec: 0 + - _Use8Neighbourhood: 1 + - _UseUIAlphaClip: 0 + - _ZWrite: 1 + m_Colors: + - _Color: {r: 1, g: 1, b: 1, a: 1} + - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} + - _Flip: {r: 1, g: 1, b: 1, a: 1} + - _OutlineColor: {r: 1, g: 1, b: 0, a: 1} + - _RendererColor: {r: 1, g: 1, b: 1, a: 1} + m_BuildTextureStacks: [] diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-StraightAlphaTex/SkeletonGraphicDefault-Straight.mat.meta b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-StraightAlphaTex/SkeletonGraphicDefault-Straight.mat.meta new file mode 100644 index 000000000..3a95cb5db --- /dev/null +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-StraightAlphaTex/SkeletonGraphicDefault-Straight.mat.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 9c6ec24bca5fc42489fe47358fef0d4a +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 2100000 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-StraightAlphaTex/SkeletonGraphicDefaultGrayscale-Straight.mat b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-StraightAlphaTex/SkeletonGraphicDefaultGrayscale-Straight.mat new file mode 100644 index 000000000..cfdbd05f2 --- /dev/null +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-StraightAlphaTex/SkeletonGraphicDefaultGrayscale-Straight.mat @@ -0,0 +1,106 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!21 &2100000 +Material: + serializedVersion: 8 + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: SkeletonGraphicDefaultGrayscale-Straight + m_Shader: {fileID: 4800000, guid: fa95b0fb6983c0f40a152e6f9aa82bfb, type: 3} + m_Parent: {fileID: 0} + m_ModifiedSerializedProperties: 0 + m_ValidKeywords: + - _STRAIGHT_ALPHA_INPUT + m_InvalidKeywords: + - _USE8NEIGHBOURHOOD_ON + m_LightmapFlags: 5 + m_EnableInstancingVariants: 0 + m_DoubleSidedGI: 0 + m_CustomRenderQueue: -1 + stringTagMap: {} + disabledShaderPasses: [] + m_LockedProperties: + m_SavedProperties: + serializedVersion: 3 + m_TexEnvs: + - _AlphaTex: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _BumpMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailAlbedoMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailMask: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailNormalMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _EmissionMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _MainTex: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _MetallicGlossMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _OcclusionMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _ParallaxMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + m_Ints: [] + m_Floats: + - PixelSnap: 0 + - _BumpScale: 1 + - _CanvasGroupCompatible: 0 + - _ColorMask: 15 + - _Cutoff: 0.5 + - _DetailNormalMapScale: 1 + - _DstBlend: 0 + - _EnableExternalAlpha: 0 + - _Glossiness: 0.5 + - _Metallic: 0 + - _Mode: 0 + - _OcclusionStrength: 1 + - _OutlineMipLevel: 0 + - _OutlineOpaqueAlpha: 1 + - _OutlineReferenceTexWidth: 1024 + - _OutlineSmoothness: 1 + - _OutlineWidth: 3 + - _Parallax: 0.02 + - _SrcBlend: 1 + - _Stencil: 0 + - _StencilComp: 8 + - _StencilOp: 0 + - _StencilReadMask: 255 + - _StencilWriteMask: 255 + - _StraightAlphaInput: 1 + - _ThresholdEnd: 0.25 + - _UVSec: 0 + - _Use8Neighbourhood: 1 + - _UseUIAlphaClip: 0 + - _ZWrite: 1 + m_Colors: + - _Color: {r: 1, g: 1, b: 1, a: 1} + - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} + - _Flip: {r: 1, g: 1, b: 1, a: 1} + - _OutlineColor: {r: 1, g: 1, b: 0, a: 1} + - _RendererColor: {r: 1, g: 1, b: 1, a: 1} + m_BuildTextureStacks: [] diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-StraightAlphaTex/SkeletonGraphicDefaultGrayscale-Straight.mat.meta b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-StraightAlphaTex/SkeletonGraphicDefaultGrayscale-Straight.mat.meta new file mode 100644 index 000000000..18b5bc8a6 --- /dev/null +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-StraightAlphaTex/SkeletonGraphicDefaultGrayscale-Straight.mat.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: c91e189b22e5b1f4abdd431932425a96 +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 2100000 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-StraightAlphaTex/SkeletonGraphicDefaultOutline-Straight.mat b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-StraightAlphaTex/SkeletonGraphicDefaultOutline-Straight.mat new file mode 100644 index 000000000..21c3d92b9 --- /dev/null +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-StraightAlphaTex/SkeletonGraphicDefaultOutline-Straight.mat @@ -0,0 +1,106 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!21 &2100000 +Material: + serializedVersion: 8 + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: SkeletonGraphicDefaultOutline-Straight + m_Shader: {fileID: 4800000, guid: 8f5d14d2a7fedb84998c50eb96c8b748, type: 3} + m_Parent: {fileID: 0} + m_ModifiedSerializedProperties: 0 + m_ValidKeywords: + - _STRAIGHT_ALPHA_INPUT + - _USE8NEIGHBOURHOOD_ON + m_InvalidKeywords: [] + m_LightmapFlags: 5 + m_EnableInstancingVariants: 0 + m_DoubleSidedGI: 0 + m_CustomRenderQueue: -1 + stringTagMap: {} + disabledShaderPasses: [] + m_LockedProperties: + m_SavedProperties: + serializedVersion: 3 + m_TexEnvs: + - _AlphaTex: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _BumpMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailAlbedoMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailMask: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailNormalMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _EmissionMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _MainTex: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _MetallicGlossMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _OcclusionMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _ParallaxMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + m_Ints: [] + m_Floats: + - PixelSnap: 0 + - _BumpScale: 1 + - _CanvasGroupCompatible: 0 + - _ColorMask: 15 + - _Cutoff: 0.5 + - _DetailNormalMapScale: 1 + - _DstBlend: 0 + - _EnableExternalAlpha: 0 + - _Glossiness: 0.5 + - _Metallic: 0 + - _Mode: 0 + - _OcclusionStrength: 1 + - _OutlineMipLevel: 0 + - _OutlineOpaqueAlpha: 1 + - _OutlineReferenceTexWidth: 1024 + - _OutlineSmoothness: 1 + - _OutlineWidth: 3 + - _Parallax: 0.02 + - _SrcBlend: 1 + - _Stencil: 0 + - _StencilComp: 8 + - _StencilOp: 0 + - _StencilReadMask: 255 + - _StencilWriteMask: 255 + - _StraightAlphaInput: 1 + - _ThresholdEnd: 0.25 + - _UVSec: 0 + - _Use8Neighbourhood: 1 + - _UseUIAlphaClip: 0 + - _ZWrite: 1 + m_Colors: + - _Color: {r: 1, g: 1, b: 1, a: 1} + - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} + - _Flip: {r: 1, g: 1, b: 1, a: 1} + - _OutlineColor: {r: 1, g: 1, b: 0, a: 1} + - _RendererColor: {r: 1, g: 1, b: 1, a: 1} + m_BuildTextureStacks: [] diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-StraightAlphaTex/SkeletonGraphicDefaultOutline-Straight.mat.meta b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-StraightAlphaTex/SkeletonGraphicDefaultOutline-Straight.mat.meta new file mode 100644 index 000000000..f4bed6e10 --- /dev/null +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-StraightAlphaTex/SkeletonGraphicDefaultOutline-Straight.mat.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: eb5fcf8085792c14088ce1aeb552cfba +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 2100000 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-StraightAlphaTex/SkeletonGraphicFill-Straight.mat b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-StraightAlphaTex/SkeletonGraphicFill-Straight.mat new file mode 100644 index 000000000..5425bca4b --- /dev/null +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-StraightAlphaTex/SkeletonGraphicFill-Straight.mat @@ -0,0 +1,108 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!21 &2100000 +Material: + serializedVersion: 8 + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: SkeletonGraphicFill-Straight + m_Shader: {fileID: 4800000, guid: c02377d9afbb50e49ab27049e59fb5f8, type: 3} + m_Parent: {fileID: 0} + m_ModifiedSerializedProperties: 0 + m_ValidKeywords: + - _STRAIGHT_ALPHA_INPUT + m_InvalidKeywords: + - _USE8NEIGHBOURHOOD_ON + m_LightmapFlags: 5 + m_EnableInstancingVariants: 0 + m_DoubleSidedGI: 0 + m_CustomRenderQueue: -1 + stringTagMap: {} + disabledShaderPasses: [] + m_LockedProperties: + m_SavedProperties: + serializedVersion: 3 + m_TexEnvs: + - _AlphaTex: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _BumpMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailAlbedoMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailMask: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailNormalMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _EmissionMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _MainTex: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _MetallicGlossMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _OcclusionMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _ParallaxMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + m_Ints: [] + m_Floats: + - PixelSnap: 0 + - _BumpScale: 1 + - _CanvasGroupCompatible: 0 + - _ColorMask: 15 + - _Cutoff: 0.5 + - _DetailNormalMapScale: 1 + - _DstBlend: 0 + - _EnableExternalAlpha: 0 + - _FillPhase: 1 + - _Glossiness: 0.5 + - _Metallic: 0 + - _Mode: 0 + - _OcclusionStrength: 1 + - _OutlineMipLevel: 0 + - _OutlineOpaqueAlpha: 1 + - _OutlineReferenceTexWidth: 1024 + - _OutlineSmoothness: 1 + - _OutlineWidth: 3 + - _Parallax: 0.02 + - _SrcBlend: 1 + - _Stencil: 0 + - _StencilComp: 8 + - _StencilOp: 0 + - _StencilReadMask: 255 + - _StencilWriteMask: 255 + - _StraightAlphaInput: 1 + - _ThresholdEnd: 0.25 + - _UVSec: 0 + - _Use8Neighbourhood: 1 + - _UseUIAlphaClip: 0 + - _ZWrite: 1 + m_Colors: + - _Color: {r: 1, g: 1, b: 1, a: 1} + - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} + - _FillColor: {r: 1, g: 1, b: 1, a: 1} + - _Flip: {r: 1, g: 1, b: 1, a: 1} + - _OutlineColor: {r: 1, g: 1, b: 0, a: 1} + - _RendererColor: {r: 1, g: 1, b: 1, a: 1} + m_BuildTextureStacks: [] diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-StraightAlphaTex/SkeletonGraphicFill-Straight.mat.meta b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-StraightAlphaTex/SkeletonGraphicFill-Straight.mat.meta new file mode 100644 index 000000000..84711447d --- /dev/null +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-StraightAlphaTex/SkeletonGraphicFill-Straight.mat.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 66bdb79edca980945815072d8aecdc3c +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 2100000 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-StraightAlphaTex/SkeletonGraphicMultiply-Straight.mat b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-StraightAlphaTex/SkeletonGraphicMultiply-Straight.mat new file mode 100644 index 000000000..e152a4aca --- /dev/null +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-StraightAlphaTex/SkeletonGraphicMultiply-Straight.mat @@ -0,0 +1,106 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!21 &2100000 +Material: + serializedVersion: 8 + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: SkeletonGraphicMultiply-Straight + m_Shader: {fileID: 4800000, guid: cfbf95ed0fe6c554c8c2ee6c8325937c, type: 3} + m_Parent: {fileID: 0} + m_ModifiedSerializedProperties: 0 + m_ValidKeywords: + - _STRAIGHT_ALPHA_INPUT + m_InvalidKeywords: + - _USE8NEIGHBOURHOOD_ON + m_LightmapFlags: 5 + m_EnableInstancingVariants: 0 + m_DoubleSidedGI: 0 + m_CustomRenderQueue: -1 + stringTagMap: {} + disabledShaderPasses: [] + m_LockedProperties: + m_SavedProperties: + serializedVersion: 3 + m_TexEnvs: + - _AlphaTex: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _BumpMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailAlbedoMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailMask: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailNormalMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _EmissionMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _MainTex: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _MetallicGlossMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _OcclusionMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _ParallaxMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + m_Ints: [] + m_Floats: + - PixelSnap: 0 + - _BumpScale: 1 + - _CanvasGroupCompatible: 0 + - _ColorMask: 15 + - _Cutoff: 0.5 + - _DetailNormalMapScale: 1 + - _DstBlend: 0 + - _EnableExternalAlpha: 0 + - _Glossiness: 0.5 + - _Metallic: 0 + - _Mode: 0 + - _OcclusionStrength: 1 + - _OutlineMipLevel: 0 + - _OutlineOpaqueAlpha: 1 + - _OutlineReferenceTexWidth: 1024 + - _OutlineSmoothness: 1 + - _OutlineWidth: 3 + - _Parallax: 0.02 + - _SrcBlend: 1 + - _Stencil: 0 + - _StencilComp: 8 + - _StencilOp: 0 + - _StencilReadMask: 255 + - _StencilWriteMask: 255 + - _StraightAlphaInput: 1 + - _ThresholdEnd: 0.25 + - _UVSec: 0 + - _Use8Neighbourhood: 1 + - _UseUIAlphaClip: 0 + - _ZWrite: 1 + m_Colors: + - _Color: {r: 1, g: 1, b: 1, a: 1} + - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} + - _Flip: {r: 1, g: 1, b: 1, a: 1} + - _OutlineColor: {r: 1, g: 1, b: 0, a: 1} + - _RendererColor: {r: 1, g: 1, b: 1, a: 1} + m_BuildTextureStacks: [] diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-StraightAlphaTex/SkeletonGraphicMultiply-Straight.mat.meta b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-StraightAlphaTex/SkeletonGraphicMultiply-Straight.mat.meta new file mode 100644 index 000000000..1faf0788f --- /dev/null +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-StraightAlphaTex/SkeletonGraphicMultiply-Straight.mat.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 508e91b626e5c3d4690de05ff2dc80f3 +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 2100000 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-StraightAlphaTex/SkeletonGraphicScreen-Straight.mat b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-StraightAlphaTex/SkeletonGraphicScreen-Straight.mat new file mode 100644 index 000000000..a7f50d23c --- /dev/null +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-StraightAlphaTex/SkeletonGraphicScreen-Straight.mat @@ -0,0 +1,106 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!21 &2100000 +Material: + serializedVersion: 8 + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: SkeletonGraphicScreen-Straight + m_Shader: {fileID: 4800000, guid: c61244023592f95479fddd71b5067683, type: 3} + m_Parent: {fileID: 0} + m_ModifiedSerializedProperties: 0 + m_ValidKeywords: + - _STRAIGHT_ALPHA_INPUT + m_InvalidKeywords: + - _USE8NEIGHBOURHOOD_ON + m_LightmapFlags: 5 + m_EnableInstancingVariants: 0 + m_DoubleSidedGI: 0 + m_CustomRenderQueue: -1 + stringTagMap: {} + disabledShaderPasses: [] + m_LockedProperties: + m_SavedProperties: + serializedVersion: 3 + m_TexEnvs: + - _AlphaTex: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _BumpMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailAlbedoMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailMask: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailNormalMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _EmissionMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _MainTex: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _MetallicGlossMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _OcclusionMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _ParallaxMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + m_Ints: [] + m_Floats: + - PixelSnap: 0 + - _BumpScale: 1 + - _CanvasGroupCompatible: 0 + - _ColorMask: 15 + - _Cutoff: 0.5 + - _DetailNormalMapScale: 1 + - _DstBlend: 0 + - _EnableExternalAlpha: 0 + - _Glossiness: 0.5 + - _Metallic: 0 + - _Mode: 0 + - _OcclusionStrength: 1 + - _OutlineMipLevel: 0 + - _OutlineOpaqueAlpha: 1 + - _OutlineReferenceTexWidth: 1024 + - _OutlineSmoothness: 1 + - _OutlineWidth: 3 + - _Parallax: 0.02 + - _SrcBlend: 1 + - _Stencil: 0 + - _StencilComp: 8 + - _StencilOp: 0 + - _StencilReadMask: 255 + - _StencilWriteMask: 255 + - _StraightAlphaInput: 1 + - _ThresholdEnd: 0.25 + - _UVSec: 0 + - _Use8Neighbourhood: 1 + - _UseUIAlphaClip: 0 + - _ZWrite: 1 + m_Colors: + - _Color: {r: 1, g: 1, b: 1, a: 1} + - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} + - _Flip: {r: 1, g: 1, b: 1, a: 1} + - _OutlineColor: {r: 1, g: 1, b: 0, a: 1} + - _RendererColor: {r: 1, g: 1, b: 1, a: 1} + m_BuildTextureStacks: [] diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-StraightAlphaTex/SkeletonGraphicScreen-Straight.mat.meta b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-StraightAlphaTex/SkeletonGraphicScreen-Straight.mat.meta new file mode 100644 index 000000000..eedf05bae --- /dev/null +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-StraightAlphaTex/SkeletonGraphicScreen-Straight.mat.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: c1a5bc7027fd9544abc08178fe135ba2 +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 2100000 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-StraightAlphaTex/SkeletonGraphicTintBlack-Straight.mat b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-StraightAlphaTex/SkeletonGraphicTintBlack-Straight.mat new file mode 100644 index 000000000..33ea7db03 --- /dev/null +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-StraightAlphaTex/SkeletonGraphicTintBlack-Straight.mat @@ -0,0 +1,100 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!21 &2100000 +Material: + serializedVersion: 8 + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: SkeletonGraphicTintBlack-Straight + m_Shader: {fileID: 4800000, guid: f64c7bc238bb2c246b8ca1912b2b6b9c, type: 3} + m_Parent: {fileID: 0} + m_ModifiedSerializedProperties: 0 + m_ValidKeywords: + - _STRAIGHT_ALPHA_INPUT + m_InvalidKeywords: + - _USE8NEIGHBOURHOOD_ON + m_LightmapFlags: 5 + m_EnableInstancingVariants: 0 + m_DoubleSidedGI: 0 + m_CustomRenderQueue: -1 + stringTagMap: {} + disabledShaderPasses: [] + m_LockedProperties: + m_SavedProperties: + serializedVersion: 3 + m_TexEnvs: + - _BumpMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailAlbedoMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailMask: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailNormalMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _EmissionMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _MainTex: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _MetallicGlossMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _OcclusionMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _ParallaxMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + m_Ints: [] + m_Floats: + - _BumpScale: 1 + - _CanvasGroupCompatible: 0 + - _ColorMask: 15 + - _Cutoff: 0.5 + - _DarkColorAlphaAdditive: 0 + - _DetailNormalMapScale: 1 + - _DstBlend: 0 + - _Glossiness: 0.5 + - _Metallic: 0 + - _Mode: 0 + - _OcclusionStrength: 1 + - _OutlineMipLevel: 0 + - _OutlineOpaqueAlpha: 1 + - _OutlineReferenceTexWidth: 1024 + - _OutlineSmoothness: 1 + - _OutlineWidth: 3 + - _Parallax: 0.02 + - _SrcBlend: 1 + - _Stencil: 0 + - _StencilComp: 8 + - _StencilOp: 0 + - _StencilReadMask: 255 + - _StencilWriteMask: 255 + - _StraightAlphaInput: 1 + - _ThresholdEnd: 0.25 + - _UVSec: 0 + - _Use8Neighbourhood: 1 + - _UseUIAlphaClip: 0 + - _ZWrite: 1 + m_Colors: + - _Black: {r: 0, g: 0, b: 0, a: 0} + - _Color: {r: 1, g: 1, b: 1, a: 1} + - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} + - _OutlineColor: {r: 1, g: 1, b: 0, a: 1} + m_BuildTextureStacks: [] diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-StraightAlphaTex/SkeletonGraphicTintBlack-Straight.mat.meta b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-StraightAlphaTex/SkeletonGraphicTintBlack-Straight.mat.meta new file mode 100644 index 000000000..eca7d921b --- /dev/null +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-StraightAlphaTex/SkeletonGraphicTintBlack-Straight.mat.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 0ed9998e4cd669445b88721b370cbee9 +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 2100000 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-StraightAlphaTex/SkeletonGraphicTintBlackAdditive-Straight.mat b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-StraightAlphaTex/SkeletonGraphicTintBlackAdditive-Straight.mat new file mode 100644 index 000000000..efd8b95ed --- /dev/null +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-StraightAlphaTex/SkeletonGraphicTintBlackAdditive-Straight.mat @@ -0,0 +1,100 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!21 &2100000 +Material: + serializedVersion: 8 + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: SkeletonGraphicTintBlackAdditive-Straight + m_Shader: {fileID: 4800000, guid: 1d081289ec7074140a6b96982be27e02, type: 3} + m_Parent: {fileID: 0} + m_ModifiedSerializedProperties: 0 + m_ValidKeywords: + - _STRAIGHT_ALPHA_INPUT + m_InvalidKeywords: + - _USE8NEIGHBOURHOOD_ON + m_LightmapFlags: 5 + m_EnableInstancingVariants: 0 + m_DoubleSidedGI: 0 + m_CustomRenderQueue: -1 + stringTagMap: {} + disabledShaderPasses: [] + m_LockedProperties: + m_SavedProperties: + serializedVersion: 3 + m_TexEnvs: + - _BumpMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailAlbedoMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailMask: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailNormalMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _EmissionMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _MainTex: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _MetallicGlossMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _OcclusionMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _ParallaxMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + m_Ints: [] + m_Floats: + - _BumpScale: 1 + - _CanvasGroupCompatible: 0 + - _ColorMask: 15 + - _Cutoff: 0.5 + - _DarkColorAlphaAdditive: 0 + - _DetailNormalMapScale: 1 + - _DstBlend: 0 + - _Glossiness: 0.5 + - _Metallic: 0 + - _Mode: 0 + - _OcclusionStrength: 1 + - _OutlineMipLevel: 0 + - _OutlineOpaqueAlpha: 1 + - _OutlineReferenceTexWidth: 1024 + - _OutlineSmoothness: 1 + - _OutlineWidth: 3 + - _Parallax: 0.02 + - _SrcBlend: 1 + - _Stencil: 0 + - _StencilComp: 8 + - _StencilOp: 0 + - _StencilReadMask: 255 + - _StencilWriteMask: 255 + - _StraightAlphaInput: 1 + - _ThresholdEnd: 0.25 + - _UVSec: 0 + - _Use8Neighbourhood: 1 + - _UseUIAlphaClip: 0 + - _ZWrite: 1 + m_Colors: + - _Black: {r: 0, g: 0, b: 0, a: 0} + - _Color: {r: 1, g: 1, b: 1, a: 1} + - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} + - _OutlineColor: {r: 1, g: 1, b: 0, a: 1} + m_BuildTextureStacks: [] diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-StraightAlphaTex/SkeletonGraphicTintBlackAdditive-Straight.mat.meta b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-StraightAlphaTex/SkeletonGraphicTintBlackAdditive-Straight.mat.meta new file mode 100644 index 000000000..e686e159a --- /dev/null +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-StraightAlphaTex/SkeletonGraphicTintBlackAdditive-Straight.mat.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: b1cef8fd98454b343a723830226e6b97 +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 2100000 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-StraightAlphaTex/SkeletonGraphicTintBlackMultiply-Straight.mat b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-StraightAlphaTex/SkeletonGraphicTintBlackMultiply-Straight.mat new file mode 100644 index 000000000..326313b48 --- /dev/null +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-StraightAlphaTex/SkeletonGraphicTintBlackMultiply-Straight.mat @@ -0,0 +1,100 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!21 &2100000 +Material: + serializedVersion: 8 + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: SkeletonGraphicTintBlackMultiply-Straight + m_Shader: {fileID: 4800000, guid: d006d50db496cce459741dc6689e2662, type: 3} + m_Parent: {fileID: 0} + m_ModifiedSerializedProperties: 0 + m_ValidKeywords: + - _STRAIGHT_ALPHA_INPUT + m_InvalidKeywords: + - _USE8NEIGHBOURHOOD_ON + m_LightmapFlags: 5 + m_EnableInstancingVariants: 0 + m_DoubleSidedGI: 0 + m_CustomRenderQueue: -1 + stringTagMap: {} + disabledShaderPasses: [] + m_LockedProperties: + m_SavedProperties: + serializedVersion: 3 + m_TexEnvs: + - _BumpMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailAlbedoMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailMask: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailNormalMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _EmissionMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _MainTex: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _MetallicGlossMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _OcclusionMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _ParallaxMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + m_Ints: [] + m_Floats: + - _BumpScale: 1 + - _CanvasGroupCompatible: 0 + - _ColorMask: 15 + - _Cutoff: 0.5 + - _DarkColorAlphaAdditive: 0 + - _DetailNormalMapScale: 1 + - _DstBlend: 0 + - _Glossiness: 0.5 + - _Metallic: 0 + - _Mode: 0 + - _OcclusionStrength: 1 + - _OutlineMipLevel: 0 + - _OutlineOpaqueAlpha: 1 + - _OutlineReferenceTexWidth: 1024 + - _OutlineSmoothness: 1 + - _OutlineWidth: 3 + - _Parallax: 0.02 + - _SrcBlend: 1 + - _Stencil: 0 + - _StencilComp: 8 + - _StencilOp: 0 + - _StencilReadMask: 255 + - _StencilWriteMask: 255 + - _StraightAlphaInput: 1 + - _ThresholdEnd: 0.25 + - _UVSec: 0 + - _Use8Neighbourhood: 1 + - _UseUIAlphaClip: 0 + - _ZWrite: 1 + m_Colors: + - _Black: {r: 0, g: 0, b: 0, a: 0} + - _Color: {r: 1, g: 1, b: 1, a: 1} + - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} + - _OutlineColor: {r: 1, g: 1, b: 0, a: 1} + m_BuildTextureStacks: [] diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-StraightAlphaTex/SkeletonGraphicTintBlackMultiply-Straight.mat.meta b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-StraightAlphaTex/SkeletonGraphicTintBlackMultiply-Straight.mat.meta new file mode 100644 index 000000000..9454e6343 --- /dev/null +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-StraightAlphaTex/SkeletonGraphicTintBlackMultiply-Straight.mat.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 89c43e3d95ce08e45a9da7dbd20a3904 +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 2100000 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-StraightAlphaTex/SkeletonGraphicTintBlackOutline-Straight.mat b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-StraightAlphaTex/SkeletonGraphicTintBlackOutline-Straight.mat new file mode 100644 index 000000000..d08ef7aca --- /dev/null +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-StraightAlphaTex/SkeletonGraphicTintBlackOutline-Straight.mat @@ -0,0 +1,99 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!21 &2100000 +Material: + serializedVersion: 8 + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: SkeletonGraphicTintBlackOutline-Straight + m_Shader: {fileID: 4800000, guid: d55d64dd09c46af40a319933a62fa1b2, type: 3} + m_Parent: {fileID: 0} + m_ModifiedSerializedProperties: 0 + m_ValidKeywords: + - _STRAIGHT_ALPHA_INPUT + - _USE8NEIGHBOURHOOD_ON + m_InvalidKeywords: [] + m_LightmapFlags: 5 + m_EnableInstancingVariants: 0 + m_DoubleSidedGI: 0 + m_CustomRenderQueue: -1 + stringTagMap: {} + disabledShaderPasses: [] + m_LockedProperties: + m_SavedProperties: + serializedVersion: 3 + m_TexEnvs: + - _BumpMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailAlbedoMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailMask: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailNormalMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _EmissionMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _MainTex: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _MetallicGlossMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _OcclusionMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _ParallaxMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + m_Ints: [] + m_Floats: + - _BumpScale: 1 + - _CanvasGroupCompatible: 0 + - _ColorMask: 15 + - _Cutoff: 0.5 + - _DetailNormalMapScale: 1 + - _DstBlend: 0 + - _Glossiness: 0.5 + - _Metallic: 0 + - _Mode: 0 + - _OcclusionStrength: 1 + - _OutlineMipLevel: 0 + - _OutlineOpaqueAlpha: 1 + - _OutlineReferenceTexWidth: 1024 + - _OutlineSmoothness: 1 + - _OutlineWidth: 3 + - _Parallax: 0.02 + - _SrcBlend: 1 + - _Stencil: 0 + - _StencilComp: 8 + - _StencilOp: 0 + - _StencilReadMask: 255 + - _StencilWriteMask: 255 + - _StraightAlphaInput: 1 + - _ThresholdEnd: 0.25 + - _UVSec: 0 + - _Use8Neighbourhood: 1 + - _UseUIAlphaClip: 0 + - _ZWrite: 1 + m_Colors: + - _Black: {r: 0, g: 0, b: 0, a: 0} + - _Color: {r: 1, g: 1, b: 1, a: 1} + - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} + - _OutlineColor: {r: 1, g: 1, b: 0, a: 1} + m_BuildTextureStacks: [] diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-StraightAlphaTex/SkeletonGraphicTintBlackOutline-Straight.mat.meta b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-StraightAlphaTex/SkeletonGraphicTintBlackOutline-Straight.mat.meta new file mode 100644 index 000000000..9c4d656c0 --- /dev/null +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-StraightAlphaTex/SkeletonGraphicTintBlackOutline-Straight.mat.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: ffefbeb384e40f84ba1178254a4f3b57 +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 2100000 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-StraightAlphaTex/SkeletonGraphicTintBlackScreen-Straight.mat b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-StraightAlphaTex/SkeletonGraphicTintBlackScreen-Straight.mat new file mode 100644 index 000000000..7d06589ef --- /dev/null +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-StraightAlphaTex/SkeletonGraphicTintBlackScreen-Straight.mat @@ -0,0 +1,100 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!21 &2100000 +Material: + serializedVersion: 8 + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: SkeletonGraphicTintBlackScreen-Straight + m_Shader: {fileID: 4800000, guid: 7cb5b7d45d2ae2847970ba2e30fdc597, type: 3} + m_Parent: {fileID: 0} + m_ModifiedSerializedProperties: 0 + m_ValidKeywords: + - _STRAIGHT_ALPHA_INPUT + m_InvalidKeywords: + - _USE8NEIGHBOURHOOD_ON + m_LightmapFlags: 5 + m_EnableInstancingVariants: 0 + m_DoubleSidedGI: 0 + m_CustomRenderQueue: -1 + stringTagMap: {} + disabledShaderPasses: [] + m_LockedProperties: + m_SavedProperties: + serializedVersion: 3 + m_TexEnvs: + - _BumpMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailAlbedoMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailMask: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailNormalMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _EmissionMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _MainTex: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _MetallicGlossMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _OcclusionMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _ParallaxMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + m_Ints: [] + m_Floats: + - _BumpScale: 1 + - _CanvasGroupCompatible: 0 + - _ColorMask: 15 + - _Cutoff: 0.5 + - _DarkColorAlphaAdditive: 0 + - _DetailNormalMapScale: 1 + - _DstBlend: 0 + - _Glossiness: 0.5 + - _Metallic: 0 + - _Mode: 0 + - _OcclusionStrength: 1 + - _OutlineMipLevel: 0 + - _OutlineOpaqueAlpha: 1 + - _OutlineReferenceTexWidth: 1024 + - _OutlineSmoothness: 1 + - _OutlineWidth: 3 + - _Parallax: 0.02 + - _SrcBlend: 1 + - _Stencil: 0 + - _StencilComp: 8 + - _StencilOp: 0 + - _StencilReadMask: 255 + - _StencilWriteMask: 255 + - _StraightAlphaInput: 1 + - _ThresholdEnd: 0.25 + - _UVSec: 0 + - _Use8Neighbourhood: 1 + - _UseUIAlphaClip: 0 + - _ZWrite: 1 + m_Colors: + - _Black: {r: 0, g: 0, b: 0, a: 0} + - _Color: {r: 1, g: 1, b: 1, a: 1} + - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} + - _OutlineColor: {r: 1, g: 1, b: 0, a: 1} + m_BuildTextureStacks: [] diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-StraightAlphaTex/SkeletonGraphicTintBlackScreen-Straight.mat.meta b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-StraightAlphaTex/SkeletonGraphicTintBlackScreen-Straight.mat.meta new file mode 100644 index 000000000..7cc009b8e --- /dev/null +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Materials/UI-StraightAlphaTex/SkeletonGraphicTintBlackScreen-Straight.mat.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 1cfb46a8e0345c340b0d1c1a95fa74e8 +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 2100000 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Mesh Generation/MeshGenerator.cs b/Assets/ThirdParty/Spine/Runtime/spine-unity/Mesh Generation/MeshGenerator.cs index 0f180402c..e640bb462 100644 --- a/Assets/ThirdParty/Spine/Runtime/spine-unity/Mesh Generation/MeshGenerator.cs +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Mesh Generation/MeshGenerator.cs @@ -31,10 +31,41 @@ #define MESH_SET_TRIANGLES_PROVIDES_LENGTH_PARAM #endif -// Not for optimization. Do not disable. -#define SPINE_TRIANGLECHECK // Avoid calling SetTriangles at the cost of checking for mesh differences (vertex counts, memberwise attachment list compare) every frame. +#if !UNITY_2020_1_OR_NEWER +// Note: on Unity 2019.4 or older, e.g. operator* was not inlined via AggressiveInlining and at least with some +// configurations will lead to unnecessary overhead. +#define MANUALLY_INLINE_VECTOR_OPERATORS +#endif + +// Optimization option: Allows faster BuildMeshWithArrays call and avoids calling SetTriangles at the cost of +// checking for mesh differences (vertex counts, member-wise attachment list compare) every frame. +#define SPINE_TRIANGLECHECK //#define SPINE_DEBUG +// New optimization option to avoid rendering fully transparent attachments at slot alpha 0. +// Comment out this line to revert to previous behaviour. +// You may only need this option disabled when utilizing a custom shader which +// uses vertex color alpha for purposes other than transparency. +// +// Important Note: When disabling this define, also disable the one in SkeletonRenderInstruction.cs +#define SLOT_ALPHA_DISABLES_ATTACHMENT + +// Note: This define below enables a bugfix where when Linear color space is used and `PMA vertex colors` enabled, +// additive slots add a too dark (too transparent) color value. +// +// If you want the old incorrect behaviour (darker additive slots) or are not using Linear but Gamma color space, +// you can comment-out the define below to deactivate the fix or just to skip unnecessary instructions. +// +// Details: +// Alpha-premultiplication of vertex colors happens in gamma-space, and vertexColor.a is set to 0 at additive slots. +// In the shader, gamma space vertex color has to be transformed from gamma space to linear space. +// Unfortunately vertexColorGamma.rgb=(rgb*a) while the desired color in linear space would be +// vertexColorLinear.rgb = GammaToLinear(rgb)*a = GammaToLinear(vertexColorGamma.rgb/a), +// but unfortunately 'a' is unknown as vertexColorGamma.a = 0 at additive slots. +// Thus the define below enables a fix where 'a' is transformed via +// a=LinearToGamma(a), so that the subsequent GammaToLinear() operation is canceled out on 'a'. +#define LINEAR_COLOR_SPACE_FIX_ADDITIVE_ALPHA + using System; using System.Collections.Generic; using UnityEngine; @@ -48,12 +79,20 @@ namespace Spine.Unity { /// Vertex positions. To be used for UnityEngine.Mesh.vertices. public Vector3[] vertexBuffer; - /// Vertex UVs. To be used for UnityEngine.Mesh.uvs. + /// Vertex texture coordinates (UVs). To be used for UnityEngine.Mesh.uv. public Vector2[] uvBuffer; /// Vertex colors. To be used for UnityEngine.Mesh.colors32. public Color32[] colorBuffer; + /// Optional vertex texture coordinates (UVs), second channel. To be used for UnityEngine.Mesh.uv2. + /// Using this accessor automatically allocates and resizes the buffer accordingly. + public Vector2[] uv2Buffer { get { return meshGenerator.UV2; } } + + /// Optional vertex texture coordinates (UVs), third channel. To be used for UnityEngine.Mesh.uv3. + /// Using this accessor automatically allocates and resizes the buffer accordingly. + public Vector2[] uv3Buffer { get { return meshGenerator.UV3; } } + /// The Spine rendering component's MeshGenerator. public MeshGenerator meshGenerator; } @@ -66,17 +105,16 @@ namespace Spine.Unity { [System.Serializable] public struct Settings { public bool useClipping; - [Space] [Range(-0.1f, 0f)] public float zSpacing; - [Space] - [Header("Vertex Data")] - public bool pmaVertexColors; public bool tintBlack; - [Tooltip("Enable when using Additive blend mode at SkeletonGraphic under a CanvasGroup. " + - "When enabled, Additive alpha value is stored at uv2.g instead of color.a to capture CanvasGroup modifying color.a.")] - public bool canvasGroupTintBlack; - public bool calculateTangents; + [UnityEngine.Serialization.FormerlySerializedAs("canvasGroupTintBlack")] + [Tooltip("Enable when using SkeletonGraphic under a CanvasGroup. " + + "When enabled, PMA Vertex Color alpha value is stored at uv2.g instead of color.a to capture " + + "CanvasGroup modifying color.a. Also helps to detect correct parameter setting combinations.")] + public bool canvasGroupCompatible; + public bool pmaVertexColors; public bool addNormals; + public bool calculateTangents; public bool immutableTriangles; static public Settings Default { @@ -118,6 +156,13 @@ namespace Spine.Unity { [NonSerialized] Vector2[] tempTanBuffer; [NonSerialized] ExposedList uv2; [NonSerialized] ExposedList uv3; + + /// Optional vertex texture coordinates (UVs), second channel. To be used for UnityEngine.Mesh.uv2. + /// Using this accessor automatically allocates and resizes the buffer accordingly. + public Vector2[] UV2 { get { PrepareOptionalUVBuffer(ref uv2, vertexBuffer.Count); return uv2.Items; } } + /// Optional vertex texture coordinates (UVs), third channel. To be used for UnityEngine.Mesh.uv3. + /// Using this accessor automatically allocates and resizes the buffer accordingly. + public Vector2[] UV3 { get { PrepareOptionalUVBuffer(ref uv3, vertexBuffer.Count); return uv3.Items; } } #endregion public int VertexCount { get { return vertexBuffer.Count; } } @@ -136,6 +181,11 @@ namespace Spine.Unity { } } + /// Returns the used by this mesh generator for use with e.g. + /// + /// + public SkeletonClipping SkeletonClipping { get { return clipper; } } + public MeshGenerator () { submeshes.TrimExcess(); } @@ -181,7 +231,11 @@ namespace Spine.Unity { Slot[] drawOrderItems = drawOrder.Items; for (int i = 0; i < drawOrderCount; i++) { Slot slot = drawOrderItems[i]; - if (!slot.Bone.Active) { + if (!slot.Bone.Active +#if SLOT_ALPHA_DISABLES_ATTACHMENT + || slot.A == 0f +#endif + ) { workingAttachmentsItems[i] = null; continue; } @@ -232,7 +286,12 @@ namespace Spine.Unity { instructionOutput.rawVertexCount = totalRawVertexCount; #endif - if (totalRawVertexCount > 0) { +#if SPINE_TRIANGLECHECK + bool hasAnyVertices = totalRawVertexCount > 0; +#else + bool hasAnyVertices = true; +#endif + if (hasAnyVertices) { workingSubmeshInstructions.Resize(1); workingSubmeshInstructions.Items[0] = current; } else { @@ -252,7 +311,11 @@ namespace Spine.Unity { Material lastRendererMaterial = null; for (int i = 0; i < drawOrderCount; i++) { Slot slot = drawOrderItems[i]; - if (!slot.Bone.Active) continue; + if (!slot.Bone.Active +#if SLOT_ALPHA_DISABLES_ATTACHMENT + || slot.A == 0f +#endif + ) continue; Attachment attachment = slot.Attachment; IHasTextureRegion rendererAttachment = attachment as IHasTextureRegion; if (rendererAttachment != null) { @@ -305,8 +368,14 @@ namespace Spine.Unity { Slot[] drawOrderItems = drawOrder.Items; for (int i = 0; i < drawOrderCount; i++) { Slot slot = drawOrderItems[i]; - if (!slot.Bone.Active) { + if (!slot.Bone.Active +#if SLOT_ALPHA_DISABLES_ATTACHMENT + || (slot.A == 0f && slot.Data != clippingEndSlot) +#endif + ) { +#if SPINE_TRIANGLECHECK workingAttachmentsItems[i] = null; +#endif continue; } if (slot.Data.BlendMode == BlendMode.Additive) current.hasPMAAdditiveSlot = true; @@ -397,7 +466,11 @@ namespace Spine.Unity { Material material = (region is Material) ? (Material)region : (Material)((AtlasRegion)region).page.rendererObject; #endif +#if !SPINE_TRIANGLECHECK + if (current.forceSeparate || !System.Object.ReferenceEquals(current.material, material)) { // Material changed. Add the previous submesh. +#else if (current.forceSeparate || (current.rawVertexCount > 0 && !System.Object.ReferenceEquals(current.material, material))) { // Material changed. Add the previous submesh. +#endif { // Add current.endSlot = i; current.preActiveClippingSlotSource = lastPreActiveClipping; @@ -510,12 +583,16 @@ namespace Spine.Unity { float zSpacing = settings.zSpacing; bool pmaVertexColors = settings.pmaVertexColors; bool tintBlack = settings.tintBlack; +#if LINEAR_COLOR_SPACE_FIX_ADDITIVE_ALPHA + bool linearColorSpace = QualitySettings.activeColorSpace == ColorSpace.Linear; +#endif + #if SPINE_TRIANGLECHECK bool useClipping = settings.useClipping && instruction.hasClipping; #else bool useClipping = settings.useClipping; #endif - bool canvasGroupTintBlack = settings.tintBlack && settings.canvasGroupTintBlack; + bool canvasGroupTintBlack = settings.tintBlack && settings.canvasGroupCompatible; if (useClipping) { if (instruction.preActiveClippingSlotSource >= 0) { @@ -581,18 +658,22 @@ namespace Spine.Unity { float tintBlackAlpha = 1.0f; if (pmaVertexColors) { - float colorA = skeletonA * slot.A * c.a; - color.a = (byte)(colorA * 255); + float alpha = skeletonA * slot.A * c.a; + bool isAdditiveSlot = slot.Data.BlendMode == BlendMode.Additive; +#if LINEAR_COLOR_SPACE_FIX_ADDITIVE_ALPHA + if (linearColorSpace && isAdditiveSlot) + alpha = Mathf.LinearToGammaSpace(alpha); // compensate GammaToLinear performed in shader +#endif + color.a = (byte)(alpha * 255); color.r = (byte)(skeletonR * slot.R * c.r * color.a); color.g = (byte)(skeletonG * slot.G * c.g * color.a); color.b = (byte)(skeletonB * slot.B * c.b * color.a); - if (slot.Data.BlendMode == BlendMode.Additive) { - if (canvasGroupTintBlack) - tintBlackAlpha = 0; - else + if (canvasGroupTintBlack) { + tintBlackAlpha = isAdditiveSlot ? 0 : alpha; + color.a = 255; + } else { + if (isAdditiveSlot) color.a = 0; - } else if (canvasGroupTintBlack) { // other blend modes - tintBlackAlpha = colorA; } } else { color.a = (byte)(skeletonA * slot.A * c.a * 255); @@ -602,7 +683,7 @@ namespace Spine.Unity { } if (useClipping && clipper.IsClipping) { - clipper.ClipTriangles(workingVerts, attachmentVertexCount << 1, attachmentTriangleIndices, attachmentIndexCount, uvs); + clipper.ClipTriangles(workingVerts, attachmentTriangleIndices, attachmentIndexCount, uvs); workingVerts = clipper.ClippedVertices.Items; attachmentVertexCount = clipper.ClippedVertices.Count >> 1; attachmentTriangleIndices = clipper.ClippedTriangles.Items; @@ -618,6 +699,11 @@ namespace Spine.Unity { float b2 = slot.B2; if (pmaVertexColors) { float alpha = skeletonA * slot.A * c.a; +#if LINEAR_COLOR_SPACE_FIX_ADDITIVE_ALPHA + bool isAdditiveSlot = slot.Data.BlendMode == BlendMode.Additive; + if (linearColorSpace && isAdditiveSlot) + alpha = Mathf.LinearToGammaSpace(alpha); // compensate GammaToLinear performed in shader +#endif r2 *= alpha; g2 *= alpha; b2 *= alpha; @@ -725,10 +811,16 @@ namespace Spine.Unity { // Use this faster method when no clipping is involved. public void BuildMeshWithArrays (SkeletonRendererInstruction instruction, bool updateTriangles) { +#if !SPINE_TRIANGLECHECK + return; +#else Settings settings = this.settings; - bool canvasGroupTintBlack = settings.tintBlack && settings.canvasGroupTintBlack; + bool canvasGroupTintBlack = settings.tintBlack && settings.canvasGroupCompatible; int totalVertexCount = instruction.rawVertexCount; +#if LINEAR_COLOR_SPACE_FIX_ADDITIVE_ALPHA + bool linearColorSpace = QualitySettings.activeColorSpace == ColorSpace.Linear; +#endif // Add data to vertex buffers { if (totalVertexCount > vertexBuffer.Items.Length) { // Manual ExposedList.Resize() @@ -768,24 +860,19 @@ namespace Spine.Unity { int vi = vertexIndex; b2.y = 1f; - { - if (uv2 == null) { - uv2 = new ExposedList(); - uv3 = new ExposedList(); - } - if (totalVertexCount > uv2.Items.Length) { // Manual ExposedList.Resize() - Array.Resize(ref uv2.Items, totalVertexCount); - Array.Resize(ref uv3.Items, totalVertexCount); - } - uv2.Count = uv3.Count = totalVertexCount; - } + PrepareOptionalUVBuffer(ref uv2, totalVertexCount); + PrepareOptionalUVBuffer(ref uv3, totalVertexCount); Vector2[] uv2i = uv2.Items; Vector2[] uv3i = uv3.Items; for (int slotIndex = startSlot; slotIndex < endSlot; slotIndex++) { Slot slot = drawOrderItems[slotIndex]; - if (!slot.Bone.Active) continue; + if (!slot.Bone.Active +#if SLOT_ALPHA_DISABLES_ATTACHMENT + || slot.A == 0f +#endif + ) continue; Attachment attachment = slot.Attachment; rg.x = slot.R2; //r @@ -797,10 +884,15 @@ namespace Spine.Unity { if (regionAttachment != null) { if (settings.pmaVertexColors) { float alpha = a * slot.A * regionAttachment.A; + bool isAdditiveSlot = slot.Data.BlendMode == BlendMode.Additive; +#if LINEAR_COLOR_SPACE_FIX_ADDITIVE_ALPHA + if (linearColorSpace && isAdditiveSlot) + alpha = Mathf.LinearToGammaSpace(alpha); // compensate GammaToLinear performed in shader +#endif rg.x *= alpha; rg.y *= alpha; b2.x *= alpha; - b2.y = slot.Data.BlendMode == BlendMode.Additive ? 0 : alpha; + b2.y = isAdditiveSlot ? 0 : alpha; } uv2i[vi] = rg; uv2i[vi + 1] = rg; uv2i[vi + 2] = rg; uv2i[vi + 3] = rg; uv3i[vi] = b2; uv3i[vi + 1] = b2; uv3i[vi + 2] = b2; uv3i[vi + 3] = b2; @@ -810,10 +902,15 @@ namespace Spine.Unity { if (meshAttachment != null) { if (settings.pmaVertexColors) { float alpha = a * slot.A * meshAttachment.A; + bool isAdditiveSlot = slot.Data.BlendMode == BlendMode.Additive; +#if LINEAR_COLOR_SPACE_FIX_ADDITIVE_ALPHA + if (linearColorSpace && isAdditiveSlot) + alpha = Mathf.LinearToGammaSpace(alpha); // compensate GammaToLinear performed in shader +#endif rg.x *= alpha; rg.y *= alpha; b2.x *= alpha; - b2.y = slot.Data.BlendMode == BlendMode.Additive ? 0 : alpha; + b2.y = isAdditiveSlot ? 0 : alpha; } int verticesArrayLength = meshAttachment.WorldVerticesLength; for (int iii = 0; iii < verticesArrayLength; iii += 2) { @@ -828,7 +925,11 @@ namespace Spine.Unity { for (int slotIndex = startSlot; slotIndex < endSlot; slotIndex++) { Slot slot = drawOrderItems[slotIndex]; - if (!slot.Bone.Active) continue; + if (!slot.Bone.Active +#if SLOT_ALPHA_DISABLES_ATTACHMENT + || slot.A == 0f +#endif + ) continue; Attachment attachment = slot.Attachment; float z = slotIndex * settings.zSpacing; @@ -846,11 +947,19 @@ namespace Spine.Unity { vbi[vertexIndex + 3].x = x3; vbi[vertexIndex + 3].y = y3; vbi[vertexIndex + 3].z = z; if (settings.pmaVertexColors) { - color.a = (byte)(a * slot.A * regionAttachment.A * 255); + float alpha = a * slot.A * regionAttachment.A; + bool isAdditiveSlot = slot.Data.BlendMode == BlendMode.Additive; +#if LINEAR_COLOR_SPACE_FIX_ADDITIVE_ALPHA + if (linearColorSpace && isAdditiveSlot) + alpha = Mathf.LinearToGammaSpace(alpha); // compensate GammaToLinear performed in shader +#endif + color.a = (byte)(alpha * 255); color.r = (byte)(r * slot.R * regionAttachment.R * color.a); color.g = (byte)(g * slot.G * regionAttachment.G * color.a); color.b = (byte)(b * slot.B * regionAttachment.B * color.a); - if (slot.Data.BlendMode == BlendMode.Additive && !canvasGroupTintBlack) color.a = 0; + if (canvasGroupTintBlack) color.a = 255; + else if (isAdditiveSlot) color.a = 0; + } else { color.a = (byte)(a * slot.A * regionAttachment.A * 255); color.r = (byte)(r * slot.R * regionAttachment.R * 255); @@ -893,11 +1002,18 @@ namespace Spine.Unity { meshAttachment.ComputeWorldVertices(slot, tempVerts); if (settings.pmaVertexColors) { - color.a = (byte)(a * slot.A * meshAttachment.A * 255); + float alpha = a * slot.A * meshAttachment.A; + bool isAdditiveSlot = slot.Data.BlendMode == BlendMode.Additive; +#if LINEAR_COLOR_SPACE_FIX_ADDITIVE_ALPHA + if (linearColorSpace && isAdditiveSlot) + alpha = Mathf.LinearToGammaSpace(alpha); // compensate GammaToLinear performed in shader +#endif + color.a = (byte)(alpha * 255); color.r = (byte)(r * slot.R * meshAttachment.R * color.a); color.g = (byte)(g * slot.G * meshAttachment.G * color.a); color.b = (byte)(b * slot.B * meshAttachment.B * color.a); - if (slot.Data.BlendMode == BlendMode.Additive && !canvasGroupTintBlack) color.a = 0; + if (canvasGroupTintBlack) color.a = 255; + else if (isAdditiveSlot) color.a = 0; } else { color.a = (byte)(a * slot.A * meshAttachment.A * 255); color.r = (byte)(r * slot.R * meshAttachment.R * 255); @@ -984,7 +1100,11 @@ namespace Spine.Unity { Slot[] drawOrderItems = skeleton.DrawOrder.Items; for (int slotIndex = submeshInstruction.startSlot, endSlot = submeshInstruction.endSlot; slotIndex < endSlot; slotIndex++) { Slot slot = drawOrderItems[slotIndex]; - if (!slot.Bone.Active) continue; + if (!slot.Bone.Active +#if SLOT_ALPHA_DISABLES_ATTACHMENT + || slot.A == 0f +#endif + ) continue; Attachment attachment = drawOrderItems[slotIndex].Attachment; if (attachment is RegionAttachment) { @@ -1008,12 +1128,19 @@ namespace Spine.Unity { } } } +#endif // SPINE_TRIANGLECHECK } public void ScaleVertexData (float scale) { Vector3[] vbi = vertexBuffer.Items; for (int i = 0, n = vertexBuffer.Count; i < n; i++) { - vbi[i] *= scale; // vbi[i].x *= scale; vbi[i].y *= scale; +#if MANUALLY_INLINE_VECTOR_OPERATORS + vbi[i].x *= scale; + vbi[i].y *= scale; + vbi[i].z *= scale; +#else + vbi[i] *= scale; +#endif } meshBoundsMin *= scale; @@ -1021,6 +1148,26 @@ namespace Spine.Unity { meshBoundsThickness *= scale; } + public void ScaleAndOffsetVertexData (float scale, Vector2 offset2D) { + Vector3 offset = new Vector3(offset2D.x, offset2D.y); + Vector3[] vbi = vertexBuffer.Items; + for (int i = 0, n = vertexBuffer.Count; i < n; i++) { +#if MANUALLY_INLINE_VECTOR_OPERATORS + vbi[i].x = vbi[i].x * scale + offset.x; + vbi[i].y = vbi[i].y * scale + offset.y; + vbi[i].z = vbi[i].z * scale + offset.z; +#else + vbi[i] = vbi[i] * scale + offset; +#endif + } + + meshBoundsMin *= scale; + meshBoundsMax *= scale; + meshBoundsMin += offset2D; + meshBoundsMax += offset2D; + meshBoundsThickness *= scale; + } + public Bounds GetMeshBounds () { if (float.IsInfinity(meshBoundsMin.x)) { // meshBoundsMin.x == BoundsMinDefault // == doesn't work on float Infinity constants. return new Bounds(); @@ -1041,17 +1188,9 @@ namespace Spine.Unity { int ovc = vertexBuffer.Count; int newVertexCount = ovc + vertexCount; - { - if (uv2 == null) { - uv2 = new ExposedList(); - uv3 = new ExposedList(); - } - if (newVertexCount > uv2.Items.Length) { // Manual ExposedList.Resize() - Array.Resize(ref uv2.Items, newVertexCount); - Array.Resize(ref uv3.Items, newVertexCount); - } - uv2.Count = uv3.Count = newVertexCount; - } + + PrepareOptionalUVBuffer(ref uv2, newVertexCount); + PrepareOptionalUVBuffer(ref uv3, newVertexCount); Vector2[] uv2i = uv2.Items; Vector2[] uv3i = uv3.Items; @@ -1060,6 +1199,25 @@ namespace Spine.Unity { uv3i[ovc + i] = bo; } } + + void PrepareOptionalUVBuffer (ref ExposedList uvBuffer, int vertexCount) { + if (uvBuffer == null) { + uvBuffer = new ExposedList(); + } + if (vertexCount > uvBuffer.Items.Length) { // Manual ExposedList.Resize() + Array.Resize(ref uvBuffer.Items, vertexCount); + } + uvBuffer.Count = vertexCount; + } + + void ResizeOptionalUVBuffer (ref ExposedList uvBuffer, int vertexCount) { + if (uvBuffer != null) { + if (vertexCount != uvBuffer.Items.Length) { + Array.Resize(ref uvBuffer.Items, vertexCount); + uvBuffer.Count = vertexCount; + } + } + } #endregion #region Step 3 : Transfer vertex and triangle data to UnityEngine.Mesh @@ -1072,9 +1230,11 @@ namespace Spine.Unity { // Zero the extra. { int listCount = vertexBuffer.Count; - Vector3 vector3zero = Vector3.zero; + // unfortunately even non-indexed vertices are still used by Unity's bounds computation, + // (considered a Unity bug), thus avoid Vector3.zero and use last vertex instead. + Vector3 extraVertex = listCount == 0 ? Vector3.zero : vbi[listCount - 1]; for (int i = listCount; i < vbiLength; i++) - vbi[i] = vector3zero; + vbi[i] = extraVertex; } // Set the vertex buffer. @@ -1102,18 +1262,12 @@ namespace Spine.Unity { mesh.normals = this.normals; } - if (settings.tintBlack) { - if (uv2 != null) { - // Sometimes, the vertex buffer becomes smaller. We need to trim the size of the tint black buffers to match. - if (vbiLength != uv2.Items.Length) { - Array.Resize(ref uv2.Items, vbiLength); - Array.Resize(ref uv3.Items, vbiLength); - uv2.Count = uv3.Count = vbiLength; - } - mesh.uv2 = this.uv2.Items; - mesh.uv3 = this.uv3.Items; - } - } + // Sometimes, the vertex buffer becomes smaller. We need to trim the size of + // the uv2 and uv3 buffers (used for tint black) to match. + ResizeOptionalUVBuffer(ref uv2, vbiLength); + ResizeOptionalUVBuffer(ref uv3, vbiLength); + mesh.uv2 = this.uv2 == null ? null : this.uv2.Items; + mesh.uv3 = this.uv3 == null ? null : this.uv3.Items; } } diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Mesh Generation/MeshRendererBuffers.cs b/Assets/ThirdParty/Spine/Runtime/spine-unity/Mesh Generation/MeshRendererBuffers.cs index 8eeb6f9c8..017537ade 100644 --- a/Assets/ThirdParty/Spine/Runtime/spine-unity/Mesh Generation/MeshRendererBuffers.cs +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Mesh Generation/MeshRendererBuffers.cs @@ -27,8 +27,9 @@ * SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. *****************************************************************************/ -// Not for optimization. Do not disable. -#define SPINE_TRIANGLECHECK // Avoid calling SetTriangles at the cost of checking for mesh differences (vertex counts, memberwise attachment list compare) every frame. +// Optimization option: Allows faster BuildMeshWithArrays call and avoids calling SetTriangles at the cost of +// checking for mesh differences (vertex counts, member-wise attachment list compare) every frame. +#define SPINE_TRIANGLECHECK //#define SPINE_DEBUG using System; @@ -107,7 +108,7 @@ namespace Spine.Unity { doubleBufferedMesh = null; } - ///This is a Mesh that also stores the instructions SkeletonRenderer generated for it. + /// This is a Mesh that also stores the instructions SkeletonRenderer generated for it. public class SmartMesh : IDisposable { public Mesh mesh = SpineMesh.NewSkeletonMesh(); public SkeletonRendererInstruction instructionUsed = new SkeletonRendererInstruction(); diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Mesh Generation/SkeletonRendererInstruction.cs b/Assets/ThirdParty/Spine/Runtime/spine-unity/Mesh Generation/SkeletonRendererInstruction.cs index e4fba30ec..366f2dd7c 100644 --- a/Assets/ThirdParty/Spine/Runtime/spine-unity/Mesh Generation/SkeletonRendererInstruction.cs +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Mesh Generation/SkeletonRendererInstruction.cs @@ -27,10 +27,15 @@ * SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. *****************************************************************************/ -// Not for optimization. Do not disable. -#define SPINE_TRIANGLECHECK // Avoid calling SetTriangles at the cost of checking for mesh differences (vertex counts, memberwise attachment list compare) every frame. +// Optimization option: Allows faster BuildMeshWithArrays call and avoids calling SetTriangles at the cost of +// checking for mesh differences (vertex counts, member-wise attachment list compare) every frame. +#define SPINE_TRIANGLECHECK //#define SPINE_DEBUG +// Important Note: When disabling this define, also disable the one in MeshGenerator.cs +// For details, see MeshGenerator.cs. +#define SLOT_ALPHA_DISABLES_ATTACHMENT + using System; using System.Collections.Generic; using UnityEngine; @@ -45,6 +50,11 @@ namespace Spine.Unity { public bool hasActiveClipping; public int rawVertexCount = -1; public readonly ExposedList attachments = new ExposedList(); +#else + /// Returns constant true to avoid BuildMeshWithArrays in renderers. + public bool hasActiveClipping { get { return true; } } + /// Returns constant vertex count for early-return if-clauses in renderers. + public int rawVertexCount { get { return 1; } } #endif public void Clear () { @@ -56,9 +66,11 @@ namespace Spine.Unity { this.submeshInstructions.Clear(false); } +#if SPINE_TRIANGLECHECK public void Dispose () { attachments.Clear(true); } +#endif public void SetWithSubset (ExposedList instructions, int startSubmesh, int endSubmesh) { #if SPINE_TRIANGLECHECK @@ -95,7 +107,14 @@ namespace Spine.Unity { Slot[] drawOrderItems = instructionsItems[0].skeleton.DrawOrder.Items; for (int i = 0; i < attachmentCount; i++) { Slot slot = drawOrderItems[startSlot + i]; - if (!slot.Bone.Active) continue; + if (!slot.Bone.Active +#if SLOT_ALPHA_DISABLES_ATTACHMENT + || slot.A == 0f +#endif + ) { + attachmentsItems[i] = null; + continue; + } attachmentsItems[i] = slot.Attachment; } diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Mesh Generation/SpineMesh.cs b/Assets/ThirdParty/Spine/Runtime/spine-unity/Mesh Generation/SpineMesh.cs index 5c4f16f9c..26125c8ca 100644 --- a/Assets/ThirdParty/Spine/Runtime/spine-unity/Mesh Generation/SpineMesh.cs +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Mesh Generation/SpineMesh.cs @@ -27,8 +27,9 @@ * SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. *****************************************************************************/ -// Not for optimization. Do not disable. -#define SPINE_TRIANGLECHECK // Avoid calling SetTriangles at the cost of checking for mesh differences (vertex counts, memberwise attachment list compare) every frame. +// Optimization option: Allows faster BuildMeshWithArrays call and avoids calling SetTriangles at the cost of +// checking for mesh differences (vertex counts, member-wise attachment list compare) every frame. +#define SPINE_TRIANGLECHECK //#define SPINE_DEBUG using System; @@ -66,6 +67,9 @@ namespace Spine.Unity { public int rawVertexCount; public int rawFirstVertexIndex; public bool hasClipping; +#else + /// Returns constant vertex count for early-return if clauses in renderers. + public int rawVertexCount { get { return 1; } } #endif public bool hasPMAAdditiveSlot; diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/2D/BlendModes/Spine-Skeleton-Additive-URP-2D.shader b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/2D/BlendModes/Spine-Skeleton-Additive-URP-2D.shader deleted file mode 100644 index e6fb51f84..000000000 --- a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/2D/BlendModes/Spine-Skeleton-Additive-URP-2D.shader +++ /dev/null @@ -1,64 +0,0 @@ -Shader "Universal Render Pipeline/2D/Spine/Blend Modes/Skeleton Additive" { - Properties { - _Color ("Tint Color", Color) = (1,1,1,1) - [NoScaleOffset] _MainTex ("MainTex", 2D) = "black" {} - [Toggle(_STRAIGHT_ALPHA_INPUT)] _StraightAlphaInput("Straight Alpha Texture", Int) = 0 - _Cutoff ("Shadow alpha cutoff", Range(0,1)) = 0.1 - [MaterialToggle(_TINT_BLACK_ON)] _TintBlack("Tint Black", Float) = 0 - _Black(" Dark Color", Color) = (0,0,0,0) - [HideInInspector] _StencilRef("Stencil Reference", Float) = 1.0 - [HideInInspector][Enum(UnityEngine.Rendering.CompareFunction)] _StencilComp("Stencil Comparison", Float) = 8 // Set to Always as default - } - - SubShader { - Tags { "RenderPipeline" = "UniversalPipeline" "Queue"="Transparent" "IgnoreProjector"="True" "RenderType"="Transparent" } - LOD 100 - - Fog { Mode Off } - Cull Off - ZWrite Off - Blend One One - Lighting Off - - Stencil { - Ref[_StencilRef] - Comp[_StencilComp] - Pass Keep - } - - Pass { - Tags { "LightMode" = "Universal2D" } - - HLSLPROGRAM - // Required to compile gles 2.0 with standard srp library - #pragma prefer_hlslcc gles - #pragma exclude_renderers d3d11_9x - - // ------------------------------------- - // Unity defined keywords - #pragma multi_compile_fog - - //-------------------------------------- - // GPU Instancing - #pragma multi_compile_instancing - - //-------------------------------------- - // Spine related keywords - #pragma shader_feature _ _STRAIGHT_ALPHA_INPUT - #pragma shader_feature _TINT_BLACK_ON - #pragma vertex vert - #pragma fragment frag - - #undef LIGHTMAP_ON - - #define USE_URP - #define fixed4 half4 - #define fixed3 half3 - #define fixed half - #define APPLY_MATERIAL_TINT_COLOR - #include "../../Include/Spine-Input-URP.hlsl" - #include "../../Include/Spine-Skeleton-ForwardPass-URP.hlsl" - ENDHLSL - } - } -} diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/2D/BlendModes/Spine-Skeleton-Additive-URP-2D.shader.meta b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/2D/BlendModes/Spine-Skeleton-Additive-URP-2D.shader.meta deleted file mode 100644 index 7c5add979..000000000 --- a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/2D/BlendModes/Spine-Skeleton-Additive-URP-2D.shader.meta +++ /dev/null @@ -1,10 +0,0 @@ -fileFormatVersion: 2 -guid: 89db47a797aee6e41a98c42d53175ee0 -ShaderImporter: - externalObjects: {} - defaultTextures: [] - nonModifiableTextures: [] - preprocessorOverride: 0 - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/2D/BlendModes/Spine-Skeleton-Multiply-URP-2D.shader b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/2D/BlendModes/Spine-Skeleton-Multiply-URP-2D.shader deleted file mode 100644 index 69c396a44..000000000 --- a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/2D/BlendModes/Spine-Skeleton-Multiply-URP-2D.shader +++ /dev/null @@ -1,64 +0,0 @@ -Shader "Universal Render Pipeline/2D/Spine/Blend Modes/Skeleton Multiply" { - Properties { - _Color ("Tint Color", Color) = (1,1,1,1) - [NoScaleOffset] _MainTex ("MainTex", 2D) = "black" {} - [Toggle(_STRAIGHT_ALPHA_INPUT)] _StraightAlphaInput("Straight Alpha Texture", Int) = 0 - _Cutoff ("Shadow alpha cutoff", Range(0,1)) = 0.1 - [MaterialToggle(_TINT_BLACK_ON)] _TintBlack("Tint Black", Float) = 0 - _Black(" Dark Color", Color) = (0,0,0,0) - [HideInInspector] _StencilRef("Stencil Reference", Float) = 1.0 - [HideInInspector][Enum(UnityEngine.Rendering.CompareFunction)] _StencilComp("Stencil Comparison", Float) = 8 // Set to Always as default - } - - SubShader { - Tags { "RenderPipeline" = "UniversalPipeline" "Queue"="Transparent" "IgnoreProjector"="True" "RenderType"="Transparent" } - LOD 100 - - Fog { Mode Off } - Cull Off - ZWrite Off - Blend DstColor OneMinusSrcAlpha - Lighting Off - - Stencil { - Ref[_StencilRef] - Comp[_StencilComp] - Pass Keep - } - - Pass { - Tags { "LightMode" = "Universal2D" } - - HLSLPROGRAM - // Required to compile gles 2.0 with standard srp library - #pragma prefer_hlslcc gles - #pragma exclude_renderers d3d11_9x - - // ------------------------------------- - // Unity defined keywords - #pragma multi_compile_fog - - //-------------------------------------- - // GPU Instancing - #pragma multi_compile_instancing - - //-------------------------------------- - // Spine related keywords - #pragma shader_feature _ _STRAIGHT_ALPHA_INPUT - #pragma shader_feature _TINT_BLACK_ON - #pragma vertex vert - #pragma fragment frag - - #undef LIGHTMAP_ON - - #define USE_URP - #define fixed4 half4 - #define fixed3 half3 - #define fixed half - #define APPLY_MATERIAL_TINT_COLOR - #include "../../Include/Spine-Input-URP.hlsl" - #include "../../Include/Spine-Skeleton-ForwardPass-URP.hlsl" - ENDHLSL - } - } -} diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/2D/BlendModes/Spine-Skeleton-Multiply-URP-2D.shader.meta b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/2D/BlendModes/Spine-Skeleton-Multiply-URP-2D.shader.meta deleted file mode 100644 index 8933182f6..000000000 --- a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/2D/BlendModes/Spine-Skeleton-Multiply-URP-2D.shader.meta +++ /dev/null @@ -1,10 +0,0 @@ -fileFormatVersion: 2 -guid: 9f560912e0cd8804db3fa22dc95d50b3 -ShaderImporter: - externalObjects: {} - defaultTextures: [] - nonModifiableTextures: [] - preprocessorOverride: 0 - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/2D/BlendModes/Spine-Skeleton-Screen-URP-2D.shader b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/2D/BlendModes/Spine-Skeleton-Screen-URP-2D.shader deleted file mode 100644 index 0afb8838a..000000000 --- a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/2D/BlendModes/Spine-Skeleton-Screen-URP-2D.shader +++ /dev/null @@ -1,64 +0,0 @@ -Shader "Universal Render Pipeline/2D/Spine/Blend Modes/Skeleton Screen" { - Properties { - _Color ("Tint Color", Color) = (1,1,1,1) - [NoScaleOffset] _MainTex ("MainTex", 2D) = "black" {} - [Toggle(_STRAIGHT_ALPHA_INPUT)] _StraightAlphaInput("Straight Alpha Texture", Int) = 0 - _Cutoff ("Shadow alpha cutoff", Range(0,1)) = 0.1 - [MaterialToggle(_TINT_BLACK_ON)] _TintBlack("Tint Black", Float) = 0 - _Black(" Dark Color", Color) = (0,0,0,0) - [HideInInspector] _StencilRef("Stencil Reference", Float) = 1.0 - [HideInInspector][Enum(UnityEngine.Rendering.CompareFunction)] _StencilComp("Stencil Comparison", Float) = 8 // Set to Always as default - } - - SubShader { - Tags { "RenderPipeline" = "UniversalPipeline" "Queue"="Transparent" "IgnoreProjector"="True" "RenderType"="Transparent" } - LOD 100 - - Fog { Mode Off } - Cull Off - ZWrite Off - Blend One OneMinusSrcColor - Lighting Off - - Stencil { - Ref[_StencilRef] - Comp[_StencilComp] - Pass Keep - } - - Pass { - Tags { "LightMode" = "Universal2D" } - - HLSLPROGRAM - // Required to compile gles 2.0 with standard srp library - #pragma prefer_hlslcc gles - #pragma exclude_renderers d3d11_9x - - // ------------------------------------- - // Unity defined keywords - #pragma multi_compile_fog - - //-------------------------------------- - // GPU Instancing - #pragma multi_compile_instancing - - //-------------------------------------- - // Spine related keywords - #pragma shader_feature _ _STRAIGHT_ALPHA_INPUT - #pragma shader_feature _TINT_BLACK_ON - #pragma vertex vert - #pragma fragment frag - - #undef LIGHTMAP_ON - - #define USE_URP - #define fixed4 half4 - #define fixed3 half3 - #define fixed half - #define APPLY_MATERIAL_TINT_COLOR - #include "../../Include/Spine-Input-URP.hlsl" - #include "../../Include/Spine-Skeleton-ForwardPass-URP.hlsl" - ENDHLSL - } - } -} diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/2D/BlendModes/Spine-Skeleton-Screen-URP-2D.shader.meta b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/2D/BlendModes/Spine-Skeleton-Screen-URP-2D.shader.meta deleted file mode 100644 index 303b66689..000000000 --- a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/2D/BlendModes/Spine-Skeleton-Screen-URP-2D.shader.meta +++ /dev/null @@ -1,10 +0,0 @@ -fileFormatVersion: 2 -guid: 34092fc5b4942fc419d3366436419178 -ShaderImporter: - externalObjects: {} - defaultTextures: [] - nonModifiableTextures: [] - preprocessorOverride: 0 - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/2D/Include/Spine-SkeletonLit-UnlitPass-URP-2D.hlsl b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/2D/Include/Spine-SkeletonLit-UnlitPass-URP-2D.hlsl deleted file mode 100644 index be2dd914c..000000000 --- a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/2D/Include/Spine-SkeletonLit-UnlitPass-URP-2D.hlsl +++ /dev/null @@ -1,47 +0,0 @@ -#ifndef SKELETONLIT_UNLIT_PASS_INCLUDED -#define SKELETONLIT_UNLIT_PASS_INCLUDED - -struct Attributes -{ - float3 positionOS : POSITION; - float4 color : COLOR; - float2 uv : TEXCOORD0; -}; - -struct Varyings -{ - float4 positionCS : SV_POSITION; - float4 color : COLOR; - float2 uv : TEXCOORD0; -}; - -TEXTURE2D(_MainTex); -SAMPLER(sampler_MainTex); -float4 _MainTex_ST; - -Varyings UnlitVertex(Attributes attributes) -{ - Varyings o = (Varyings)0; - - o.positionCS = TransformObjectToHClip(attributes.positionOS); - o.uv = TRANSFORM_TEX(attributes.uv, _MainTex); - o.uv = attributes.uv; - o.color = attributes.color; - return o; -} - -float4 UnlitFragment(Varyings i) : SV_Target -{ - half4 tex = SAMPLE_TEXTURE2D(_MainTex, sampler_MainTex, i.uv); - half4 main; - #if defined(_STRAIGHT_ALPHA_INPUT) - main.rgb = tex.rgb * i.color.rgb * tex.a; - #else - main.rgb = tex.rgb * i.color.rgb; - #endif - main.a = tex.a * i.color.a; - - return main; -} - -#endif diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/2D/Include/Spine-SkeletonLit-UnlitPass-URP-2D.hlsl.meta b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/2D/Include/Spine-SkeletonLit-UnlitPass-URP-2D.hlsl.meta deleted file mode 100644 index 68035fa15..000000000 --- a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/2D/Include/Spine-SkeletonLit-UnlitPass-URP-2D.hlsl.meta +++ /dev/null @@ -1,10 +0,0 @@ -fileFormatVersion: 2 -guid: 580dd7e812fc63c4a9330abe519946de -ShaderImporter: - externalObjects: {} - defaultTextures: [] - nonModifiableTextures: [] - preprocessorOverride: 0 - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/2D/Include/Spine-Sprite-NormalsPass-URP-2D.hlsl b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/2D/Include/Spine-Sprite-NormalsPass-URP-2D.hlsl deleted file mode 100644 index 499cac235..000000000 --- a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/2D/Include/Spine-Sprite-NormalsPass-URP-2D.hlsl +++ /dev/null @@ -1,63 +0,0 @@ -#ifndef SPRITE_NORMALS_PASS_URP_INCLUDED -#define SPRITE_NORMALS_PASS_URP_INCLUDED - -#include "../Include/SpineCoreShaders/ShaderShared.cginc" -#include "../Include/SpineCoreShaders/SpriteLighting.cginc" - -struct Varyings -{ - float4 positionCS : SV_POSITION; - float4 color : COLOR; - float2 uv : TEXCOORD0; - float3 normalWS : TEXCOORD1; - float3 tangentWS : TEXCOORD2; - float3 bitangentWS : TEXCOORD3; -}; - -SAMPLER(sampler_BumpMap); -float4 _BumpMap_ST; - -Varyings NormalsRenderingVertex(VertexInput attributes) -{ - Varyings o = (Varyings)0; - - o.positionCS = calculateLocalPos(attributes.vertex); - o.uv = attributes.texcoord.xy; - o.color = attributes.color; - o.normalWS = TransformObjectToWorldDir(float3(0, 0, -1)); - - float3 positionWS = TransformObjectToWorld(attributes.vertex.xyz); - - float backFaceSign = 1; -#if defined(FIXED_NORMALS_BACKFACE_RENDERING) - backFaceSign = calculateBackfacingSign(positionWS.xyz); -#endif - - half3 normalWS = calculateSpriteWorldNormal(attributes, -backFaceSign); - o.normalWS.xyz = normalWS; - -#if defined(_NORMALMAP) - o.tangentWS.xyz = calculateWorldTangent(attributes.tangent); - o.bitangentWS.xyz = calculateSpriteWorldBinormal(attributes, o.normalWS.xyz, o.tangentWS.xyz, backFaceSign); -#endif - return o; -} - -#include "Packages/com.unity.render-pipelines.universal/Shaders/2D/Include/NormalsRenderingShared.hlsl" -half4 NormalsRenderingFragment(Varyings i) : SV_Target -{ - half4 mainTex = i.color * tex2D(_MainTex, i.uv); - -#if defined(_NORMALMAP) - half3 normalTS = normalize(UnpackScaleNormal(tex2D(_BumpMap, i.uv.xy), _BumpScale)); - return NormalsRenderingShared(mainTex, normalTS, i.tangentWS.xyz, i.bitangentWS.xyz, i.normalWS.xyz); -#else - half3 normalTS = half3(0, 0, 1); - half3 tangentWS = half3(0, 0, 0); - half3 bitangentWS = half3(0, 0, 0); - half3 normalWS = i.normalWS.xyz; - return NormalsRenderingShared(mainTex, normalTS, tangentWS, bitangentWS, normalWS); -#endif -} - -#endif diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/2D/Include/Spine-Sprite-StandardPass-URP-2D.hlsl b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/2D/Include/Spine-Sprite-StandardPass-URP-2D.hlsl deleted file mode 100644 index 46887565d..000000000 --- a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/2D/Include/Spine-Sprite-StandardPass-URP-2D.hlsl +++ /dev/null @@ -1,142 +0,0 @@ -#ifndef SPRITE_STANDARD_PASS_URP_INCLUDED -#define SPRITE_STANDARD_PASS_URP_INCLUDED - -#include "../Include/SpineCoreShaders/ShaderShared.cginc" -#include "../Include/SpineCoreShaders/SpriteLighting.cginc" -#if defined(_ALPHAPREMULTIPLY_ON) - #undef _STRAIGHT_ALPHA_INPUT -#elif !defined(_STRAIGHT_ALPHA_INPUT) - #define _STRAIGHT_ALPHA_INPUT -#endif -#include "../Include/SpineCoreShaders/Spine-Skeleton-Tint-Common.cginc" - -#if USE_SHAPE_LIGHT_TYPE_0 -SHAPE_LIGHT(0) -#endif - -#if USE_SHAPE_LIGHT_TYPE_1 -SHAPE_LIGHT(1) -#endif - -#if USE_SHAPE_LIGHT_TYPE_2 -SHAPE_LIGHT(2) -#endif - -#if USE_SHAPE_LIGHT_TYPE_3 -SHAPE_LIGHT(3) -#endif - -TEXTURE2D(_MaskTex); -SAMPLER(sampler_MaskTex); - -struct VertexOutputSpriteURP2D -{ - float4 pos : SV_POSITION; - half4 vertexColor : COLOR; - float3 texcoord : TEXCOORD0; - float2 lightingUV : TEXCOORD1; - - half3 viewDirectionWS : TEXCOORD2; - -#if defined(_NORMALMAP) - half4 normalWorld : TEXCOORD4; - half4 tangentWorld : TEXCOORD5; - half4 binormalWorld : TEXCOORD6; -#else - half3 normalWorld : TEXCOORD4; -#endif -#if defined(_RIM_LIGHTING) - float4 positionWS : TEXCOORD8; -#endif - -#if defined(_TINT_BLACK_ON) - float3 darkColor : TEXCOORD9; -#endif -}; - -VertexOutputSpriteURP2D CombinedShapeLightVertex(VertexInput input) -{ - VertexOutputSpriteURP2D output = (VertexOutputSpriteURP2D)0; - - UNITY_SETUP_INSTANCE_ID(input); - - output.pos = calculateLocalPos(input.vertex); - float4 clipVertex = output.pos / output.pos.w; - output.lightingUV = ComputeScreenPos(clipVertex).xy; - - output.vertexColor = calculateVertexColor(input.color); -#if defined(_TINT_BLACK_ON) - output.darkColor = GammaToTargetSpace( - half3(input.tintBlackRG.r, input.tintBlackRG.g, input.tintBlackB.r)) + _Black.rgb; -#endif - - output.texcoord = float3(calculateTextureCoord(input.texcoord), 0); - - float3 positionWS = TransformObjectToWorld(input.vertex.xyz); - - float backFaceSign = 1; -#if defined(FIXED_NORMALS_BACKFACE_RENDERING) - backFaceSign = calculateBackfacingSign(positionWS.xyz); -#endif - output.viewDirectionWS = GetCameraPositionWS() - positionWS; - -#if defined(_RIM_LIGHTING) - output.positionWS = float4(positionWS, 1); -#endif - half3 normalWS = calculateSpriteWorldNormal(input, -backFaceSign); - output.normalWorld.xyz = normalWS; - -#if defined(_RIM_LIGHTING) - #if defined(_NORMALMAP) - output.tangentWorld.xyz = calculateWorldTangent(input.tangent); - output.binormalWorld.xyz = calculateSpriteWorldBinormal(input, output.normalWorld.xyz, output.tangentWorld.xyz, backFaceSign); - #endif -#endif - return output; -} - -#include "Packages/com.unity.render-pipelines.universal/Shaders/2D/Include/CombinedShapeLightShared.hlsl" - -half4 CombinedShapeLightFragment(VertexOutputSpriteURP2D input) : SV_Target -{ - fixed4 texureColor = calculateTexturePixel(input.texcoord.xy); - RETURN_UNLIT_IF_ADDITIVE_SLOT_TINT(texureColor, input.vertexColor, input.darkColor, _Color.a, _Black.a) // shall be called before ALPHA_CLIP - ALPHA_CLIP(texureColor, input.vertexColor) -#if defined(_TINT_BLACK_ON) - half4 main = fragTintedColor(texureColor, input.darkColor, input.vertexColor, _Color.a, _Black.a); -#else - half4 main = texureColor * input.vertexColor; -#endif - - half4 mask = SAMPLE_TEXTURE2D(_MaskTex, sampler_MaskTex, input.texcoord.xy); - main.rgb = main.a == 0 ? main.rgb : main.rgb / main.a; // un-premultiply for additive lights in CombinedShapeLightShared, reapply afterwards -#if UNITY_VERSION < 202120 - half4 pixel = half4(CombinedShapeLightShared(half4(main.rgb, 1), mask, input.lightingUV).rgb * main.a, main.a); -#else - SurfaceData2D surfaceData; - InputData2D inputData; - surfaceData.albedo = main.rgb; - surfaceData.alpha = 1; - surfaceData.mask = mask; - inputData.uv = input.texcoord.xy; - inputData.lightingUV = input.lightingUV; - half4 pixel = half4(CombinedShapeLightShared(surfaceData, inputData).rgb * main.a, main.a); -#endif - -#if defined(_RIM_LIGHTING) - #if defined(_NORMALMAP) - half3 normalWS = calculateNormalFromBumpMap(input.texcoord.xy, input.tangentWorld.xyz, input.binormalWorld.xyz, input.normalWorld.xyz); - #else - half3 normalWS = input.normalWorld.xyz; - #endif - - pixel.rgb = applyRimLighting(input.positionWS.xyz, normalWS, pixel); -#endif - - APPLY_EMISSION(pixel.rgb, input.texcoord.xy) - pixel = prepareLitPixelForOutput(pixel, texureColor.a, input.vertexColor.a); - COLORISE(pixel) - return pixel; -} - -#endif diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/2D/Spine-Skeleton-URP-2D.shader b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/2D/Spine-Skeleton-URP-2D.shader deleted file mode 100644 index 19b8b76f2..000000000 --- a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/2D/Spine-Skeleton-URP-2D.shader +++ /dev/null @@ -1,68 +0,0 @@ -Shader "Universal Render Pipeline/2D/Spine/Skeleton" { - Properties { - _Cutoff("Shadow alpha cutoff", Range(0,1)) = 0.1 - [NoScaleOffset] _MainTex("Main Texture", 2D) = "black" {} - [Toggle(_STRAIGHT_ALPHA_INPUT)] _StraightAlphaInput("Straight Alpha Texture", Int) = 0 - [MaterialToggle(_TINT_BLACK_ON)] _TintBlack("Tint Black", Float) = 0 - _Color(" Light Color", Color) = (1,1,1,1) - _Black(" Dark Color", Color) = (0,0,0,0) - [HideInInspector] _StencilRef("Stencil Reference", Float) = 1.0 - [Enum(UnityEngine.Rendering.CompareFunction)] _StencilComp("Stencil Comparison", Float) = 8 // Set to Always as default - } - - SubShader { - // Universal Pipeline tag is required. If Universal render pipeline is not set in the graphics settings - // this Subshader will fail. - Tags { "RenderPipeline" = "UniversalPipeline" "Queue"="Transparent" "IgnoreProjector"="True" "RenderType"="Transparent" } - LOD 100 - Cull Off - ZWrite Off - Blend One OneMinusSrcAlpha - - Stencil { - Ref[_StencilRef] - Comp[_StencilComp] - Pass Keep - } - - Pass { - Tags { "LightMode" = "Universal2D" } - - ZWrite Off - Cull Off - Blend One OneMinusSrcAlpha - - HLSLPROGRAM - // Required to compile gles 2.0 with standard srp library - #pragma prefer_hlslcc gles - #pragma exclude_renderers d3d11_9x - - // ------------------------------------- - // Unity defined keywords - #pragma multi_compile_fog - - //-------------------------------------- - // GPU Instancing - #pragma multi_compile_instancing - - //-------------------------------------- - // Spine related keywords - #pragma shader_feature _ _STRAIGHT_ALPHA_INPUT - #pragma shader_feature _TINT_BLACK_ON - #pragma vertex vert - #pragma fragment frag - - #undef LIGHTMAP_ON - - #define USE_URP - #define fixed4 half4 - #define fixed3 half3 - #define fixed half - #include "../Include/Spine-Input-URP.hlsl" - #include "../Include/Spine-Skeleton-ForwardPass-URP.hlsl" - ENDHLSL - } - } - - FallBack "Universal Render Pipeline/2D/Sprite-Unlit-Default" -} diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/2D/Spine-SkeletonLit-URP-2D.shader b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/2D/Spine-SkeletonLit-URP-2D.shader deleted file mode 100644 index 1fdb286a9..000000000 --- a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/2D/Spine-SkeletonLit-URP-2D.shader +++ /dev/null @@ -1,248 +0,0 @@ -Shader "Universal Render Pipeline/2D/Spine/Skeleton Lit" { - Properties { - [NoScaleOffset] _MainTex ("Main Texture", 2D) = "black" {} - [NoScaleOffset] _MaskTex("Mask", 2D) = "white" {} - [Toggle(_STRAIGHT_ALPHA_INPUT)] _StraightAlphaInput("Straight Alpha Texture", Int) = 0 - [MaterialToggle(_LIGHT_AFFECTS_ADDITIVE)] _LightAffectsAdditive("Light Affects Additive", Float) = 0 - [MaterialToggle(_TINT_BLACK_ON)] _TintBlack("Tint Black", Float) = 0 - _Color(" Light Color", Color) = (1,1,1,1) - _Black(" Dark Color", Color) = (0,0,0,0) - [HideInInspector] _StencilRef("Stencil Reference", Float) = 1.0 - [Enum(UnityEngine.Rendering.CompareFunction)] _StencilComp("Stencil Compare", Float) = 8 // Set to Always as default - } - - HLSLINCLUDE - #include "Packages/com.unity.render-pipelines.universal/ShaderLibrary/Core.hlsl" - ENDHLSL - - SubShader { - // UniversalPipeline tag is required. If Universal render pipeline is not set in the graphics settings - // this Subshader will fail. - Tags {"Queue" = "Transparent" "RenderType" = "Transparent" "RenderPipeline" = "UniversalPipeline" "IgnoreProjector" = "True" } - Cull Off - ZWrite Off - - Stencil { - Ref[_StencilRef] - Comp[_StencilComp] - Pass Keep - } - - Pass { - Tags { "LightMode" = "Universal2D" } - - ZWrite Off - Cull Off - Blend One OneMinusSrcAlpha - - HLSLPROGRAM - // Required to compile gles 2.0 with standard srp library - #pragma prefer_hlslcc gles - #pragma exclude_renderers d3d11_9x - #pragma multi_compile USE_SHAPE_LIGHT_TYPE_0 __ - #pragma multi_compile USE_SHAPE_LIGHT_TYPE_1 __ - #pragma multi_compile USE_SHAPE_LIGHT_TYPE_2 __ - #pragma multi_compile USE_SHAPE_LIGHT_TYPE_3 __ - #pragma multi_compile _ _LIGHT_AFFECTS_ADDITIVE - #pragma shader_feature _TINT_BLACK_ON - - struct Attributes { - float3 positionOS : POSITION; - half4 color : COLOR; - float2 uv : TEXCOORD0; - #if defined(_TINT_BLACK_ON) - float2 tintBlackRG : TEXCOORD1; - float2 tintBlackB : TEXCOORD2; - #endif - }; - - struct Varyings { - float4 positionCS : SV_POSITION; - half4 color : COLOR0; - float2 uv : TEXCOORD0; - float2 lightingUV : TEXCOORD1; - #if defined(_TINT_BLACK_ON) - float3 darkColor : TEXCOORD2; - #endif - }; - - // Spine related keywords - #pragma shader_feature _ _STRAIGHT_ALPHA_INPUT - #pragma vertex CombinedShapeLightVertex - #pragma fragment CombinedShapeLightFragment - - #include "Packages/com.unity.render-pipelines.universal/Shaders/2D/Include/LightingUtility.hlsl" - #define USE_URP - #include "../Include/SpineCoreShaders/Spine-Common.cginc" - #include "../Include/SpineCoreShaders/Spine-Skeleton-Tint-Common.cginc" - - #if defined(_TINT_BLACK_ON) - CBUFFER_START(UnityPerMaterial) - half4 _Color; - half4 _Black; - CBUFFER_END - #endif - - TEXTURE2D(_MainTex); - SAMPLER(sampler_MainTex); - TEXTURE2D(_MaskTex); - SAMPLER(sampler_MaskTex); - - #if USE_SHAPE_LIGHT_TYPE_0 - SHAPE_LIGHT(0) - #endif - - #if USE_SHAPE_LIGHT_TYPE_1 - SHAPE_LIGHT(1) - #endif - - #if USE_SHAPE_LIGHT_TYPE_2 - SHAPE_LIGHT(2) - #endif - - #if USE_SHAPE_LIGHT_TYPE_3 - SHAPE_LIGHT(3) - #endif - - Varyings CombinedShapeLightVertex(Attributes v) - { - Varyings o = (Varyings)0; - - o.positionCS = TransformObjectToHClip(v.positionOS); - o.uv = v.uv; - float4 clipVertex = o.positionCS / o.positionCS.w; - o.lightingUV = ComputeScreenPos(clipVertex).xy; - o.color = PMAGammaToTargetSpace(v.color); - #if !defined(_TINT_BLACK_ON) - // un-premultiply for additive lights in CombinedShapeLightShared, reapply afterwards - o.color.rgb = o.color.a == 0 ? o.color.rgb : o.color.rgb / o.color.a; - #endif - - #if defined(_TINT_BLACK_ON) - o.color *= _Color; - o.darkColor = GammaToTargetSpace( - half3(v.tintBlackRG.r, v.tintBlackRG.g, v.tintBlackB.r)) + _Black.rgb; - #endif - return o; - } - - #include "Packages/com.unity.render-pipelines.universal/Shaders/2D/Include/CombinedShapeLightShared.hlsl" - - half4 CombinedShapeLightFragment(Varyings i) : SV_Target - { - half4 tex = SAMPLE_TEXTURE2D(_MainTex, sampler_MainTex, i.uv); - - #if defined(_TINT_BLACK_ON) - half4 main = fragTintedColor(tex, i.darkColor, i.color, _Color.a, _Black.a); - #if !defined(_LIGHT_AFFECTS_ADDITIVE) - if (i.color.a == 0) - return main; - #endif - // un-premultiply for additive lights in CombinedShapeLightShared, reapply afterwards - main.rgb = main.a == 0 ? main.rgb : main.rgb / main.a; - #else - #if !defined(_STRAIGHT_ALPHA_INPUT) - // un-premultiply for additive lights in CombinedShapeLightShared, reapply afterwards - tex.rgb = tex.a == 0 ? tex.rgb : tex.rgb / tex.a; - #endif - half4 main = tex * i.color; - - #if !defined(_LIGHT_AFFECTS_ADDITIVE) - if (i.color.a == 0) - return half4(main.rgb * main.a, main.a); - #endif - #endif - - half4 mask = SAMPLE_TEXTURE2D(_MaskTex, sampler_MaskTex, i.uv); - #if UNITY_VERSION < 202120 - return half4(CombinedShapeLightShared(half4(main.rgb, 1), mask, i.lightingUV).rgb * main.a, main.a); - #else - SurfaceData2D surfaceData; - InputData2D inputData; - surfaceData.albedo = main.rgb; - surfaceData.alpha = 1; - surfaceData.mask = mask; - inputData.uv = i.uv; - inputData.lightingUV = i.lightingUV; - return half4(CombinedShapeLightShared(surfaceData, inputData).rgb * main.a, main.a); - #endif - } - - ENDHLSL - } - - Pass - { - Tags { "LightMode" = "NormalsRendering"} - - Blend SrcAlpha OneMinusSrcAlpha - ZWrite Off - - HLSLPROGRAM - #pragma prefer_hlslcc gles - #pragma vertex NormalsRenderingVertex - #pragma fragment NormalsRenderingFragment - - struct Attributes - { - float3 positionOS : POSITION; - float4 color : COLOR; - float2 uv : TEXCOORD0; - }; - - struct Varyings - { - float4 positionCS : SV_POSITION; - float4 color : COLOR; - float2 uv : TEXCOORD0; - float3 normalWS : TEXCOORD1; - }; - - TEXTURE2D(_MainTex); - SAMPLER(sampler_MainTex); - - Varyings NormalsRenderingVertex(Attributes attributes) - { - Varyings o = (Varyings)0; - - o.positionCS = TransformObjectToHClip(attributes.positionOS); - o.uv = attributes.uv; - o.color = attributes.color; - o.normalWS = TransformObjectToWorldDir(float3(0, 0, -1)); - return o; - } - - #include "Packages/com.unity.render-pipelines.universal/Shaders/2D/Include/NormalsRenderingShared.hlsl" - - float4 NormalsRenderingFragment(Varyings i) : SV_Target - { - float4 mainTex = i.color * SAMPLE_TEXTURE2D(_MainTex, sampler_MainTex, i.uv); - half3 normalTS = half3(0, 0, 1); - half3 tangentWS = half3(0, 0, 0); - half3 bitangentWS = half3(0, 0, 0); - return NormalsRenderingShared(mainTex, normalTS, tangentWS, bitangentWS, i.normalWS); - } - ENDHLSL - } - - Pass - { - Name "Unlit" - Tags { "LightMode" = "UniversalForward" "Queue"="Transparent" "RenderType"="Transparent"} - - ZWrite Off - Cull Off - Blend One OneMinusSrcAlpha - - HLSLPROGRAM - #pragma shader_feature _ _STRAIGHT_ALPHA_INPUT - #pragma prefer_hlslcc gles - #pragma vertex UnlitVertex - #pragma fragment UnlitFragment - - #include "Include/Spine-SkeletonLit-UnlitPass-URP-2D.hlsl" - ENDHLSL - } - } - FallBack "Universal Render Pipeline/2D/Spine/Skeleton" -} diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/BlendModes/Spine-Skeleton-Additive-URP.shader b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/BlendModes/Spine-Skeleton-Additive-URP.shader deleted file mode 100644 index 6144796b4..000000000 --- a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/BlendModes/Spine-Skeleton-Additive-URP.shader +++ /dev/null @@ -1,68 +0,0 @@ -Shader "Universal Render Pipeline/Spine/Blend Modes/Skeleton Additive" { - Properties { - _Color ("Tint Color", Color) = (1,1,1,1) - [NoScaleOffset] _MainTex ("MainTex", 2D) = "black" {} - [Toggle(_STRAIGHT_ALPHA_INPUT)] _StraightAlphaInput("Straight Alpha Texture", Int) = 0 - _Cutoff ("Shadow alpha cutoff", Range(0,1)) = 0.1 - [MaterialToggle(_TINT_BLACK_ON)] _TintBlack("Tint Black", Float) = 0 - _Black(" Dark Color", Color) = (0,0,0,0) - [HideInInspector] _StencilRef("Stencil Reference", Float) = 1.0 - [HideInInspector][Enum(UnityEngine.Rendering.CompareFunction)] _StencilComp("Stencil Comparison", Float) = 8 // Set to Always as default - } - - SubShader { - Tags { "RenderPipeline" = "UniversalPipeline" "Queue"="Transparent" "IgnoreProjector"="True" "RenderType"="Transparent" } - LOD 100 - - Fog { Mode Off } - Cull Off - ZWrite Off - Lighting Off - - Stencil { - Ref[_StencilRef] - Comp[_StencilComp] - Pass Keep - } - - Pass { - Name "Forward" - Tags{"LightMode" = "UniversalForward"} - - Blend One One - - HLSLPROGRAM - // Required to compile gles 2.0 with standard srp library - #pragma prefer_hlslcc gles - #pragma exclude_renderers d3d11_9x - - // ------------------------------------- - // Unity defined keywords - #pragma multi_compile_fog - - //-------------------------------------- - // GPU Instancing - #pragma multi_compile_instancing - - //-------------------------------------- - // Spine related keywords - #pragma shader_feature _ _STRAIGHT_ALPHA_INPUT - #pragma shader_feature _TINT_BLACK_ON - #pragma vertex vert - #pragma fragment frag - - #undef LIGHTMAP_ON - - #define USE_URP - #define fixed4 half4 - #define fixed3 half3 - #define fixed half - #define APPLY_MATERIAL_TINT_COLOR - #include "../Include/Spine-Input-URP.hlsl" - #include "../Include/Spine-Skeleton-ForwardPass-URP.hlsl" - ENDHLSL - } - - UsePass "Universal Render Pipeline/Spine/Skeleton/SHADOWCASTER" - } -} diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/BlendModes/Spine-Skeleton-Additive-URP.shader.meta b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/BlendModes/Spine-Skeleton-Additive-URP.shader.meta deleted file mode 100644 index e4270c4a8..000000000 --- a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/BlendModes/Spine-Skeleton-Additive-URP.shader.meta +++ /dev/null @@ -1,10 +0,0 @@ -fileFormatVersion: 2 -guid: f7dbcf8ef3270e04898af42843a4def2 -ShaderImporter: - externalObjects: {} - defaultTextures: [] - nonModifiableTextures: [] - preprocessorOverride: 0 - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/BlendModes/Spine-Skeleton-Multiply-URP.shader b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/BlendModes/Spine-Skeleton-Multiply-URP.shader deleted file mode 100644 index 024fd6b72..000000000 --- a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/BlendModes/Spine-Skeleton-Multiply-URP.shader +++ /dev/null @@ -1,68 +0,0 @@ -Shader "Universal Render Pipeline/Spine/Blend Modes/Skeleton Multiply" { - Properties { - _Color ("Tint Color", Color) = (1,1,1,1) - [NoScaleOffset] _MainTex ("MainTex", 2D) = "black" {} - [Toggle(_STRAIGHT_ALPHA_INPUT)] _StraightAlphaInput("Straight Alpha Texture", Int) = 0 - _Cutoff ("Shadow alpha cutoff", Range(0,1)) = 0.1 - [MaterialToggle(_TINT_BLACK_ON)] _TintBlack("Tint Black", Float) = 0 - _Black(" Dark Color", Color) = (0,0,0,0) - [HideInInspector] _StencilRef("Stencil Reference", Float) = 1.0 - [HideInInspector][Enum(UnityEngine.Rendering.CompareFunction)] _StencilComp("Stencil Comparison", Float) = 8 // Set to Always as default - } - - SubShader { - Tags { "RenderPipeline" = "UniversalPipeline" "Queue"="Transparent" "IgnoreProjector"="True" "RenderType"="Transparent" } - LOD 100 - - Fog { Mode Off } - Cull Off - ZWrite Off - Lighting Off - - Stencil { - Ref[_StencilRef] - Comp[_StencilComp] - Pass Keep - } - - Pass { - Name "Forward" - Tags{"LightMode" = "UniversalForward"} - - Blend DstColor OneMinusSrcAlpha - - HLSLPROGRAM - // Required to compile gles 2.0 with standard srp library - #pragma prefer_hlslcc gles - #pragma exclude_renderers d3d11_9x - - // ------------------------------------- - // Unity defined keywords - #pragma multi_compile_fog - - //-------------------------------------- - // GPU Instancing - #pragma multi_compile_instancing - - //-------------------------------------- - // Spine related keywords - #pragma shader_feature _ _STRAIGHT_ALPHA_INPUT - #pragma shader_feature _TINT_BLACK_ON - #pragma vertex vert - #pragma fragment frag - - #undef LIGHTMAP_ON - - #define USE_URP - #define fixed4 half4 - #define fixed3 half3 - #define fixed half - #define APPLY_MATERIAL_TINT_COLOR - #include "../Include/Spine-Input-URP.hlsl" - #include "../Include/Spine-Skeleton-ForwardPass-URP.hlsl" - ENDHLSL - } - - UsePass "Universal Render Pipeline/Spine/Skeleton/SHADOWCASTER" - } -} diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/BlendModes/Spine-Skeleton-Multiply-URP.shader.meta b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/BlendModes/Spine-Skeleton-Multiply-URP.shader.meta deleted file mode 100644 index 78ef7456c..000000000 --- a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/BlendModes/Spine-Skeleton-Multiply-URP.shader.meta +++ /dev/null @@ -1,10 +0,0 @@ -fileFormatVersion: 2 -guid: 352b460172201914b860515eb4524dbc -ShaderImporter: - externalObjects: {} - defaultTextures: [] - nonModifiableTextures: [] - preprocessorOverride: 0 - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/BlendModes/Spine-Skeleton-PMA-Additive.shader b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/BlendModes/Spine-Skeleton-PMA-Additive.shader index 3e962ac2c..a9cb2cbc3 100644 --- a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/BlendModes/Spine-Skeleton-PMA-Additive.shader +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/BlendModes/Spine-Skeleton-PMA-Additive.shader @@ -16,7 +16,9 @@ Shader "Spine/Blend Modes/Skeleton PMA Additive" { // Outline properties are drawn via custom editor. [HideInInspector] _OutlineWidth("Outline Width", Range(0,8)) = 3.0 + [HideInInspector][MaterialToggle(_USE_SCREENSPACE_OUTLINE_WIDTH)] _UseScreenSpaceOutlineWidth("Width in Screen Space", Float) = 0 [HideInInspector] _OutlineColor("Outline Color", Color) = (1,1,0,1) + [HideInInspector][MaterialToggle(_OUTLINE_FILL_INSIDE)]_Fill("Fill", Float) = 0 [HideInInspector] _OutlineReferenceTexWidth("Reference Texture Width", Int) = 1024 [HideInInspector] _ThresholdEnd("Outline Threshold", Range(0,1)) = 0.25 [HideInInspector] _OutlineSmoothness("Outline Smoothness", Range(0,1)) = 1.0 diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/BlendModes/Spine-Skeleton-PMA-Multiply.shader b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/BlendModes/Spine-Skeleton-PMA-Multiply.shader index 7261ba339..574facd0d 100644 --- a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/BlendModes/Spine-Skeleton-PMA-Multiply.shader +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/BlendModes/Spine-Skeleton-PMA-Multiply.shader @@ -16,7 +16,9 @@ Shader "Spine/Blend Modes/Skeleton PMA Multiply" { // Outline properties are drawn via custom editor. [HideInInspector] _OutlineWidth("Outline Width", Range(0,8)) = 3.0 + [HideInInspector][MaterialToggle(_USE_SCREENSPACE_OUTLINE_WIDTH)] _UseScreenSpaceOutlineWidth("Width in Screen Space", Float) = 0 [HideInInspector] _OutlineColor("Outline Color", Color) = (1,1,0,1) + [HideInInspector][MaterialToggle(_OUTLINE_FILL_INSIDE)]_Fill("Fill", Float) = 0 [HideInInspector] _OutlineReferenceTexWidth("Reference Texture Width", Int) = 1024 [HideInInspector] _ThresholdEnd("Outline Threshold", Range(0,1)) = 0.25 [HideInInspector] _OutlineSmoothness("Outline Smoothness", Range(0,1)) = 1.0 diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/BlendModes/Spine-Skeleton-PMA-Screen.shader b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/BlendModes/Spine-Skeleton-PMA-Screen.shader index ce9306480..53298c69c 100644 --- a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/BlendModes/Spine-Skeleton-PMA-Screen.shader +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/BlendModes/Spine-Skeleton-PMA-Screen.shader @@ -16,7 +16,9 @@ Shader "Spine/Blend Modes/Skeleton PMA Screen" { // Outline properties are drawn via custom editor. [HideInInspector] _OutlineWidth("Outline Width", Range(0,8)) = 3.0 + [HideInInspector][MaterialToggle(_USE_SCREENSPACE_OUTLINE_WIDTH)] _UseScreenSpaceOutlineWidth("Width in Screen Space", Float) = 0 [HideInInspector] _OutlineColor("Outline Color", Color) = (1,1,0,1) + [HideInInspector][MaterialToggle(_OUTLINE_FILL_INSIDE)]_Fill("Fill", Float) = 0 [HideInInspector] _OutlineReferenceTexWidth("Reference Texture Width", Int) = 1024 [HideInInspector] _ThresholdEnd("Outline Threshold", Range(0,1)) = 0.25 [HideInInspector] _OutlineSmoothness("Outline Smoothness", Range(0,1)) = 1.0 diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/BlendModes/Spine-Skeleton-Screen-URP.shader b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/BlendModes/Spine-Skeleton-Screen-URP.shader deleted file mode 100644 index c33f65eaa..000000000 --- a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/BlendModes/Spine-Skeleton-Screen-URP.shader +++ /dev/null @@ -1,68 +0,0 @@ -Shader "Universal Render Pipeline/Spine/Blend Modes/Skeleton Screen" { - Properties { - _Color ("Tint Color", Color) = (1,1,1,1) - [NoScaleOffset] _MainTex ("MainTex", 2D) = "black" {} - [Toggle(_STRAIGHT_ALPHA_INPUT)] _StraightAlphaInput("Straight Alpha Texture", Int) = 0 - _Cutoff ("Shadow alpha cutoff", Range(0,1)) = 0.1 - [MaterialToggle(_TINT_BLACK_ON)] _TintBlack("Tint Black", Float) = 0 - _Black(" Dark Color", Color) = (0,0,0,0) - [HideInInspector] _StencilRef("Stencil Reference", Float) = 1.0 - [HideInInspector][Enum(UnityEngine.Rendering.CompareFunction)] _StencilComp("Stencil Comparison", Float) = 8 // Set to Always as default - } - - SubShader { - Tags { "RenderPipeline" = "UniversalPipeline" "Queue"="Transparent" "IgnoreProjector"="True" "RenderType"="Transparent" } - LOD 100 - - Fog { Mode Off } - Cull Off - ZWrite Off - Lighting Off - - Stencil { - Ref[_StencilRef] - Comp[_StencilComp] - Pass Keep - } - - Pass { - Name "Forward" - Tags{"LightMode" = "UniversalForward"} - - Blend One OneMinusSrcColor - - HLSLPROGRAM - // Required to compile gles 2.0 with standard srp library - #pragma prefer_hlslcc gles - #pragma exclude_renderers d3d11_9x - - // ------------------------------------- - // Unity defined keywords - #pragma multi_compile_fog - - //-------------------------------------- - // GPU Instancing - #pragma multi_compile_instancing - - //-------------------------------------- - // Spine related keywords - #pragma shader_feature _ _STRAIGHT_ALPHA_INPUT - #pragma shader_feature _TINT_BLACK_ON - #pragma vertex vert - #pragma fragment frag - - #undef LIGHTMAP_ON - - #define USE_URP - #define fixed4 half4 - #define fixed3 half3 - #define fixed half - #define APPLY_MATERIAL_TINT_COLOR - #include "../Include/Spine-Input-URP.hlsl" - #include "../Include/Spine-Skeleton-ForwardPass-URP.hlsl" - ENDHLSL - } - - UsePass "Universal Render Pipeline/Spine/Skeleton/SHADOWCASTER" - } -} diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/BlendModes/Spine-Skeleton-Screen-URP.shader.meta b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/BlendModes/Spine-Skeleton-Screen-URP.shader.meta deleted file mode 100644 index 22205b70b..000000000 --- a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/BlendModes/Spine-Skeleton-Screen-URP.shader.meta +++ /dev/null @@ -1,10 +0,0 @@ -fileFormatVersion: 2 -guid: 6627ec7a6b4481249bc314b0ccf78268 -ShaderImporter: - externalObjects: {} - defaultTextures: [] - nonModifiableTextures: [] - preprocessorOverride: 0 - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/CGIncludes/Spine-Outline-Common.cginc b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/CGIncludes/Spine-Outline-Common.cginc index dc31ad9eb..f82ce6e09 100644 --- a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/CGIncludes/Spine-Outline-Common.cginc +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/CGIncludes/Spine-Outline-Common.cginc @@ -8,11 +8,22 @@ float4 computeOutlinePixel(sampler2D mainTexture, float2 mainTextureTexelSize, float4 texColor = fixed4(0, 0, 0, 0); +#if !_USE_SCREENSPACE_OUTLINE_WIDTH + // constant width in texture space float outlineWidthCompensated = OutlineWidth / (OutlineReferenceTexWidth * mainTextureTexelSize.x); float xOffset = mainTextureTexelSize.x * outlineWidthCompensated; float yOffset = mainTextureTexelSize.y * outlineWidthCompensated; - float xOffsetDiagonal = mainTextureTexelSize.x * outlineWidthCompensated * 0.7; - float yOffsetDiagonal = mainTextureTexelSize.y * outlineWidthCompensated * 0.7; +#else + float2 ddxUV = ddx(uv); + float2 ddyUV = ddy(uv); + float2 ddu = float2(ddxUV.x, ddyUV.x); + float2 ddv = float2(ddxUV.y, ddyUV.y); + float widthScale = OutlineWidth * _ScreenParams.x / OutlineReferenceTexWidth; + float xOffset = length(ddu) * widthScale; + float yOffset = length(ddv) * widthScale; +#endif + float xOffsetDiagonal = xOffset * 0.7; + float yOffsetDiagonal = yOffset * 0.7; float pixelCenter = tex2D(mainTexture, uv).a; @@ -35,8 +46,13 @@ float4 computeOutlinePixel(sampler2D mainTexture, float2 mainTextureTexelSize, float average = (pixelTop + pixelBottom + pixelLeft + pixelRight) * vertexColorAlpha / numSamples; #endif float thresholdStart = ThresholdEnd * (1.0 - OutlineSmoothness); - float outlineAlpha = saturate(saturate((average - thresholdStart) / (ThresholdEnd - thresholdStart)) - pixelCenter); - outlineAlpha = pixelCenter > OutlineOpaqueAlpha ? 0 : outlineAlpha; + float outlineAlpha = saturate((average - thresholdStart) / (ThresholdEnd - thresholdStart)); +#if !_OUTLINE_FILL_INSIDE + outlineAlpha = saturate(outlineAlpha - pixelCenter); + outlineAlpha = pixelCenter > OutlineOpaqueAlpha ? 0.0 : outlineAlpha; +#else + outlineAlpha = pixelCenter > OutlineOpaqueAlpha ? 1.0 : outlineAlpha; +#endif return lerp(texColor, OutlineColor, outlineAlpha); } diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/CGIncludes/Spine-Skeleton-Tint-Common.cginc b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/CGIncludes/Spine-Skeleton-Tint-Common.cginc index acff8bf8a..44c2febcb 100644 --- a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/CGIncludes/Spine-Skeleton-Tint-Common.cginc +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/CGIncludes/Spine-Skeleton-Tint-Common.cginc @@ -6,7 +6,7 @@ float4 fragTintedColor(float4 texColor, float3 darkTintColor, float4 lightTintCo float a = texColor.a * lightTintColorPMA.a; #if !defined(_STRAIGHT_ALPHA_INPUT) - float3 texDarkColor = (texColor.a - texColor.rgb); + float3 texDarkColor = texColor.a - texColor.rgb; #else float3 texDarkColor = (1 - texColor.rgb); #endif diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Include/Spine-Common-ShadowCasterPass-URP.hlsl b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Include/Spine-Common-ShadowCasterPass-URP.hlsl deleted file mode 100644 index 87677a4f8..000000000 --- a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Include/Spine-Common-ShadowCasterPass-URP.hlsl +++ /dev/null @@ -1,39 +0,0 @@ -#ifndef COMMON_SHADOW_CASTER_PASS_URP_INCLUDED -#define COMMON_SHADOW_CASTER_PASS_URP_INCLUDED - -#include "Packages/com.unity.render-pipelines.universal/ShaderLibrary/Core.hlsl" -#include "Packages/com.unity.render-pipelines.universal/ShaderLibrary/Shadows.hlsl" -float3 _LightDirection; - -struct AttributesSpine -{ - float4 positionOS : POSITION; - float3 normalOS : NORMAL; - float4 vertexColor : COLOR; - float2 texcoord : TEXCOORD0; - UNITY_VERTEX_INPUT_INSTANCE_ID -}; - -struct VaryingsSpine -{ - float4 positionCS : SV_POSITION; - float4 texcoordAndAlpha: TEXCOORD0; -}; - -float4 GetShadowPositionHClip(AttributesSpine input) -{ - float3 positionWS = TransformObjectToWorld(input.positionOS.xyz); - float3 normalWS = TransformObjectToWorldNormal(input.normalOS); - - float4 positionCS = TransformWorldToHClip(ApplyShadowBias(positionWS, normalWS, _LightDirection)); - -#if UNITY_REVERSED_Z - positionCS.z = min(positionCS.z, positionCS.w * UNITY_NEAR_CLIP_VALUE); -#else - positionCS.z = max(positionCS.z, positionCS.w * UNITY_NEAR_CLIP_VALUE); -#endif - - return positionCS; -} - -#endif diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Include/Spine-Common-ShadowCasterPass-URP.hlsl.meta b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Include/Spine-Common-ShadowCasterPass-URP.hlsl.meta deleted file mode 100644 index 8ce1ed71f..000000000 --- a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Include/Spine-Common-ShadowCasterPass-URP.hlsl.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 53d9e6b22286c5640b000735f5a4f2ee -ShaderImporter: - externalObjects: {} - defaultTextures: [] - nonModifiableTextures: [] - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Include/Spine-Common-URP.hlsl b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Include/Spine-Common-URP.hlsl deleted file mode 100644 index 28d8b3d9e..000000000 --- a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Include/Spine-Common-URP.hlsl +++ /dev/null @@ -1,69 +0,0 @@ -#ifndef SPINE_COMMON_URP_INCLUDED -#define SPINE_COMMON_URP_INCLUDED - -#ifdef USE_FORWARD_PLUS - #define IS_URP_14_OR_NEWER 1 - #define IS_URP_12_OR_NEWER 1 -#else - #define IS_URP_14_OR_NEWER 0 - #ifdef UNIVERSAL_REALTIME_LIGHTS_INCLUDED - #define IS_URP_12_OR_NEWER 1 - #else - #define IS_URP_12_OR_NEWER 0 - #endif -#endif -#if IS_URP_14_OR_NEWER && !defined(_USE_WEBGL1_LIGHTS) - #define IS_URP_15_OR_NEWER 1 -#else - #define IS_URP_15_OR_NEWER 0 -#endif - -#if defined(_WRITE_RENDERING_LAYERS) && IS_URP_14_OR_NEWER -#define USE_WRITE_RENDERING_LAYERS -#endif - -#if defined(_LIGHT_LAYERS) && IS_URP_12_OR_NEWER -#define USE_LIGHT_LAYERS -#endif - -#if defined(_LIGHT_COOKIES) && IS_URP_12_OR_NEWER -#define USE_LIGHT_COOKIES -#endif - -#ifdef USE_LIGHT_LAYERS -uint GetMeshRenderingLayerBackwardsCompatible() -{ - #if IS_URP_14_OR_NEWER - return GetMeshRenderingLayer(); - #elif IS_URP_12_OR_NEWER - return GetMeshRenderingLightLayer(); - #else - return 0; - #endif -} -#else -uint GetMeshRenderingLayerBackwardsCompatible() -{ - return 0; -} -#endif - -#if USE_FORWARD_PLUS -// note: LIGHT_LOOP_BEGIN accesses inputData.normalizedScreenSpaceUV and inputData.positionWS. -#define LIGHT_LOOP_BEGIN_SPINE LIGHT_LOOP_BEGIN -#define LIGHT_LOOP_END_SPINE LIGHT_LOOP_END -#elif !_USE_WEBGL1_LIGHTS -#define LIGHT_LOOP_BEGIN_SPINE(lightCount) \ - for (uint lightIndex = 0u; lightIndex < lightCount; ++lightIndex) { - -#define LIGHT_LOOP_END_SPINE } -#else -// WebGL 1 doesn't support variable for loop conditions -#define LIGHT_LOOP_BEGIN_SPINE(lightCount) \ - for (int lightIndex = 0; lightIndex < _WEBGL1_MAX_LIGHTS; ++lightIndex) { \ - if (lightIndex >= (int)lightCount) break; - -#define LIGHT_LOOP_END_SPINE } -#endif - -#endif diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Include/Spine-DepthNormalsPass-URP.hlsl b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Include/Spine-DepthNormalsPass-URP.hlsl deleted file mode 100644 index 63a61cc50..000000000 --- a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Include/Spine-DepthNormalsPass-URP.hlsl +++ /dev/null @@ -1,74 +0,0 @@ -#ifndef SPRITES_DEPTH_NORMALS_PASS_URP_INCLUDED -#define SPRITES_DEPTH_NORMALS_PASS_URP_INCLUDED - -#include "Packages/com.unity.render-pipelines.core/ShaderLibrary/CommonMaterial.hlsl" -#include "Packages/com.unity.render-pipelines.universal/ShaderLibrary/Core.hlsl" - -struct AttributesSpine -{ - float4 positionOS : POSITION; - float3 normalOS : NORMAL; - float4 vertexColor : COLOR; - float2 texcoord : TEXCOORD0; - UNITY_VERTEX_INPUT_INSTANCE_ID -}; - -struct VaryingsSpine -{ - float3 normalWS : NORMAL; - float4 positionCS : SV_POSITION; - float4 texcoordAndAlpha: TEXCOORD0; - UNITY_VERTEX_OUTPUT_STEREO -}; - -VaryingsSpine DepthNormalsVertex(AttributesSpine input) -{ - VaryingsSpine output = (VaryingsSpine)0; - UNITY_SETUP_INSTANCE_ID(input); - UNITY_INITIALIZE_VERTEX_OUTPUT_STEREO(output); - - half3 fixedNormal = half3(0, 0, -1); - half3 normalWS = normalize(mul((float3x3)unity_ObjectToWorld, fixedNormal)); - -#ifdef _DOUBLE_SIDED_LIGHTING - // unfortunately we have to compute the sign here in the vertex shader - // instead of using VFACE in fragment shader stage. - half3 viewDirWS = UNITY_MATRIX_V[2].xyz; - half faceSign = sign(dot(viewDirWS, normalWS)); - normalWS *= faceSign; -#endif - output.normalWS = normalWS; - - output.texcoordAndAlpha.xyz = float3(TRANSFORM_TEX(input.texcoord, _MainTex).xy, 0); - output.texcoordAndAlpha.a = input.vertexColor.a; - output.positionCS = TransformObjectToHClip(input.positionOS.xyz); - return output; -} - -void DepthNormalsFragment(VaryingsSpine input, - out half4 outNormalWS : SV_Target0 -#ifdef _WRITE_RENDERING_LAYERS - , out float4 outRenderingLayers : SV_Target1 -#endif - ) -{ - fixed4 texureColor = tex2D(_MainTex, input.texcoordAndAlpha.xy); - clip(texureColor.a * input.texcoordAndAlpha.a - _Cutoff); - - float3 normalWS = input.normalWS; -#if defined(_GBUFFER_NORMALS_OCT) - float2 octNormalWS = PackNormalOctQuadEncode(normalWS); // values between [-1, +1], must use fp32 on some platforms. - float2 remappedOctNormalWS = saturate(octNormalWS * 0.5 + 0.5); // values between [ 0, 1] - half3 packedNormalWS = PackFloat2To888(remappedOctNormalWS); // values between [ 0, 1] - outNormalWS = half4(packedNormalWS, 0.0); -#else - outNormalWS = half4(normalWS, 0.0); -#endif - -#ifdef USE_WRITE_RENDERING_LAYERS - uint renderingLayers = GetMeshRenderingLayerBackwardsCompatible(); - outRenderingLayers = float4(EncodeMeshRenderingLayer(renderingLayers), 0, 0, 0); -#endif -} - -#endif diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Include/Spine-DepthOnlyPass-URP.hlsl b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Include/Spine-DepthOnlyPass-URP.hlsl deleted file mode 100644 index e5c3765ee..000000000 --- a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Include/Spine-DepthOnlyPass-URP.hlsl +++ /dev/null @@ -1,42 +0,0 @@ -#ifndef SPRITES_DEPTH_ONLY_PASS_URP_INCLUDED -#define SPRITES_DEPTH_ONLY_PASS_URP_INCLUDED - -#include "Packages/com.unity.render-pipelines.core/ShaderLibrary/CommonMaterial.hlsl" -#include "Packages/com.unity.render-pipelines.universal/ShaderLibrary/Core.hlsl" - -struct AttributesSpine -{ - float4 positionOS : POSITION; - float3 normalOS : NORMAL; - float4 vertexColor : COLOR; - float2 texcoord : TEXCOORD0; - UNITY_VERTEX_INPUT_INSTANCE_ID -}; - -struct VaryingsSpine -{ - float4 positionCS : SV_POSITION; - float4 texcoordAndAlpha: TEXCOORD0; - UNITY_VERTEX_OUTPUT_STEREO -}; - -VaryingsSpine DepthOnlyVertex(AttributesSpine input) -{ - VaryingsSpine output = (VaryingsSpine)0; - UNITY_SETUP_INSTANCE_ID(input); - UNITY_INITIALIZE_VERTEX_OUTPUT_STEREO(output); - - output.texcoordAndAlpha.xyz = float3(TRANSFORM_TEX(input.texcoord, _MainTex).xy, 0); - output.texcoordAndAlpha.a = input.vertexColor.a; - output.positionCS = TransformObjectToHClip(input.positionOS.xyz); - return output; -} - -half4 DepthOnlyFragment(VaryingsSpine input) : SV_TARGET -{ - fixed4 texureColor = tex2D(_MainTex, input.texcoordAndAlpha.xy); - clip(texureColor.a * input.texcoordAndAlpha.a - _Cutoff); - return input.positionCS.z; -} - -#endif diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Include/Spine-DepthOnlyPass-URP.hlsl.meta b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Include/Spine-DepthOnlyPass-URP.hlsl.meta deleted file mode 100644 index d773317c2..000000000 --- a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Include/Spine-DepthOnlyPass-URP.hlsl.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 692e50ad8dd7bb44cb6f6f7473b62ac8 -ShaderImporter: - externalObjects: {} - defaultTextures: [] - nonModifiableTextures: [] - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Include/Spine-Input-Outline-URP.hlsl b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Include/Spine-Input-Outline-URP.hlsl deleted file mode 100644 index 4c4ea670f..000000000 --- a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Include/Spine-Input-Outline-URP.hlsl +++ /dev/null @@ -1,28 +0,0 @@ -#ifndef URP_INPUT_OUTLINE_INCLUDED -#define URP_INPUT_OUTLINE_INCLUDED - -#include "Packages/com.unity.render-pipelines.core/ShaderLibrary/Common.hlsl" - -//////////////////////////////////////// -// Defines -// -#undef LIGHTMAP_ON - -CBUFFER_START(UnityPerMaterial) -float4 _MainTex_ST; -#ifndef NO_CUTOFF_PARAM -half _Cutoff; -#endif -float _OutlineWidth; -float4 _OutlineColor; -float4 _MainTex_TexelSize; -float _ThresholdEnd; -float _OutlineSmoothness; -float _OutlineOpaqueAlpha; -float _OutlineMipLevel; -int _OutlineReferenceTexWidth; -CBUFFER_END - -sampler2D _MainTex; - -#endif // URP_INPUT_OUTLINE_INCLUDED diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Include/Spine-Input-Outline-URP.hlsl.meta b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Include/Spine-Input-Outline-URP.hlsl.meta deleted file mode 100644 index f4eee6c68..000000000 --- a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Include/Spine-Input-Outline-URP.hlsl.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: fbcfa8e1a739e2b4d9307f6c0980c50f -ShaderImporter: - externalObjects: {} - defaultTextures: [] - nonModifiableTextures: [] - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Include/Spine-Input-Sprite-URP.hlsl b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Include/Spine-Input-Sprite-URP.hlsl deleted file mode 100644 index 7a580ee30..000000000 --- a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Include/Spine-Input-Sprite-URP.hlsl +++ /dev/null @@ -1,39 +0,0 @@ -#ifndef URP_INPUT_SPRITE_INCLUDED -#define URP_INPUT_SPRITE_INCLUDED - -#include "Packages/com.unity.render-pipelines.core/ShaderLibrary/Common.hlsl" - -CBUFFER_START(UnityPerMaterial) - -float4 _MainTex_ST; -half4 _Color; -half4 _Black; -half _Cutoff; -half _ShadowAlphaCutoff; - -#ifndef SPRITE_SHADER_2D -half _Metallic; -half _Glossiness; -half _GlossMapScale; -#endif - -half _BumpScale; - -float _BlendAmount; - -float _Hue; -float _Saturation; -float _Brightness; -half4 _OverlayColor; - -half4 _EmissionColor; -float _EmissionPower; - -float4 _FixedNormal; - -float _RimPower; -half4 _RimColor; - -CBUFFER_END - -#endif // URP_INPUT_SPRITE_INCLUDED diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Include/Spine-Input-Sprite-URP.hlsl.meta b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Include/Spine-Input-Sprite-URP.hlsl.meta deleted file mode 100644 index b04156a59..000000000 --- a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Include/Spine-Input-Sprite-URP.hlsl.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 7cb02894258b6c249ad73b7869086876 -ShaderImporter: - externalObjects: {} - defaultTextures: [] - nonModifiableTextures: [] - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Include/Spine-Input-URP.hlsl b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Include/Spine-Input-URP.hlsl deleted file mode 100644 index 350793f9d..000000000 --- a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Include/Spine-Input-URP.hlsl +++ /dev/null @@ -1,22 +0,0 @@ -#ifndef URP_LIT_INPUT_INCLUDED -#define URP_LIT_INPUT_INCLUDED - -#include "Packages/com.unity.render-pipelines.core/ShaderLibrary/Common.hlsl" - -//////////////////////////////////////// -// Defines -// -#undef LIGHTMAP_ON - -CBUFFER_START(UnityPerMaterial) - -float4 _MainTex_ST; -half _Cutoff; -half4 _Color; -half4 _Black; - -CBUFFER_END - -sampler2D _MainTex; - -#endif // URP_LIT_INPUT_INCLUDED diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Include/Spine-Input-URP.hlsl.meta b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Include/Spine-Input-URP.hlsl.meta deleted file mode 100644 index 9b1160fb3..000000000 --- a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Include/Spine-Input-URP.hlsl.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 04433ebe597dd6d48ad3306ae3eeca2e -ShaderImporter: - externalObjects: {} - defaultTextures: [] - nonModifiableTextures: [] - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Include/Spine-Outline-Pass-URP.hlsl b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Include/Spine-Outline-Pass-URP.hlsl deleted file mode 100644 index 4d6fed3aa..000000000 --- a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Include/Spine-Outline-Pass-URP.hlsl +++ /dev/null @@ -1,43 +0,0 @@ -#ifndef SPINE_OUTLINE_PASS_URP_INCLUDED -#define SPINE_OUTLINE_PASS_URP_INCLUDED - -#include "Packages/com.unity.render-pipelines.universal/ShaderLibrary/Core.hlsl" -#include "Packages/com.unity.render-pipelines.core/ShaderLibrary/CommonMaterial.hlsl" - -#include "SpineCoreShaders/Spine-Outline-Common.cginc" - -struct VertexInput { - float4 positionOS : POSITION; - float2 uv : TEXCOORD0; - float4 vertexColor : COLOR; - UNITY_VERTEX_INPUT_INSTANCE_ID -}; - -struct VertexOutput { - float4 pos : SV_POSITION; - float2 uv : TEXCOORD0; - float vertexColorAlpha : COLOR; - UNITY_VERTEX_OUTPUT_STEREO -}; - -VertexOutput vertOutline(VertexInput v) { - VertexOutput o; - - UNITY_SETUP_INSTANCE_ID(v); - UNITY_INITIALIZE_VERTEX_OUTPUT_STEREO(o); - - o.pos = TransformObjectToHClip(v.positionOS.xyz); - o.uv = v.uv; - o.vertexColorAlpha = v.vertexColor.a; - return o; -} - -float4 fragOutline(VertexOutput i) : SV_Target { - - float4 texColor = computeOutlinePixel(_MainTex, _MainTex_TexelSize.xy, i.uv, i.vertexColorAlpha, - _OutlineWidth, _OutlineReferenceTexWidth, _OutlineMipLevel, - _OutlineSmoothness, _ThresholdEnd, _OutlineOpaqueAlpha, _OutlineColor); - return texColor; -} - -#endif diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Include/Spine-Outline-Pass-URP.hlsl.meta b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Include/Spine-Outline-Pass-URP.hlsl.meta deleted file mode 100644 index 711c3962a..000000000 --- a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Include/Spine-Outline-Pass-URP.hlsl.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 6702be883c5f0ef439d7d9ad87d0b84b -ShaderImporter: - externalObjects: {} - defaultTextures: [] - nonModifiableTextures: [] - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Include/Spine-Skeleton-ForwardPass-URP.hlsl b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Include/Spine-Skeleton-ForwardPass-URP.hlsl deleted file mode 100644 index 5b0d6564b..000000000 --- a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Include/Spine-Skeleton-ForwardPass-URP.hlsl +++ /dev/null @@ -1,62 +0,0 @@ -#ifndef SKELETON_FORWARD_PASS_URP_INCLUDED -#define SKELETON_FORWARD_PASS_URP_INCLUDED - -#include "Packages/com.unity.render-pipelines.universal/ShaderLibrary/Core.hlsl" -#include "Packages/com.unity.render-pipelines.core/ShaderLibrary/CommonMaterial.hlsl" -#include "SpineCoreShaders/Spine-Common.cginc" -#include "SpineCoreShaders/Spine-Skeleton-Tint-Common.cginc" - -struct appdata { - float3 pos : POSITION; - half4 color : COLOR; - float2 uv0 : TEXCOORD0; -#if defined(_TINT_BLACK_ON) - float2 tintBlackRG : TEXCOORD1; - float2 tintBlackB : TEXCOORD2; -#endif - - UNITY_VERTEX_INPUT_INSTANCE_ID -}; - -struct VertexOutput { - half4 color : COLOR0; - float2 uv0 : TEXCOORD0; - float4 pos : SV_POSITION; -#if defined(_TINT_BLACK_ON) - float3 darkColor : TEXCOORD1; -#endif - UNITY_VERTEX_OUTPUT_STEREO -}; - -VertexOutput vert(appdata v) { - VertexOutput o; - UNITY_SETUP_INSTANCE_ID(v); - UNITY_INITIALIZE_VERTEX_OUTPUT_STEREO(o); - - float3 positionWS = TransformObjectToWorld(v.pos); - o.pos = TransformWorldToHClip(positionWS); - o.uv0 = v.uv0; - o.color = PMAGammaToTargetSpace(v.color); -#if defined(_TINT_BLACK_ON) - o.color *= _Color; - o.darkColor = GammaToTargetSpace( - half3(v.tintBlackRG.r, v.tintBlackRG.g, v.tintBlackB.r)) + _Black.rgb; -#elif defined (APPLY_MATERIAL_TINT_COLOR) - o.color *= _Color; -#endif - return o; -} - -half4 frag(VertexOutput i) : SV_Target{ - float4 texColor = tex2D(_MainTex, i.uv0); -#if defined(_TINT_BLACK_ON) - return fragTintedColor(texColor, i.darkColor, i.color, _Color.a, _Black.a); -#else - #if defined(_STRAIGHT_ALPHA_INPUT) - texColor.rgb *= texColor.a; - #endif - return (texColor * i.color); -#endif -} - -#endif diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Include/Spine-Skeleton-ForwardPass-URP.hlsl.meta b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Include/Spine-Skeleton-ForwardPass-URP.hlsl.meta deleted file mode 100644 index cf1573b28..000000000 --- a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Include/Spine-Skeleton-ForwardPass-URP.hlsl.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 66d99756a2edf0e4d8761712cb85e9f1 -ShaderImporter: - externalObjects: {} - defaultTextures: [] - nonModifiableTextures: [] - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Include/Spine-SkeletonLit-ForwardPass-URP.hlsl b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Include/Spine-SkeletonLit-ForwardPass-URP.hlsl deleted file mode 100644 index 912355ac9..000000000 --- a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Include/Spine-SkeletonLit-ForwardPass-URP.hlsl +++ /dev/null @@ -1,221 +0,0 @@ -#ifndef SKELETONLIT_FORWARD_PASS_URP_INCLUDED -#define SKELETONLIT_FORWARD_PASS_URP_INCLUDED - -#include "Packages/com.unity.render-pipelines.core/ShaderLibrary/CommonMaterial.hlsl" -#include "Packages/com.unity.render-pipelines.universal/ShaderLibrary/Core.hlsl" -#include "Packages/com.unity.render-pipelines.universal/ShaderLibrary/Lighting.hlsl" -#include "SpineCoreShaders/Spine-Common.cginc" -#include "Spine-Common-URP.hlsl" -#include "SpineCoreShaders/Spine-Skeleton-Tint-Common.cginc" - -#if (defined(_MAIN_LIGHT_SHADOWS) || defined(MAIN_LIGHT_CALCULATE_SHADOWS)) && !defined(_RECEIVE_SHADOWS_OFF) -#define SKELETONLIT_RECEIVE_SHADOWS -#endif - -struct appdata { - float3 pos : POSITION; - float3 normal : NORMAL; - half4 color : COLOR; - float2 uv0 : TEXCOORD0; -#if defined(_TINT_BLACK_ON) - float2 tintBlackRG : TEXCOORD1; - float2 tintBlackB : TEXCOORD2; -#endif - UNITY_VERTEX_INPUT_INSTANCE_ID -}; - -struct VertexOutput { - half4 color : COLOR0; - float2 uv0 : TEXCOORD0; - float4 pos : SV_POSITION; - -#if defined(SKELETONLIT_RECEIVE_SHADOWS) - float4 shadowCoord : TEXCOORD1; - half3 shadowedColor : TEXCOORD2; -#endif -#if defined(_ADDITIONAL_LIGHTS) && USE_FORWARD_PLUS - float3 positionWS : TEXCOORD3; - half3 normalWS : TEXCOORD4; -#endif -#if defined(_TINT_BLACK_ON) - float3 darkColor : TEXCOORD5; -#endif - UNITY_VERTEX_OUTPUT_STEREO -}; - -half3 ProcessLight(float3 positionWS, half3 normalWS, uint meshRenderingLayers, int lightIndex) -{ - Light light = GetAdditionalLight(lightIndex, positionWS); -#ifdef USE_LIGHT_LAYERS - if (!IsMatchingLightLayer(light.layerMask, meshRenderingLayers)) - return half3(0, 0, 0); -#endif - - half3 attenuatedLightColor = light.color * (light.distanceAttenuation * light.shadowAttenuation); - return LightingLambert(attenuatedLightColor, light.direction, normalWS); -} - -half3 LightweightLightVertexSimplified(float3 positionWS, half3 normalWS, out half3 shadowedColor) { - Light mainLight = GetMainLight(); - half3 attenuatedLightColor = mainLight.color * (mainLight.distanceAttenuation * mainLight.shadowAttenuation); - half3 mainLightColor = LightingLambert(attenuatedLightColor, mainLight.direction, normalWS); - - half3 additionalLightColor = half3(0, 0, 0); - // Note: we don't add any lighting in the fragment shader, thus we include both variants below -#if defined(_ADDITIONAL_LIGHTS) || defined(_ADDITIONAL_LIGHTS_VERTEX) - uint meshRenderingLayers = GetMeshRenderingLayerBackwardsCompatible(); -#if USE_FORWARD_PLUS - for (uint lightIndex = 0; lightIndex < min(URP_FP_DIRECTIONAL_LIGHTS_COUNT, MAX_VISIBLE_LIGHTS); lightIndex++) - { - FORWARD_PLUS_SUBTRACTIVE_LIGHT_CHECK - additionalLightColor += ProcessLight(positionWS, normalWS, meshRenderingLayers, lightIndex); - } -#else // !USE_FORWARD_PLUS - uint pixelLightCount = GetAdditionalLightsCount(); - LIGHT_LOOP_BEGIN_SPINE(pixelLightCount) - additionalLightColor += ProcessLight(positionWS, normalWS, meshRenderingLayers, lightIndex); - LIGHT_LOOP_END_SPINE -#endif // USE_FORWARD_PLUS -#endif - - shadowedColor = additionalLightColor; - return mainLightColor + additionalLightColor; -} - -#if defined(_ADDITIONAL_LIGHTS) && USE_FORWARD_PLUS -half3 LightweightLightFragmentSimplified(float3 positionWS, float2 positionCS, half3 normalWS, out half3 shadowedColor) { - half3 additionalLightColor = half3(0, 0, 0); - shadowedColor = half3(0, 0, 0); - - InputData inputData; // LIGHT_LOOP_BEGIN macro requires InputData struct in USE_FORWARD_PLUS branch - inputData.positionWS = positionWS; - inputData.normalizedScreenSpaceUV = GetNormalizedScreenSpaceUV(positionCS); - - uint meshRenderingLayers = GetMeshRenderingLayerBackwardsCompatible(); - uint pixelLightCount = GetAdditionalLightsCount(); - LIGHT_LOOP_BEGIN_SPINE(pixelLightCount) - additionalLightColor += ProcessLight(positionWS, normalWS, meshRenderingLayers, lightIndex); - LIGHT_LOOP_END_SPINE - return additionalLightColor; -} -#endif - -VertexOutput vert(appdata v) { - VertexOutput o; - UNITY_SETUP_INSTANCE_ID(v); - UNITY_INITIALIZE_VERTEX_OUTPUT_STEREO(o); - - half4 color = PMAGammaToTargetSpace(v.color); - float3 positionWS = TransformObjectToWorld(v.pos); - half3 fixedNormal = half3(0, 0, -1); - half3 normalWS = normalize(mul((float3x3)unity_ObjectToWorld, fixedNormal)); - o.uv0 = v.uv0; - o.pos = TransformWorldToHClip(positionWS); - -#ifdef _DOUBLE_SIDED_LIGHTING - // unfortunately we have to compute the sign here in the vertex shader - // instead of using VFACE in fragment shader stage. - half3 viewDirWS = UNITY_MATRIX_V[2].xyz; - half faceSign = sign(dot(viewDirWS, normalWS)); - normalWS *= faceSign; -#endif - -#if defined(_ADDITIONAL_LIGHTS) && USE_FORWARD_PLUS - o.positionWS = positionWS; - o.normalWS = normalWS; -#endif - -#if defined(_TINT_BLACK_ON) - color *= _Color; - o.darkColor = GammaToTargetSpace( - half3(v.tintBlackRG.r, v.tintBlackRG.g, v.tintBlackB.r)) + _Black.rgb; -#endif - - half3 shadowedColor; -#if !defined(_LIGHT_AFFECTS_ADDITIVE) - if (color.a == 0) { - o.color = color; -#if defined(SKELETONLIT_RECEIVE_SHADOWS) - o.shadowedColor = color.rgb; - o.shadowCoord = float4(0, 0, 0, 0); -#endif - return o; - } -#endif // !defined(_LIGHT_AFFECTS_ADDITIVE) - - color.rgb *= LightweightLightVertexSimplified(positionWS, normalWS, shadowedColor); - - // Note: ambient light is also handled via SH. - half3 vertexSH; -#if IS_URP_15_OR_NEWER - #ifdef OUTPUT_SH4 - OUTPUT_SH4(positionWS, normalWS.xyz, GetWorldSpaceNormalizeViewDir(positionWS), vertexSH); - #else - OUTPUT_SH(positionWS, normalWS.xyz, GetWorldSpaceNormalizeViewDir(positionWS), vertexSH); - #endif -#else - OUTPUT_SH(normalWS.xyz, vertexSH); -#endif - half3 bakedGI = SAMPLE_GI(v.lightmapUV, vertexSH, normalWS); - color.rgb += bakedGI; - o.color = color; - -#if defined(SKELETONLIT_RECEIVE_SHADOWS) - shadowedColor += bakedGI; - o.shadowedColor = shadowedColor; - - VertexPositionInputs vertexInput; - vertexInput.positionWS = positionWS; - vertexInput.positionCS = o.pos; - o.shadowCoord = GetShadowCoord(vertexInput); -#endif - return o; -} - -half4 frag(VertexOutput i -#ifdef USE_WRITE_RENDERING_LAYERS - , out float4 outRenderingLayers : SV_Target1 -#endif -) : SV_Target0 -{ - half4 tex = tex2D(_MainTex, i.uv0); -#if !defined(_TINT_BLACK_ON) && defined(_STRAIGHT_ALPHA_INPUT) - tex.rgb *= tex.a; -#endif - - if (i.color.a == 0) { -#if defined(_TINT_BLACK_ON) - return fragTintedColor(tex, i.darkColor, i.color, _Color.a, _Black.a); -#else - return tex * i.color; -#endif - } - -#if defined(_ADDITIONAL_LIGHTS) && USE_FORWARD_PLUS - // USE_FORWARD_PLUS lights need to be processed in fragment shader, - // otherwise light culling by vertex will create a very bad lighting result. - half3 shadowedColor; - i.color.rgb += LightweightLightFragmentSimplified(i.positionWS, i.pos.xy, i.normalWS, shadowedColor); -#if defined(SKELETONLIT_RECEIVE_SHADOWS) - i.shadowedColor += shadowedColor; -#endif -#endif - -#if defined(SKELETONLIT_RECEIVE_SHADOWS) - half shadowAttenuation = MainLightRealtimeShadow(i.shadowCoord); - i.color.rgb = lerp(i.shadowedColor, i.color.rgb, shadowAttenuation); -#endif - -#ifdef USE_WRITE_RENDERING_LAYERS - uint renderingLayers = GetMeshRenderingLayerBackwardsCompatible(); - outRenderingLayers = float4(EncodeMeshRenderingLayer(renderingLayers), 0, 0, 0); -#endif - -#if defined(_TINT_BLACK_ON) - return fragTintedColor(tex, i.darkColor, i.color, _Color.a, _Black.a); -#else - return tex * i.color; -#endif -} - -#endif diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Include/Spine-SkeletonLit-ForwardPass-URP.hlsl.meta b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Include/Spine-SkeletonLit-ForwardPass-URP.hlsl.meta deleted file mode 100644 index 5c3041651..000000000 --- a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Include/Spine-SkeletonLit-ForwardPass-URP.hlsl.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 259a1da3d69e3904e92a582735352359 -ShaderImporter: - externalObjects: {} - defaultTextures: [] - nonModifiableTextures: [] - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Include/Spine-SkeletonLit-ShadowCasterPass-URP.hlsl b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Include/Spine-SkeletonLit-ShadowCasterPass-URP.hlsl deleted file mode 100644 index 29f188628..000000000 --- a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Include/Spine-SkeletonLit-ShadowCasterPass-URP.hlsl +++ /dev/null @@ -1,69 +0,0 @@ -#ifndef SKELETONLIT_SHADOW_CASTER_PASS_URP_INCLUDED -#define SKELETONLIT_SHADOW_CASTER_PASS_URP_INCLUDED - -#include "Packages/com.unity.render-pipelines.core/ShaderLibrary/CommonMaterial.hlsl" -#include "Packages/com.unity.render-pipelines.universal/ShaderLibrary/Core.hlsl" -#include "Packages/com.unity.render-pipelines.universal/ShaderLibrary/Shadows.hlsl" - -float3 _LightDirection; - -struct AttributesSpine -{ - float4 positionOS : POSITION; - float3 normalOS : NORMAL; - float4 vertexColor : COLOR; - float2 texcoord : TEXCOORD0; - UNITY_VERTEX_INPUT_INSTANCE_ID -}; - -struct VaryingsSpine -{ - float4 positionCS : SV_POSITION; - float4 texcoordAndAlpha: TEXCOORD0; -}; - -float4 GetShadowPositionHClip(float3 positionOS, half3 normalWS) -{ - float3 positionWS = TransformObjectToWorld(positionOS); - float4 positionCS = TransformWorldToHClip(ApplyShadowBias(positionWS, normalWS, _LightDirection)); - -#if UNITY_REVERSED_Z - positionCS.z = min(positionCS.z, positionCS.w * UNITY_NEAR_CLIP_VALUE); -#else - positionCS.z = max(positionCS.z, positionCS.w * UNITY_NEAR_CLIP_VALUE); -#endif - - return positionCS; -} - -VaryingsSpine ShadowPassVertexSkeletonLit(AttributesSpine input) -{ - VaryingsSpine output; - UNITY_SETUP_INSTANCE_ID(input); - - output.texcoordAndAlpha.xyz = float3(TRANSFORM_TEX(input.texcoord, _MainTex).xy, 0); - - half3 fixedNormalOS = half3(0, 0, -1); - half3 normalWS = normalize(TransformObjectToWorldNormal(fixedNormalOS)); -#ifdef _DOUBLE_SIDED_LIGHTING - // flip normal for shadow bias if necessary - // unfortunately we have to compute the sign here in the vertex shader - // instead of using VFACE in fragment shader stage. - half3 viewDirWS = UNITY_MATRIX_V[2].xyz; - half faceSign = sign(dot(viewDirWS, normalWS)); - normalWS *= faceSign; -#endif - - output.positionCS = GetShadowPositionHClip(input.positionOS.xyz, normalWS); - output.texcoordAndAlpha.a = input.vertexColor.a; - return output; -} - -half4 ShadowPassFragmentSkeletonLit(VaryingsSpine input) : SV_TARGET -{ - fixed4 texureColor = tex2D(_MainTex, input.texcoordAndAlpha.xy); - clip(texureColor.a * input.texcoordAndAlpha.a - _Cutoff); - return 0; -} - -#endif diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Include/Spine-SkeletonLit-ShadowCasterPass-URP.hlsl.meta b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Include/Spine-SkeletonLit-ShadowCasterPass-URP.hlsl.meta deleted file mode 100644 index eec983c14..000000000 --- a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Include/Spine-SkeletonLit-ShadowCasterPass-URP.hlsl.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 80e9a34d66b713544a0a47bcf9ec53fe -ShaderImporter: - externalObjects: {} - defaultTextures: [] - nonModifiableTextures: [] - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Include/Spine-Sprite-Common-URP.hlsl b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Include/Spine-Sprite-Common-URP.hlsl deleted file mode 100644 index 846a62ee8..000000000 --- a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Include/Spine-Sprite-Common-URP.hlsl +++ /dev/null @@ -1,39 +0,0 @@ -#ifndef URP_SPRITE_COMMON_INCLUDED -#define URP_SPRITE_COMMON_INCLUDED - -#undef LIGHTMAP_ON - -#if defined(_SPECULAR) || defined(_SPECULAR_GLOSSMAP) -#define SPECULAR -#endif - -//Have to process lighting per pixel if using normal maps or a diffuse ramp or rim lighting or specular -#if defined(_NORMALMAP) || defined(_DIFFUSE_RAMP) || defined(_RIM_LIGHTING) || defined(SPECULAR) -#define PER_PIXEL_LIGHTING -#endif - -#include "Packages/com.unity.render-pipelines.universal/ShaderLibrary/Core.hlsl" -#include "Packages/com.unity.render-pipelines.core/ShaderLibrary/CommonMaterial.hlsl" -#include "SpineCoreShaders/ShaderShared.cginc" - -#if defined(SPECULAR) - -sampler2D _MetallicGlossMap; - -inline half2 getMetallicGloss(float2 uv) -{ - half2 mg; - -#ifdef _SPECULAR_GLOSSMAP - mg = tex2D(_MetallicGlossMap, uv).ra; - mg.g *= _GlossMapScale; -#else - mg.r = _Metallic; - mg.g = _Glossiness; -#endif - - return mg; -} -#endif - -#endif // URP_SPRITE_COMMON_INCLUDED diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Include/Spine-Sprite-Common-URP.hlsl.meta b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Include/Spine-Sprite-Common-URP.hlsl.meta deleted file mode 100644 index 7f07667b0..000000000 --- a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Include/Spine-Sprite-Common-URP.hlsl.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 46ef6e1b09e1bc04885eb905a8f2822d -ShaderImporter: - externalObjects: {} - defaultTextures: [] - nonModifiableTextures: [] - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Include/Spine-Sprite-DepthNormalsPass-URP.hlsl b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Include/Spine-Sprite-DepthNormalsPass-URP.hlsl deleted file mode 100644 index ed917c500..000000000 --- a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Include/Spine-Sprite-DepthNormalsPass-URP.hlsl +++ /dev/null @@ -1,88 +0,0 @@ -#ifndef SPRITES_DEPTH_NORMALS_PASS_URP_INCLUDED -#define SPRITES_DEPTH_NORMALS_PASS_URP_INCLUDED - -#include "Include/Spine-Sprite-Common-URP.hlsl" -#include "Packages/com.unity.render-pipelines.universal/ShaderLibrary/Lighting.hlsl" -#include "SpineCoreShaders/SpriteLighting.cginc" -#include "SpineCoreShaders/Spine-Common.cginc" -#include "Spine-Common-URP.hlsl" - -//#include "Include/Spine-Sprite-Common-URP.hlsl" -//#include "Packages/com.unity.render-pipelines.universal/ShaderLibrary/Core.hlsl" - -struct VaryingsSprite -{ - float4 pos : SV_POSITION; - fixed4 vertexColor : COLOR; - float3 texcoord : TEXCOORD0; - -#if defined(_NORMALMAP) - half4 normalWorld : TEXCOORD4; - half4 tangentWorld : TEXCOORD5; - half4 binormalWorld : TEXCOORD6; -#else - half3 normalWorld : TEXCOORD4; -#endif - UNITY_VERTEX_INPUT_INSTANCE_ID - UNITY_VERTEX_OUTPUT_STEREO -}; - -VaryingsSprite DepthNormalsVertexSprite(VertexInput input) -{ - VaryingsSprite output = (VaryingsSprite)0; - UNITY_SETUP_INSTANCE_ID(input); - UNITY_INITIALIZE_VERTEX_OUTPUT_STEREO(output); - - output.pos = calculateLocalPos(input.vertex); - output.vertexColor = calculateVertexColor(input.color); - output.texcoord = float3(calculateTextureCoord(input.texcoord), 0); - - float backFaceSign = 1; -#if defined(FIXED_NORMALS_BACKFACE_RENDERING) - backFaceSign = calculateBackfacingSign(positionWS.xyz); -#endif - - half3 normalWS = calculateSpriteWorldNormal(input, -backFaceSign); - output.normalWorld.xyz = normalWS; -#if defined(_NORMALMAP) - output.tangentWorld.xyz = calculateWorldTangent(input.tangent); - output.binormalWorld.xyz = calculateSpriteWorldBinormal(input, output.normalWorld.xyz, output.tangentWorld.xyz, backFaceSign); -#endif - - return output; -} - -void DepthNormalsFragmentSprite(VaryingsSprite input, - out half4 outNormalWS : SV_Target0 -#ifdef _WRITE_RENDERING_LAYERS - , out float4 outRenderingLayers : SV_Target1 -#endif - ) -{ - UNITY_SETUP_STEREO_EYE_INDEX_POST_VERTEX(input); - - fixed4 texureColor = calculateTexturePixel(input.texcoord.xy); - ALPHA_CLIP(texureColor, input.vertexColor) - -#if defined(PER_PIXEL_LIGHTING) && defined(_NORMALMAP) - half3 normalWS = calculateNormalFromBumpMap(input.texcoord.xy, input.tangentWorld.xyz, input.binormalWorld.xyz, input.normalWorld.xyz); -#else - half3 normalWS = input.normalWorld.xyz; -#endif - -#if defined(_GBUFFER_NORMALS_OCT) - float2 octNormalWS = PackNormalOctQuadEncode(normalWS); // values between [-1, +1], must use fp32 on some platforms. - float2 remappedOctNormalWS = saturate(octNormalWS * 0.5 + 0.5); // values between [ 0, 1] - half3 packedNormalWS = PackFloat2To888(remappedOctNormalWS); // values between [ 0, 1] - outNormalWS = half4(packedNormalWS, 0.0); -#else - outNormalWS = half4(normalWS, 0.0); -#endif - -#ifdef USE_WRITE_RENDERING_LAYERS - uint renderingLayers = GetMeshRenderingLayerBackwardsCompatible(); - outRenderingLayers = float4(EncodeMeshRenderingLayer(renderingLayers), 0, 0, 0); -#endif -} - -#endif diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Include/Spine-Sprite-DepthOnlyPass-URP.hlsl b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Include/Spine-Sprite-DepthOnlyPass-URP.hlsl deleted file mode 100644 index 0947ef325..000000000 --- a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Include/Spine-Sprite-DepthOnlyPass-URP.hlsl +++ /dev/null @@ -1,42 +0,0 @@ -#ifndef SPRITES_DEPTH_ONLY_PASS_URP_INCLUDED -#define SPRITES_DEPTH_ONLY_PASS_URP_INCLUDED - -#include "Include/Spine-Sprite-Common-URP.hlsl" -#include "Packages/com.unity.render-pipelines.universal/ShaderLibrary/Core.hlsl" - -struct AttributesSprite -{ - float4 positionOS : POSITION; - float4 vertexColor : COLOR; - float2 texcoord : TEXCOORD0; - UNITY_VERTEX_INPUT_INSTANCE_ID -}; - -struct VaryingsSprite -{ - float4 positionCS : SV_POSITION; - float4 texcoordAndAlpha: TEXCOORD0; - UNITY_VERTEX_INPUT_INSTANCE_ID - UNITY_VERTEX_OUTPUT_STEREO -}; - -VaryingsSprite DepthOnlyVertexSprite(AttributesSprite input) -{ - VaryingsSprite output = (VaryingsSprite)0; - UNITY_SETUP_INSTANCE_ID(input); - UNITY_INITIALIZE_VERTEX_OUTPUT_STEREO(output); - - output.texcoordAndAlpha.xyz = float3(TRANSFORM_TEX(input.texcoord, _MainTex).xy, 0); - output.texcoordAndAlpha.a = input.vertexColor.a * _Color.a; - output.positionCS = TransformObjectToHClip(input.positionOS.xyz); - return output; -} - -half4 DepthOnlyFragmentSprite(VaryingsSprite input) : SV_TARGET -{ - fixed4 texureColor = calculateTexturePixel(input.texcoordAndAlpha.xy); - clip(texureColor.a * input.texcoordAndAlpha.a - _Cutoff); - return input.positionCS.z; -} - -#endif diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Include/Spine-Sprite-DepthOnlyPass-URP.hlsl.meta b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Include/Spine-Sprite-DepthOnlyPass-URP.hlsl.meta deleted file mode 100644 index 6c59eb5e5..000000000 --- a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Include/Spine-Sprite-DepthOnlyPass-URP.hlsl.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 9e6e6f2288b792e4aa0db167249e73bd -ShaderImporter: - externalObjects: {} - defaultTextures: [] - nonModifiableTextures: [] - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Include/Spine-Sprite-ForwardPass-URP.hlsl b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Include/Spine-Sprite-ForwardPass-URP.hlsl deleted file mode 100644 index 660e04211..000000000 --- a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Include/Spine-Sprite-ForwardPass-URP.hlsl +++ /dev/null @@ -1,407 +0,0 @@ -#ifndef VERTEX_LIT_FORWARD_PASS_URP_INCLUDED -#define VERTEX_LIT_FORWARD_PASS_URP_INCLUDED - -#include "Include/Spine-Sprite-Common-URP.hlsl" -#include "Packages/com.unity.render-pipelines.universal/ShaderLibrary/Lighting.hlsl" -#include "SpineCoreShaders/SpriteLighting.cginc" -#include "SpineCoreShaders/Spine-Common.cginc" -#include "Spine-Common-URP.hlsl" - -#if defined(_ALPHAPREMULTIPLY_ON) - #undef _STRAIGHT_ALPHA_INPUT -#elif !defined(_STRAIGHT_ALPHA_INPUT) - #define _STRAIGHT_ALPHA_INPUT -#endif -#include "SpineCoreShaders/Spine-Skeleton-Tint-Common.cginc" - -#if defined(_RIM_LIGHTING) || defined(_ADDITIONAL_LIGHTS) || defined(MAIN_LIGHT_CALCULATE_SHADOWS) || defined(USE_LIGHT_COOKIES) - #define NEEDS_POSITION_WS -#endif - -//////////////////////////////////////// -// Vertex output struct -// -struct VertexOutputLWRP -{ - float4 pos : SV_POSITION; - fixed4 vertexColor : COLOR; - float3 texcoord : TEXCOORD0; - - half4 fogFactorAndVertexLight : TEXCOORD1; - half3 viewDirectionWS : TEXCOORD2; - - DECLARE_LIGHTMAP_OR_SH(lightmapUV, vertexSH, 3); - -#if defined(_NORMALMAP) - half4 normalWorld : TEXCOORD4; - half4 tangentWorld : TEXCOORD5; - half4 binormalWorld : TEXCOORD6; -#else - half3 normalWorld : TEXCOORD4; -#endif -#if (defined(_MAIN_LIGHT_SHADOWS) || defined(MAIN_LIGHT_CALCULATE_SHADOWS)) && !defined(_RECEIVE_SHADOWS_OFF) - float4 shadowCoord : TEXCOORD7; -#endif -#if defined(NEEDS_POSITION_WS) - float4 positionWS : TEXCOORD8; -#endif -#if defined(_TINT_BLACK_ON) - float3 darkColor : TEXCOORD9; -#endif - - UNITY_VERTEX_OUTPUT_STEREO -}; - -/////////////////////////////////////////////////////////////////////////////// -// Vertex and Fragment functions // -/////////////////////////////////////////////////////////////////////////////// -#if defined(_ADDITIONAL_LIGHT_SHADOWS) && !defined(_RECEIVE_SHADOWS_OFF) -half4 CalculateShadowMaskBackwardsCompatible(InputData inputData) -{ - // To ensure backward compatibility we have to avoid using shadowMask input, as it is not present in older shaders -#if defined(SHADOWS_SHADOWMASK) && defined(LIGHTMAP_ON) - half4 shadowMask = inputData.shadowMask; -#elif !defined (LIGHTMAP_ON) - half4 shadowMask = unity_ProbesOcclusion; -#else - half4 shadowMask = half4(1, 1, 1, 1); -#endif - - return shadowMask; -} -#endif - -half3 LightweightLightVertexSimplified(float3 positionWS, half3 normalWS) { -#ifdef _MAIN_LIGHT_VERTEX - Light mainLight = GetMainLight(); - half3 attenuatedLightColor = mainLight.color * (mainLight.distanceAttenuation * mainLight.shadowAttenuation); - half3 diffuseLightColor = LightingLambert(attenuatedLightColor, mainLight.direction, normalWS); -#else - half3 diffuseLightColor = half3(0, 0, 0); -#endif - -#ifdef _ADDITIONAL_LIGHTS_VERTEX - int pixelLightCount = GetAdditionalLightsCount(); - for (int i = 0; i < pixelLightCount; ++i) - { - Light light = GetAdditionalLight(i, positionWS); - half3 attenuatedLightColor = light.color * (light.distanceAttenuation * light.shadowAttenuation); - diffuseLightColor += LightingLambert(attenuatedLightColor, light.direction, normalWS); - } -#endif // _ADDITIONAL_LIGHTS_VERTEX - return diffuseLightColor; -} - -#ifdef _DIFFUSE_RAMP -half3 LightingLambertRamped(half3 lightColor, float attenuation, half3 lightDir, half3 normal) -{ - half angleDot = max(0, dot(lightDir, normal)); - return calculateRampedDiffuse(lightColor, attenuation, angleDot); -} -#endif - -#if defined(SPECULAR) - -half3 ProcessLightPBRSimplified(InputData inputData, BRDFData brdfData, half4 shadowMask, uint meshRenderingLayers, int lightIndex) -{ -#if defined(_ADDITIONAL_LIGHT_SHADOWS) && !defined(_RECEIVE_SHADOWS_OFF) - Light light = GetAdditionalLight(lightIndex, inputData.positionWS, shadowMask); -#else - Light light = GetAdditionalLight(lightIndex, inputData.positionWS); -#endif -#ifdef USE_LIGHT_LAYERS - if (!IsMatchingLightLayer(light.layerMask, meshRenderingLayers)) - return half3(0, 0, 0); -#endif - return LightingPhysicallyBased(brdfData, light, inputData.normalWS, inputData.viewDirectionWS); -} - -half4 LightweightFragmentPBRSimplified(InputData inputData, half4 texAlbedoAlpha, half metallic, half3 specular, - half smoothness, half3 emission, half4 vertexColor) -{ -#if !defined(_TINT_BLACK_ON) - half4 albedo = texAlbedoAlpha * vertexColor; -#else - half4 albedo = texAlbedoAlpha; -#endif - - BRDFData brdfData; - half ignoredAlpha = 1; // ignore alpha, otherwise - InitializeBRDFData(albedo.rgb, metallic, specular, smoothness, ignoredAlpha, brdfData); - brdfData.specular *= albedo.a; - -#ifndef _MAIN_LIGHT_VERTEX -#if (defined(_MAIN_LIGHT_SHADOWS) || defined(MAIN_LIGHT_CALCULATE_SHADOWS)) && !defined(_RECEIVE_SHADOWS_OFF) - Light mainLight = GetMainLight(inputData.shadowCoord); -#else - Light mainLight = GetMainLight(); -#endif -#if defined(USE_LIGHT_COOKIES) - half3 cookieColor = SampleMainLightCookie(inputData.positionWS); - mainLight.color *= cookieColor; -#endif - - half3 finalColor = inputData.bakedGI * albedo.rgb; - finalColor += LightingPhysicallyBased(brdfData, mainLight, inputData.normalWS, inputData.viewDirectionWS); -#else // _MAIN_LIGHT_VERTEX - half3 finalColor = inputData.bakedGI * albedo.rgb; -#endif // _MAIN_LIGHT_VERTEX - -#ifdef _ADDITIONAL_LIGHTS - uint meshRenderingLayers = GetMeshRenderingLayerBackwardsCompatible(); - -#if defined(_ADDITIONAL_LIGHT_SHADOWS) && !defined(_RECEIVE_SHADOWS_OFF) - half4 shadowMask = CalculateShadowMaskBackwardsCompatible(inputData); -#else - half4 shadowMask = half4(1, 1, 1, 1); -#endif - -#if USE_FORWARD_PLUS - for (uint lightIndex = 0; lightIndex < min(URP_FP_DIRECTIONAL_LIGHTS_COUNT, MAX_VISIBLE_LIGHTS); lightIndex++) - { - FORWARD_PLUS_SUBTRACTIVE_LIGHT_CHECK - finalColor += ProcessLightPBRSimplified(inputData, brdfData, shadowMask, meshRenderingLayers, lightIndex); - } -#endif - uint pixelLightCount = GetAdditionalLightsCount(); - LIGHT_LOOP_BEGIN_SPINE(pixelLightCount) - finalColor += ProcessLightPBRSimplified(inputData, brdfData, shadowMask, meshRenderingLayers, lightIndex); - LIGHT_LOOP_END_SPINE - -#endif // _ADDITIONAL_LIGHTS - -#ifdef _ADDITIONAL_LIGHTS_VERTEX - finalColor += inputData.vertexLighting * brdfData.diffuse; -#endif - finalColor += emission; - return prepareLitPixelForOutput(half4(finalColor, albedo.a), texAlbedoAlpha.a, vertexColor.a); -} - -#else // !SPECULAR - -half3 ProcessLightLambert(InputData inputData, half4 shadowMask, uint meshRenderingLayers, int lightIndex) -{ -#if defined(_ADDITIONAL_LIGHT_SHADOWS) && !defined(_RECEIVE_SHADOWS_OFF) - Light light = GetAdditionalLight(lightIndex, inputData.positionWS, shadowMask); -#else - Light light = GetAdditionalLight(lightIndex, inputData.positionWS); -#endif - -#ifdef USE_LIGHT_LAYERS - if (!IsMatchingLightLayer(light.layerMask, meshRenderingLayers)) - return half3(0, 0, 0); -#endif - - half3 attenuation = (light.distanceAttenuation * light.shadowAttenuation); - half3 attenuatedLightColor = light.color * attenuation; -#ifndef _DIFFUSE_RAMP - return LightingLambert(attenuatedLightColor, light.direction, inputData.normalWS); -#else - return LightingLambertRamped(light.color, attenuation, light.direction, inputData.normalWS); -#endif -} - -half4 LightweightFragmentBlinnPhongSimplified(InputData inputData, half4 texDiffuseAlpha, half3 emission, half4 vertexColor) -{ -#if !defined(_TINT_BLACK_ON) - half4 diffuse = texDiffuseAlpha * vertexColor; -#else - half4 diffuse = texDiffuseAlpha; -#endif - -#ifndef _MAIN_LIGHT_VERTEX -#if (defined(_MAIN_LIGHT_SHADOWS) || defined(MAIN_LIGHT_CALCULATE_SHADOWS)) && !defined(_RECEIVE_SHADOWS_OFF) - Light mainLight = GetMainLight(inputData.shadowCoord); -#else - Light mainLight = GetMainLight(); -#endif -#if defined(USE_LIGHT_COOKIES) - half3 cookieColor = SampleMainLightCookie(inputData.positionWS); - mainLight.color *= cookieColor; -#endif - - half3 diffuseLighting = inputData.bakedGI; - - half3 attenuation = mainLight.distanceAttenuation* mainLight.shadowAttenuation; - half3 attenuatedLightColor = mainLight.color * attenuation; -#ifndef _DIFFUSE_RAMP - diffuseLighting += LightingLambert(attenuatedLightColor, mainLight.direction, inputData.normalWS); -#else - diffuseLighting += LightingLambertRamped(mainLight.color, attenuation, mainLight.direction, inputData.normalWS); -#endif -#else // _MAIN_LIGHT_VERTEX - half3 diffuseLighting = inputData.bakedGI; -#endif // _MAIN_LIGHT_VERTEX - -#ifdef _ADDITIONAL_LIGHTS - uint meshRenderingLayers = GetMeshRenderingLayerBackwardsCompatible(); - -#if defined(_ADDITIONAL_LIGHT_SHADOWS) && !defined(_RECEIVE_SHADOWS_OFF) - half4 shadowMask = CalculateShadowMaskBackwardsCompatible(inputData); -#else - half4 shadowMask = half4(1, 1, 1, 1); -#endif -#if USE_FORWARD_PLUS - for (uint lightIndex = 0; lightIndex < min(URP_FP_DIRECTIONAL_LIGHTS_COUNT, MAX_VISIBLE_LIGHTS); lightIndex++) - { - FORWARD_PLUS_SUBTRACTIVE_LIGHT_CHECK - diffuseLighting += ProcessLightLambert(inputData, shadowMask, meshRenderingLayers, lightIndex); - } -#endif - uint pixelLightCount = GetAdditionalLightsCount(); - LIGHT_LOOP_BEGIN_SPINE(pixelLightCount) - diffuseLighting += ProcessLightLambert(inputData, shadowMask, meshRenderingLayers, lightIndex); - LIGHT_LOOP_END_SPINE - -#endif -#ifdef _ADDITIONAL_LIGHTS_VERTEX - diffuseLighting += inputData.vertexLighting; -#endif - diffuseLighting += emission; - //half3 finalColor = diffuseLighting * diffuse + emission; - half3 finalColor = diffuseLighting * diffuse.rgb; - return prepareLitPixelForOutput(half4(finalColor, diffuse.a), texDiffuseAlpha.a, vertexColor.a); -} -#endif // SPECULAR - -VertexOutputLWRP ForwardPassVertexSprite(VertexInput input) -{ - VertexOutputLWRP output = (VertexOutputLWRP)0; - - UNITY_SETUP_INSTANCE_ID(input); - UNITY_INITIALIZE_VERTEX_OUTPUT_STEREO(output); - - output.pos = calculateLocalPos(input.vertex); - output.vertexColor = calculateVertexColor(input.color); -#if defined(_TINT_BLACK_ON) - output.darkColor = GammaToTargetSpace( - half3(input.tintBlackRG.r, input.tintBlackRG.g, input.tintBlackB.r)) + _Black.rgb; -#endif - output.texcoord = float3(calculateTextureCoord(input.texcoord), 0); - - float3 positionWS = TransformObjectToWorld(input.vertex.xyz); - - float backFaceSign = 1; -#if defined(FIXED_NORMALS_BACKFACE_RENDERING) - backFaceSign = calculateBackfacingSign(positionWS.xyz); -#endif - output.viewDirectionWS = GetCameraPositionWS() - positionWS; -#if defined(NEEDS_POSITION_WS) - output.positionWS = float4(positionWS, 1); -#endif - - half3 normalWS = calculateSpriteWorldNormal(input, -backFaceSign); - output.normalWorld.xyz = normalWS; -#if defined(_NORMALMAP) - output.tangentWorld.xyz = calculateWorldTangent(input.tangent); - output.binormalWorld.xyz = calculateSpriteWorldBinormal(input, output.normalWorld.xyz, output.tangentWorld.xyz, backFaceSign); -#endif - - output.fogFactorAndVertexLight.yzw = LightweightLightVertexSimplified(positionWS, normalWS); - -#if (defined(_MAIN_LIGHT_SHADOWS) || defined(MAIN_LIGHT_CALCULATE_SHADOWS)) && !defined(_RECEIVE_SHADOWS_OFF) - VertexPositionInputs vertexInput; - vertexInput.positionWS = positionWS; - vertexInput.positionCS = output.pos; - output.shadowCoord = GetShadowCoord(vertexInput); -#endif - -#if defined(_FOG) - half fogFactor = ComputeFogFactor(output.pos.z); - output.fogFactorAndVertexLight.x = fogFactor; -#endif - -#if IS_URP_15_OR_NEWER - #ifdef OUTPUT_SH4 - OUTPUT_SH4(positionWS, normalWS.xyz, GetWorldSpaceNormalizeViewDir(positionWS), output.vertexSH); - #else - OUTPUT_SH(positionWS, normalWS.xyz, GetWorldSpaceNormalizeViewDir(positionWS), output.vertexSH); - #endif -#else - OUTPUT_SH(normalWS.xyz, output.vertexSH); -#endif - return output; -} - -half4 ForwardPassFragmentSprite(VertexOutputLWRP input -#ifdef USE_WRITE_RENDERING_LAYERS - , out float4 outRenderingLayers : SV_Target1 -#endif -) : SV_Target0 -{ - UNITY_SETUP_STEREO_EYE_INDEX_POST_VERTEX(input); - - fixed4 texureColor = calculateTexturePixel(input.texcoord.xy); - - RETURN_UNLIT_IF_ADDITIVE_SLOT_TINT(texureColor, input.vertexColor, input.darkColor, _Color.a, _Black.a) // shall be called before ALPHA_CLIP - - ALPHA_CLIP(texureColor, input.vertexColor) - -#if defined(_TINT_BLACK_ON) - texureColor = fragTintedColor(texureColor, input.darkColor, input.vertexColor, _Color.a, _Black.a); -#endif - - // fill out InputData struct - InputData inputData; -#if !defined(_RECEIVE_SHADOWS_OFF) - #if defined(REQUIRES_VERTEX_SHADOW_COORD_INTERPOLATOR) - inputData.shadowCoord = input.shadowCoord; - #elif defined(MAIN_LIGHT_CALCULATE_SHADOWS) - inputData.shadowCoord = TransformWorldToShadowCoord(input.positionWS.xyz); - #elif defined(_MAIN_LIGHT_SHADOWS) - inputData.shadowCoord = input.shadowCoord; - #else - inputData.shadowCoord = float4(0, 0, 0, 0); - #endif -#endif - - inputData.viewDirectionWS = input.viewDirectionWS; - inputData.vertexLighting = input.fogFactorAndVertexLight.yzw; - -#if defined(PER_PIXEL_LIGHTING) && defined(_NORMALMAP) - half3 normalWS = calculateNormalFromBumpMap(input.texcoord.xy, input.tangentWorld.xyz, input.binormalWorld.xyz, input.normalWorld.xyz); -#else - half3 normalWS = input.normalWorld.xyz; -#endif - - inputData.normalWS = normalWS; - inputData.bakedGI = SAMPLE_GI(input.lightmapUV, input.vertexSH, inputData.normalWS); -#if defined(_RIM_LIGHTING) || defined(_ADDITIONAL_LIGHTS) || defined(USE_LIGHT_COOKIES) - inputData.positionWS = input.positionWS.rgb; -#endif -#if defined(_ADDITIONAL_LIGHTS) && USE_FORWARD_PLUS - inputData.normalizedScreenSpaceUV = GetNormalizedScreenSpaceUV(input.pos); - // note: don't assign normalizedScreenSpaceUV otherwise since old URP versions are missing this member variable -#endif - -#if defined(SPECULAR) - half2 metallicGloss = getMetallicGloss(input.texcoord.xy); - half metallic = metallicGloss.x; - half smoothness = metallicGloss.y; // this is 1 minus the square root of real roughness m. - - half3 specular = half3(0, 0, 0); - half4 emission = half4(0, 0, 0, 1); - APPLY_EMISSION_SPECULAR(emission, input.texcoord.xy) - half4 pixel = LightweightFragmentPBRSimplified(inputData, texureColor, metallic, specular, smoothness, emission.rgb, input.vertexColor); -#else - half3 emission = half3(0, 0, 0); - APPLY_EMISSION(emission, input.texcoord.xy) - half4 pixel = LightweightFragmentBlinnPhongSimplified(inputData, texureColor, emission, input.vertexColor); -#endif - -#if defined(_RIM_LIGHTING) - pixel.rgb = applyRimLighting(input.positionWS.xyz, normalWS, pixel); -#endif - - COLORISE(pixel) - APPLY_FOG_LWRP(pixel, input.fogFactorAndVertexLight.x) - -#ifdef USE_WRITE_RENDERING_LAYERS - uint renderingLayers = GetMeshRenderingLayerBackwardsCompatible(); - outRenderingLayers = float4(EncodeMeshRenderingLayer(renderingLayers), 0, 0, 0); -#endif - - return pixel; -} - -#endif diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Include/Spine-Sprite-ForwardPass-URP.hlsl.meta b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Include/Spine-Sprite-ForwardPass-URP.hlsl.meta deleted file mode 100644 index 0c1d66893..000000000 --- a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Include/Spine-Sprite-ForwardPass-URP.hlsl.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: cf623d0aff5fa5a46a8ab141746282e8 -ShaderImporter: - externalObjects: {} - defaultTextures: [] - nonModifiableTextures: [] - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Include/Spine-Sprite-ShadowCasterPass-URP.hlsl b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Include/Spine-Sprite-ShadowCasterPass-URP.hlsl deleted file mode 100644 index 8186698ff..000000000 --- a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Include/Spine-Sprite-ShadowCasterPass-URP.hlsl +++ /dev/null @@ -1,69 +0,0 @@ -#ifndef SPRITES_SHADOW_CASTER_PASS_URP_INCLUDED -#define SPRITES_SHADOW_CASTER_PASS_URP_INCLUDED - -#include "Packages/com.unity.render-pipelines.core/ShaderLibrary/CommonMaterial.hlsl" -#include "Packages/com.unity.render-pipelines.universal/ShaderLibrary/Shadows.hlsl" - -float3 _LightDirection; - -struct AttributesSpine -{ - float4 positionOS : POSITION; - float3 normalOS : NORMAL; - float4 vertexColor : COLOR; - float2 texcoord : TEXCOORD0; - UNITY_VERTEX_INPUT_INSTANCE_ID -}; - -struct VaryingsSpine -{ - float4 positionCS : SV_POSITION; - float4 texcoordAndAlpha: TEXCOORD0; -}; - -float4 GetShadowPositionHClip(float3 positionOS, half3 normalWS) -{ - float3 positionWS = TransformObjectToWorld(positionOS); - float4 positionCS = TransformWorldToHClip(ApplyShadowBias(positionWS, normalWS, _LightDirection)); - -#if UNITY_REVERSED_Z - positionCS.z = min(positionCS.z, positionCS.w * UNITY_NEAR_CLIP_VALUE); -#else - positionCS.z = max(positionCS.z, positionCS.w * UNITY_NEAR_CLIP_VALUE); -#endif - - return positionCS; -} - -VaryingsSpine ShadowPassVertexSprite(AttributesSpine input) -{ - VaryingsSpine output; - UNITY_SETUP_INSTANCE_ID(input); - - output.texcoordAndAlpha.xyz = float3(TRANSFORM_TEX(input.texcoord, _MainTex).xy, 0); - - half3 fixedNormalOS = half3(0, 0, -1); - half3 normalWS = normalize(TransformObjectToWorldNormal(fixedNormalOS)); - // flip normal for shadow bias if necessary - // unfortunately we have to compute the sign here in the vertex shader - // instead of using VFACE in fragment shader stage. - half3 viewDirWS = UNITY_MATRIX_V[2].xyz; - half faceSign = sign(dot(viewDirWS, normalWS)); - normalWS *= faceSign; - - output.positionCS = GetShadowPositionHClip(input.positionOS.xyz, normalWS); - output.texcoordAndAlpha.a = input.vertexColor.a * _Color.a; - return output; -} - -#include "SpineCoreShaders/ShaderShared.cginc" - -half4 ShadowPassFragmentSprite(VaryingsSpine input) : SV_TARGET -{ - fixed4 texureColor = calculateTexturePixel(input.texcoordAndAlpha.xy); - clip(texureColor.a * input.texcoordAndAlpha.a - _ShadowAlphaCutoff); - - return 0; -} - -#endif diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Include/Spine-Sprite-ShadowCasterPass-URP.hlsl.meta b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Include/Spine-Sprite-ShadowCasterPass-URP.hlsl.meta deleted file mode 100644 index a0c28ad35..000000000 --- a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Include/Spine-Sprite-ShadowCasterPass-URP.hlsl.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: eb352cfad402b384bb31649b44fa2cf3 -ShaderImporter: - externalObjects: {} - defaultTextures: [] - nonModifiableTextures: [] - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Include/SpineCoreShaders.meta b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Include/SpineCoreShaders.meta deleted file mode 100644 index 2baa9e9ab..000000000 --- a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Include/SpineCoreShaders.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 543e1e9f1b6cdaf40a010bc06130716c -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Include/SpineCoreShaders/ShaderShared.cginc b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Include/SpineCoreShaders/ShaderShared.cginc deleted file mode 100644 index 8c1a4e281..000000000 --- a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Include/SpineCoreShaders/ShaderShared.cginc +++ /dev/null @@ -1,472 +0,0 @@ -// Upgrade NOTE: upgraded instancing buffer 'PerDrawSprite' to new syntax. - -#ifndef SHADER_SHARED_INCLUDED -#define SHADER_SHARED_INCLUDED - -#if defined(USE_LWRP) -#include "Packages/com.unity.render-pipelines.lightweight/ShaderLibrary/Core.hlsl" -#include "Packages/com.esotericsoftware.spine.lwrp-shaders/Shaders/CGIncludes/SpineCoreShaders/Spine-Common.cginc" -#elif defined(USE_URP) -#include "Packages/com.unity.render-pipelines.universal/ShaderLibrary/Core.hlsl" -#include "Packages/com.esotericsoftware.spine.urp-shaders/Shaders/Include/SpineCoreShaders/Spine-Common.cginc" -#else -#include "UnityCG.cginc" -#include "../../CGIncludes/Spine-Common.cginc" -#endif - -//////////////////////////////////////// -// Space functions -// - -inline float4 calculateWorldPos(float4 vertex) -{ - return mul(unity_ObjectToWorld, vertex); -} - -#if defined(USE_LWRP) || defined(USE_URP) -// snaps post-transformed position to screen pixels -inline float4 UnityPixelSnap(float4 pos) -{ - float2 hpc = _ScreenParams.xy * 0.5f; -#if SHADER_API_PSSL - // sdk 4.5 splits round into v_floor_f32(x+0.5) ... sdk 5.0 uses v_rndne_f32, for compatabilty we use the 4.5 version - float2 temp = ((pos.xy / pos.w) * hpc) + float2(0.5f, 0.5f); - float2 pixelPos = float2(__v_floor_f32(temp.x), __v_floor_f32(temp.y)); -#else - float2 pixelPos = round((pos.xy / pos.w) * hpc); -#endif - pos.xy = pixelPos / hpc * pos.w; - return pos; -} -#endif - -inline float4 calculateLocalPos(float4 vertex) -{ -#if !defined(USE_LWRP) && !defined(USE_URP) -#ifdef UNITY_INSTANCING_ENABLED - vertex.xy *= _Flip.xy; -#endif -#endif - -#if defined(USE_LWRP) || defined(USE_URP) - float4 pos = TransformObjectToHClip(vertex.xyz); -#else - float4 pos = UnityObjectToClipPos(vertex); -#endif - -#ifdef PIXELSNAP_ON - pos = UnityPixelSnap(pos); -#endif - - return pos; -} - -inline half3 calculateWorldNormal(float3 normal) -{ -#if defined(USE_LWRP) || defined(USE_URP) - return TransformObjectToWorldNormal(normal); -#else - return UnityObjectToWorldNormal(normal); -#endif -} - -//////////////////////////////////////// -// Normal map functions -// - -#if defined(_NORMALMAP) - -uniform sampler2D _BumpMap; - -#if !defined(USE_LWRP) && !defined(USE_URP) -uniform half _BumpScale; -#endif - -half3 UnpackScaleNormal(half4 packednormal, half bumpScale) -{ - #if defined(UNITY_NO_DXT5nm) - return packednormal.xyz * 2 - 1; - #else - half3 normal; - normal.xy = (packednormal.wy * 2 - 1); - // Note: we allow scaled normals in LWRP since we might be using fewer instructions. - #if (SHADER_TARGET >= 30) || defined(USE_LWRP) || defined(USE_URP) - // SM2.0: instruction count limitation - // SM2.0: normal scaler is not supported - normal.xy *= bumpScale; - #endif - normal.z = sqrt(1.0 - saturate(dot(normal.xy, normal.xy))); - return normal; - #endif -} - - -inline half3 calculateWorldTangent(float4 tangent) -{ -#if defined(USE_LWRP) || defined(USE_URP) - return TransformObjectToWorldDir(tangent.xyz); -#else - return UnityObjectToWorldDir(tangent); -#endif -} - -inline half3 calculateWorldBinormal(half3 normalWorld, half3 tangentWorld, float tangentSign) -{ - //When calculating the binormal we have to flip it when the mesh is scaled negatively. - //Normally this would just be unity_WorldTransformParams.w but this isn't set correctly by Unity for its SpriteRenderer meshes so get from objectToWorld matrix scale instead. - half worldTransformSign = sign(unity_ObjectToWorld[0][0] * unity_ObjectToWorld[1][1] * unity_ObjectToWorld[2][2]); - half sign = tangentSign * worldTransformSign; - return cross(normalWorld, tangentWorld) * sign; -} - -inline half3 calculateNormalFromBumpMap(float2 texUV, half3 tangentWorld, half3 binormalWorld, half3 normalWorld) -{ - half3 localNormal = UnpackScaleNormal(tex2D(_BumpMap, texUV), _BumpScale); - half3x3 rotation = half3x3(tangentWorld, binormalWorld, normalWorld); - half3 normal = normalize(mul(localNormal, rotation)); - return normal; -} - -#endif // _NORMALMAP - -//////////////////////////////////////// -// Blending functions -// -inline fixed4 prepareLitPixelForOutput(fixed4 finalPixel, fixed textureAlpha, fixed colorAlpha) : SV_Target -{ -#if defined(_TINT_BLACK_ON) - const bool applyPMA = false; -#else - const bool applyPMA = true; -#endif - -#if defined(_ALPHABLEND_ON) - //Normal Alpha - if (applyPMA) finalPixel.rgb *= finalPixel.a; -#elif defined(_ALPHAPREMULTIPLY_VERTEX_ONLY) - //PMA vertex, straight texture - if (applyPMA) finalPixel.rgb *= textureAlpha; -#elif defined(_ALPHAPREMULTIPLY_ON) - //Pre multiplied alpha, both vertex and texture - // texture and vertex colors are premultiplied already -#elif defined(_MULTIPLYBLEND) - //Multiply - finalPixel = lerp(fixed4(1,1,1,1), finalPixel, finalPixel.a); -#elif defined(_MULTIPLYBLEND_X2) - //Multiply x2 - finalPixel.rgb *= 2.0f; - finalPixel = lerp(fixed4(0.5f,0.5f,0.5f,0.5f), finalPixel, finalPixel.a); -#elif defined(_ADDITIVEBLEND) - //Additive - finalPixel *= 2.0f; - if (applyPMA) finalPixel.rgb *= colorAlpha; -#elif defined(_ADDITIVEBLEND_SOFT) - //Additive soft - if (applyPMA) finalPixel.rgb *= finalPixel.a; -#else - //Opaque - finalPixel.a = 1; -#endif - return finalPixel; -} - -inline fixed4 calculateLitPixel(fixed4 texureColor, fixed4 color, fixed3 lighting) : SV_Target -{ -#if !defined(_TINT_BLACK_ON) - fixed4 finalPixel = texureColor * color * fixed4(lighting, 1); -#else - fixed4 finalPixel = texureColor * fixed4(lighting, 1); -#endif - finalPixel = prepareLitPixelForOutput(finalPixel, texureColor.a, color.a); - return finalPixel; -} - -inline fixed4 calculateLitPixel(fixed4 texureColor, fixed3 lighting) : SV_Target -{ - // note: we let the optimizer work, removed duplicate code. - return calculateLitPixel(texureColor, fixed4(1, 1, 1, 1), lighting); -} - -inline fixed4 calculateAdditiveLitPixel(fixed4 texureColor, fixed4 color, fixed3 lighting) : SV_Target -{ - fixed4 finalPixel; - -#if defined(_ALPHABLEND_ON) || defined(_MULTIPLYBLEND) || defined(_MULTIPLYBLEND_X2) || defined(_ADDITIVEBLEND) || defined(_ADDITIVEBLEND_SOFT) - //Normal Alpha, Additive and Multiply modes - finalPixel.rgb = (texureColor.rgb * lighting * color.rgb) * (texureColor.a * color.a); - finalPixel.a = 1.0; -#elif defined(_ALPHAPREMULTIPLY_VERTEX_ONLY) - //PMA vertex, straight texture - finalPixel.rgb = texureColor.rgb * lighting * color.rgb * texureColor.a; - finalPixel.a = 1.0; -#elif defined(_ALPHAPREMULTIPLY_ON) - //Pre multiplied alpha, both vertex and texture - finalPixel.rgb = texureColor.rgb * lighting * color.rgb; - finalPixel.a = 1.0; -#else - //Opaque - finalPixel.rgb = texureColor.rgb * lighting * color.rgb; - finalPixel.a = 1.0; -#endif - - return finalPixel; -} - -inline fixed4 calculateAdditiveLitPixel(fixed4 texureColor, fixed3 lighting) : SV_Target -{ - fixed4 finalPixel; - -#if defined(_ALPHABLEND_ON) || defined(_ALPHAPREMULTIPLY_VERTEX_ONLY) || defined(_MULTIPLYBLEND) || defined(_MULTIPLYBLEND_X2) || defined(_ADDITIVEBLEND) || defined(_ADDITIVEBLEND_SOFT) - //Normal Alpha, Additive and Multiply modes - finalPixel.rgb = (texureColor.rgb * lighting) * texureColor.a; - finalPixel.a = 1.0; -#else - //Pre multiplied alpha and Opaque - finalPixel.rgb = texureColor.rgb * lighting; - finalPixel.a = 1.0; -#endif - - return finalPixel; -} - -inline fixed4 calculatePixel(fixed4 texureColor, fixed4 color) : SV_Target -{ - // note: we let the optimizer work, removed duplicate code. - return calculateLitPixel(texureColor, color, fixed3(1, 1, 1)); -} - -inline fixed4 calculatePixel(fixed4 texureColor) : SV_Target -{ - // note: we let the optimizer work, removed duplicate code. - return calculateLitPixel(texureColor, fixed4(1, 1, 1, 1), fixed3(1, 1, 1)); -} - -//////////////////////////////////////// -// Alpha Clipping -// - -#if defined(_ALPHA_CLIP) - -#if !defined(USE_LWRP) && !defined(USE_URP) -uniform fixed _Cutoff; -#endif - -#define ALPHA_CLIP(pixel, color) clip((pixel.a * color.a) - _Cutoff); - -#else - -#define ALPHA_CLIP(pixel, color) - -#endif - -//////////////////////////////////////// -// Additive Slot blend mode -// return unlit textureColor, alpha clip textureColor.a only -// -// [Deprecated] RETURN_UNLIT_IF_ADDITIVE_SLOT macro will be removed in future versions. -// Use RETURN_UNLIT_IF_ADDITIVE_SLOT_TINT instead. -#if defined(_ALPHAPREMULTIPLY_ON) && !defined(_LIGHT_AFFECTS_ADDITIVE) - #define RETURN_UNLIT_IF_ADDITIVE_SLOT(textureColor, vertexColor) \ - if (vertexColor.a == 0 && (vertexColor.r || vertexColor.g || vertexColor.b)) {\ - ALPHA_CLIP(texureColor, fixed4(1, 1, 1, 1))\ - return texureColor * vertexColor;\ - } -#elif defined(_ALPHAPREMULTIPLY_VERTEX_ONLY) && !defined(_LIGHT_AFFECTS_ADDITIVE) - #define RETURN_UNLIT_IF_ADDITIVE_SLOT(textureColor, vertexColor) \ - if (vertexColor.a == 0 && (vertexColor.r || vertexColor.g || vertexColor.b)) {\ - ALPHA_CLIP(texureColor, fixed4(1, 1, 1, 1))\ - return texureColor * texureColor.a * vertexColor;\ - } -#else - #define RETURN_UNLIT_IF_ADDITIVE_SLOT(textureColor, vertexColor) -#endif - -// Replacement for deprecated RETURN_UNLIT_IF_ADDITIVE_SLOT macro. -#if (defined(_ALPHAPREMULTIPLY_ON) || defined(_ALPHAPREMULTIPLY_VERTEX_ONLY)) && !defined(_LIGHT_AFFECTS_ADDITIVE) - #if defined(_TINT_BLACK_ON) - #define TINTED_RESULT_PIXEL(textureColor, vertexColor, darkVertexColor, lightColorA, darkColorA) fragTintedColor(texureColor, darkVertexColor, vertexColor, lightColorA, darkColorA) - #elif defined(_ALPHAPREMULTIPLY_VERTEX_ONLY) - #define TINTED_RESULT_PIXEL(textureColor, vertexColor, darkVertexColor, lightColorA, darkColorA) (texureColor * texureColor.a * vertexColor) - #else - #define TINTED_RESULT_PIXEL(textureColor, vertexColor, darkVertexColor, lightColorA, darkColorA) (texureColor * vertexColor) - #endif - - #define RETURN_UNLIT_IF_ADDITIVE_SLOT_TINT(textureColor, vertexColor, darkVertexColor, lightColorA, darkColorA) \ - if (vertexColor.a == 0 && (vertexColor.r || vertexColor.g || vertexColor.b)) {\ - ALPHA_CLIP(texureColor, fixed4(1, 1, 1, 1))\ - return TINTED_RESULT_PIXEL(textureColor, vertexColor, darkVertexColor, lightColorA, darkColorA);\ - } -#else - #define RETURN_UNLIT_IF_ADDITIVE_SLOT_TINT(textureColor, vertexColor, darkVertexColor, lightColorA, darkColorA) -#endif - -//////////////////////////////////////// -// Color functions -// - -#if !defined(USE_LWRP) && !defined(USE_URP) -uniform fixed4 _Color; - #if defined(_TINT_BLACK_ON) - uniform fixed4 _Black; - #endif -#endif - -inline fixed4 calculateVertexColor(fixed4 color) -{ -#if defined(_ALPHAPREMULTIPLY_ON) || _ALPHAPREMULTIPLY_VERTEX_ONLY - return PMAGammaToTargetSpace(color) * _Color; -#elif !defined (UNITY_COLORSPACE_GAMMA) - return fixed4(GammaToLinearSpace(color.rgb), color.a) * _Color; -#else - return color * _Color; -#endif -} - -#if defined(_COLOR_ADJUST) - -#if !defined(USE_LWRP) && !defined(USE_URP) -uniform float _Hue; -uniform float _Saturation; -uniform float _Brightness; -uniform fixed4 _OverlayColor; -#endif - -float3 rgb2hsv(float3 c) -{ - float4 K = float4(0.0, -1.0 / 3.0, 2.0 / 3.0, -1.0); - float4 p = lerp(float4(c.bg, K.wz), float4(c.gb, K.xy), step(c.b, c.g)); - float4 q = lerp(float4(p.xyw, c.r), float4(c.r, p.yzx), step(p.x, c.r)); - - float d = q.x - min(q.w, q.y); - float e = 1.0e-10; - return float3(abs(q.z + (q.w - q.y) / (6.0 * d + e)), d / (q.x + e), q.x); -} - -float3 hsv2rgb(float3 c) -{ - c = float3(c.x, clamp(c.yz, 0.0, 1.0)); - float4 K = float4(1.0, 2.0 / 3.0, 1.0 / 3.0, 3.0); - float3 p = abs(frac(c.xxx + K.xyz) * 6.0 - K.www); - return c.z * lerp(K.xxx, clamp(p - K.xxx, 0.0, 1.0), c.y); -} - -inline fixed4 adjustColor(fixed4 color) -{ - float3 hsv = rgb2hsv(color.rgb); - - hsv.x += _Hue; - hsv.y *= _Saturation; - hsv.z *= _Brightness; - - color.rgb = hsv2rgb(hsv); - - return color; -} - -#define COLORISE(pixel) pixel.rgb = lerp(pixel.rgb, _OverlayColor.rgb, _OverlayColor.a * pixel.a); -#define COLORISE_ADDITIVE(pixel) pixel.rgb = ((1.0-_OverlayColor.a) * pixel.rgb); - -#else // !_COLOR_ADJUST - -#define COLORISE(pixel) -#define COLORISE_ADDITIVE(pixel) - -#endif // !_COLOR_ADJUST - -//////////////////////////////////////// -// Fog -// - -#if defined(_FOG) && (defined(FOG_LINEAR) || defined(FOG_EXP) || defined(FOG_EXP2)) - -inline fixed4 applyFog(fixed4 pixel, float fogCoordOrFactorAtLWRP) -{ -#if defined(_ADDITIVEBLEND) || defined(_ADDITIVEBLEND_SOFT) - //In additive mode blend from clear to black based on luminance - float luminance = pixel.r * 0.3 + pixel.g * 0.59 + pixel.b * 0.11; - fixed4 fogColor = lerp(fixed4(0,0,0,0), fixed4(0,0,0,1), luminance); -#elif defined(_MULTIPLYBLEND) - //In multiplied mode fade to white based on inverse luminance - float luminance = pixel.r * 0.3 + pixel.g * 0.59 + pixel.b * 0.11; - fixed4 fogColor = lerp(fixed4(1,1,1,1), fixed4(0,0,0,0), luminance); -#elif defined(_MULTIPLYBLEND_X2) - //In multipliedx2 mode fade to grey based on inverse luminance - float luminance = pixel.r * 0.3 + pixel.g * 0.59 + pixel.b * 0.11; - fixed4 fogColor = lerp(fixed4(0.5f,0.5f,0.5f,0.5f), fixed4(0,0,0,0), luminance); -#elif defined(_ALPHABLEND_ON) || defined(_ALPHAPREMULTIPLY_VERTEX_ONLY) || defined(_ALPHAPREMULTIPLY_ON) - //In alpha blended modes blend to fog color based on pixel alpha - fixed4 fogColor = lerp(fixed4(0,0,0,0), unity_FogColor, pixel.a); -#else - //In opaque mode just return fog color; - fixed4 fogColor = unity_FogColor; -#endif - - #if defined(USE_LWRP) || defined(USE_URP) - pixel.rgb = MixFogColor(pixel.rgb, fogColor.rgb, fogCoordOrFactorAtLWRP); - #else - UNITY_APPLY_FOG_COLOR(fogCoordOrFactorAtLWRP, pixel, fogColor); - #endif - - return pixel; -} - -#define APPLY_FOG(pixel, input) pixel = applyFog(pixel, input.fogCoord); -#define APPLY_FOG_LWRP(pixel, fogFactor) pixel = applyFog(pixel, fogFactor); - -#define APPLY_FOG_ADDITIVE(pixel, input) \ - UNITY_APPLY_FOG_COLOR(input.fogCoord, pixel.rgb, fixed4(0,0,0,0)); // fog towards black in additive pass - -#else - -#define APPLY_FOG(pixel, input) -#define APPLY_FOG_LWRP(pixel, fogFactor) -#define APPLY_FOG_ADDITIVE(pixel, input) - -#endif - -//////////////////////////////////////// -// Texture functions -// - -uniform sampler2D _MainTex; - -#if _TEXTURE_BLEND -uniform sampler2D _BlendTex; -#if !defined(USE_LWRP) && !defined(USE_URP) -uniform float _BlendAmount; -#endif - -inline fixed4 calculateBlendedTexturePixel(float2 texcoord) -{ - return (1.0-_BlendAmount) * tex2D(_MainTex, texcoord) + _BlendAmount * tex2D(_BlendTex, texcoord); -} -#endif // _TEXTURE_BLEND - -inline fixed4 calculateTexturePixel(float2 texcoord) -{ - fixed4 pixel; - -#if _TEXTURE_BLEND - pixel = calculateBlendedTexturePixel(texcoord); -#else - pixel = tex2D(_MainTex, texcoord); -#endif // !_TEXTURE_BLEND - -#if defined(_COLOR_ADJUST) - pixel = adjustColor(pixel); -#endif // _COLOR_ADJUST - - return pixel; -} - -#if !defined(USE_LWRP) && !defined(USE_URP) -uniform fixed4 _MainTex_ST; -#endif - -inline float2 calculateTextureCoord(float4 texcoord) -{ - return TRANSFORM_TEX(texcoord, _MainTex); -} - - -#endif // SHADER_SHARED_INCLUDED diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Include/SpineCoreShaders/ShaderShared.cginc.meta b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Include/SpineCoreShaders/ShaderShared.cginc.meta deleted file mode 100644 index d7f8f8689..000000000 --- a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Include/SpineCoreShaders/ShaderShared.cginc.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 5c831ab76c424d9429cdff3bc8fbb856 -ShaderImporter: - externalObjects: {} - defaultTextures: [] - nonModifiableTextures: [] - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Include/SpineCoreShaders/Spine-Common.cginc b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Include/SpineCoreShaders/Spine-Common.cginc deleted file mode 100644 index 778ec6358..000000000 --- a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Include/SpineCoreShaders/Spine-Common.cginc +++ /dev/null @@ -1,56 +0,0 @@ -#ifndef SPINE_COMMON_INCLUDED -#define SPINE_COMMON_INCLUDED - -#if defined(USE_LWRP) -#include "Packages/com.unity.render-pipelines.core/ShaderLibrary/Color.hlsl" -#define GammaToLinearSpace SRGBToLinear -#define LinearToGammaSpace LinearToSRGB -#elif defined(USE_URP) -#include "Packages/com.unity.render-pipelines.core/ShaderLibrary/Color.hlsl" -#define GammaToLinearSpace SRGBToLinear -#define LinearToGammaSpace LinearToSRGB -#else -#include "UnityCG.cginc" -#endif - -inline half3 GammaToTargetSpace(half3 gammaColor) { -#if UNITY_COLORSPACE_GAMMA - return gammaColor; -#else - return GammaToLinearSpace(gammaColor); -#endif -} - -inline half3 TargetToGammaSpace(half3 targetColor) { -#if UNITY_COLORSPACE_GAMMA - return targetColor; -#else - return LinearToGammaSpace(targetColor); -#endif -} - -inline half4 PMAGammaToTargetSpace(half4 gammaPMAColor) { -#if UNITY_COLORSPACE_GAMMA - return gammaPMAColor; -#else - return gammaPMAColor.a == 0 ? - half4(GammaToLinearSpace(gammaPMAColor.rgb), gammaPMAColor.a) : - half4(GammaToLinearSpace(gammaPMAColor.rgb / gammaPMAColor.a) * gammaPMAColor.a, gammaPMAColor.a); -#endif -} - -// Saturated version to prevent numerical issues that occur at CanvasRenderer -// shader during linear-space PMA vertex color correction (countering automatic Unity conversion). -// Note: Only use this method when the original color.rgb values lie within [0,1] range and -// it's not an HDR color. This method is usually suitable for vertex color. -inline half4 PMAGammaToTargetSpaceSaturated(half4 gammaPMAColor) { -#if UNITY_COLORSPACE_GAMMA - return gammaPMAColor; -#else - return gammaPMAColor.a == 0 ? - half4(GammaToLinearSpace(gammaPMAColor.rgb), gammaPMAColor.a) : - half4(saturate(GammaToLinearSpace(gammaPMAColor.rgb / gammaPMAColor.a)) * gammaPMAColor.a, gammaPMAColor.a); -#endif -} - -#endif diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Include/SpineCoreShaders/Spine-Common.cginc.meta b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Include/SpineCoreShaders/Spine-Common.cginc.meta deleted file mode 100644 index 0debed03e..000000000 --- a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Include/SpineCoreShaders/Spine-Common.cginc.meta +++ /dev/null @@ -1,10 +0,0 @@ -fileFormatVersion: 2 -guid: 4e0db06e1bfb2c544ba6d1b209ad1911 -ShaderImporter: - externalObjects: {} - defaultTextures: [] - nonModifiableTextures: [] - preprocessorOverride: 0 - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Include/SpineCoreShaders/Spine-Outline-Common.cginc b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Include/SpineCoreShaders/Spine-Outline-Common.cginc deleted file mode 100644 index a8a098052..000000000 --- a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Include/SpineCoreShaders/Spine-Outline-Common.cginc +++ /dev/null @@ -1,53 +0,0 @@ -#ifndef SPINE_OUTLINE_COMMON_INCLUDED -#define SPINE_OUTLINE_COMMON_INCLUDED - -float4 computeOutlinePixel(sampler2D mainTexture, float2 mainTextureTexelSize, - float2 uv, float vertexColorAlpha, - float OutlineWidth, float OutlineReferenceTexWidth, float OutlineMipLevel, - float OutlineSmoothness, float ThresholdEnd, float OutlineOpaqueAlpha, float4 OutlineColor) { - - float4 texColor = fixed4(0, 0, 0, 0); - - float outlineWidthCompensated = OutlineWidth / (OutlineReferenceTexWidth * mainTextureTexelSize.x); - float xOffset = mainTextureTexelSize.x * outlineWidthCompensated; - float yOffset = mainTextureTexelSize.y * outlineWidthCompensated; - float xOffsetDiagonal = mainTextureTexelSize.x * outlineWidthCompensated * 0.7; - float yOffsetDiagonal = mainTextureTexelSize.y * outlineWidthCompensated * 0.7; - - float pixelCenter = 0;//tex2D(mainTexture, uv).a; - - float4 uvCenterWithLod = float4(uv, 0, OutlineMipLevel); - float pixelTop = tex2Dlod(mainTexture, uvCenterWithLod + float4(0, yOffset, 0, 0)).a; - float pixelBottom = tex2Dlod(mainTexture, uvCenterWithLod + float4(0, -yOffset, 0, 0)).a; - float pixelLeft = tex2Dlod(mainTexture, uvCenterWithLod + float4(-xOffset, 0, 0, 0)).a; - float pixelRight = tex2Dlod(mainTexture, uvCenterWithLod + float4(xOffset, 0, 0, 0)).a; -#if _USE8NEIGHBOURHOOD_ON - float numSamples = 8; - float pixelTopLeft = tex2Dlod(mainTexture, uvCenterWithLod + float4(-xOffsetDiagonal, yOffsetDiagonal, 0, 0)).a; - float pixelTopRight = tex2Dlod(mainTexture, uvCenterWithLod + float4(xOffsetDiagonal, yOffsetDiagonal, 0, 0)).a; - float pixelBottomLeft = tex2Dlod(mainTexture, uvCenterWithLod + float4(-xOffsetDiagonal, -yOffsetDiagonal, 0, 0)).a; - float pixelBottomRight = tex2Dlod(mainTexture, uvCenterWithLod + float4(xOffsetDiagonal, -yOffsetDiagonal, 0, 0)).a; - float average = (pixelTop + pixelBottom + pixelLeft + pixelRight + - pixelTopLeft + pixelTopRight + pixelBottomLeft + pixelBottomRight) - * vertexColorAlpha / numSamples; -#else // 4 neighbourhood - float numSamples = 4; - float average = (pixelTop + pixelBottom + pixelLeft + pixelRight) * vertexColorAlpha / numSamples; -#endif - float thresholdStart = ThresholdEnd * (1.0 - OutlineSmoothness); - float outlineAlpha = saturate(saturate((average - thresholdStart) / (ThresholdEnd - thresholdStart)) - pixelCenter); - outlineAlpha = pixelCenter > OutlineOpaqueAlpha ? 0 : outlineAlpha; - return lerp(texColor, OutlineColor, outlineAlpha); -} - -float4 computeOutlinePixel(sampler2D mainTexture, float2 mainTextureTexelSize, - float2 uv, float vertexColorAlpha, - float OutlineWidth, float OutlineReferenceTexWidth, float OutlineMipLevel, - float OutlineSmoothness, float ThresholdEnd, float4 OutlineColor) { - - return computeOutlinePixel(mainTexture, mainTextureTexelSize, - uv, vertexColorAlpha, OutlineWidth, OutlineReferenceTexWidth, OutlineMipLevel, - OutlineSmoothness, ThresholdEnd, 1.0, OutlineColor); -} - -#endif diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Include/SpineCoreShaders/Spine-Outline-Common.cginc.meta b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Include/SpineCoreShaders/Spine-Outline-Common.cginc.meta deleted file mode 100644 index 6f57d1fef..000000000 --- a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Include/SpineCoreShaders/Spine-Outline-Common.cginc.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 13cee1d5ffe7f304a9f5ff15ef07c3bc -ShaderImporter: - externalObjects: {} - defaultTextures: [] - nonModifiableTextures: [] - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Include/SpineCoreShaders/Spine-Skeleton-Tint-Common.cginc b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Include/SpineCoreShaders/Spine-Skeleton-Tint-Common.cginc deleted file mode 100644 index 22c623e57..000000000 --- a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Include/SpineCoreShaders/Spine-Skeleton-Tint-Common.cginc +++ /dev/null @@ -1,27 +0,0 @@ -#ifndef SKELETON_TINT_COMMON_INCLUDED -#define SKELETON_TINT_COMMON_INCLUDED - -float4 fragTintedColor(float4 texColor, float3 darkTintColor, float4 lightTintColorPMA, float lightColorAlpha, float darkColorAlpha) { - - float a = texColor.a * lightTintColorPMA.a; - -#if !defined(_STRAIGHT_ALPHA_INPUT) - float3 texDarkColor = (texColor.a - texColor.rgb); -#else - float3 texDarkColor = (1 - texColor.rgb); -#endif - float3 darkColor = texDarkColor * darkTintColor.rgb * lightColorAlpha; - float3 lightColor = texColor.rgb * lightTintColorPMA.rgb; - - float4 fragColor = float4(darkColor + lightColor, a); -#if defined(_STRAIGHT_ALPHA_INPUT) - fragColor.rgb *= texColor.a; -#endif - -#if defined(_DARK_COLOR_ALPHA_ADDITIVE) - fragColor.a = a * (1 - darkColorAlpha); -#endif - return fragColor; -} - -#endif diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Include/SpineCoreShaders/Spine-Skeleton-Tint-Common.cginc.meta b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Include/SpineCoreShaders/Spine-Skeleton-Tint-Common.cginc.meta deleted file mode 100644 index 8a6bd336f..000000000 --- a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Include/SpineCoreShaders/Spine-Skeleton-Tint-Common.cginc.meta +++ /dev/null @@ -1,10 +0,0 @@ -fileFormatVersion: 2 -guid: 17717bcd66ca5ee4388ec779392904c3 -ShaderImporter: - externalObjects: {} - defaultTextures: [] - nonModifiableTextures: [] - preprocessorOverride: 0 - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Include/SpineCoreShaders/SpriteLighting.cginc b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Include/SpineCoreShaders/SpriteLighting.cginc deleted file mode 100644 index e639b11f4..000000000 --- a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Include/SpineCoreShaders/SpriteLighting.cginc +++ /dev/null @@ -1,230 +0,0 @@ -#ifndef SPRITE_LIGHTING_INCLUDED -#define SPRITE_LIGHTING_INCLUDED - -//Check for using mesh normals -#if !defined(_FIXED_NORMALS_VIEWSPACE) && !defined(_FIXED_NORMALS_VIEWSPACE_BACKFACE) && !defined(_FIXED_NORMALS_MODELSPACE) && !defined(_FIXED_NORMALS_MODELSPACE_BACKFACE) && !defined(_FIXED_NORMALS_WORLDSPACE) -#define MESH_NORMALS -#endif - -//Check for fixing backfacing tangents -#if defined(_FIXED_NORMALS_VIEWSPACE_BACKFACE) || defined(_FIXED_NORMALS_MODELSPACE_BACKFACE) -#define FIXED_NORMALS_BACKFACE_RENDERING -#endif - -//////////////////////////////////////// -// Vertex structs -// - -struct VertexInput -{ - float4 vertex : POSITION; - float4 texcoord : TEXCOORD0; - float4 color : COLOR; -#if defined(MESH_NORMALS) - float3 normal : NORMAL; -#endif // _FIXED_NORMALS -#if defined(_NORMALMAP) - float4 tangent : TANGENT; -#endif // _NORMALMAP -#if defined(_TINT_BLACK_ON) - float2 tintBlackRG : TEXCOORD1; - float2 tintBlackB : TEXCOORD2; -#endif - UNITY_VERTEX_INPUT_INSTANCE_ID - -}; - -//////////////////////////////////////// -// Normal functions -// - -#if !defined(USE_LWRP) && !defined(USE_URP) -uniform float4 _FixedNormal = float4(0, 0, 1, 1); -#endif - -inline float3 getFixedNormal() -{ - return _FixedNormal.xyz; -} - -inline float calculateBackfacingSign(float3 worldPos) -{ - //If we're using fixed normals and mesh is facing away from camera, flip tangentSign - //Unity uses a left handed coordinate system so camera always looks down the negative z axis - float3 cameraForward = float3(0,0,-1); - float3 meshWorldForward = mul((float3x3)unity_ObjectToWorld, cameraForward); - float3 toCamera = _WorldSpaceCameraPos - worldPos; - return sign(dot(toCamera, meshWorldForward)); -} - -inline half3 calculateSpriteWorldNormal(VertexInput vertex, float backFaceSign) -{ -#if defined(MESH_NORMALS) - - return calculateWorldNormal(vertex.normal); - -#else // !MESH_NORMALS - - float3 normal = getFixedNormal(); - -#if defined(_FIXED_NORMALS_VIEWSPACE) || defined(_FIXED_NORMALS_VIEWSPACE_BACKFACE) - //View space fixed normal - //Rotate fixed normal by inverse view matrix to convert the fixed normal into world space - float3x3 invView = transpose((float3x3)UNITY_MATRIX_V); - return normalize(mul(invView, normal)); -#elif defined (_FIXED_NORMALS_WORLDSPACE) - //World space fixed normal - return normal; -#else - //Model space fixed normal. -#if defined(FIXED_NORMALS_BACKFACE_RENDERING) - //If back face rendering is enabled and the sprite is facing away from the camera (ie we're rendering the backface) then need to flip the normal - normal *= backFaceSign; -#endif - return calculateWorldNormal(normal); -#endif - -#endif // !MESH_NORMALS -} - -inline half3 calculateSpriteViewNormal(VertexInput vertex, float backFaceSign) -{ -#if defined(MESH_NORMALS) - - return normalize(mul((float3x3)UNITY_MATRIX_IT_MV, vertex.normal)); - -#else // !MESH_NORMALS - - float3 normal = getFixedNormal(); - -#if defined(_FIXED_NORMALS_VIEWSPACE) || defined(_FIXED_NORMALS_VIEWSPACE_BACKFACE) - //View space fixed normal - return normal; -#elif defined (_FIXED_NORMALS_WORLDSPACE) - //World space fixed normal - return normalize(mul((float3x3)UNITY_MATRIX_V, normal)); -#else - //Model space fixed normal -#if defined(FIXED_NORMALS_BACKFACE_RENDERING) - //If back face rendering is enabled and the sprite is facing away from the camera (ie we're rendering the backface) then need to flip the normal - normal *= backFaceSign; -#endif - return normalize(mul((float3x3)UNITY_MATRIX_IT_MV, normal)); -#endif - -#endif // !MESH_NORMALS -} - -//////////////////////////////////////// -// Normal map functions -// - -#if defined(_NORMALMAP) - -inline half3 calculateSpriteWorldBinormal(VertexInput vertex, half3 normalWorld, half3 tangentWorld, float backFaceSign) -{ - float tangentSign = vertex.tangent.w; - -#if defined(FIXED_NORMALS_BACKFACE_RENDERING) - tangentSign *= backFaceSign; -#endif - - return calculateWorldBinormal(normalWorld, tangentWorld, tangentSign); -} - -#endif // _NORMALMAP - -#if defined(_DIFFUSE_RAMP) - - -//////////////////////////////////////// -// Diffuse ramp functions -// - -uniform sampler2D _DiffuseRamp; - -inline fixed3 calculateDiffuseRamp(float ramp) -{ - return tex2D(_DiffuseRamp, float2(ramp, ramp)).rgb; -} - -inline fixed3 calculateRampedDiffuse(fixed3 lightColor, float attenuation, float angleDot) -{ -#if defined(_FULLRANGE_HARD_RAMP) - float d = angleDot; - half3 ramp = calculateDiffuseRamp(d); - return lightColor * ramp * attenuation; -#elif defined(_FULLRANGE_SOFT_RAMP) - float d = angleDot; - half3 ramp = calculateDiffuseRamp(d * attenuation); - return lightColor * ramp; -#elif defined(_OLD_SOFT_RAMP) - // for unmodified behaviour with existing projects when - // the HARD_DIFFUSE_RAMP define was disabled in this file. - // uses only the right half of the ramp texture, as - // negative angleDot is clamped to [0,1] before. - float d = angleDot * 0.5 + 0.5; - half3 ramp = calculateDiffuseRamp(d); - return lightColor * ramp * (attenuation * 2); -#else // _OLD_HARD_RAMP - // old default, for unmodified behaviour with existing projects, - // uses only the right half of the ramp texture, as - // negative angleDot is clamped to [0,1] before. - float d = angleDot * 0.5 + 0.5; - half3 ramp = calculateDiffuseRamp(d * attenuation * 2); - return lightColor * ramp; -#endif -} -#endif // _DIFFUSE_RAMP - -//////////////////////////////////////// -// Rim Lighting functions -// - -#ifdef _RIM_LIGHTING -#if !defined(USE_LWRP) && !defined(USE_URP) -uniform float _RimPower; -uniform fixed4 _RimColor; -#endif - -inline fixed3 applyRimLighting(fixed3 posWorld, fixed3 normalWorld, fixed4 pixel) : SV_Target -{ - fixed3 viewDir = normalize(_WorldSpaceCameraPos - posWorld); - float invDot = 1.0 - saturate(dot(normalWorld, viewDir)); - float rimPower = pow(invDot, _RimPower); - float rim = saturate(rimPower * _RimColor.a); - -#if defined(_DIFFUSE_RAMP) - rim = calculateDiffuseRamp(rim).r; -#endif - - return lerp(pixel.rgb, _RimColor.xyz * pixel.a, rim); -} - -#endif //_RIM_LIGHTING - -//////////////////////////////////////// -// Emission functions -// - -#ifdef _EMISSION - -uniform sampler2D _EmissionMap; - -#if !defined(USE_LWRP) && !defined(USE_URP) -uniform fixed4 _EmissionColor; -uniform float _EmissionPower; -#endif - - -#define APPLY_EMISSION(diffuse, uv) diffuse += tex2D(_EmissionMap, uv).rgb * _EmissionColor.rgb * _EmissionPower; -#define APPLY_EMISSION_SPECULAR(pixel, uv) pixel.rgb += (tex2D(_EmissionMap, uv).rgb * _EmissionColor.rgb * _EmissionPower) * pixel.a; - -#else //!_EMISSION - -#define APPLY_EMISSION(diffuse, uv) -#define APPLY_EMISSION_SPECULAR(pixel, uv) - -#endif //!_EMISSION - -#endif // SPRITE_LIGHTING_INCLUDED diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Include/SpineCoreShaders/SpriteLighting.cginc.meta b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Include/SpineCoreShaders/SpriteLighting.cginc.meta deleted file mode 100644 index 0c6054d63..000000000 --- a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Include/SpineCoreShaders/SpriteLighting.cginc.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 63fe0a6c5f377d9448f7ee7ad96e6a8f -ShaderImporter: - externalObjects: {} - defaultTextures: [] - nonModifiableTextures: [] - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Outline/BlendModes/Spine-Skeleton-PMA-Additive-Outline.shader b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Outline/BlendModes/Spine-Skeleton-PMA-Additive-Outline.shader index 80489e83d..d4cb13fc3 100644 --- a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Outline/BlendModes/Spine-Skeleton-PMA-Additive-Outline.shader +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Outline/BlendModes/Spine-Skeleton-PMA-Additive-Outline.shader @@ -11,7 +11,9 @@ Shader "Spine/Outline/Blend Modes/Skeleton PMA Additive" { // Outline properties are drawn via custom editor. [HideInInspector] _OutlineWidth("Outline Width", Range(0,8)) = 3.0 + [HideInInspector][MaterialToggle(_USE_SCREENSPACE_OUTLINE_WIDTH)] _UseScreenSpaceOutlineWidth("Width in Screen Space", Float) = 0 [HideInInspector] _OutlineColor("Outline Color", Color) = (1,1,0,1) + [HideInInspector][MaterialToggle(_OUTLINE_FILL_INSIDE)]_Fill("Fill", Float) = 0 [HideInInspector] _OutlineReferenceTexWidth("Reference Texture Width", Int) = 1024 [HideInInspector] _ThresholdEnd("Outline Threshold", Range(0,1)) = 0.25 [HideInInspector] _OutlineSmoothness("Outline Smoothness", Range(0,1)) = 1.0 diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Outline/BlendModes/Spine-Skeleton-PMA-Multiply-Outline.shader b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Outline/BlendModes/Spine-Skeleton-PMA-Multiply-Outline.shader index e3dbc8913..9c1fd3ed5 100644 --- a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Outline/BlendModes/Spine-Skeleton-PMA-Multiply-Outline.shader +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Outline/BlendModes/Spine-Skeleton-PMA-Multiply-Outline.shader @@ -11,7 +11,9 @@ Shader "Spine/Outline/Blend Modes/Skeleton PMA Multiply" { // Outline properties are drawn via custom editor. [HideInInspector] _OutlineWidth("Outline Width", Range(0,8)) = 3.0 + [HideInInspector][MaterialToggle(_USE_SCREENSPACE_OUTLINE_WIDTH)] _UseScreenSpaceOutlineWidth("Width in Screen Space", Float) = 0 [HideInInspector] _OutlineColor("Outline Color", Color) = (1,1,0,1) + [HideInInspector][MaterialToggle(_OUTLINE_FILL_INSIDE)]_Fill("Fill", Float) = 0 [HideInInspector] _OutlineReferenceTexWidth("Reference Texture Width", Int) = 1024 [HideInInspector] _ThresholdEnd("Outline Threshold", Range(0,1)) = 0.25 [HideInInspector] _OutlineSmoothness("Outline Smoothness", Range(0,1)) = 1.0 diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Outline/BlendModes/Spine-Skeleton-PMA-Screen-Outline.shader b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Outline/BlendModes/Spine-Skeleton-PMA-Screen-Outline.shader index 89c9eb064..07b8edcee 100644 --- a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Outline/BlendModes/Spine-Skeleton-PMA-Screen-Outline.shader +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Outline/BlendModes/Spine-Skeleton-PMA-Screen-Outline.shader @@ -11,7 +11,9 @@ Shader "Spine/Outline/Blend Modes/Skeleton PMA Screen" { // Outline properties are drawn via custom editor. [HideInInspector] _OutlineWidth("Outline Width", Range(0,8)) = 3.0 + [HideInInspector][MaterialToggle(_USE_SCREENSPACE_OUTLINE_WIDTH)] _UseScreenSpaceOutlineWidth("Width in Screen Space", Float) = 0 [HideInInspector] _OutlineColor("Outline Color", Color) = (1,1,0,1) + [HideInInspector][MaterialToggle(_OUTLINE_FILL_INSIDE)]_Fill("Fill", Float) = 0 [HideInInspector] _OutlineReferenceTexWidth("Reference Texture Width", Int) = 1024 [HideInInspector] _ThresholdEnd("Outline Threshold", Range(0,1)) = 0.25 [HideInInspector] _OutlineSmoothness("Outline Smoothness", Range(0,1)) = 1.0 diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Outline/SkeletonGraphic/Spine-SkeletonGraphic-Outline.shader b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Outline/SkeletonGraphic/Spine-SkeletonGraphic-Outline.shader index 2cedb99df..6ef6cb083 100644 --- a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Outline/SkeletonGraphic/Spine-SkeletonGraphic-Outline.shader +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Outline/SkeletonGraphic/Spine-SkeletonGraphic-Outline.shader @@ -21,7 +21,9 @@ Shader "Spine/Outline/SkeletonGraphic" // Outline properties are drawn via custom editor. [HideInInspector] _OutlineWidth("Outline Width", Range(0,8)) = 3.0 + [HideInInspector][MaterialToggle(_USE_SCREENSPACE_OUTLINE_WIDTH)] _UseScreenSpaceOutlineWidth("Width in Screen Space", Float) = 0 [HideInInspector] _OutlineColor("Outline Color", Color) = (1,1,0,1) + [HideInInspector][MaterialToggle(_OUTLINE_FILL_INSIDE)]_Fill("Fill", Float) = 0 [HideInInspector] _OutlineReferenceTexWidth("Reference Texture Width", Int) = 1024 [HideInInspector] _ThresholdEnd("Outline Threshold", Range(0,1)) = 0.25 [HideInInspector] _OutlineSmoothness("Outline Smoothness", Range(0,1)) = 1.0 @@ -65,6 +67,7 @@ Shader "Spine/Outline/SkeletonGraphic" #pragma fragment fragOutline #define SKELETON_GRAPHIC #pragma shader_feature _ _USE8NEIGHBOURHOOD_ON + #pragma shader_feature _ _USE_SCREENSPACE_OUTLINE_WIDTH #include "../CGIncludes/Spine-Outline-Pass.cginc" ENDCG } diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Outline/SkeletonGraphic/Spine-SkeletonGraphic-TintBlack-Outline.shader b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Outline/SkeletonGraphic/Spine-SkeletonGraphic-TintBlack-Outline.shader index 1f2d6572c..3ab6749de 100644 --- a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Outline/SkeletonGraphic/Spine-SkeletonGraphic-TintBlack-Outline.shader +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Outline/SkeletonGraphic/Spine-SkeletonGraphic-TintBlack-Outline.shader @@ -23,7 +23,9 @@ Shader "Spine/Outline/SkeletonGraphic Tint Black" // Outline properties are drawn via custom editor. [HideInInspector] _OutlineWidth("Outline Width", Range(0,8)) = 3.0 + [HideInInspector][MaterialToggle(_USE_SCREENSPACE_OUTLINE_WIDTH)] _UseScreenSpaceOutlineWidth("Width in Screen Space", Float) = 0 [HideInInspector] _OutlineColor("Outline Color", Color) = (1,1,0,1) + [HideInInspector][MaterialToggle(_OUTLINE_FILL_INSIDE)]_Fill("Fill", Float) = 0 [HideInInspector] _OutlineReferenceTexWidth("Reference Texture Width", Int) = 1024 [HideInInspector] _ThresholdEnd("Outline Threshold", Range(0,1)) = 0.25 [HideInInspector] _OutlineSmoothness("Outline Smoothness", Range(0,1)) = 1.0 diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Outline/Spine-Skeleton-Fill-Outline.shader b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Outline/Spine-Skeleton-Fill-Outline.shader index bd932b00d..1c3da7f93 100644 --- a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Outline/Spine-Skeleton-Fill-Outline.shader +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Outline/Spine-Skeleton-Fill-Outline.shader @@ -12,7 +12,9 @@ Shader "Spine/Outline/Skeleton Fill" { // Outline properties are drawn via custom editor. [HideInInspector] _OutlineWidth("Outline Width", Range(0,8)) = 3.0 + [HideInInspector][MaterialToggle(_USE_SCREENSPACE_OUTLINE_WIDTH)] _UseScreenSpaceOutlineWidth("Width in Screen Space", Float) = 0 [HideInInspector] _OutlineColor("Outline Color", Color) = (1,1,0,1) + [HideInInspector][MaterialToggle(_OUTLINE_FILL_INSIDE)]_Fill("Fill", Float) = 0 [HideInInspector] _OutlineReferenceTexWidth("Reference Texture Width", Int) = 1024 [HideInInspector] _ThresholdEnd("Outline Threshold", Range(0,1)) = 0.25 [HideInInspector] _OutlineSmoothness("Outline Smoothness", Range(0,1)) = 1.0 diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Outline/Spine-Skeleton-Lit-Outline.shader b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Outline/Spine-Skeleton-Lit-Outline.shader index a862b82db..ccdc0a8be 100644 --- a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Outline/Spine-Skeleton-Lit-Outline.shader +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Outline/Spine-Skeleton-Lit-Outline.shader @@ -11,7 +11,9 @@ Shader "Spine/Outline/Skeleton Lit" { // Outline properties are drawn via custom editor. [HideInInspector] _OutlineWidth("Outline Width", Range(0,8)) = 3.0 + [HideInInspector][MaterialToggle(_USE_SCREENSPACE_OUTLINE_WIDTH)] _UseScreenSpaceOutlineWidth("Width in Screen Space", Float) = 0 [HideInInspector] _OutlineColor("Outline Color", Color) = (1,1,0,1) + [HideInInspector][MaterialToggle(_OUTLINE_FILL_INSIDE)]_Fill("Fill", Float) = 0 [HideInInspector] _OutlineReferenceTexWidth("Reference Texture Width", Int) = 1024 [HideInInspector] _ThresholdEnd("Outline Threshold", Range(0,1)) = 0.25 [HideInInspector] _OutlineSmoothness("Outline Smoothness", Range(0,1)) = 1.0 diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Outline/Spine-Skeleton-Lit-ZWrite-Outline.shader b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Outline/Spine-Skeleton-Lit-ZWrite-Outline.shader index 869087139..195fe8c75 100644 --- a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Outline/Spine-Skeleton-Lit-ZWrite-Outline.shader +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Outline/Spine-Skeleton-Lit-ZWrite-Outline.shader @@ -12,7 +12,9 @@ Shader "Spine/Outline/Skeleton Lit ZWrite" { // Outline properties are drawn via custom editor. [HideInInspector] _OutlineWidth("Outline Width", Range(0,8)) = 3.0 + [HideInInspector][MaterialToggle(_USE_SCREENSPACE_OUTLINE_WIDTH)] _UseScreenSpaceOutlineWidth("Width in Screen Space", Float) = 0 [HideInInspector] _OutlineColor("Outline Color", Color) = (1,1,0,1) + [HideInInspector][MaterialToggle(_OUTLINE_FILL_INSIDE)]_Fill("Fill", Float) = 0 [HideInInspector] _OutlineReferenceTexWidth("Reference Texture Width", Int) = 1024 [HideInInspector] _ThresholdEnd("Outline Threshold", Range(0,1)) = 0.25 [HideInInspector] _OutlineSmoothness("Outline Smoothness", Range(0,1)) = 1.0 diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Outline/Spine-Skeleton-Outline.shader b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Outline/Spine-Skeleton-Outline.shader index 7befaf587..4e6aed0b8 100644 --- a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Outline/Spine-Skeleton-Outline.shader +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Outline/Spine-Skeleton-Outline.shader @@ -10,7 +10,9 @@ Shader "Spine/Outline/Skeleton" { // Outline properties are drawn via custom editor. [HideInInspector] _OutlineWidth("Outline Width", Range(0,8)) = 3.0 + [HideInInspector][MaterialToggle(_USE_SCREENSPACE_OUTLINE_WIDTH)] _UseScreenSpaceOutlineWidth("Width in Screen Space", Float) = 0 [HideInInspector] _OutlineColor("Outline Color", Color) = (1,1,0,1) + [HideInInspector][MaterialToggle(_OUTLINE_FILL_INSIDE)]_Fill("Fill", Float) = 0 [HideInInspector] _OutlineReferenceTexWidth("Reference Texture Width", Int) = 1024 [HideInInspector] _ThresholdEnd("Outline Threshold", Range(0,1)) = 0.25 [HideInInspector] _OutlineSmoothness("Outline Smoothness", Range(0,1)) = 1.0 @@ -40,6 +42,8 @@ Shader "Spine/Outline/Skeleton" { #pragma vertex vertOutline #pragma fragment fragOutline #pragma shader_feature _ _USE8NEIGHBOURHOOD_ON + #pragma shader_feature _ _USE_SCREENSPACE_OUTLINE_WIDTH + #pragma shader_feature _ _OUTLINE_FILL_INSIDE #include "CGIncludes/Spine-Outline-Pass.cginc" ENDCG } diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Outline/Spine-Skeleton-OutlineOnly-URP.shader b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Outline/Spine-Skeleton-OutlineOnly-URP.shader deleted file mode 100644 index d735b1862..000000000 --- a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Outline/Spine-Skeleton-OutlineOnly-URP.shader +++ /dev/null @@ -1,60 +0,0 @@ -Shader "Universal Render Pipeline/Spine/Outline/Skeleton-OutlineOnly" { - Properties { - [NoScaleOffset] _MainTex("Main Texture", 2D) = "black" {} - [HideInInspector] _StencilRef("Stencil Reference", Float) = 1.0 - [Enum(UnityEngine.Rendering.CompareFunction)] _StencilComp("Stencil Comparison", Float) = 8 // Set to Always as default - - // Outline properties are drawn via custom editor. - [HideInInspector] _OutlineWidth("Outline Width", Range(0,20)) = 3.0 - [HideInInspector] _OutlineColor("Outline Color", Color) = (1,1,0,1) - [HideInInspector] _OutlineReferenceTexWidth("Reference Texture Width", Int) = 1024 - [HideInInspector] _ThresholdEnd("Outline Threshold", Range(0,1)) = 0.25 - [HideInInspector] _OutlineSmoothness("Outline Smoothness", Range(0,1)) = 1.0 - [HideInInspector][MaterialToggle(_USE8NEIGHBOURHOOD_ON)] _Use8Neighbourhood("Sample 8 Neighbours", Float) = 1 - [HideInInspector] _OutlineOpaqueAlpha("Opaque Alpha", Range(0,1)) = 1.0 - [HideInInspector] _OutlineMipLevel("Outline Mip Level", Range(0,3)) = 0 - } - - SubShader { - // Universal Pipeline tag is required. If Universal render pipeline is not set in the graphics settings - // this Subshader will fail. - Tags { "RenderPipeline" = "UniversalPipeline" "Queue"="Transparent" "IgnoreProjector"="True" "RenderType"="Transparent" } - LOD 100 - Cull Off - ZWrite Off - Blend One OneMinusSrcAlpha - - Stencil { - Ref[_StencilRef] - Comp[_StencilComp] - Pass Keep - } - - Pass { - Name "Outline" - HLSLPROGRAM - // Required to compile gles 2.0 with standard srp library - #pragma prefer_hlslcc gles - #pragma exclude_renderers d3d11_9x - - //-------------------------------------- - // GPU Instancing - #pragma multi_compile_instancing - - #pragma vertex vertOutline - #pragma fragment fragOutline - #pragma shader_feature _ _USE8NEIGHBOURHOOD_ON - - #define USE_URP - #define fixed4 half4 - #define fixed3 half3 - #define fixed half - #define NO_CUTOFF_PARAM - #include "../Include/Spine-Input-Outline-URP.hlsl" - #include "../Include/Spine-Outline-Pass-URP.hlsl" - ENDHLSL - } - } - - CustomEditor "SpineShaderWithOutlineGUI" -} diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Outline/Spine-Skeleton-OutlineOnly-URP.shader.meta b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Outline/Spine-Skeleton-OutlineOnly-URP.shader.meta deleted file mode 100644 index ddb442fe7..000000000 --- a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Outline/Spine-Skeleton-OutlineOnly-URP.shader.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 0c26b8f3f8867ba41ac82baf19d8ff91 -ShaderImporter: - externalObjects: {} - defaultTextures: [] - nonModifiableTextures: [] - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Outline/Spine-Skeleton-OutlineOnly-ZWrite.shader b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Outline/Spine-Skeleton-OutlineOnly-ZWrite.shader index f88e06af8..e1f7c0390 100644 --- a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Outline/Spine-Skeleton-OutlineOnly-ZWrite.shader +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Outline/Spine-Skeleton-OutlineOnly-ZWrite.shader @@ -9,7 +9,9 @@ Shader "Spine/Outline/OutlineOnly-ZWrite" { // Outline properties are drawn via custom editor. [HideInInspector] _OutlineWidth("Outline Width", Range(0,8)) = 3.0 + [HideInInspector][MaterialToggle(_USE_SCREENSPACE_OUTLINE_WIDTH)] _UseScreenSpaceOutlineWidth("Width in Screen Space", Float) = 0 [HideInInspector] _OutlineColor("Outline Color", Color) = (1,1,0,1) + [HideInInspector][MaterialToggle(_OUTLINE_FILL_INSIDE)]_Fill("Fill", Float) = 0 [HideInInspector] _OutlineReferenceTexWidth("Reference Texture Width", Int) = 1024 [HideInInspector] _ThresholdEnd("Outline Threshold", Range(0,1)) = 0.25 [HideInInspector] _OutlineSmoothness("Outline Smoothness", Range(0,1)) = 1.0 @@ -54,6 +56,8 @@ Shader "Spine/Outline/OutlineOnly-ZWrite" { #pragma vertex vertOutline #pragma fragment fragOutline #pragma shader_feature _ _USE8NEIGHBOURHOOD_ON + #pragma shader_feature _ _USE_SCREENSPACE_OUTLINE_WIDTH + #pragma shader_feature _ _OUTLINE_FILL_INSIDE #include "CGIncludes/Spine-Outline-Pass.cginc" ENDCG } diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Outline/Spine-Skeleton-Tint-Outline.shader b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Outline/Spine-Skeleton-Tint-Outline.shader index ff3f69456..c0a87690a 100644 --- a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Outline/Spine-Skeleton-Tint-Outline.shader +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Outline/Spine-Skeleton-Tint-Outline.shader @@ -12,7 +12,9 @@ Shader "Spine/Outline/Skeleton Tint" { // Outline properties are drawn via custom editor. [HideInInspector] _OutlineWidth("Outline Width", Range(0,8)) = 3.0 + [HideInInspector][MaterialToggle(_USE_SCREENSPACE_OUTLINE_WIDTH)] _UseScreenSpaceOutlineWidth("Width in Screen Space", Float) = 0 [HideInInspector] _OutlineColor("Outline Color", Color) = (1,1,0,1) + [HideInInspector][MaterialToggle(_OUTLINE_FILL_INSIDE)]_Fill("Fill", Float) = 0 [HideInInspector] _OutlineReferenceTexWidth("Reference Texture Width", Int) = 1024 [HideInInspector] _ThresholdEnd("Outline Threshold", Range(0,1)) = 0.25 [HideInInspector] _OutlineSmoothness("Outline Smoothness", Range(0,1)) = 1.0 diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Outline/Spine-Skeleton-TintBlack-Outline.shader b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Outline/Spine-Skeleton-TintBlack-Outline.shader index 91c38ca3b..7edad607e 100644 --- a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Outline/Spine-Skeleton-TintBlack-Outline.shader +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Outline/Spine-Skeleton-TintBlack-Outline.shader @@ -12,7 +12,9 @@ Shader "Spine/Outline/Skeleton Tint Black" { // Outline properties are drawn via custom editor. [HideInInspector] _OutlineWidth("Outline Width", Range(0,8)) = 3.0 + [HideInInspector][MaterialToggle(_USE_SCREENSPACE_OUTLINE_WIDTH)] _UseScreenSpaceOutlineWidth("Width in Screen Space", Float) = 0 [HideInInspector] _OutlineColor("Outline Color", Color) = (1,1,0,1) + [HideInInspector][MaterialToggle(_OUTLINE_FILL_INSIDE)]_Fill("Fill", Float) = 0 [HideInInspector] _OutlineReferenceTexWidth("Reference Texture Width", Int) = 1024 [HideInInspector] _ThresholdEnd("Outline Threshold", Range(0,1)) = 0.25 [HideInInspector] _OutlineSmoothness("Outline Smoothness", Range(0,1)) = 1.0 diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Outline/Spine-Special-Skeleton-Grayscale-Outline.shader b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Outline/Spine-Special-Skeleton-Grayscale-Outline.shader index d917a6628..de6c1c901 100644 --- a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Outline/Spine-Special-Skeleton-Grayscale-Outline.shader +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Outline/Spine-Special-Skeleton-Grayscale-Outline.shader @@ -11,7 +11,9 @@ Shader "Spine/Outline/Special/Skeleton Grayscale" { // Outline properties are drawn via custom editor. [HideInInspector] _OutlineWidth("Outline Width", Range(0,8)) = 3.0 + [HideInInspector][MaterialToggle(_USE_SCREENSPACE_OUTLINE_WIDTH)] _UseScreenSpaceOutlineWidth("Width in Screen Space", Float) = 0 [HideInInspector] _OutlineColor("Outline Color", Color) = (1,1,0,1) + [HideInInspector][MaterialToggle(_OUTLINE_FILL_INSIDE)]_Fill("Fill", Float) = 0 [HideInInspector] _OutlineReferenceTexWidth("Reference Texture Width", Int) = 1024 [HideInInspector] _ThresholdEnd("Outline Threshold", Range(0,1)) = 0.25 [HideInInspector] _OutlineSmoothness("Outline Smoothness", Range(0,1)) = 1.0 diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Outline/Sprite/SpritesPixelLit-Outline.shader b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Outline/Sprite/SpritesPixelLit-Outline.shader index 8cc0138de..91c172e17 100644 --- a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Outline/Sprite/SpritesPixelLit-Outline.shader +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Outline/Sprite/SpritesPixelLit-Outline.shader @@ -48,7 +48,9 @@ Shader "Spine/Outline/Sprite/Pixel Lit" // Outline properties are drawn via custom editor. [HideInInspector] _OutlineWidth("Outline Width", Range(0,8)) = 3.0 + [HideInInspector][MaterialToggle(_USE_SCREENSPACE_OUTLINE_WIDTH)] _UseScreenSpaceOutlineWidth("Width in Screen Space", Float) = 0 [HideInInspector] _OutlineColor("Outline Color", Color) = (1,1,0,1) + [HideInInspector][MaterialToggle(_OUTLINE_FILL_INSIDE)]_Fill("Fill", Float) = 0 [HideInInspector] _OutlineReferenceTexWidth("Reference Texture Width", Int) = 1024 [HideInInspector] _ThresholdEnd("Outline Threshold", Range(0,1)) = 0.25 [HideInInspector] _OutlineSmoothness("Outline Smoothness", Range(0,1)) = 1.0 diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Outline/Sprite/SpritesUnlit-Outline.shader b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Outline/Sprite/SpritesUnlit-Outline.shader index 3068d6cea..28a73a100 100644 --- a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Outline/Sprite/SpritesUnlit-Outline.shader +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Outline/Sprite/SpritesUnlit-Outline.shader @@ -31,7 +31,9 @@ Shader "Spine/Outline/Sprite/Unlit" // Outline properties are drawn via custom editor. [HideInInspector] _OutlineWidth("Outline Width", Range(0,8)) = 3.0 + [HideInInspector][MaterialToggle(_USE_SCREENSPACE_OUTLINE_WIDTH)] _UseScreenSpaceOutlineWidth("Width in Screen Space", Float) = 0 [HideInInspector] _OutlineColor("Outline Color", Color) = (1,1,0,1) + [HideInInspector][MaterialToggle(_OUTLINE_FILL_INSIDE)]_Fill("Fill", Float) = 0 [HideInInspector] _OutlineReferenceTexWidth("Reference Texture Width", Int) = 1024 [HideInInspector] _ThresholdEnd("Outline Threshold", Range(0,1)) = 0.25 [HideInInspector] _OutlineSmoothness("Outline Smoothness", Range(0,1)) = 1.0 diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Outline/Sprite/SpritesVertexLit-Outline.shader b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Outline/Sprite/SpritesVertexLit-Outline.shader index 8fce6138a..2ff861430 100644 --- a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Outline/Sprite/SpritesVertexLit-Outline.shader +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Outline/Sprite/SpritesVertexLit-Outline.shader @@ -49,7 +49,9 @@ Shader "Spine/Outline/Sprite/Vertex Lit" // Outline properties are drawn via custom editor. [HideInInspector] _OutlineWidth("Outline Width", Range(0,8)) = 3.0 + [HideInInspector][MaterialToggle(_USE_SCREENSPACE_OUTLINE_WIDTH)] _UseScreenSpaceOutlineWidth("Width in Screen Space", Float) = 0 [HideInInspector] _OutlineColor("Outline Color", Color) = (1,1,0,1) + [HideInInspector][MaterialToggle(_OUTLINE_FILL_INSIDE)]_Fill("Fill", Float) = 0 [HideInInspector] _OutlineReferenceTexWidth("Reference Texture Width", Int) = 1024 [HideInInspector] _ThresholdEnd("Outline Threshold", Range(0,1)) = 0.25 [HideInInspector] _OutlineSmoothness("Outline Smoothness", Range(0,1)) = 1.0 diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/SkeletonGraphic/CGIncludes/Spine-SkeletonGraphic-NormalPass.cginc b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/SkeletonGraphic/CGIncludes/Spine-SkeletonGraphic-NormalPass.cginc index 2b782970a..3bec70095 100644 --- a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/SkeletonGraphic/CGIncludes/Spine-SkeletonGraphic-NormalPass.cginc +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/SkeletonGraphic/CGIncludes/Spine-SkeletonGraphic-NormalPass.cginc @@ -22,7 +22,9 @@ struct VertexOutput { UNITY_VERTEX_OUTPUT_STEREO }; +#ifndef ENABLE_GRAYSCALE fixed4 _Color; +#endif fixed4 _TextureSampleAdd; float4 _ClipRect; @@ -30,6 +32,9 @@ float4 _ClipRect; float4 _FillColor; float _FillPhase; #endif +#ifdef ENABLE_GRAYSCALE +float _GrayPhase; +#endif VertexOutput vert (VertexInput IN) { VertexOutput OUT; @@ -57,7 +62,11 @@ VertexOutput vert (VertexInput IN) { // Saturated version used to prevent numerical issues of certain low-alpha values. float4 vertexColor = PMAGammaToTargetSpaceSaturated(half4(TargetToGammaSpace(IN.color.rgb), IN.color.a)); #endif - OUT.color = vertexColor * float4(_Color.rgb * _Color.a, _Color.a); // Combine a PMA version of _Color with vertexColor. + OUT.color = vertexColor; +#ifndef ENABLE_GRAYSCALE + OUT.color *= float4(_Color.rgb * _Color.a, _Color.a); // Combine a PMA version of _Color with vertexColor. +#endif + return OUT; } @@ -81,6 +90,9 @@ fixed4 frag (VertexOutput IN) : SV_Target #ifdef ENABLE_FILL color.rgb = lerp(color.rgb, (_FillColor.rgb * color.a), _FillPhase); // make sure to PMA _FillColor. #endif + #ifdef ENABLE_GRAYSCALE + color.rgb = lerp(color.rgb, dot(color.rgb, float3(0.3, 0.59, 0.11)), _GrayPhase); + #endif return color; } diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/SkeletonGraphic/CGIncludes/Spine-SkeletonGraphic-TintBlack-NormalPass.cginc b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/SkeletonGraphic/CGIncludes/Spine-SkeletonGraphic-TintBlack-NormalPass.cginc new file mode 100644 index 000000000..cd1cad6c9 --- /dev/null +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/SkeletonGraphic/CGIncludes/Spine-SkeletonGraphic-TintBlack-NormalPass.cginc @@ -0,0 +1,87 @@ +#ifndef SKELETON_GRAPHIC_TINTBLACK_NORMALPASS_INCLUDED +#define SKELETON_GRAPHIC_TINTBLACK_NORMALPASS_INCLUDED + +#include "UnityCG.cginc" +#include "UnityUI.cginc" +#include "../../CGIncludes/Spine-Common.cginc" + +#pragma multi_compile __ UNITY_UI_ALPHACLIP + +struct VertexInput { + float4 vertex : POSITION; + float4 color : COLOR; + float2 texcoord : TEXCOORD0; + float2 uv1 : TEXCOORD1; + float2 uv2 : TEXCOORD2; + UNITY_VERTEX_INPUT_INSTANCE_ID +}; + +struct VertexOutput { + float4 vertex : SV_POSITION; + half4 color : COLOR; + half2 texcoord : TEXCOORD0; + float4 darkColor : TEXCOORD1; + float4 worldPosition : TEXCOORD2; +#ifdef _CANVAS_GROUP_COMPATIBLE + float canvasAlpha : TEXCOORD3; +#endif + UNITY_VERTEX_OUTPUT_STEREO +}; + +half4 _Color; +half4 _Black; +half4 _TextureSampleAdd; +float4 _ClipRect; + +VertexOutput vert(VertexInput IN) { + VertexOutput OUT; + + UNITY_SETUP_INSTANCE_ID(IN); + UNITY_INITIALIZE_VERTEX_OUTPUT_STEREO(OUT); + + OUT.worldPosition = IN.vertex; + OUT.vertex = UnityObjectToClipPos(OUT.worldPosition); + OUT.texcoord = IN.texcoord; + + OUT.darkColor = float4(IN.uv1.r, IN.uv1.g, IN.uv2.r, IN.uv2.g); + +#ifdef _CANVAS_GROUP_COMPATIBLE + // CanvasGroup alpha multiplies existing vertex color alpha, but + // does not premultiply it to rgb components. This causes problems + // with additive blending (alpha = 0), which is why we store the + // alpha value in uv2.g (darkColor.a) and store 1.0 in vertex color alpha. + float originalAlpha = IN.uv2.g; + OUT.canvasAlpha = IN.color.a; +#else + float originalAlpha = IN.color.a; +#endif + + OUT.darkColor.rgb = GammaToTargetSpace(OUT.darkColor.rgb) + (_Black.rgb * originalAlpha); + + // Note: CanvasRenderer performs a GammaToTargetSpace conversion on vertex color already, + // however incorrectly assuming straight alpha color. + float4 vertexColor = PMAGammaToTargetSpace(half4(TargetToGammaSpace(IN.color.rgb), originalAlpha)); + + OUT.color = vertexColor * float4(_Color.rgb * _Color.a, _Color.a); + return OUT; +} + +sampler2D _MainTex; +#include "../../CGIncludes/Spine-Skeleton-Tint-Common.cginc" + +half4 frag(VertexOutput IN) : SV_Target +{ + half4 texColor = (tex2D(_MainTex, IN.texcoord) + _TextureSampleAdd); + texColor *= UnityGet2DClipping(IN.worldPosition.xy, _ClipRect); + #ifdef UNITY_UI_ALPHACLIP + clip(texColor.a - 0.001); + #endif + + float4 fragColor = fragTintedColor(texColor, IN.darkColor.rgb, IN.color, _Color.a, _Black.a); +#ifdef _CANVAS_GROUP_COMPATIBLE + fragColor.rgba *= IN.canvasAlpha; +#endif + return fragColor; +} + +#endif diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Include/Spine-Common-URP.hlsl.meta b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/SkeletonGraphic/CGIncludes/Spine-SkeletonGraphic-TintBlack-NormalPass.cginc.meta similarity index 72% rename from Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Include/Spine-Common-URP.hlsl.meta rename to Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/SkeletonGraphic/CGIncludes/Spine-SkeletonGraphic-TintBlack-NormalPass.cginc.meta index 283028317..3d6d90f28 100644 --- a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Include/Spine-Common-URP.hlsl.meta +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/SkeletonGraphic/CGIncludes/Spine-SkeletonGraphic-TintBlack-NormalPass.cginc.meta @@ -1,7 +1,7 @@ -fileFormatVersion: 2 -guid: c898d902be2aa254fac1da6de09f0a87 -ShaderIncludeImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: +fileFormatVersion: 2 +guid: 7d0e52884fd19064890c267e643d9183 +ShaderIncludeImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/SkeletonGraphic/Spine-SkeletonGraphic-Additive.shader b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/SkeletonGraphic/Spine-SkeletonGraphic-Additive.shader index e32474d87..6d0862f07 100644 --- a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/SkeletonGraphic/Spine-SkeletonGraphic-Additive.shader +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/SkeletonGraphic/Spine-SkeletonGraphic-Additive.shader @@ -21,7 +21,9 @@ Shader "Spine/SkeletonGraphic Additive" // Outline properties are drawn via custom editor. [HideInInspector] _OutlineWidth("Outline Width", Range(0,8)) = 3.0 + [HideInInspector][MaterialToggle(_USE_SCREENSPACE_OUTLINE_WIDTH)] _UseScreenSpaceOutlineWidth("Width in Screen Space", Float) = 0 [HideInInspector] _OutlineColor("Outline Color", Color) = (1,1,0,1) + [HideInInspector][MaterialToggle(_OUTLINE_FILL_INSIDE)]_Fill("Fill", Float) = 0 [HideInInspector] _OutlineReferenceTexWidth("Reference Texture Width", Int) = 1024 [HideInInspector] _ThresholdEnd("Outline Threshold", Range(0,1)) = 0.25 [HideInInspector] _OutlineSmoothness("Outline Smoothness", Range(0,1)) = 1.0 diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/SkeletonGraphic/Spine-SkeletonGraphic-Fill.shader b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/SkeletonGraphic/Spine-SkeletonGraphic-Fill.shader index 7b2074718..dbc3dc3a9 100644 --- a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/SkeletonGraphic/Spine-SkeletonGraphic-Fill.shader +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/SkeletonGraphic/Spine-SkeletonGraphic-Fill.shader @@ -19,60 +19,62 @@ Shader "Spine/SkeletonGraphic Fill" [Toggle(UNITY_UI_ALPHACLIP)] _UseUIAlphaClip("Use Alpha Clip", Float) = 0 - // Outline properties are drawn via custom editor. - [HideInInspector] _OutlineWidth("Outline Width", Range(0,8)) = 3.0 - [HideInInspector] _OutlineColor("Outline Color", Color) = (1,1,0,1) - [HideInInspector] _OutlineReferenceTexWidth("Reference Texture Width", Int) = 1024 - [HideInInspector] _ThresholdEnd("Outline Threshold", Range(0,1)) = 0.25 - [HideInInspector] _OutlineSmoothness("Outline Smoothness", Range(0,1)) = 1.0 - [HideInInspector][MaterialToggle(_USE8NEIGHBOURHOOD_ON)] _Use8Neighbourhood("Sample 8 Neighbours", Float) = 1 - [HideInInspector] _OutlineOpaqueAlpha("Opaque Alpha", Range(0,1)) = 1.0 - [HideInInspector] _OutlineMipLevel("Outline Mip Level", Range(0,3)) = 0 + // Outline properties are drawn via custom editor. + [HideInInspector] _OutlineWidth("Outline Width", Range(0,8)) = 3.0 + [HideInInspector][MaterialToggle(_USE_SCREENSPACE_OUTLINE_WIDTH)] _UseScreenSpaceOutlineWidth("Width in Screen Space", Float) = 0 + [HideInInspector] _OutlineColor("Outline Color", Color) = (1,1,0,1) + [HideInInspector][MaterialToggle(_OUTLINE_FILL_INSIDE)]_Fill("Fill", Float) = 0 + [HideInInspector] _OutlineReferenceTexWidth("Reference Texture Width", Int) = 1024 + [HideInInspector] _ThresholdEnd("Outline Threshold", Range(0,1)) = 0.25 + [HideInInspector] _OutlineSmoothness("Outline Smoothness", Range(0,1)) = 1.0 + [HideInInspector][MaterialToggle(_USE8NEIGHBOURHOOD_ON)] _Use8Neighbourhood("Sample 8 Neighbours", Float) = 1 + [HideInInspector] _OutlineOpaqueAlpha("Opaque Alpha", Range(0,1)) = 1.0 + [HideInInspector] _OutlineMipLevel("Outline Mip Level", Range(0,3)) = 0 } - SubShader + SubShader + { + Tags { - Tags - { - "Queue" = "Transparent" - "IgnoreProjector" = "True" - "RenderType" = "Transparent" - "PreviewType" = "Plane" - "CanUseSpriteAtlas" = "True" - } - - Stencil - { - Ref[_Stencil] - Comp[_StencilComp] - Pass[_StencilOp] - ReadMask[_StencilReadMask] - WriteMask[_StencilWriteMask] - } - - Cull Off - Lighting Off - ZWrite Off - ZTest[unity_GUIZTestMode] - Fog { Mode Off } - Blend One OneMinusSrcAlpha - ColorMask[_ColorMask] - - Pass - { - Name "Normal" - - CGPROGRAM - #pragma shader_feature _ _STRAIGHT_ALPHA_INPUT - #pragma shader_feature _ _CANVAS_GROUP_COMPATIBLE - #pragma vertex vert - #pragma fragment frag - #pragma target 2.0 - - #define ENABLE_FILL - #include "CGIncludes/Spine-SkeletonGraphic-NormalPass.cginc" - ENDCG - } + "Queue" = "Transparent" + "IgnoreProjector" = "True" + "RenderType" = "Transparent" + "PreviewType" = "Plane" + "CanUseSpriteAtlas" = "True" } - CustomEditor "SpineShaderWithOutlineGUI" + + Stencil + { + Ref[_Stencil] + Comp[_StencilComp] + Pass[_StencilOp] + ReadMask[_StencilReadMask] + WriteMask[_StencilWriteMask] + } + + Cull Off + Lighting Off + ZWrite Off + ZTest[unity_GUIZTestMode] + Fog { Mode Off } + Blend One OneMinusSrcAlpha + ColorMask[_ColorMask] + + Pass + { + Name "Normal" + + CGPROGRAM + #pragma shader_feature _ _STRAIGHT_ALPHA_INPUT + #pragma shader_feature _ _CANVAS_GROUP_COMPATIBLE + #pragma vertex vert + #pragma fragment frag + #pragma target 2.0 + + #define ENABLE_FILL + #include "CGIncludes/Spine-SkeletonGraphic-NormalPass.cginc" + ENDCG + } + } + CustomEditor "SpineShaderWithOutlineGUI" } diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/SkeletonGraphic/Spine-SkeletonGraphic-Grayscale.shader b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/SkeletonGraphic/Spine-SkeletonGraphic-Grayscale.shader new file mode 100644 index 000000000..6499e4f7c --- /dev/null +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/SkeletonGraphic/Spine-SkeletonGraphic-Grayscale.shader @@ -0,0 +1,78 @@ +Shader "Spine/SkeletonGraphic Grayscale" +{ + Properties + { + _GrayPhase("Phase", Range(0, 1)) = 1 + [PerRendererData] _MainTex("Sprite Texture", 2D) = "white" {} + [Toggle(_STRAIGHT_ALPHA_INPUT)] _StraightAlphaInput("Straight Alpha Texture", Int) = 0 + [Toggle(_CANVAS_GROUP_COMPATIBLE)] _CanvasGroupCompatible("CanvasGroup Compatible", Int) = 1 + + [HideInInspector][Enum(UnityEngine.Rendering.CompareFunction)] _StencilComp("Stencil Comparison", Float) = 8 + [HideInInspector] _Stencil("Stencil ID", Float) = 0 + [HideInInspector][Enum(UnityEngine.Rendering.StencilOp)] _StencilOp("Stencil Operation", Float) = 0 + [HideInInspector] _StencilWriteMask("Stencil Write Mask", Float) = 255 + [HideInInspector] _StencilReadMask("Stencil Read Mask", Float) = 255 + + [HideInInspector] _ColorMask("Color Mask", Float) = 15 + + [Toggle(UNITY_UI_ALPHACLIP)] _UseUIAlphaClip("Use Alpha Clip", Float) = 0 + + // Outline properties are drawn via custom editor. + [HideInInspector] _OutlineWidth("Outline Width", Range(0,8)) = 3.0 + [HideInInspector][MaterialToggle(_USE_SCREENSPACE_OUTLINE_WIDTH)] _UseScreenSpaceOutlineWidth("Width in Screen Space", Float) = 0 + [HideInInspector] _OutlineColor("Outline Color", Color) = (1,1,0,1) + [HideInInspector][MaterialToggle(_OUTLINE_FILL_INSIDE)]_Fill("Fill", Float) = 0 + [HideInInspector] _OutlineReferenceTexWidth("Reference Texture Width", Int) = 1024 + [HideInInspector] _ThresholdEnd("Outline Threshold", Range(0,1)) = 0.25 + [HideInInspector] _OutlineSmoothness("Outline Smoothness", Range(0,1)) = 1.0 + [HideInInspector][MaterialToggle(_USE8NEIGHBOURHOOD_ON)] _Use8Neighbourhood("Sample 8 Neighbours", Float) = 1 + [HideInInspector] _OutlineOpaqueAlpha("Opaque Alpha", Range(0,1)) = 1.0 + [HideInInspector] _OutlineMipLevel("Outline Mip Level", Range(0,3)) = 0 + } + + SubShader + { + Tags + { + "Queue" = "Transparent" + "IgnoreProjector" = "True" + "RenderType" = "Transparent" + "PreviewType" = "Plane" + "CanUseSpriteAtlas" = "True" + } + + Stencil + { + Ref[_Stencil] + Comp[_StencilComp] + Pass[_StencilOp] + ReadMask[_StencilReadMask] + WriteMask[_StencilWriteMask] + } + + Cull Off + Lighting Off + ZWrite Off + ZTest[unity_GUIZTestMode] + Fog { Mode Off } + Blend One OneMinusSrcAlpha + ColorMask[_ColorMask] + + Pass + { + Name "Normal" + + CGPROGRAM + #pragma shader_feature _ _STRAIGHT_ALPHA_INPUT + #pragma shader_feature _ _CANVAS_GROUP_COMPATIBLE + #pragma vertex vert + #pragma fragment frag + #pragma target 2.0 + + #define ENABLE_GRAYSCALE + #include "CGIncludes/Spine-SkeletonGraphic-NormalPass.cginc" + ENDCG + } + } + CustomEditor "SpineShaderWithOutlineGUI" +} diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/2D/Include/Spine-Sprite-NormalsPass-URP-2D.hlsl.meta b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/SkeletonGraphic/Spine-SkeletonGraphic-Grayscale.shader.meta similarity index 77% rename from Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/2D/Include/Spine-Sprite-NormalsPass-URP-2D.hlsl.meta rename to Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/SkeletonGraphic/Spine-SkeletonGraphic-Grayscale.shader.meta index 884f2fcb5..3b2751712 100644 --- a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/2D/Include/Spine-Sprite-NormalsPass-URP-2D.hlsl.meta +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/SkeletonGraphic/Spine-SkeletonGraphic-Grayscale.shader.meta @@ -1,9 +1,9 @@ -fileFormatVersion: 2 -guid: 9057c6890fc765846aa6561463305af9 -ShaderImporter: - externalObjects: {} - defaultTextures: [] - nonModifiableTextures: [] - userData: - assetBundleName: - assetBundleVariant: +fileFormatVersion: 2 +guid: 81eed00979b4e554cb3022dc0b83b517 +ShaderImporter: + externalObjects: {} + defaultTextures: [] + nonModifiableTextures: [] + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/SkeletonGraphic/Spine-SkeletonGraphic-Multiply.shader b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/SkeletonGraphic/Spine-SkeletonGraphic-Multiply.shader index 38136cc7b..5ebecc1ee 100644 --- a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/SkeletonGraphic/Spine-SkeletonGraphic-Multiply.shader +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/SkeletonGraphic/Spine-SkeletonGraphic-Multiply.shader @@ -21,7 +21,9 @@ Shader "Spine/SkeletonGraphic Multiply" // Outline properties are drawn via custom editor. [HideInInspector] _OutlineWidth("Outline Width", Range(0,8)) = 3.0 + [HideInInspector][MaterialToggle(_USE_SCREENSPACE_OUTLINE_WIDTH)] _UseScreenSpaceOutlineWidth("Width in Screen Space", Float) = 0 [HideInInspector] _OutlineColor("Outline Color", Color) = (1,1,0,1) + [HideInInspector][MaterialToggle(_OUTLINE_FILL_INSIDE)]_Fill("Fill", Float) = 0 [HideInInspector] _OutlineReferenceTexWidth("Reference Texture Width", Int) = 1024 [HideInInspector] _ThresholdEnd("Outline Threshold", Range(0,1)) = 0.25 [HideInInspector] _OutlineSmoothness("Outline Smoothness", Range(0,1)) = 1.0 diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/SkeletonGraphic/Spine-SkeletonGraphic-Screen.shader b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/SkeletonGraphic/Spine-SkeletonGraphic-Screen.shader index b5f8cf764..e7953b944 100644 --- a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/SkeletonGraphic/Spine-SkeletonGraphic-Screen.shader +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/SkeletonGraphic/Spine-SkeletonGraphic-Screen.shader @@ -21,7 +21,9 @@ Shader "Spine/SkeletonGraphic Screen" // Outline properties are drawn via custom editor. [HideInInspector] _OutlineWidth("Outline Width", Range(0,8)) = 3.0 + [HideInInspector][MaterialToggle(_USE_SCREENSPACE_OUTLINE_WIDTH)] _UseScreenSpaceOutlineWidth("Width in Screen Space", Float) = 0 [HideInInspector] _OutlineColor("Outline Color", Color) = (1,1,0,1) + [HideInInspector][MaterialToggle(_OUTLINE_FILL_INSIDE)]_Fill("Fill", Float) = 0 [HideInInspector] _OutlineReferenceTexWidth("Reference Texture Width", Int) = 1024 [HideInInspector] _ThresholdEnd("Outline Threshold", Range(0,1)) = 0.25 [HideInInspector] _OutlineSmoothness("Outline Smoothness", Range(0,1)) = 1.0 diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/SkeletonGraphic/Spine-SkeletonGraphic-TintBlack.shader b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/SkeletonGraphic/Spine-SkeletonGraphic-TintBlack.shader deleted file mode 100644 index fc9e1aa11..000000000 --- a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/SkeletonGraphic/Spine-SkeletonGraphic-TintBlack.shader +++ /dev/null @@ -1,159 +0,0 @@ -// This is a premultiply-alpha adaptation of the built-in Unity shader "UI/Default" to allow Unity UI stencil masking. - -Shader "Spine/SkeletonGraphic Tint Black" -{ - Properties - { - [PerRendererData] _MainTex ("Sprite Texture", 2D) = "white" {} - [Toggle(_STRAIGHT_ALPHA_INPUT)] _StraightAlphaInput("Straight Alpha Texture", Int) = 0 - [Toggle(_CANVAS_GROUP_COMPATIBLE)] _CanvasGroupCompatible("CanvasGroup Compatible", Int) = 1 - - _Color ("Tint Color", Color) = (1,1,1,1) - _Black ("Dark Color", Color) = (0,0,0,0) - [Toggle(_DARK_COLOR_ALPHA_ADDITIVE)] _DarkColorAlphaAdditive("Additive DarkColor.A", Int) = 0 - - [HideInInspector][Enum(UnityEngine.Rendering.CompareFunction)] _StencilComp ("Stencil Comparison", Float) = 8 - [HideInInspector] _Stencil ("Stencil ID", Float) = 0 - [HideInInspector][Enum(UnityEngine.Rendering.StencilOp)] _StencilOp ("Stencil Operation", Float) = 0 - [HideInInspector] _StencilWriteMask ("Stencil Write Mask", Float) = 255 - [HideInInspector] _StencilReadMask ("Stencil Read Mask", Float) = 255 - - [HideInInspector] _ColorMask ("Color Mask", Float) = 15 - - [Toggle(UNITY_UI_ALPHACLIP)] _UseUIAlphaClip ("Use Alpha Clip", Float) = 0 - - // Outline properties are drawn via custom editor. - [HideInInspector] _OutlineWidth("Outline Width", Range(0,8)) = 3.0 - [HideInInspector] _OutlineColor("Outline Color", Color) = (1,1,0,1) - [HideInInspector] _OutlineReferenceTexWidth("Reference Texture Width", Int) = 1024 - [HideInInspector] _ThresholdEnd("Outline Threshold", Range(0,1)) = 0.25 - [HideInInspector] _OutlineSmoothness("Outline Smoothness", Range(0,1)) = 1.0 - [HideInInspector][MaterialToggle(_USE8NEIGHBOURHOOD_ON)] _Use8Neighbourhood("Sample 8 Neighbours", Float) = 1 - [HideInInspector] _OutlineOpaqueAlpha("Opaque Alpha", Range(0,1)) = 1.0 - [HideInInspector] _OutlineMipLevel("Outline Mip Level", Range(0,3)) = 0 - } - - SubShader - { - Tags - { - "Queue"="Transparent" - "IgnoreProjector"="True" - "RenderType"="Transparent" - "PreviewType"="Plane" - "CanUseSpriteAtlas"="True" - } - - Stencil - { - Ref [_Stencil] - Comp [_StencilComp] - Pass [_StencilOp] - ReadMask [_StencilReadMask] - WriteMask [_StencilWriteMask] - } - - Cull Off - Lighting Off - ZWrite Off - ZTest [unity_GUIZTestMode] - Fog { Mode Off } - Blend One OneMinusSrcAlpha - ColorMask [_ColorMask] - - Pass - { - Name "Normal" - - CGPROGRAM - #pragma shader_feature _ _STRAIGHT_ALPHA_INPUT - #pragma shader_feature _ _CANVAS_GROUP_COMPATIBLE - #pragma shader_feature _ _DARK_COLOR_ALPHA_ADDITIVE - #pragma vertex vert - #pragma fragment frag - - #include "UnityCG.cginc" - #include "UnityUI.cginc" - #include "../CGIncludes/Spine-Common.cginc" - - #pragma multi_compile __ UNITY_UI_ALPHACLIP - - struct VertexInput { - float4 vertex : POSITION; - float4 color : COLOR; - float2 texcoord : TEXCOORD0; - float2 uv1 : TEXCOORD1; - float2 uv2 : TEXCOORD2; - UNITY_VERTEX_INPUT_INSTANCE_ID - }; - - struct VertexOutput { - float4 vertex : SV_POSITION; - half4 color : COLOR; - half2 texcoord : TEXCOORD0; - float4 darkColor : TEXCOORD1; - float4 worldPosition : TEXCOORD2; - #ifdef _CANVAS_GROUP_COMPATIBLE - float canvasAlpha : TEXCOORD3; - #endif - UNITY_VERTEX_OUTPUT_STEREO - }; - - half4 _Color; - half4 _Black; - half4 _TextureSampleAdd; - float4 _ClipRect; - - VertexOutput vert (VertexInput IN) { - VertexOutput OUT; - - UNITY_SETUP_INSTANCE_ID(IN); - UNITY_INITIALIZE_VERTEX_OUTPUT_STEREO(OUT); - - OUT.worldPosition = IN.vertex; - OUT.vertex = UnityObjectToClipPos(OUT.worldPosition); - OUT.texcoord = IN.texcoord; - - OUT.darkColor = float4(IN.uv1.r, IN.uv1.g, IN.uv2.r, IN.uv2.g); - OUT.darkColor.rgb = GammaToTargetSpace(OUT.darkColor.rgb) + _Black.rgb; - - #ifdef _CANVAS_GROUP_COMPATIBLE - // CanvasGroup alpha multiplies existing vertex color alpha, but - // does not premultiply it to rgb components. This causes problems - // with additive blending (alpha = 0), which is why we store the - // alpha value in uv2.g (darkColor.a). - float originalAlpha = OUT.darkColor.a; - OUT.canvasAlpha = (originalAlpha == 0) ? IN.color.a : IN.color.a / originalAlpha; - #else - float originalAlpha = IN.color.a; - #endif - // Note: CanvasRenderer performs a GammaToTargetSpace conversion on vertex color already, - // however incorrectly assuming straight alpha color. - float4 vertexColor = PMAGammaToTargetSpace(half4(TargetToGammaSpace(IN.color.rgb), originalAlpha)); - - OUT.color = vertexColor * float4(_Color.rgb * _Color.a, _Color.a); - return OUT; - } - - sampler2D _MainTex; - #include "../CGIncludes/Spine-Skeleton-Tint-Common.cginc" - - half4 frag(VertexOutput IN) : SV_Target - { - half4 texColor = (tex2D(_MainTex, IN.texcoord) + _TextureSampleAdd); - texColor *= UnityGet2DClipping(IN.worldPosition.xy, _ClipRect); - #ifdef UNITY_UI_ALPHACLIP - clip(texColor.a - 0.001); - #endif - - float4 fragColor = fragTintedColor(texColor, IN.darkColor.rgb, IN.color, _Color.a, _Black.a); - #ifdef _CANVAS_GROUP_COMPATIBLE - fragColor.rgba *= IN.canvasAlpha; - #endif - return fragColor; - } - ENDCG - } - } - CustomEditor "SpineShaderWithOutlineGUI" -} diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/SkeletonGraphic/Spine-SkeletonGraphic.shader b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/SkeletonGraphic/Spine-SkeletonGraphic.shader index 77ab6e01c..0932e5e34 100644 --- a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/SkeletonGraphic/Spine-SkeletonGraphic.shader +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/SkeletonGraphic/Spine-SkeletonGraphic.shader @@ -21,7 +21,9 @@ Shader "Spine/SkeletonGraphic" // Outline properties are drawn via custom editor. [HideInInspector] _OutlineWidth("Outline Width", Range(0,8)) = 3.0 + [HideInInspector][MaterialToggle(_USE_SCREENSPACE_OUTLINE_WIDTH)] _UseScreenSpaceOutlineWidth("Width in Screen Space", Float) = 0 [HideInInspector] _OutlineColor("Outline Color", Color) = (1,1,0,1) + [HideInInspector][MaterialToggle(_OUTLINE_FILL_INSIDE)]_Fill("Fill", Float) = 0 [HideInInspector] _OutlineReferenceTexWidth("Reference Texture Width", Int) = 1024 [HideInInspector] _ThresholdEnd("Outline Threshold", Range(0,1)) = 0.25 [HideInInspector] _OutlineSmoothness("Outline Smoothness", Range(0,1)) = 1.0 diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/SkeletonGraphic/TintBlack.meta b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/SkeletonGraphic/TintBlack.meta new file mode 100644 index 000000000..e80ec3930 --- /dev/null +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/SkeletonGraphic/TintBlack.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 4a944606d0bb98744abd9924dae46479 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/SkeletonGraphic/TintBlack/Spine-SkeletonGraphic-TintBlack-Additive.shader b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/SkeletonGraphic/TintBlack/Spine-SkeletonGraphic-TintBlack-Additive.shader new file mode 100644 index 000000000..b569b7663 --- /dev/null +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/SkeletonGraphic/TintBlack/Spine-SkeletonGraphic-TintBlack-Additive.shader @@ -0,0 +1,80 @@ +Shader "Spine/SkeletonGraphic Tint Black Additive" +{ + Properties + { + [PerRendererData] _MainTex ("Sprite Texture", 2D) = "white" {} + [Toggle(_STRAIGHT_ALPHA_INPUT)] _StraightAlphaInput("Straight Alpha Texture", Int) = 0 + [Toggle(_CANVAS_GROUP_COMPATIBLE)] _CanvasGroupCompatible("CanvasGroup Compatible", Int) = 1 + + _Color ("Tint Color", Color) = (1,1,1,1) + _Black ("Dark Color", Color) = (0,0,0,0) + [Toggle(_DARK_COLOR_ALPHA_ADDITIVE)] _DarkColorAlphaAdditive("Additive DarkColor.A", Int) = 0 + + [HideInInspector][Enum(UnityEngine.Rendering.CompareFunction)] _StencilComp ("Stencil Comparison", Float) = 8 + [HideInInspector] _Stencil ("Stencil ID", Float) = 0 + [HideInInspector][Enum(UnityEngine.Rendering.StencilOp)] _StencilOp ("Stencil Operation", Float) = 0 + [HideInInspector] _StencilWriteMask ("Stencil Write Mask", Float) = 255 + [HideInInspector] _StencilReadMask ("Stencil Read Mask", Float) = 255 + + [HideInInspector] _ColorMask ("Color Mask", Float) = 15 + + [Toggle(UNITY_UI_ALPHACLIP)] _UseUIAlphaClip ("Use Alpha Clip", Float) = 0 + + // Outline properties are drawn via custom editor. + [HideInInspector] _OutlineWidth("Outline Width", Range(0,8)) = 3.0 + [HideInInspector][MaterialToggle(_USE_SCREENSPACE_OUTLINE_WIDTH)] _UseScreenSpaceOutlineWidth("Width in Screen Space", Float) = 0 + [HideInInspector] _OutlineColor("Outline Color", Color) = (1,1,0,1) + [HideInInspector][MaterialToggle(_OUTLINE_FILL_INSIDE)]_Fill("Fill", Float) = 0 + [HideInInspector] _OutlineReferenceTexWidth("Reference Texture Width", Int) = 1024 + [HideInInspector] _ThresholdEnd("Outline Threshold", Range(0,1)) = 0.25 + [HideInInspector] _OutlineSmoothness("Outline Smoothness", Range(0,1)) = 1.0 + [HideInInspector][MaterialToggle(_USE8NEIGHBOURHOOD_ON)] _Use8Neighbourhood("Sample 8 Neighbours", Float) = 1 + [HideInInspector] _OutlineOpaqueAlpha("Opaque Alpha", Range(0,1)) = 1.0 + [HideInInspector] _OutlineMipLevel("Outline Mip Level", Range(0,3)) = 0 + } + + SubShader + { + Tags + { + "Queue"="Transparent" + "IgnoreProjector"="True" + "RenderType"="Transparent" + "PreviewType"="Plane" + "CanUseSpriteAtlas"="True" + } + + Stencil + { + Ref [_Stencil] + Comp [_StencilComp] + Pass [_StencilOp] + ReadMask [_StencilReadMask] + WriteMask [_StencilWriteMask] + } + + Cull Off + Lighting Off + ZWrite Off + ZTest [unity_GUIZTestMode] + Fog { Mode Off } + Blend One One + ColorMask [_ColorMask] + + Pass + { + Name "Normal" + + CGPROGRAM + #pragma shader_feature _ _STRAIGHT_ALPHA_INPUT + #pragma shader_feature _ _CANVAS_GROUP_COMPATIBLE + #pragma shader_feature _ _DARK_COLOR_ALPHA_ADDITIVE + #pragma vertex vert + #pragma fragment frag + + #include "../CGIncludes/Spine-SkeletonGraphic-TintBlack-NormalPass.cginc" + ENDCG + } + } + CustomEditor "SpineShaderWithOutlineGUI" +} diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/2D/Include/Spine-Sprite-StandardPass-URP-2D.hlsl.meta b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/SkeletonGraphic/TintBlack/Spine-SkeletonGraphic-TintBlack-Additive.shader.meta similarity index 77% rename from Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/2D/Include/Spine-Sprite-StandardPass-URP-2D.hlsl.meta rename to Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/SkeletonGraphic/TintBlack/Spine-SkeletonGraphic-TintBlack-Additive.shader.meta index 5785adb6e..eeb3875c0 100644 --- a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/2D/Include/Spine-Sprite-StandardPass-URP-2D.hlsl.meta +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/SkeletonGraphic/TintBlack/Spine-SkeletonGraphic-TintBlack-Additive.shader.meta @@ -1,9 +1,9 @@ -fileFormatVersion: 2 -guid: 9f1eb74802463764986790ef549c5bbe -ShaderImporter: - externalObjects: {} - defaultTextures: [] - nonModifiableTextures: [] - userData: - assetBundleName: - assetBundleVariant: +fileFormatVersion: 2 +guid: 1d081289ec7074140a6b96982be27e02 +ShaderImporter: + externalObjects: {} + defaultTextures: [] + nonModifiableTextures: [] + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/SkeletonGraphic/TintBlack/Spine-SkeletonGraphic-TintBlack-Multiply.shader b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/SkeletonGraphic/TintBlack/Spine-SkeletonGraphic-TintBlack-Multiply.shader new file mode 100644 index 000000000..a5285776b --- /dev/null +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/SkeletonGraphic/TintBlack/Spine-SkeletonGraphic-TintBlack-Multiply.shader @@ -0,0 +1,80 @@ +Shader "Spine/SkeletonGraphic Tint Black Multiply" +{ + Properties + { + [PerRendererData] _MainTex ("Sprite Texture", 2D) = "white" {} + [Toggle(_STRAIGHT_ALPHA_INPUT)] _StraightAlphaInput("Straight Alpha Texture", Int) = 0 + [Toggle(_CANVAS_GROUP_COMPATIBLE)] _CanvasGroupCompatible("CanvasGroup Compatible", Int) = 1 + + _Color ("Tint Color", Color) = (1,1,1,1) + _Black ("Dark Color", Color) = (0,0,0,0) + [Toggle(_DARK_COLOR_ALPHA_ADDITIVE)] _DarkColorAlphaAdditive("Additive DarkColor.A", Int) = 0 + + [HideInInspector][Enum(UnityEngine.Rendering.CompareFunction)] _StencilComp ("Stencil Comparison", Float) = 8 + [HideInInspector] _Stencil ("Stencil ID", Float) = 0 + [HideInInspector][Enum(UnityEngine.Rendering.StencilOp)] _StencilOp ("Stencil Operation", Float) = 0 + [HideInInspector] _StencilWriteMask ("Stencil Write Mask", Float) = 255 + [HideInInspector] _StencilReadMask ("Stencil Read Mask", Float) = 255 + + [HideInInspector] _ColorMask ("Color Mask", Float) = 15 + + [Toggle(UNITY_UI_ALPHACLIP)] _UseUIAlphaClip ("Use Alpha Clip", Float) = 0 + + // Outline properties are drawn via custom editor. + [HideInInspector] _OutlineWidth("Outline Width", Range(0,8)) = 3.0 + [HideInInspector][MaterialToggle(_USE_SCREENSPACE_OUTLINE_WIDTH)] _UseScreenSpaceOutlineWidth("Width in Screen Space", Float) = 0 + [HideInInspector] _OutlineColor("Outline Color", Color) = (1,1,0,1) + [HideInInspector][MaterialToggle(_OUTLINE_FILL_INSIDE)]_Fill("Fill", Float) = 0 + [HideInInspector] _OutlineReferenceTexWidth("Reference Texture Width", Int) = 1024 + [HideInInspector] _ThresholdEnd("Outline Threshold", Range(0,1)) = 0.25 + [HideInInspector] _OutlineSmoothness("Outline Smoothness", Range(0,1)) = 1.0 + [HideInInspector][MaterialToggle(_USE8NEIGHBOURHOOD_ON)] _Use8Neighbourhood("Sample 8 Neighbours", Float) = 1 + [HideInInspector] _OutlineOpaqueAlpha("Opaque Alpha", Range(0,1)) = 1.0 + [HideInInspector] _OutlineMipLevel("Outline Mip Level", Range(0,3)) = 0 + } + + SubShader + { + Tags + { + "Queue"="Transparent" + "IgnoreProjector"="True" + "RenderType"="Transparent" + "PreviewType"="Plane" + "CanUseSpriteAtlas"="True" + } + + Stencil + { + Ref [_Stencil] + Comp [_StencilComp] + Pass [_StencilOp] + ReadMask [_StencilReadMask] + WriteMask [_StencilWriteMask] + } + + Cull Off + Lighting Off + ZWrite Off + ZTest [unity_GUIZTestMode] + Fog { Mode Off } + Blend DstColor OneMinusSrcAlpha + ColorMask [_ColorMask] + + Pass + { + Name "Normal" + + CGPROGRAM + #pragma shader_feature _ _STRAIGHT_ALPHA_INPUT + #pragma shader_feature _ _CANVAS_GROUP_COMPATIBLE + #pragma shader_feature _ _DARK_COLOR_ALPHA_ADDITIVE + #pragma vertex vert + #pragma fragment frag + + #include "../CGIncludes/Spine-SkeletonGraphic-TintBlack-NormalPass.cginc" + ENDCG + } + } + CustomEditor "SpineShaderWithOutlineGUI" +} diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/2D/Spine-Skeleton-URP-2D.shader.meta b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/SkeletonGraphic/TintBlack/Spine-SkeletonGraphic-TintBlack-Multiply.shader.meta similarity index 77% rename from Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/2D/Spine-Skeleton-URP-2D.shader.meta rename to Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/SkeletonGraphic/TintBlack/Spine-SkeletonGraphic-TintBlack-Multiply.shader.meta index db59c5515..a9830a690 100644 --- a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/2D/Spine-Skeleton-URP-2D.shader.meta +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/SkeletonGraphic/TintBlack/Spine-SkeletonGraphic-TintBlack-Multiply.shader.meta @@ -1,9 +1,9 @@ -fileFormatVersion: 2 -guid: 3bb7ed9d223c7d749bc42dad56e4ad0f -ShaderImporter: - externalObjects: {} - defaultTextures: [] - nonModifiableTextures: [] - userData: - assetBundleName: - assetBundleVariant: +fileFormatVersion: 2 +guid: d006d50db496cce459741dc6689e2662 +ShaderImporter: + externalObjects: {} + defaultTextures: [] + nonModifiableTextures: [] + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/SkeletonGraphic/TintBlack/Spine-SkeletonGraphic-TintBlack-Screen.shader b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/SkeletonGraphic/TintBlack/Spine-SkeletonGraphic-TintBlack-Screen.shader new file mode 100644 index 000000000..56e0ed5a0 --- /dev/null +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/SkeletonGraphic/TintBlack/Spine-SkeletonGraphic-TintBlack-Screen.shader @@ -0,0 +1,80 @@ +Shader "Spine/SkeletonGraphic Tint Black Screen" +{ + Properties + { + [PerRendererData] _MainTex ("Sprite Texture", 2D) = "white" {} + [Toggle(_STRAIGHT_ALPHA_INPUT)] _StraightAlphaInput("Straight Alpha Texture", Int) = 0 + [Toggle(_CANVAS_GROUP_COMPATIBLE)] _CanvasGroupCompatible("CanvasGroup Compatible", Int) = 1 + + _Color ("Tint Color", Color) = (1,1,1,1) + _Black ("Dark Color", Color) = (0,0,0,0) + [Toggle(_DARK_COLOR_ALPHA_ADDITIVE)] _DarkColorAlphaAdditive("Additive DarkColor.A", Int) = 0 + + [HideInInspector][Enum(UnityEngine.Rendering.CompareFunction)] _StencilComp ("Stencil Comparison", Float) = 8 + [HideInInspector] _Stencil ("Stencil ID", Float) = 0 + [HideInInspector][Enum(UnityEngine.Rendering.StencilOp)] _StencilOp ("Stencil Operation", Float) = 0 + [HideInInspector] _StencilWriteMask ("Stencil Write Mask", Float) = 255 + [HideInInspector] _StencilReadMask ("Stencil Read Mask", Float) = 255 + + [HideInInspector] _ColorMask ("Color Mask", Float) = 15 + + [Toggle(UNITY_UI_ALPHACLIP)] _UseUIAlphaClip ("Use Alpha Clip", Float) = 0 + + // Outline properties are drawn via custom editor. + [HideInInspector] _OutlineWidth("Outline Width", Range(0,8)) = 3.0 + [HideInInspector][MaterialToggle(_USE_SCREENSPACE_OUTLINE_WIDTH)] _UseScreenSpaceOutlineWidth("Width in Screen Space", Float) = 0 + [HideInInspector] _OutlineColor("Outline Color", Color) = (1,1,0,1) + [HideInInspector][MaterialToggle(_OUTLINE_FILL_INSIDE)]_Fill("Fill", Float) = 0 + [HideInInspector] _OutlineReferenceTexWidth("Reference Texture Width", Int) = 1024 + [HideInInspector] _ThresholdEnd("Outline Threshold", Range(0,1)) = 0.25 + [HideInInspector] _OutlineSmoothness("Outline Smoothness", Range(0,1)) = 1.0 + [HideInInspector][MaterialToggle(_USE8NEIGHBOURHOOD_ON)] _Use8Neighbourhood("Sample 8 Neighbours", Float) = 1 + [HideInInspector] _OutlineOpaqueAlpha("Opaque Alpha", Range(0,1)) = 1.0 + [HideInInspector] _OutlineMipLevel("Outline Mip Level", Range(0,3)) = 0 + } + + SubShader + { + Tags + { + "Queue"="Transparent" + "IgnoreProjector"="True" + "RenderType"="Transparent" + "PreviewType"="Plane" + "CanUseSpriteAtlas"="True" + } + + Stencil + { + Ref [_Stencil] + Comp [_StencilComp] + Pass [_StencilOp] + ReadMask [_StencilReadMask] + WriteMask [_StencilWriteMask] + } + + Cull Off + Lighting Off + ZWrite Off + ZTest [unity_GUIZTestMode] + Fog { Mode Off } + Blend One OneMinusSrcColor + ColorMask [_ColorMask] + + Pass + { + Name "Normal" + + CGPROGRAM + #pragma shader_feature _ _STRAIGHT_ALPHA_INPUT + #pragma shader_feature _ _CANVAS_GROUP_COMPATIBLE + #pragma shader_feature _ _DARK_COLOR_ALPHA_ADDITIVE + #pragma vertex vert + #pragma fragment frag + + #include "../CGIncludes/Spine-SkeletonGraphic-TintBlack-NormalPass.cginc" + ENDCG + } + } + CustomEditor "SpineShaderWithOutlineGUI" +} diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/2D/Spine-SkeletonLit-URP-2D.shader.meta b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/SkeletonGraphic/TintBlack/Spine-SkeletonGraphic-TintBlack-Screen.shader.meta similarity index 77% rename from Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/2D/Spine-SkeletonLit-URP-2D.shader.meta rename to Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/SkeletonGraphic/TintBlack/Spine-SkeletonGraphic-TintBlack-Screen.shader.meta index 21064ae07..e1c4ac227 100644 --- a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/2D/Spine-SkeletonLit-URP-2D.shader.meta +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/SkeletonGraphic/TintBlack/Spine-SkeletonGraphic-TintBlack-Screen.shader.meta @@ -1,9 +1,9 @@ -fileFormatVersion: 2 -guid: 7549820bdb4e84b4bb099fb30af6e6b4 -ShaderImporter: - externalObjects: {} - defaultTextures: [] - nonModifiableTextures: [] - userData: - assetBundleName: - assetBundleVariant: +fileFormatVersion: 2 +guid: 7cb5b7d45d2ae2847970ba2e30fdc597 +ShaderImporter: + externalObjects: {} + defaultTextures: [] + nonModifiableTextures: [] + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/SkeletonGraphic/TintBlack/Spine-SkeletonGraphic-TintBlack.shader b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/SkeletonGraphic/TintBlack/Spine-SkeletonGraphic-TintBlack.shader new file mode 100644 index 000000000..678ac9a38 --- /dev/null +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/SkeletonGraphic/TintBlack/Spine-SkeletonGraphic-TintBlack.shader @@ -0,0 +1,80 @@ +Shader "Spine/SkeletonGraphic Tint Black" +{ + Properties + { + [PerRendererData] _MainTex ("Sprite Texture", 2D) = "white" {} + [Toggle(_STRAIGHT_ALPHA_INPUT)] _StraightAlphaInput("Straight Alpha Texture", Int) = 0 + [Toggle(_CANVAS_GROUP_COMPATIBLE)] _CanvasGroupCompatible("CanvasGroup Compatible", Int) = 1 + + _Color ("Tint Color", Color) = (1,1,1,1) + _Black ("Dark Color", Color) = (0,0,0,0) + [Toggle(_DARK_COLOR_ALPHA_ADDITIVE)] _DarkColorAlphaAdditive("Additive DarkColor.A", Int) = 0 + + [HideInInspector][Enum(UnityEngine.Rendering.CompareFunction)] _StencilComp ("Stencil Comparison", Float) = 8 + [HideInInspector] _Stencil ("Stencil ID", Float) = 0 + [HideInInspector][Enum(UnityEngine.Rendering.StencilOp)] _StencilOp ("Stencil Operation", Float) = 0 + [HideInInspector] _StencilWriteMask ("Stencil Write Mask", Float) = 255 + [HideInInspector] _StencilReadMask ("Stencil Read Mask", Float) = 255 + + [HideInInspector] _ColorMask ("Color Mask", Float) = 15 + + [Toggle(UNITY_UI_ALPHACLIP)] _UseUIAlphaClip ("Use Alpha Clip", Float) = 0 + + // Outline properties are drawn via custom editor. + [HideInInspector] _OutlineWidth("Outline Width", Range(0,8)) = 3.0 + [HideInInspector][MaterialToggle(_USE_SCREENSPACE_OUTLINE_WIDTH)] _UseScreenSpaceOutlineWidth("Width in Screen Space", Float) = 0 + [HideInInspector] _OutlineColor("Outline Color", Color) = (1,1,0,1) + [HideInInspector][MaterialToggle(_OUTLINE_FILL_INSIDE)]_Fill("Fill", Float) = 0 + [HideInInspector] _OutlineReferenceTexWidth("Reference Texture Width", Int) = 1024 + [HideInInspector] _ThresholdEnd("Outline Threshold", Range(0,1)) = 0.25 + [HideInInspector] _OutlineSmoothness("Outline Smoothness", Range(0,1)) = 1.0 + [HideInInspector][MaterialToggle(_USE8NEIGHBOURHOOD_ON)] _Use8Neighbourhood("Sample 8 Neighbours", Float) = 1 + [HideInInspector] _OutlineOpaqueAlpha("Opaque Alpha", Range(0,1)) = 1.0 + [HideInInspector] _OutlineMipLevel("Outline Mip Level", Range(0,3)) = 0 + } + + SubShader + { + Tags + { + "Queue"="Transparent" + "IgnoreProjector"="True" + "RenderType"="Transparent" + "PreviewType"="Plane" + "CanUseSpriteAtlas"="True" + } + + Stencil + { + Ref [_Stencil] + Comp [_StencilComp] + Pass [_StencilOp] + ReadMask [_StencilReadMask] + WriteMask [_StencilWriteMask] + } + + Cull Off + Lighting Off + ZWrite Off + ZTest [unity_GUIZTestMode] + Fog { Mode Off } + Blend One OneMinusSrcAlpha + ColorMask [_ColorMask] + + Pass + { + Name "Normal" + + CGPROGRAM + #pragma shader_feature _ _STRAIGHT_ALPHA_INPUT + #pragma shader_feature _ _CANVAS_GROUP_COMPATIBLE + #pragma shader_feature _ _DARK_COLOR_ALPHA_ADDITIVE + #pragma vertex vert + #pragma fragment frag + + #include "../CGIncludes/Spine-SkeletonGraphic-TintBlack-NormalPass.cginc" + ENDCG + } + } + CustomEditor "SpineShaderWithOutlineGUI" +} diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/SkeletonGraphic/Spine-SkeletonGraphic-TintBlack.shader.meta b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/SkeletonGraphic/TintBlack/Spine-SkeletonGraphic-TintBlack.shader.meta similarity index 100% rename from Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/SkeletonGraphic/Spine-SkeletonGraphic-TintBlack.shader.meta rename to Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/SkeletonGraphic/TintBlack/Spine-SkeletonGraphic-TintBlack.shader.meta diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Spine-Skeleton-Fill.shader b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Spine-Skeleton-Fill.shader index 49689fdd1..af7ba9c49 100644 --- a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Spine-Skeleton-Fill.shader +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Spine-Skeleton-Fill.shader @@ -14,7 +14,9 @@ Shader "Spine/Skeleton Fill" { // Outline properties are drawn via custom editor. [HideInInspector] _OutlineWidth("Outline Width", Range(0,8)) = 3.0 + [HideInInspector][MaterialToggle(_USE_SCREENSPACE_OUTLINE_WIDTH)] _UseScreenSpaceOutlineWidth("Width in Screen Space", Float) = 0 [HideInInspector] _OutlineColor("Outline Color", Color) = (1,1,0,1) + [HideInInspector][MaterialToggle(_OUTLINE_FILL_INSIDE)]_Fill("Fill", Float) = 0 [HideInInspector] _OutlineReferenceTexWidth("Reference Texture Width", Int) = 1024 [HideInInspector] _ThresholdEnd("Outline Threshold", Range(0,1)) = 0.25 [HideInInspector] _OutlineSmoothness("Outline Smoothness", Range(0,1)) = 1.0 diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Spine-Skeleton-Lit-ZWrite.shader b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Spine-Skeleton-Lit-ZWrite.shader index fa3b6160f..2f33d2f2a 100644 --- a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Spine-Skeleton-Lit-ZWrite.shader +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Spine-Skeleton-Lit-ZWrite.shader @@ -15,7 +15,9 @@ Shader "Spine/Skeleton Lit ZWrite" { // Outline properties are drawn via custom editor. [HideInInspector] _OutlineWidth("Outline Width", Range(0,8)) = 3.0 + [HideInInspector][MaterialToggle(_USE_SCREENSPACE_OUTLINE_WIDTH)] _UseScreenSpaceOutlineWidth("Width in Screen Space", Float) = 0 [HideInInspector] _OutlineColor("Outline Color", Color) = (1,1,0,1) + [HideInInspector][MaterialToggle(_OUTLINE_FILL_INSIDE)]_Fill("Fill", Float) = 0 [HideInInspector] _OutlineReferenceTexWidth("Reference Texture Width", Int) = 1024 [HideInInspector] _ThresholdEnd("Outline Threshold", Range(0,1)) = 0.25 [HideInInspector] _OutlineSmoothness("Outline Smoothness", Range(0,1)) = 1.0 diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Spine-Skeleton-Lit.shader b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Spine-Skeleton-Lit.shader index 98d0594ee..f01806f93 100644 --- a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Spine-Skeleton-Lit.shader +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Spine-Skeleton-Lit.shader @@ -14,7 +14,9 @@ Shader "Spine/Skeleton Lit" { // Outline properties are drawn via custom editor. [HideInInspector] _OutlineWidth("Outline Width", Range(0,8)) = 3.0 + [HideInInspector][MaterialToggle(_USE_SCREENSPACE_OUTLINE_WIDTH)] _UseScreenSpaceOutlineWidth("Width in Screen Space", Float) = 0 [HideInInspector] _OutlineColor("Outline Color", Color) = (1,1,0,1) + [HideInInspector][MaterialToggle(_OUTLINE_FILL_INSIDE)]_Fill("Fill", Float) = 0 [HideInInspector] _OutlineReferenceTexWidth("Reference Texture Width", Int) = 1024 [HideInInspector] _ThresholdEnd("Outline Threshold", Range(0,1)) = 0.25 [HideInInspector] _OutlineSmoothness("Outline Smoothness", Range(0,1)) = 1.0 diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Spine-Skeleton-Tint.shader b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Spine-Skeleton-Tint.shader index 56137fe95..424dcf6da 100644 --- a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Spine-Skeleton-Tint.shader +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Spine-Skeleton-Tint.shader @@ -17,7 +17,9 @@ Shader "Spine/Skeleton Tint" { // Outline properties are drawn via custom editor. [HideInInspector] _OutlineWidth("Outline Width", Range(0,8)) = 3.0 + [HideInInspector][MaterialToggle(_USE_SCREENSPACE_OUTLINE_WIDTH)] _UseScreenSpaceOutlineWidth("Width in Screen Space", Float) = 0 [HideInInspector] _OutlineColor("Outline Color", Color) = (1,1,0,1) + [HideInInspector][MaterialToggle(_OUTLINE_FILL_INSIDE)]_Fill("Fill", Float) = 0 [HideInInspector] _OutlineReferenceTexWidth("Reference Texture Width", Int) = 1024 [HideInInspector] _ThresholdEnd("Outline Threshold", Range(0,1)) = 0.25 [HideInInspector] _OutlineSmoothness("Outline Smoothness", Range(0,1)) = 1.0 @@ -79,7 +81,7 @@ Shader "Spine/Skeleton Tint" { float4 frag (VertexOutput i) : SV_Target { float4 texColor = tex2D(_MainTex, i.uv); - return fragTintedColor(texColor, _Black.rgb, i.vertexColor, _Color.a, _Black.a); + return fragTintedColor(texColor, _Black.rgb * i.vertexColor.a, i.vertexColor, _Color.a, _Black.a); } ENDCG } diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Spine-Skeleton-TintBlack.shader b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Spine-Skeleton-TintBlack.shader index ce1a69f00..32883491c 100644 --- a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Spine-Skeleton-TintBlack.shader +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Spine-Skeleton-TintBlack.shader @@ -19,7 +19,9 @@ Shader "Spine/Skeleton Tint Black" { // Outline properties are drawn via custom editor. [HideInInspector] _OutlineWidth("Outline Width", Range(0,8)) = 3.0 + [HideInInspector][MaterialToggle(_USE_SCREENSPACE_OUTLINE_WIDTH)] _UseScreenSpaceOutlineWidth("Width in Screen Space", Float) = 0 [HideInInspector] _OutlineColor("Outline Color", Color) = (1,1,0,1) + [HideInInspector][MaterialToggle(_OUTLINE_FILL_INSIDE)]_Fill("Fill", Float) = 0 [HideInInspector] _OutlineReferenceTexWidth("Reference Texture Width", Int) = 1024 [HideInInspector] _ThresholdEnd("Outline Threshold", Range(0,1)) = 0.25 [HideInInspector] _OutlineSmoothness("Outline Smoothness", Range(0,1)) = 1.0 @@ -78,7 +80,8 @@ Shader "Spine/Skeleton Tint Black" { o.pos = UnityObjectToClipPos(v.vertex); // Upgrade NOTE: replaced 'mul(UNITY_MATRIX_MVP,*)' with 'UnityObjectToClipPos(*)' o.uv = v.uv; o.vertexColor = PMAGammaToTargetSpace(v.vertexColor) * float4(_Color.rgb * _Color.a, _Color.a); // Combine a PMA version of _Color with vertexColor. - o.darkColor = GammaToTargetSpace(float3(v.uv1.r, v.uv1.g, v.uv2.r)) + _Black.rgb; + o.darkColor = GammaToTargetSpace(float3(v.uv1.r, v.uv1.g, v.uv2.r)) + + (_Black.rgb * v.vertexColor.a); return o; } diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Spine-Skeleton-URP.shader b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Spine-Skeleton-URP.shader deleted file mode 100644 index 6ed12b47f..000000000 --- a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Spine-Skeleton-URP.shader +++ /dev/null @@ -1,143 +0,0 @@ -Shader "Universal Render Pipeline/Spine/Skeleton" { - Properties { - _Cutoff("Shadow alpha cutoff", Range(0,1)) = 0.1 - [NoScaleOffset] _MainTex("Main Texture", 2D) = "black" {} - [Toggle(_STRAIGHT_ALPHA_INPUT)] _StraightAlphaInput("Straight Alpha Texture", Int) = 0 - [Toggle(_ZWRITE)] _ZWrite("Depth Write", Float) = 0.0 - [MaterialToggle(_TINT_BLACK_ON)] _TintBlack("Tint Black", Float) = 0 - _Color(" Light Color", Color) = (1,1,1,1) - _Black(" Dark Color", Color) = (0,0,0,0) - [HideInInspector] _StencilRef("Stencil Reference", Float) = 1.0 - [Enum(UnityEngine.Rendering.CompareFunction)] _StencilComp("Stencil Comparison", Float) = 8 // Set to Always as default - } - - SubShader { - // Universal Pipeline tag is required. If Universal render pipeline is not set in the graphics settings - // this Subshader will fail. - Tags { "RenderPipeline" = "UniversalPipeline" "Queue"="Transparent" "IgnoreProjector"="True" "RenderType"="Transparent" } - LOD 100 - Cull Off - ZWrite Off - Blend One OneMinusSrcAlpha - - Stencil { - Ref[_StencilRef] - Comp[_StencilComp] - Pass Keep - } - - Pass { - Name "Forward" - Tags{"LightMode" = "UniversalForward"} - - ZWrite[_ZWrite] - Cull Off - Blend One OneMinusSrcAlpha - - HLSLPROGRAM - // Required to compile gles 2.0 with standard srp library - #pragma prefer_hlslcc gles - #pragma exclude_renderers d3d11_9x - - // ------------------------------------- - // Unity defined keywords - #pragma multi_compile_fog - - //-------------------------------------- - // GPU Instancing - #pragma multi_compile_instancing - - //-------------------------------------- - // Spine related keywords - #pragma shader_feature _ _STRAIGHT_ALPHA_INPUT - #pragma shader_feature _TINT_BLACK_ON - #pragma vertex vert - #pragma fragment frag - - #undef LIGHTMAP_ON - - #define USE_URP - #define fixed4 half4 - #define fixed3 half3 - #define fixed half - #include "Include/Spine-Input-URP.hlsl" - #include "Include/Spine-Skeleton-ForwardPass-URP.hlsl" - ENDHLSL - } - - Pass - { - Name "ShadowCaster" - Tags{"LightMode" = "ShadowCaster"} - - ZWrite On - ColorMask 0 - ZTest LEqual - Cull Off - - HLSLPROGRAM - // Required to compile gles 2.0 with standard srp library - #pragma prefer_hlslcc gles - #pragma exclude_renderers d3d11_9x - #pragma target 2.0 - - // ------------------------------------- - // Material Keywords - #pragma shader_feature _ALPHATEST_ON - - //-------------------------------------- - // GPU Instancing - #pragma multi_compile_instancing - #pragma shader_feature _SMOOTHNESS_TEXTURE_ALBEDO_CHANNEL_A - - #pragma vertex ShadowPassVertexSkeletonLit - #pragma fragment ShadowPassFragmentSkeletonLit - - #define USE_URP - #define fixed4 half4 - #define fixed3 half3 - #define fixed half - #include "Include/Spine-Input-URP.hlsl" - #include "Include/Spine-SkeletonLit-ShadowCasterPass-URP.hlsl" - - ENDHLSL - } - - Pass - { - Name "DepthOnly" - Tags{"LightMode" = "DepthOnly"} - - ZWrite On - ColorMask R - Cull Off - - HLSLPROGRAM - // Required to compile gles 2.0 with standard srp library - #pragma prefer_hlslcc gles - #pragma exclude_renderers d3d11_9x - - #pragma vertex DepthOnlyVertex - #pragma fragment DepthOnlyFragment - - // ------------------------------------- - // Material Keywords - #pragma shader_feature _ALPHATEST_ON - #pragma shader_feature _SMOOTHNESS_TEXTURE_ALBEDO_CHANNEL_A - - //-------------------------------------- - // GPU Instancing - #pragma multi_compile_instancing - - #define USE_URP - #define fixed4 half4 - #define fixed3 half3 - #define fixed half - #include "Include/Spine-Input-URP.hlsl" - #include "Include/Spine-DepthOnlyPass-URP.hlsl" - ENDHLSL - } - } - - FallBack "Universal Render Pipeline/Unlit" -} diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Spine-Skeleton-URP.shader.meta b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Spine-Skeleton-URP.shader.meta deleted file mode 100644 index ad090531e..000000000 --- a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Spine-Skeleton-URP.shader.meta +++ /dev/null @@ -1,10 +0,0 @@ -fileFormatVersion: 2 -guid: 368d01244665a994f82f6af9dc9173ba -ShaderImporter: - externalObjects: {} - defaultTextures: [] - nonModifiableTextures: [] - preprocessorOverride: 0 - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Spine-Skeleton.shader b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Spine-Skeleton.shader index fb145dbd4..708a50a01 100644 --- a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Spine-Skeleton.shader +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Spine-Skeleton.shader @@ -8,7 +8,9 @@ Shader "Spine/Skeleton" { // Outline properties are drawn via custom editor. [HideInInspector] _OutlineWidth("Outline Width", Range(0,8)) = 3.0 + [HideInInspector][MaterialToggle(_USE_SCREENSPACE_OUTLINE_WIDTH)] _UseScreenSpaceOutlineWidth("Width in Screen Space", Float) = 0 [HideInInspector] _OutlineColor("Outline Color", Color) = (1,1,0,1) + [HideInInspector][MaterialToggle(_OUTLINE_FILL_INSIDE)]_Fill("Fill", Float) = 0 [HideInInspector] _OutlineReferenceTexWidth("Reference Texture Width", Int) = 1024 [HideInInspector] _ThresholdEnd("Outline Threshold", Range(0,1)) = 0.25 [HideInInspector] _OutlineSmoothness("Outline Smoothness", Range(0,1)) = 1.0 diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Spine-SkeletonLit-URP.shader b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Spine-SkeletonLit-URP.shader deleted file mode 100644 index 755c3ddea..000000000 --- a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Spine-SkeletonLit-URP.shader +++ /dev/null @@ -1,198 +0,0 @@ -Shader "Universal Render Pipeline/Spine/Skeleton Lit" { - Properties { - _Cutoff ("Shadow alpha cutoff", Range(0,1)) = 0.1 - [NoScaleOffset] _MainTex ("Main Texture", 2D) = "black" {} - [Toggle(_STRAIGHT_ALPHA_INPUT)] _StraightAlphaInput("Straight Alpha Texture", Int) = 0 - [Toggle(_ZWRITE)] _ZWrite("Depth Write", Float) = 0.0 - [Toggle(_RECEIVE_SHADOWS)] _ReceiveShadows("Receive Shadows", Int) = 0 - [Toggle(_DOUBLE_SIDED_LIGHTING)] _DoubleSidedLighting("Double-Sided Lighting", Int) = 0 - [MaterialToggle(_LIGHT_AFFECTS_ADDITIVE)] _LightAffectsAdditive("Light Affects Additive", Float) = 0 - [MaterialToggle(_TINT_BLACK_ON)] _TintBlack("Tint Black", Float) = 0 - _Color(" Light Color", Color) = (1,1,1,1) - _Black(" Dark Color", Color) = (0,0,0,0) - [HideInInspector] _StencilRef("Stencil Reference", Float) = 1.0 - [Enum(UnityEngine.Rendering.CompareFunction)] _StencilComp("Stencil Compare", Float) = 8 // Set to Always as default - } - - SubShader { - // Lightweight Pipeline tag is required. If Lightweight render pipeline is not set in the graphics settings - // this Subshader will fail. - Tags { "RenderPipeline" = "UniversalPipeline" "Queue"="Transparent" "IgnoreProjector"="True" "RenderType"="Transparent" } - LOD 100 - Cull Off - ZWrite[_ZWrite] - Blend One OneMinusSrcAlpha - - Stencil { - Ref[_StencilRef] - Comp[_StencilComp] - Pass Keep - } - - Pass { - Name "ForwardLit" - Tags{"LightMode" = "UniversalForward"} - - ZWrite[_ZWrite] - Cull Off - Blend One OneMinusSrcAlpha - - HLSLPROGRAM - // Required to compile gles 2.0 with standard srp library - #pragma prefer_hlslcc gles - #pragma exclude_renderers d3d11_9x - - // ------------------------------------- - // Lightweight Pipeline keywords - #pragma multi_compile _ _MAIN_LIGHT_SHADOWS - #pragma multi_compile _ _MAIN_LIGHT_SHADOWS_CASCADE - #pragma multi_compile _ _ADDITIONAL_LIGHTS_VERTEX _ADDITIONAL_LIGHTS - #pragma multi_compile _ _ADDITIONAL_LIGHT_SHADOWS - #pragma multi_compile _ _SHADOWS_SOFT - #pragma multi_compile _ _MIXED_LIGHTING_SUBTRACTIVE - #pragma multi_compile _ _LIGHT_AFFECTS_ADDITIVE - #pragma shader_feature _TINT_BLACK_ON - // Farward+ renderer keywords - #pragma multi_compile_fragment _ _LIGHT_LAYERS - #pragma multi_compile _ _FORWARD_PLUS - #pragma multi_compile_fragment _ _WRITE_RENDERING_LAYERS - - // ------------------------------------- - // Unity defined keywords - #pragma multi_compile_fog - - //-------------------------------------- - // GPU Instancing - #pragma multi_compile_instancing - #pragma instancing_options renderinglayer - - //-------------------------------------- - // Spine related keywords - #pragma shader_feature _ _STRAIGHT_ALPHA_INPUT - #pragma shader_feature _ _DOUBLE_SIDED_LIGHTING - #pragma shader_feature _RECEIVE_SHADOWS_OFF _RECEIVE_SHADOWS - #pragma vertex vert - #pragma fragment frag - - #undef LIGHTMAP_ON - - #define USE_URP - #define fixed4 half4 - #define fixed3 half3 - #define fixed half - #include "Include/Spine-Input-URP.hlsl" - #include "Include/Spine-SkeletonLit-ForwardPass-URP.hlsl" - ENDHLSL - } - - Pass - { - Name "ShadowCaster" - Tags{"LightMode" = "ShadowCaster"} - - ZWrite On - ColorMask 0 - ZTest LEqual - Cull Off - - HLSLPROGRAM - // Required to compile gles 2.0 with standard srp library - #pragma prefer_hlslcc gles - #pragma exclude_renderers d3d11_9x - #pragma target 2.0 - - // ------------------------------------- - // Material Keywords - #pragma shader_feature _ALPHATEST_ON - - //-------------------------------------- - // GPU Instancing - #pragma multi_compile_instancing - #pragma shader_feature _SMOOTHNESS_TEXTURE_ALBEDO_CHANNEL_A - #pragma shader_feature _ _DOUBLE_SIDED_LIGHTING - - #pragma vertex ShadowPassVertexSkeletonLit - #pragma fragment ShadowPassFragmentSkeletonLit - - #define USE_URP - #define fixed4 half4 - #define fixed3 half3 - #define fixed half - #include "Include/Spine-Input-URP.hlsl" - #include "Include/Spine-SkeletonLit-ShadowCasterPass-URP.hlsl" - - ENDHLSL - } - - Pass - { - Name "DepthOnly" - Tags{"LightMode" = "DepthOnly"} - - ZWrite On - ColorMask R - Cull Off - - HLSLPROGRAM - // Required to compile gles 2.0 with standard srp library - #pragma prefer_hlslcc gles - #pragma exclude_renderers d3d11_9x - - #pragma vertex DepthOnlyVertex - #pragma fragment DepthOnlyFragment - - // ------------------------------------- - // Material Keywords - #pragma shader_feature _ALPHATEST_ON - #pragma shader_feature _SMOOTHNESS_TEXTURE_ALBEDO_CHANNEL_A - - //-------------------------------------- - // GPU Instancing - #pragma multi_compile_instancing - - #define USE_URP - #define fixed4 half4 - #define fixed3 half3 - #define fixed half - #include "Include/Spine-Input-URP.hlsl" - #include "Include/Spine-DepthOnlyPass-URP.hlsl" - ENDHLSL - } - - // This pass is used when drawing to a _CameraNormalsTexture texture - Pass - { - Name "DepthNormals" - Tags{"LightMode" = "DepthNormals"} - - ZWrite On - - HLSLPROGRAM - #pragma vertex DepthNormalsVertex - #pragma fragment DepthNormalsFragment - - // ------------------------------------- - // Material Keywords - #pragma shader_feature _ALPHATEST_ON - #pragma shader_feature _ _DOUBLE_SIDED_LIGHTING - - // ------------------------------------- - // Universal Pipeline keywords - #pragma multi_compile_fragment _ _WRITE_RENDERING_LAYERS - - //-------------------------------------- - // GPU Instancing - #pragma multi_compile_instancing - - #define USE_URP - #define fixed4 half4 - #define fixed3 half3 - #define fixed half - #include "Include/Spine-Input-URP.hlsl" - #include "Include/Spine-DepthNormalsPass-URP.hlsl" - ENDHLSL - } - } - - FallBack "Universal Render Pipeline/Spine/Skeleton" -} diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Spine-SkeletonLit-URP.shader.meta b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Spine-SkeletonLit-URP.shader.meta deleted file mode 100644 index b620f0e1f..000000000 --- a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Spine-SkeletonLit-URP.shader.meta +++ /dev/null @@ -1,10 +0,0 @@ -fileFormatVersion: 2 -guid: 348017cf11039464499244edf0c9b407 -ShaderImporter: - externalObjects: {} - defaultTextures: [] - nonModifiableTextures: [] - preprocessorOverride: 0 - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Spine-Special-Skeleton-Grayscale.shader b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Spine-Special-Skeleton-Grayscale.shader index 8d69bf815..a2f361880 100644 --- a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Spine-Special-Skeleton-Grayscale.shader +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Spine-Special-Skeleton-Grayscale.shader @@ -13,7 +13,9 @@ Shader "Spine/Special/Skeleton Grayscale" { // Outline properties are drawn via custom editor. [HideInInspector] _OutlineWidth("Outline Width", Range(0,8)) = 3.0 + [HideInInspector][MaterialToggle(_USE_SCREENSPACE_OUTLINE_WIDTH)] _UseScreenSpaceOutlineWidth("Width in Screen Space", Float) = 0 [HideInInspector] _OutlineColor("Outline Color", Color) = (1,1,0,1) + [HideInInspector][MaterialToggle(_OUTLINE_FILL_INSIDE)]_Fill("Fill", Float) = 0 [HideInInspector] _OutlineReferenceTexWidth("Reference Texture Width", Int) = 1024 [HideInInspector] _ThresholdEnd("Outline Threshold", Range(0,1)) = 0.25 [HideInInspector] _OutlineSmoothness("Outline Smoothness", Range(0,1)) = 1.0 diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Sprite/CGIncludes/SpritePixelLighting.cginc b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Sprite/CGIncludes/SpritePixelLighting.cginc index 23bc13df0..6cc2bc469 100644 --- a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Sprite/CGIncludes/SpritePixelLighting.cginc +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Sprite/CGIncludes/SpritePixelLighting.cginc @@ -148,7 +148,8 @@ VertexOutput vert(VertexInput v) output.pos = calculateLocalPos(v.vertex); output.color = calculateVertexColor(v.color); #if defined(_TINT_BLACK_ON) - output.darkColor = GammaToTargetSpace(half3(v.tintBlackRG.r, v.tintBlackRG.g, v.tintBlackB.r)) + _Black.rgb; + output.darkColor = GammaToTargetSpace(half3(v.tintBlackRG.r, v.tintBlackRG.g, v.tintBlackB.r)) + + (_Black.rgb * v.color.a); #endif output.texcoord = calculateTextureCoord(v.texcoord); output.posWorld = calculateWorldPos(v.vertex); diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Sprite/CGIncludes/SpriteUnlit.cginc b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Sprite/CGIncludes/SpriteUnlit.cginc index 3c6fd04d8..fa88382e7 100644 --- a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Sprite/CGIncludes/SpriteUnlit.cginc +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Sprite/CGIncludes/SpriteUnlit.cginc @@ -56,7 +56,8 @@ VertexOutput vert(VertexInput input) output.texcoord = calculateTextureCoord(input.texcoord); output.color = calculateVertexColor(input.color); #if defined(_TINT_BLACK_ON) - output.darkColor = GammaToTargetSpace(half3(input.tintBlackRG.r, input.tintBlackRG.g, input.tintBlackB.r)) + _Black.rgb; + output.darkColor = GammaToTargetSpace(half3(input.tintBlackRG.r, input.tintBlackRG.g, input.tintBlackB.r)) + + (_Black.rgb * input.color.a); #endif #if defined(_FOG) diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Sprite/CGIncludes/SpriteVertexLighting.cginc b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Sprite/CGIncludes/SpriteVertexLighting.cginc index a3d6a6f8d..76ab02fd1 100644 --- a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Sprite/CGIncludes/SpriteVertexLighting.cginc +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Sprite/CGIncludes/SpriteVertexLighting.cginc @@ -353,7 +353,8 @@ VertexOutput vert(VertexInput input) output.pos = calculateLocalPos(input.vertex); output.color = calculateVertexColor(input.color); #if defined(_TINT_BLACK_ON) - output.darkColor = GammaToTargetSpace(half3(input.tintBlackRG.r, input.tintBlackRG.g, input.tintBlackB.r)) + _Black.rgb; + output.darkColor = GammaToTargetSpace(half3(input.tintBlackRG.r, input.tintBlackRG.g, input.tintBlackB.r)) + + (_Black.rgb * input.color.a); #endif output.texcoord = float3(calculateTextureCoord(input.texcoord), 0); diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Sprite/SpritesPixelLit.shader b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Sprite/SpritesPixelLit.shader index ce2883fd0..9ea9faaf1 100644 --- a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Sprite/SpritesPixelLit.shader +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Sprite/SpritesPixelLit.shader @@ -50,7 +50,9 @@ Shader "Spine/Sprite/Pixel Lit" // Outline properties are drawn via custom editor. [HideInInspector] _OutlineWidth("Outline Width", Range(0,8)) = 3.0 + [HideInInspector][MaterialToggle(_USE_SCREENSPACE_OUTLINE_WIDTH)] _UseScreenSpaceOutlineWidth("Width in Screen Space", Float) = 0 [HideInInspector] _OutlineColor("Outline Color", Color) = (1,1,0,1) + [HideInInspector][MaterialToggle(_OUTLINE_FILL_INSIDE)]_Fill("Fill", Float) = 0 [HideInInspector] _OutlineReferenceTexWidth("Reference Texture Width", Int) = 1024 [HideInInspector] _ThresholdEnd("Outline Threshold", Range(0,1)) = 0.25 [HideInInspector] _OutlineSmoothness("Outline Smoothness", Range(0,1)) = 1.0 diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Sprite/SpritesUnlit.shader b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Sprite/SpritesUnlit.shader index c7b2c05c7..a91a260e8 100644 --- a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Sprite/SpritesUnlit.shader +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Sprite/SpritesUnlit.shader @@ -32,7 +32,9 @@ Shader "Spine/Sprite/Unlit" // Outline properties are drawn via custom editor. [HideInInspector] _OutlineWidth("Outline Width", Range(0,8)) = 3.0 + [HideInInspector][MaterialToggle(_USE_SCREENSPACE_OUTLINE_WIDTH)] _UseScreenSpaceOutlineWidth("Width in Screen Space", Float) = 0 [HideInInspector] _OutlineColor("Outline Color", Color) = (1,1,0,1) + [HideInInspector][MaterialToggle(_OUTLINE_FILL_INSIDE)]_Fill("Fill", Float) = 0 [HideInInspector] _OutlineReferenceTexWidth("Reference Texture Width", Int) = 1024 [HideInInspector] _ThresholdEnd("Outline Threshold", Range(0,1)) = 0.25 [HideInInspector] _OutlineSmoothness("Outline Smoothness", Range(0,1)) = 1.0 diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Sprite/SpritesVertexLit.shader b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Sprite/SpritesVertexLit.shader index 5ba640d89..82dad881c 100644 --- a/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Sprite/SpritesVertexLit.shader +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Shaders/Sprite/SpritesVertexLit.shader @@ -51,7 +51,9 @@ Shader "Spine/Sprite/Vertex Lit" // Outline properties are drawn via custom editor. [HideInInspector] _OutlineWidth("Outline Width", Range(0,8)) = 3.0 + [HideInInspector][MaterialToggle(_USE_SCREENSPACE_OUTLINE_WIDTH)] _UseScreenSpaceOutlineWidth("Width in Screen Space", Float) = 0 [HideInInspector] _OutlineColor("Outline Color", Color) = (1,1,0,1) + [HideInInspector][MaterialToggle(_OUTLINE_FILL_INSIDE)]_Fill("Fill", Float) = 0 [HideInInspector] _OutlineReferenceTexWidth("Reference Texture Width", Int) = 1024 [HideInInspector] _ThresholdEnd("Outline Threshold", Range(0,1)) = 0.25 [HideInInspector] _OutlineSmoothness("Outline Smoothness", Range(0,1)) = 1.0 diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/SpineAttributes.cs b/Assets/ThirdParty/Spine/Runtime/spine-unity/SpineAttributes.cs index c9fb221ad..644929b26 100644 --- a/Assets/ThirdParty/Spine/Runtime/spine-unity/SpineAttributes.cs +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/SpineAttributes.cs @@ -33,12 +33,13 @@ using UnityEngine; namespace Spine.Unity { - [AttributeUsage(AttributeTargets.Field, Inherited = true, AllowMultiple = false)] + [AttributeUsage(AttributeTargets.Property | AttributeTargets.Field, Inherited = true, AllowMultiple = false)] public abstract class SpineAttributeBase : PropertyAttribute { public string dataField = ""; public string startsWith = ""; public bool includeNone = true; public bool fallbackToTextField = false; + public bool avoidGenericMenu = false; } public class SpineBone : SpineAttributeBase { @@ -103,11 +104,14 @@ namespace Spine.Unity { /// Valid types are SkeletonDataAsset and SkeletonRenderer (and derivatives) /// If left empty and the script the attribute is applied to is derived from Component, GetComponent() will be called as a fallback. /// - public SpineAnimation (string startsWith = "", string dataField = "", bool includeNone = true, bool fallbackToTextField = false) { + public SpineAnimation (string startsWith = "", string dataField = "", + bool includeNone = true, bool fallbackToTextField = false, bool avoidGenericMenu = false) { + this.startsWith = startsWith; this.dataField = dataField; this.includeNone = includeNone; this.fallbackToTextField = fallbackToTextField; + this.avoidGenericMenu = avoidGenericMenu; } } @@ -205,12 +209,15 @@ namespace Spine.Unity { public bool defaultAsEmptyString = false; - public SpineSkin (string startsWith = "", string dataField = "", bool includeNone = true, bool fallbackToTextField = false, bool defaultAsEmptyString = false) { + public SpineSkin (string startsWith = "", string dataField = "", bool includeNone = false, + bool fallbackToTextField = false, bool defaultAsEmptyString = false, bool avoidGenericMenu = false) { + this.startsWith = startsWith; this.dataField = dataField; this.includeNone = includeNone; this.fallbackToTextField = fallbackToTextField; this.defaultAsEmptyString = defaultAsEmptyString; + this.avoidGenericMenu = avoidGenericMenu; } } diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Utility/AtlasUtilities.cs b/Assets/ThirdParty/Spine/Runtime/spine-unity/Utility/AtlasUtilities.cs index 6474af495..a0ccb114b 100644 --- a/Assets/ThirdParty/Spine/Runtime/spine-unity/Utility/AtlasUtilities.cs +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Utility/AtlasUtilities.cs @@ -354,27 +354,40 @@ namespace Spine.Unity.AttachmentTools { if (originalAttachment is IHasTextureRegion) { MeshAttachment originalMeshAttachment = originalAttachment as MeshAttachment; - Attachment newAttachment = (originalMeshAttachment != null) ? originalMeshAttachment.NewLinkedMesh() : originalAttachment.Copy(); - AtlasRegion region = ((IHasTextureRegion)newAttachment).Region as AtlasRegion; + IHasTextureRegion originalTextureAttachment = (IHasTextureRegion)originalAttachment; + + Attachment newAttachment = (originalTextureAttachment.Sequence != null) ? originalAttachment : + (originalMeshAttachment != null) ? originalMeshAttachment.NewLinkedMesh() : + originalAttachment.Copy(); + IHasTextureRegion newTextureAttachment = (IHasTextureRegion)newAttachment; + AtlasRegion region = newTextureAttachment.Region as AtlasRegion; + if (region == null && originalTextureAttachment.Sequence != null) + region = (AtlasRegion)originalTextureAttachment.Sequence.Regions[0]; + int existingIndex; if (existingRegions.TryGetValue(region, out existingIndex)) { regionIndices.Add(existingIndex); } else { - originalRegions.Add(region); - for (int i = 0; i < numTextureParamsToRepack; ++i) { - Texture2D regionTexture = (i == 0 ? - region.ToTexture(textureFormat, mipmaps) : - region.ToTexture((additionalTextureFormats != null && i - 1 < additionalTextureFormats.Length) ? - additionalTextureFormats[i - 1] : textureFormat, - mipmaps, additionalTexturePropertyIDsToCopy[i - 1], additionalTextureIsLinear[i - 1])); - texturesToPackAtParam[i].Add(regionTexture); - } - existingRegions.Add(region, newRegionIndex); - regionIndices.Add(newRegionIndex); - newRegionIndex++; + Sequence originalSequence = originalTextureAttachment.Sequence; + if (originalSequence != null) { + newTextureAttachment.Sequence = new Sequence(originalSequence); + for (int i = 0, regionCount = originalSequence.Regions.Length; i < regionCount; ++i) { + AtlasRegion sequenceRegion = (AtlasRegion)originalSequence.Regions[i]; + AddRegionTexturesToPack(numTextureParamsToRepack, sequenceRegion, textureFormat, mipmaps, + additionalTextureFormats, additionalTexturePropertyIDsToCopy, additionalTextureIsLinear); + originalRegions.Add(sequenceRegion); + regionIndices.Add(newRegionIndex); + newRegionIndex++; + } + } else { + AddRegionTexturesToPack(numTextureParamsToRepack, region, textureFormat, mipmaps, + additionalTextureFormats, additionalTexturePropertyIDsToCopy, additionalTextureIsLinear); + originalRegions.Add(region); + regionIndices.Add(newRegionIndex); + newRegionIndex++; + } } - outputAttachments[attachmentIndex] = newAttachment; } else { outputAttachments[attachmentIndex] = useOriginalNonrenderables ? originalAttachment : originalAttachment.Copy(); @@ -428,12 +441,24 @@ namespace Spine.Unity.AttachmentTools { } // Map the cloned attachments to the repacked atlas. - for (int i = 0, n = outputAttachments.Count; i < n; i++) { - Attachment attachment = outputAttachments[i]; - IHasTextureRegion iHasRegion = attachment as IHasTextureRegion; - if (iHasRegion != null) { - iHasRegion.Region = repackedRegions[regionIndices[i]]; - iHasRegion.UpdateRegion(); + for (int attachmentIndex = 0, repackedIndex = 0, n = outputAttachments.Count; + attachmentIndex < n; + ++attachmentIndex, ++repackedIndex) { + + Attachment attachment = outputAttachments[attachmentIndex]; + IHasTextureRegion textureAttachment = attachment as IHasTextureRegion; + if (textureAttachment != null) { + if (textureAttachment.Sequence != null) { + TextureRegion[] regions = textureAttachment.Sequence.Regions; + textureAttachment.Region = repackedRegions[regionIndices[repackedIndex]]; + for (int r = 0, regionCount = regions.Length; r < regionCount; ++r) { + regions[r] = repackedRegions[regionIndices[repackedIndex++]]; + } + --repackedIndex; + } else { + textureAttachment.Region = repackedRegions[regionIndices[repackedIndex]]; + } + textureAttachment.UpdateRegion(); } } @@ -444,6 +469,20 @@ namespace Spine.Unity.AttachmentTools { outputMaterial = newMaterial; } + private static void AddRegionTexturesToPack (int numTextureParamsToRepack, AtlasRegion region, + TextureFormat textureFormat, bool mipmaps, TextureFormat[] additionalTextureFormats, + int[] additionalTexturePropertyIDsToCopy, bool[] additionalTextureIsLinear) { + + for (int i = 0; i < numTextureParamsToRepack; ++i) { + Texture2D regionTexture = (i == 0 ? + region.ToTexture(textureFormat, mipmaps) : + region.ToTexture((additionalTextureFormats != null && i - 1 < additionalTextureFormats.Length) ? + additionalTextureFormats[i - 1] : textureFormat, + mipmaps, additionalTexturePropertyIDsToCopy[i - 1], additionalTextureIsLinear[i - 1])); + texturesToPackAtParam[i].Add(regionTexture); + } + } + /// /// Creates and populates a duplicate skin with cloned attachments that are backed by a new packed texture atlas /// comprised of all the regions from the original skin. diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Utility/MaterialChecks.cs b/Assets/ThirdParty/Spine/Runtime/spine-unity/Utility/MaterialChecks.cs index b5761aa91..809a4bed9 100644 --- a/Assets/ThirdParty/Spine/Runtime/spine-unity/Utility/MaterialChecks.cs +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Utility/MaterialChecks.cs @@ -79,29 +79,31 @@ namespace Spine.Unity { + "This will lead to incorrect rendering on some devices.\n\n" + "Please change the assigned Material to e.g. 'SkeletonGraphicDefault' or change the used shader to one of the 'Spine/SkeletonGraphic *' shaders.\n\n" + "Note that 'Spine/SkeletonGraphic *' shall still be used when using URP.\n"; - public static readonly string kNoSkeletonGraphicTintBlackMaterialMessage = - "\nWarning: Only enable 'Canvas Group Tint Black' when using a 'SkeletonGraphic Tint Black' shader!\n" - + "This will lead to incorrect rendering.\n\nPlease\n" - + "a) disable 'Canvas Group Tint Black' under 'Advanced' or\n" + public static readonly string kSkeletonGraphicTintBlackMaterialRequiredMessage = + "\nWarning: Only enable 'Tint Black' when using a 'SkeletonGraphic Tint Black' shader!\n" + + "Otherwise this will lead to incorrect rendering.\n\nPlease\n" + + "a) disable 'Tint Black' under 'Advanced' or\n" + "b) use a 'SkeletonGraphic Tint Black' Material if you need Tint Black on a CanvasGroup.\n"; - public static readonly string kTintBlackMessage = + public static readonly string kTintBlackRequiredMessage = "\nWarning: 'Advanced - Tint Black' required when using any 'Tint Black' shader!\n\nPlease\n" + "a) enable 'Tint Black' at the SkeletonRenderer/SkeletonGraphic component under 'Advanced' or\n" + "b) use a different shader at the Material.\n"; public static readonly string kCanvasTintBlackMessage = "\nWarning: Canvas 'Additional Shader Channels' 'uv1' and 'uv2' are required when 'Advanced - Tint Black' is enabled!\n\n" + "Please enable both 'uv1' and 'uv2' channels at the parent Canvas component parameter 'Additional Shader Channels'.\n"; - public static readonly string kCanvasGroupCompatibleMessage = - "\nWarning: 'Canvas Group Tint Black' is enabled at SkeletonGraphic but not 'CanvasGroup Compatible' at the Material!\n\nPlease\n" - + "a) enable 'CanvasGroup Compatible' at the Material or\n" - + "b) disable 'Canvas Group Tint Black' at the SkeletonGraphic component under 'Advanced'.\n" - + "You may want to duplicate the 'SkeletonGraphicTintBlack' material and change settings at the duplicate to not affect all instances."; - public static readonly string kCanvasGroupCompatibleDisabledMessage = - "\nWarning: 'CanvasGroup Compatible' is enabled at the Material but 'Canvas Group Tint Black' is disabled at SkeletonGraphic!\n\nPlease\n" + public static readonly string kCanvasGroupCompatibleMaterialRequiredMessage = + "\nWarning: 'CanvasGroup Compatible' is enabled at SkeletonGraphic but not at the Material!\n\nPlease\n" + + "a) use a Material with 'CanvasGroup Compatible' enabled or\n" + + "b) disable 'CanvasGroup Compatible' at the SkeletonGraphic component under 'Advanced'.\n" + + "You can find CanvasGroup Compatible 'SkeletonGraphicTintBlack' materials in the\n" + + "'CanvasGroupCompatible' subfolder of 'SkeletonGraphic-PMATexture' or 'SkeletonGraphic-StraightAlphaTexture'."; + public static readonly string kCanvasGroupRequiredMessage = + "\nWarning: 'CanvasGroup Compatible' is enabled at the Material but disabled at SkeletonGraphic!\n\nPlease\n" + "a) disable 'CanvasGroup Compatible' at the Material or\n" - + "b) enable 'Canvas Group Tint Black' at the SkeletonGraphic component under 'Advanced'.\n" - + "You may want to duplicate the 'SkeletonGraphicTintBlack' material and change settings at the duplicate to not affect all instances."; + + "b) enable 'CanvasGroup Compatible' at the SkeletonGraphic component under 'Advanced'.\n" + + "You can find CanvasGroup Compatible 'SkeletonGraphicTintBlack' materials in the\n" + + "'CanvasGroupCompatible' subfolder of 'SkeletonGraphic-PMATexture' or 'SkeletonGraphic-StraightAlphaTexture'."; public static readonly string kCanvasGroupCompatiblePMAVertexMessage = "\nWarning: 'CanvasGroup Compatible' is enabled at the Material and 'PMA Vertex Colors' is enabled at SkeletonGraphic!\n\nPlease\n" + "a) disable 'CanvasGroup Compatible' at the Material or\n" @@ -126,7 +128,7 @@ namespace Spine.Unity { } if (renderer.tintBlack == false && RequiresTintBlack(material)) { isProblematic = true; - errorMessage += kTintBlackMessage; + errorMessage += kTintBlackRequiredMessage; } } return isProblematic; @@ -145,28 +147,26 @@ namespace Spine.Unity { isProblematic = true; errorMessage += kNoSkeletonGraphicMaterialMessage; } - if (settings.tintBlack == false && RequiresTintBlack(material)) { + bool isTintBlackMaterial = IsSkeletonGraphicTintBlackMaterial(material); + if (settings.tintBlack != isTintBlackMaterial) { isProblematic = true; - errorMessage += kTintBlackMessage; + errorMessage += (settings.tintBlack == false) ? + kTintBlackRequiredMessage : kSkeletonGraphicTintBlackMaterialRequiredMessage; } + if (settings.tintBlack == true && CanvasNotSetupForTintBlack(skeletonGraphic)) { isProblematic = true; errorMessage += kCanvasTintBlackMessage; } - if (settings.canvasGroupTintBlack == true && !IsSkeletonGraphicTintBlackMaterial(material)) { + + bool isCanvasGroupCompatible = IsCanvasGroupCompatible(material); + if (settings.canvasGroupCompatible != isCanvasGroupCompatible) { isProblematic = true; - errorMessage += kNoSkeletonGraphicTintBlackMaterialMessage; + errorMessage += (settings.canvasGroupCompatible == false) ? + kCanvasGroupRequiredMessage : kCanvasGroupCompatibleMaterialRequiredMessage; } - if (settings.canvasGroupTintBlack == true && !IsCanvasGroupCompatible(material)) { - isProblematic = true; - errorMessage += kCanvasGroupCompatibleMessage; - } - if (settings.tintBlack == true && settings.canvasGroupTintBlack == false - && IsCanvasGroupCompatible(material)) { - isProblematic = true; - errorMessage += kCanvasGroupCompatibleDisabledMessage; - } - if (settings.pmaVertexColors == true && IsCanvasGroupCompatible(material)) { + + if (settings.pmaVertexColors == true && settings.canvasGroupCompatible == true && settings.tintBlack == false) { isProblematic = true; errorMessage += kCanvasGroupCompatiblePMAVertexMessage; } @@ -202,7 +202,6 @@ namespace Spine.Unity { return true; } - public static bool UsesSpineShader (Material material) { return material.shader.name.Contains("Spine/"); } diff --git a/Assets/ThirdParty/Spine/Runtime/spine-unity/Utility/SkeletonExtensions.cs b/Assets/ThirdParty/Spine/Runtime/spine-unity/Utility/SkeletonExtensions.cs index 449e8aa4f..6d2eb5bbe 100644 --- a/Assets/ThirdParty/Spine/Runtime/spine-unity/Utility/SkeletonExtensions.cs +++ b/Assets/ThirdParty/Spine/Runtime/spine-unity/Utility/SkeletonExtensions.cs @@ -157,6 +157,10 @@ namespace Spine.Unity { return spineGameObjectTransform.TransformPoint(new Vector3(bone.WorldX * positionScale, bone.WorldY * positionScale)); } + public static Vector3 GetWorldPosition (this Bone bone, UnityEngine.Transform spineGameObjectTransform, float positionScale, Vector2 positionOffset) { + return spineGameObjectTransform.TransformPoint(new Vector3(bone.WorldX * positionScale + positionOffset.x, bone.WorldY * positionScale + positionOffset.y)); + } + /// Gets a skeleton space UnityEngine.Quaternion representation of bone.WorldRotationX. public static Quaternion GetQuaternion (this Bone bone) { float halfRotation = Mathf.Atan2(bone.C, bone.A) * 0.5f; @@ -325,8 +329,8 @@ namespace Spine { result.x = pa * boneData.X + pb * boneData.Y + parentMatrix.x; result.y = pc * boneData.X + pd * boneData.Y + parentMatrix.y; - switch (boneData.TransformMode) { - case TransformMode.Normal: { + switch (boneData.Inherit) { + case Inherit.Normal: { float rotationY = boneData.Rotation + 90 + boneData.ShearY; float la = MathUtils.CosDeg(boneData.Rotation + boneData.ShearX) * boneData.ScaleX; float lb = MathUtils.CosDeg(rotationY) * boneData.ScaleY; @@ -338,7 +342,7 @@ namespace Spine { result.d = pc * lb + pd * ld; break; } - case TransformMode.OnlyTranslation: { + case Inherit.OnlyTranslation: { float rotationY = boneData.Rotation + 90 + boneData.ShearY; result.a = MathUtils.CosDeg(boneData.Rotation + boneData.ShearX) * boneData.ScaleX; result.b = MathUtils.CosDeg(rotationY) * boneData.ScaleY; @@ -346,7 +350,7 @@ namespace Spine { result.d = MathUtils.SinDeg(rotationY) * boneData.ScaleY; break; } - case TransformMode.NoRotationOrReflection: { + case Inherit.NoRotationOrReflection: { float s = pa * pa + pc * pc, prx; if (s > 0.0001f) { s = Math.Abs(pa * pd - pb * pc) / s; @@ -370,8 +374,8 @@ namespace Spine { result.d = pc * lb + pd * ld; break; } - case TransformMode.NoScale: - case TransformMode.NoScaleOrReflection: { + case Inherit.NoScale: + case Inherit.NoScaleOrReflection: { float cos = MathUtils.CosDeg(boneData.Rotation), sin = MathUtils.SinDeg(boneData.Rotation); float za = pa * cos + pb * sin; float zc = pc * cos + pd * sin; @@ -388,7 +392,7 @@ namespace Spine { float lb = MathUtils.CosDeg(90 + boneData.ShearY) * boneData.ScaleY; float lc = MathUtils.SinDeg(boneData.ShearX) * boneData.ScaleX; float ld = MathUtils.SinDeg(90 + boneData.ShearY) * boneData.ScaleY; - if (boneData.TransformMode != TransformMode.NoScaleOrReflection ? pa * pd - pb * pc < 0 : false) { + if (boneData.Inherit != Inherit.NoScaleOrReflection ? pa * pd - pb * pc < 0 : false) { zb = -zb; zd = -zd; } @@ -446,15 +450,13 @@ namespace Spine { return va.Bones != null && va.Bones.Length > 0; } - #region Transform Modes - public static bool InheritsRotation (this TransformMode mode) { - const int RotationBit = 0; - return ((int)mode & (1U << RotationBit)) == 0; + #region Inherit Modes + public static bool InheritsRotation (this Inherit mode) { + return mode == Inherit.Normal || mode == Inherit.NoScale || mode == Inherit.NoScaleOrReflection; } - public static bool InheritsScale (this TransformMode mode) { - const int ScaleBit = 1; - return ((int)mode & (1U << ScaleBit)) == 0; + public static bool InheritsScale (this Inherit mode) { + return mode == Inherit.Normal || mode == Inherit.NoRotationOrReflection; } #endregion } diff --git a/Assets/ThirdParty/Spine/package.json b/Assets/ThirdParty/Spine/package.json index 482e0b757..bb46ce505 100644 --- a/Assets/ThirdParty/Spine/package.json +++ b/Assets/ThirdParty/Spine/package.json @@ -2,7 +2,7 @@ "name": "com.esotericsoftware.spine.spine-unity", "displayName": "spine-unity Runtime", "description": "This plugin provides the spine-unity runtime core.", - "version": "4.1.43", + "version": "4.2.99", "unity": "2018.3", "author": { "name": "Esoteric Software", @@ -10,7 +10,11 @@ "url": "http://esotericsoftware.com/" }, "dependencies": { - "com.esotericsoftware.spine.spine-csharp": "4.1.0" + "com.unity.ugui" : "1.0.0", + "com.unity.modules.animation" : "1.0.0", + "com.unity.modules.physics" : "1.0.0", + "com.unity.modules.physics2d" : "1.0.0", + "com.esotericsoftware.spine.spine-csharp": "4.2.0" }, "repository": { "type": "git", diff --git a/Assets/ThirdParty/Spine/version.txt b/Assets/ThirdParty/Spine/version.txt index 3d55f235a..3d8026921 100644 --- a/Assets/ThirdParty/Spine/version.txt +++ b/Assets/ThirdParty/Spine/version.txt @@ -1,2 +1,2 @@ -Package version: spine-unity-4.1-2024-06-19.unitypackage -This Spine-Unity runtime works with data exported from Spine Editor version: 4.1.xx +Package version: spine-unity-4.2-2025-02-24.unitypackage +This Spine-Unity runtime works with data exported from Spine Editor version: 4.2.xx diff --git a/Assets/ThirdParty/spine.timeline-4.1/LICENSE.md b/Assets/ThirdParty/spine.timeline-4.1/LICENSE.md deleted file mode 100644 index 61b10330d..000000000 --- a/Assets/ThirdParty/spine.timeline-4.1/LICENSE.md +++ /dev/null @@ -1,26 +0,0 @@ -# Spine Runtimes License Agreement -Last updated May 1, 2019. Replaces all prior versions. - -Copyright (c) 2013-2019, Esoteric Software LLC - -Integration of the Spine Runtimes into software or otherwise creating -derivative works of the Spine Runtimes is permitted under the terms and -conditions of Section 2 of the Spine Editor License Agreement: -http://esotericsoftware.com/spine-editor-license - -Otherwise, it is permitted to integrate the Spine Runtimes into software -or otherwise create derivative works of the Spine Runtimes (collectively, -"Products"), provided that each user of the Products must obtain their own -Spine Editor license and redistribution of the Products in any form must -include this license and copyright notice. - -THIS SOFTWARE IS PROVIDED BY ESOTERIC SOFTWARE LLC "AS IS" AND ANY EXPRESS -OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES -OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN -NO EVENT SHALL ESOTERIC SOFTWARE LLC BE LIABLE FOR ANY DIRECT, INDIRECT, -INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, BUSINESS -INTERRUPTION, OR LOSS OF USE, DATA, OR PROFITS) HOWEVER CAUSED AND ON ANY -THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, -EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. \ No newline at end of file diff --git a/Assets/ThirdParty/spine.timeline-4.1/version.txt b/Assets/ThirdParty/spine.timeline-4.1/version.txt deleted file mode 100644 index 01455d45b..000000000 --- a/Assets/ThirdParty/spine.timeline-4.1/version.txt +++ /dev/null @@ -1 +0,0 @@ -Package version: com.esotericsoftware.spine.timeline-4.1-2022-08-26.zip diff --git a/Assets/ThirdParty/spine.timeline-4.2.meta b/Assets/ThirdParty/spine.timeline-4.2.meta new file mode 100644 index 000000000..12f02a448 --- /dev/null +++ b/Assets/ThirdParty/spine.timeline-4.2.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 558541b4c2f561a44af65b1f39d4b2e9 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/ThirdParty/spine.timeline-4.1/Documentation.meta b/Assets/ThirdParty/spine.timeline-4.2/Documentation.meta similarity index 100% rename from Assets/ThirdParty/spine.timeline-4.1/Documentation.meta rename to Assets/ThirdParty/spine.timeline-4.2/Documentation.meta diff --git a/Assets/ThirdParty/spine.timeline-4.1/Documentation/README.md b/Assets/ThirdParty/spine.timeline-4.2/Documentation/README.md similarity index 100% rename from Assets/ThirdParty/spine.timeline-4.1/Documentation/README.md rename to Assets/ThirdParty/spine.timeline-4.2/Documentation/README.md diff --git a/Assets/ThirdParty/spine.timeline-4.1/Documentation/README.md.meta b/Assets/ThirdParty/spine.timeline-4.2/Documentation/README.md.meta similarity index 100% rename from Assets/ThirdParty/spine.timeline-4.1/Documentation/README.md.meta rename to Assets/ThirdParty/spine.timeline-4.2/Documentation/README.md.meta diff --git a/Assets/ThirdParty/spine.timeline-4.1/Documentation/add-menu.png b/Assets/ThirdParty/spine.timeline-4.2/Documentation/add-menu.png similarity index 100% rename from Assets/ThirdParty/spine.timeline-4.1/Documentation/add-menu.png rename to Assets/ThirdParty/spine.timeline-4.2/Documentation/add-menu.png diff --git a/Assets/ThirdParty/spine.timeline-4.1/Documentation/add-menu.png.meta b/Assets/ThirdParty/spine.timeline-4.2/Documentation/add-menu.png.meta similarity index 100% rename from Assets/ThirdParty/spine.timeline-4.1/Documentation/add-menu.png.meta rename to Assets/ThirdParty/spine.timeline-4.2/Documentation/add-menu.png.meta diff --git a/Assets/ThirdParty/spine.timeline-4.1/Documentation/animationstate-clip-inspector.png b/Assets/ThirdParty/spine.timeline-4.2/Documentation/animationstate-clip-inspector.png similarity index 100% rename from Assets/ThirdParty/spine.timeline-4.1/Documentation/animationstate-clip-inspector.png rename to Assets/ThirdParty/spine.timeline-4.2/Documentation/animationstate-clip-inspector.png diff --git a/Assets/ThirdParty/spine.timeline-4.1/Documentation/animationstate-clip-inspector.png.meta b/Assets/ThirdParty/spine.timeline-4.2/Documentation/animationstate-clip-inspector.png.meta similarity index 100% rename from Assets/ThirdParty/spine.timeline-4.1/Documentation/animationstate-clip-inspector.png.meta rename to Assets/ThirdParty/spine.timeline-4.2/Documentation/animationstate-clip-inspector.png.meta diff --git a/Assets/ThirdParty/spine.timeline-4.1/Documentation/animationstate-track-inspector.png b/Assets/ThirdParty/spine.timeline-4.2/Documentation/animationstate-track-inspector.png similarity index 100% rename from Assets/ThirdParty/spine.timeline-4.1/Documentation/animationstate-track-inspector.png rename to Assets/ThirdParty/spine.timeline-4.2/Documentation/animationstate-track-inspector.png diff --git a/Assets/ThirdParty/spine.timeline-4.2/Documentation/animationstate-track-inspector.png.meta b/Assets/ThirdParty/spine.timeline-4.2/Documentation/animationstate-track-inspector.png.meta new file mode 100644 index 000000000..561ddca2f --- /dev/null +++ b/Assets/ThirdParty/spine.timeline-4.2/Documentation/animationstate-track-inspector.png.meta @@ -0,0 +1,147 @@ +fileFormatVersion: 2 +guid: 04051f71b9b3db740a8d236ff80672e7 +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 12 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMasterTextureLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 1 + wrapV: 1 + wrapW: 1 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 1 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 8 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + cookieLightType: 1 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: iPhone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Android + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Server + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: 5e97eb03825dee720800000000000000 + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + spritePackingTag: + pSDRemoveMatte: 0 + pSDShowRemoveMatteOption: 0 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/ThirdParty/spine.timeline-4.1/Documentation/animationstate-track.png b/Assets/ThirdParty/spine.timeline-4.2/Documentation/animationstate-track.png similarity index 100% rename from Assets/ThirdParty/spine.timeline-4.1/Documentation/animationstate-track.png rename to Assets/ThirdParty/spine.timeline-4.2/Documentation/animationstate-track.png diff --git a/Assets/ThirdParty/spine.timeline-4.1/Documentation/animationstate-track.png.meta b/Assets/ThirdParty/spine.timeline-4.2/Documentation/animationstate-track.png.meta similarity index 100% rename from Assets/ThirdParty/spine.timeline-4.1/Documentation/animationstate-track.png.meta rename to Assets/ThirdParty/spine.timeline-4.2/Documentation/animationstate-track.png.meta diff --git a/Assets/ThirdParty/spine.timeline-4.1/Documentation/skeleton-flip-clip-inspector.png b/Assets/ThirdParty/spine.timeline-4.2/Documentation/skeleton-flip-clip-inspector.png similarity index 100% rename from Assets/ThirdParty/spine.timeline-4.1/Documentation/skeleton-flip-clip-inspector.png rename to Assets/ThirdParty/spine.timeline-4.2/Documentation/skeleton-flip-clip-inspector.png diff --git a/Assets/ThirdParty/spine.timeline-4.1/Documentation/skeleton-flip-clip-inspector.png.meta b/Assets/ThirdParty/spine.timeline-4.2/Documentation/skeleton-flip-clip-inspector.png.meta similarity index 100% rename from Assets/ThirdParty/spine.timeline-4.1/Documentation/skeleton-flip-clip-inspector.png.meta rename to Assets/ThirdParty/spine.timeline-4.2/Documentation/skeleton-flip-clip-inspector.png.meta diff --git a/Assets/ThirdParty/spine.timeline-4.1/Documentation/skeleton-flip-track.png b/Assets/ThirdParty/spine.timeline-4.2/Documentation/skeleton-flip-track.png similarity index 100% rename from Assets/ThirdParty/spine.timeline-4.1/Documentation/skeleton-flip-track.png rename to Assets/ThirdParty/spine.timeline-4.2/Documentation/skeleton-flip-track.png diff --git a/Assets/ThirdParty/spine.timeline-4.1/Documentation/skeleton-flip-track.png.meta b/Assets/ThirdParty/spine.timeline-4.2/Documentation/skeleton-flip-track.png.meta similarity index 100% rename from Assets/ThirdParty/spine.timeline-4.1/Documentation/skeleton-flip-track.png.meta rename to Assets/ThirdParty/spine.timeline-4.2/Documentation/skeleton-flip-track.png.meta diff --git a/Assets/ThirdParty/spine.timeline-4.1/Documentation/timeline.png b/Assets/ThirdParty/spine.timeline-4.2/Documentation/timeline.png similarity index 100% rename from Assets/ThirdParty/spine.timeline-4.1/Documentation/timeline.png rename to Assets/ThirdParty/spine.timeline-4.2/Documentation/timeline.png diff --git a/Assets/ThirdParty/spine.timeline-4.1/Documentation/timeline.png.meta b/Assets/ThirdParty/spine.timeline-4.2/Documentation/timeline.png.meta similarity index 100% rename from Assets/ThirdParty/spine.timeline-4.1/Documentation/timeline.png.meta rename to Assets/ThirdParty/spine.timeline-4.2/Documentation/timeline.png.meta diff --git a/Assets/ThirdParty/spine.timeline-4.1/Editor.meta b/Assets/ThirdParty/spine.timeline-4.2/Editor.meta similarity index 100% rename from Assets/ThirdParty/spine.timeline-4.1/Editor.meta rename to Assets/ThirdParty/spine.timeline-4.2/Editor.meta diff --git a/Assets/ThirdParty/spine.timeline-4.1/Editor/SpineAnimationStateClipInspector.cs b/Assets/ThirdParty/spine.timeline-4.2/Editor/SpineAnimationStateClipInspector.cs similarity index 86% rename from Assets/ThirdParty/spine.timeline-4.1/Editor/SpineAnimationStateClipInspector.cs rename to Assets/ThirdParty/spine.timeline-4.2/Editor/SpineAnimationStateClipInspector.cs index 95e586a13..0d3b39faf 100644 --- a/Assets/ThirdParty/spine.timeline-4.1/Editor/SpineAnimationStateClipInspector.cs +++ b/Assets/ThirdParty/spine.timeline-4.2/Editor/SpineAnimationStateClipInspector.cs @@ -1,16 +1,16 @@ /****************************************************************************** * Spine Runtimes License Agreement - * Last updated September 24, 2021. Replaces all prior versions. + * Last updated July 28, 2023. Replaces all prior versions. * - * Copyright (c) 2013-2022, Esoteric Software LLC + * Copyright (c) 2013-2023, Esoteric Software LLC * * Integration of the Spine Runtimes into software or otherwise creating * derivative works of the Spine Runtimes is permitted under the terms and * conditions of Section 2 of the Spine Editor License Agreement: * http://esotericsoftware.com/spine-editor-license * - * Otherwise, it is permitted to integrate the Spine Runtimes into software - * or otherwise create derivative works of the Spine Runtimes (collectively, + * Otherwise, it is permitted to integrate the Spine Runtimes into software or + * otherwise create derivative works of the Spine Runtimes (collectively, * "Products"), provided that each user of the Products must obtain their own * Spine Editor license and redistribution of the Products in any form must * include this license and copyright notice. @@ -23,8 +23,8 @@ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, * BUSINESS INTERRUPTION, OR LOSS OF USE, DATA, OR PROFITS) HOWEVER CAUSED AND * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF - * THE SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THE + * SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. *****************************************************************************/ using Spine.Unity.Playables; @@ -51,7 +51,7 @@ namespace Spine.Unity.Editor { templateProp = serializedObject.FindProperty("template"); System.Array.Resize(ref clipInfo, targets.Length); for (int i = 0; i < targets.Length; ++i) { - var clip = (SpineAnimationStateClip)targets[i]; + SpineAnimationStateClip clip = (SpineAnimationStateClip)targets[i]; clipInfo[i] = new ClipInfo(); clipInfo[i].timelineClip = FindTimelineClip(clip); } @@ -62,7 +62,7 @@ namespace Spine.Unity.Editor { EditorGUILayout.PropertyField(templateProp); for (int i = 0; i < targets.Length; ++i) { - var targetClip = (SpineAnimationStateClip)targets[i]; + SpineAnimationStateClip targetClip = (SpineAnimationStateClip)targets[i]; if (targetClip.template.useBlendDuration) AdjustMixDuration(targetClip, clipInfo[i]); } @@ -75,7 +75,7 @@ namespace Spine.Unity.Editor { if (timelineClipInfo == null) return; - var timelineClip = timelineClipInfo.timelineClip; + TimelineClip timelineClip = timelineClipInfo.timelineClip; if (timelineClip == null) return; @@ -100,8 +100,8 @@ namespace Spine.Unity.Editor { string[] guids = AssetDatabase.FindAssets("t:TimelineAsset"); foreach (string guid in guids) { TimelineAsset timeline = (TimelineAsset)AssetDatabase.LoadAssetAtPath(AssetDatabase.GUIDToAssetPath(guid), typeof(TimelineAsset)); - foreach (var track in timeline.GetOutputTracks()) { - foreach (var clip in track.GetClips()) { + foreach (TrackAsset track in timeline.GetOutputTracks()) { + foreach (TimelineClip clip in track.GetClips()) { if (clip.asset.GetType() == typeof(SpineAnimationStateClip) && object.ReferenceEquals(clip.asset, targetClip)) { return clip; } diff --git a/Assets/ThirdParty/spine.timeline-4.1/Editor/SpineAnimationStateClipInspector.cs.meta b/Assets/ThirdParty/spine.timeline-4.2/Editor/SpineAnimationStateClipInspector.cs.meta similarity index 100% rename from Assets/ThirdParty/spine.timeline-4.1/Editor/SpineAnimationStateClipInspector.cs.meta rename to Assets/ThirdParty/spine.timeline-4.2/Editor/SpineAnimationStateClipInspector.cs.meta diff --git a/Assets/ThirdParty/spine.timeline-4.1/Editor/SpineAnimationStateDrawer.cs b/Assets/ThirdParty/spine.timeline-4.2/Editor/SpineAnimationStateDrawer.cs similarity index 92% rename from Assets/ThirdParty/spine.timeline-4.1/Editor/SpineAnimationStateDrawer.cs rename to Assets/ThirdParty/spine.timeline-4.2/Editor/SpineAnimationStateDrawer.cs index b7bd70b01..5ae46c49a 100644 --- a/Assets/ThirdParty/spine.timeline-4.1/Editor/SpineAnimationStateDrawer.cs +++ b/Assets/ThirdParty/spine.timeline-4.2/Editor/SpineAnimationStateDrawer.cs @@ -1,16 +1,16 @@ /****************************************************************************** * Spine Runtimes License Agreement - * Last updated September 24, 2021. Replaces all prior versions. + * Last updated July 28, 2023. Replaces all prior versions. * - * Copyright (c) 2013-2022, Esoteric Software LLC + * Copyright (c) 2013-2023, Esoteric Software LLC * * Integration of the Spine Runtimes into software or otherwise creating * derivative works of the Spine Runtimes is permitted under the terms and * conditions of Section 2 of the Spine Editor License Agreement: * http://esotericsoftware.com/spine-editor-license * - * Otherwise, it is permitted to integrate the Spine Runtimes into software - * or otherwise create derivative works of the Spine Runtimes (collectively, + * Otherwise, it is permitted to integrate the Spine Runtimes into software or + * otherwise create derivative works of the Spine Runtimes (collectively, * "Products"), provided that each user of the Products must obtain their own * Spine Editor license and redistribution of the Products in any form must * include this license and copyright notice. @@ -23,8 +23,8 @@ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, * BUSINESS INTERRUPTION, OR LOSS OF USE, DATA, OR PROFITS) HOWEVER CAUSED AND * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF - * THE SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THE + * SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. *****************************************************************************/ using Spine.Unity.Editor; @@ -56,9 +56,10 @@ public class SpineAnimationStateDrawer : PropertyDrawer { SerializedProperty attachmentProp = property.FindPropertyRelative("attachmentThreshold"); SerializedProperty drawOrderProp = property.FindPropertyRelative("drawOrderThreshold"); - // initialize useBlendDuration parameter according to preferences + // initialize customDuration (inverse default mix duration) and useBlendDuration parameters according to preferences SerializedProperty isInitializedProp = property.FindPropertyRelative("isInitialized"); if (!isInitializedProp.hasMultipleDifferentValues && isInitializedProp.boolValue == false) { + customDurationProp.boolValue = !SpineEditorUtilities.Preferences.timelineDefaultMixDuration; useBlendDurationProp.boolValue = SpineEditorUtilities.Preferences.timelineUseBlendDuration; isInitializedProp.boolValue = true; } diff --git a/Assets/ThirdParty/spine.timeline-4.1/Editor/SpineAnimationStateDrawer.cs.meta b/Assets/ThirdParty/spine.timeline-4.2/Editor/SpineAnimationStateDrawer.cs.meta similarity index 100% rename from Assets/ThirdParty/spine.timeline-4.1/Editor/SpineAnimationStateDrawer.cs.meta rename to Assets/ThirdParty/spine.timeline-4.2/Editor/SpineAnimationStateDrawer.cs.meta diff --git a/Assets/ThirdParty/spine.timeline-4.1/Editor/SpineAnimationStateGraphicTrackInspector.cs b/Assets/ThirdParty/spine.timeline-4.2/Editor/SpineAnimationStateGraphicTrackInspector.cs similarity index 87% rename from Assets/ThirdParty/spine.timeline-4.1/Editor/SpineAnimationStateGraphicTrackInspector.cs rename to Assets/ThirdParty/spine.timeline-4.2/Editor/SpineAnimationStateGraphicTrackInspector.cs index b5400ec18..313a22df1 100644 --- a/Assets/ThirdParty/spine.timeline-4.1/Editor/SpineAnimationStateGraphicTrackInspector.cs +++ b/Assets/ThirdParty/spine.timeline-4.2/Editor/SpineAnimationStateGraphicTrackInspector.cs @@ -1,16 +1,16 @@ /****************************************************************************** * Spine Runtimes License Agreement - * Last updated September 24, 2021. Replaces all prior versions. + * Last updated July 28, 2023. Replaces all prior versions. * - * Copyright (c) 2013-2022, Esoteric Software LLC + * Copyright (c) 2013-2023, Esoteric Software LLC * * Integration of the Spine Runtimes into software or otherwise creating * derivative works of the Spine Runtimes is permitted under the terms and * conditions of Section 2 of the Spine Editor License Agreement: * http://esotericsoftware.com/spine-editor-license * - * Otherwise, it is permitted to integrate the Spine Runtimes into software - * or otherwise create derivative works of the Spine Runtimes (collectively, + * Otherwise, it is permitted to integrate the Spine Runtimes into software or + * otherwise create derivative works of the Spine Runtimes (collectively, * "Products"), provided that each user of the Products must obtain their own * Spine Editor license and redistribution of the Products in any form must * include this license and copyright notice. @@ -23,8 +23,8 @@ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, * BUSINESS INTERRUPTION, OR LOSS OF USE, DATA, OR PROFITS) HOWEVER CAUSED AND * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF - * THE SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THE + * SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. *****************************************************************************/ using Spine.Unity.Playables; @@ -40,7 +40,7 @@ namespace Spine.Unity.Editor { public class SpineAnimationStateGraphicTrackInspector : TrackEditor { public override TrackDrawOptions GetTrackOptions (TrackAsset track, UnityEngine.Object binding) { - var options = base.GetTrackOptions(track, binding); + TrackDrawOptions options = base.GetTrackOptions(track, binding); options.icon = SpineEditorUtilities.Icons.skeletonDataAssetIcon; options.trackColor = new Color(255 / 255.0f, 64 / 255.0f, 1 / 255.0f); return options; diff --git a/Assets/ThirdParty/spine.timeline-4.1/Editor/SpineAnimationStateGraphicTrackInspector.cs.meta b/Assets/ThirdParty/spine.timeline-4.2/Editor/SpineAnimationStateGraphicTrackInspector.cs.meta similarity index 100% rename from Assets/ThirdParty/spine.timeline-4.1/Editor/SpineAnimationStateGraphicTrackInspector.cs.meta rename to Assets/ThirdParty/spine.timeline-4.2/Editor/SpineAnimationStateGraphicTrackInspector.cs.meta diff --git a/Assets/ThirdParty/spine.timeline-4.1/Editor/SpineAnimationStateTrackInspector.cs b/Assets/ThirdParty/spine.timeline-4.2/Editor/SpineAnimationStateTrackInspector.cs similarity index 87% rename from Assets/ThirdParty/spine.timeline-4.1/Editor/SpineAnimationStateTrackInspector.cs rename to Assets/ThirdParty/spine.timeline-4.2/Editor/SpineAnimationStateTrackInspector.cs index 4cc3a758c..d4bdaff21 100644 --- a/Assets/ThirdParty/spine.timeline-4.1/Editor/SpineAnimationStateTrackInspector.cs +++ b/Assets/ThirdParty/spine.timeline-4.2/Editor/SpineAnimationStateTrackInspector.cs @@ -1,16 +1,16 @@ /****************************************************************************** * Spine Runtimes License Agreement - * Last updated September 24, 2021. Replaces all prior versions. + * Last updated July 28, 2023. Replaces all prior versions. * - * Copyright (c) 2013-2022, Esoteric Software LLC + * Copyright (c) 2013-2023, Esoteric Software LLC * * Integration of the Spine Runtimes into software or otherwise creating * derivative works of the Spine Runtimes is permitted under the terms and * conditions of Section 2 of the Spine Editor License Agreement: * http://esotericsoftware.com/spine-editor-license * - * Otherwise, it is permitted to integrate the Spine Runtimes into software - * or otherwise create derivative works of the Spine Runtimes (collectively, + * Otherwise, it is permitted to integrate the Spine Runtimes into software or + * otherwise create derivative works of the Spine Runtimes (collectively, * "Products"), provided that each user of the Products must obtain their own * Spine Editor license and redistribution of the Products in any form must * include this license and copyright notice. @@ -23,8 +23,8 @@ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, * BUSINESS INTERRUPTION, OR LOSS OF USE, DATA, OR PROFITS) HOWEVER CAUSED AND * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF - * THE SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THE + * SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. *****************************************************************************/ using Spine.Unity.Playables; @@ -40,7 +40,7 @@ namespace Spine.Unity.Editor { public class SpineAnimationStateTrackInspector : TrackEditor { public override TrackDrawOptions GetTrackOptions (TrackAsset track, UnityEngine.Object binding) { - var options = base.GetTrackOptions(track, binding); + TrackDrawOptions options = base.GetTrackOptions(track, binding); options.icon = SpineEditorUtilities.Icons.skeletonDataAssetIcon; options.trackColor = new Color(255 / 255.0f, 64 / 255.0f, 1 / 255.0f); return options; diff --git a/Assets/ThirdParty/spine.timeline-4.1/Editor/SpineAnimationStateTrackInspector.cs.meta b/Assets/ThirdParty/spine.timeline-4.2/Editor/SpineAnimationStateTrackInspector.cs.meta similarity index 100% rename from Assets/ThirdParty/spine.timeline-4.1/Editor/SpineAnimationStateTrackInspector.cs.meta rename to Assets/ThirdParty/spine.timeline-4.2/Editor/SpineAnimationStateTrackInspector.cs.meta diff --git a/Assets/ThirdParty/spine.timeline-4.1/Editor/SpineSkeletonFlipClipEditor.cs b/Assets/ThirdParty/spine.timeline-4.2/Editor/SpineSkeletonFlipClipEditor.cs similarity index 82% rename from Assets/ThirdParty/spine.timeline-4.1/Editor/SpineSkeletonFlipClipEditor.cs rename to Assets/ThirdParty/spine.timeline-4.2/Editor/SpineSkeletonFlipClipEditor.cs index 536c87246..a52a88105 100644 --- a/Assets/ThirdParty/spine.timeline-4.1/Editor/SpineSkeletonFlipClipEditor.cs +++ b/Assets/ThirdParty/spine.timeline-4.2/Editor/SpineSkeletonFlipClipEditor.cs @@ -1,16 +1,16 @@ /****************************************************************************** * Spine Runtimes License Agreement - * Last updated September 24, 2021. Replaces all prior versions. + * Last updated July 28, 2023. Replaces all prior versions. * - * Copyright (c) 2013-2022, Esoteric Software LLC + * Copyright (c) 2013-2023, Esoteric Software LLC * * Integration of the Spine Runtimes into software or otherwise creating * derivative works of the Spine Runtimes is permitted under the terms and * conditions of Section 2 of the Spine Editor License Agreement: * http://esotericsoftware.com/spine-editor-license * - * Otherwise, it is permitted to integrate the Spine Runtimes into software - * or otherwise create derivative works of the Spine Runtimes (collectively, + * Otherwise, it is permitted to integrate the Spine Runtimes into software or + * otherwise create derivative works of the Spine Runtimes (collectively, * "Products"), provided that each user of the Products must obtain their own * Spine Editor license and redistribution of the Products in any form must * include this license and copyright notice. @@ -23,8 +23,8 @@ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, * BUSINESS INTERRUPTION, OR LOSS OF USE, DATA, OR PROFITS) HOWEVER CAUSED AND * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF - * THE SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THE + * SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. *****************************************************************************/ #if UNITY_2019_1_OR_NEWER @@ -33,8 +33,8 @@ #if TIMELINE_HAS_CLIPEDITOR_CLASS -using UnityEditor; using Spine.Unity.Playables; +using UnityEditor; using UnityEditor.Timeline; using UnityEngine.Timeline; @@ -51,11 +51,11 @@ namespace Spine.Unity.Editor { SetDisplayName(clip); } - protected void SetDisplayName(TimelineClip clip) { - var flipClip = (SpineSkeletonFlipClip)clip.asset; + protected void SetDisplayName (TimelineClip clip) { + SpineSkeletonFlipClip flipClip = (SpineSkeletonFlipClip)clip.asset; if (flipClip != null) { bool flipX = false, flipY = false; - var settings = flipClip.template; + SpineSkeletonFlipBehaviour settings = flipClip.template; if (settings != null) { flipX = settings.flipX; flipY = settings.flipY; diff --git a/Assets/ThirdParty/spine.timeline-4.1/Editor/SpineSkeletonFlipClipEditor.cs.meta b/Assets/ThirdParty/spine.timeline-4.2/Editor/SpineSkeletonFlipClipEditor.cs.meta similarity index 100% rename from Assets/ThirdParty/spine.timeline-4.1/Editor/SpineSkeletonFlipClipEditor.cs.meta rename to Assets/ThirdParty/spine.timeline-4.2/Editor/SpineSkeletonFlipClipEditor.cs.meta diff --git a/Assets/ThirdParty/spine.timeline-4.1/Editor/SpineSkeletonFlipClipInspector.cs b/Assets/ThirdParty/spine.timeline-4.2/Editor/SpineSkeletonFlipClipInspector.cs similarity index 87% rename from Assets/ThirdParty/spine.timeline-4.1/Editor/SpineSkeletonFlipClipInspector.cs rename to Assets/ThirdParty/spine.timeline-4.2/Editor/SpineSkeletonFlipClipInspector.cs index 2d1bc6acd..5617124f0 100644 --- a/Assets/ThirdParty/spine.timeline-4.1/Editor/SpineSkeletonFlipClipInspector.cs +++ b/Assets/ThirdParty/spine.timeline-4.2/Editor/SpineSkeletonFlipClipInspector.cs @@ -1,16 +1,16 @@ /****************************************************************************** * Spine Runtimes License Agreement - * Last updated September 24, 2021. Replaces all prior versions. + * Last updated July 28, 2023. Replaces all prior versions. * - * Copyright (c) 2013-2022, Esoteric Software LLC + * Copyright (c) 2013-2023, Esoteric Software LLC * * Integration of the Spine Runtimes into software or otherwise creating * derivative works of the Spine Runtimes is permitted under the terms and * conditions of Section 2 of the Spine Editor License Agreement: * http://esotericsoftware.com/spine-editor-license * - * Otherwise, it is permitted to integrate the Spine Runtimes into software - * or otherwise create derivative works of the Spine Runtimes (collectively, + * Otherwise, it is permitted to integrate the Spine Runtimes into software or + * otherwise create derivative works of the Spine Runtimes (collectively, * "Products"), provided that each user of the Products must obtain their own * Spine Editor license and redistribution of the Products in any form must * include this license and copyright notice. @@ -23,8 +23,8 @@ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, * BUSINESS INTERRUPTION, OR LOSS OF USE, DATA, OR PROFITS) HOWEVER CAUSED AND * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF - * THE SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THE + * SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. *****************************************************************************/ using Spine.Unity.Playables; diff --git a/Assets/ThirdParty/spine.timeline-4.1/Editor/SpineSkeletonFlipClipInspector.cs.meta b/Assets/ThirdParty/spine.timeline-4.2/Editor/SpineSkeletonFlipClipInspector.cs.meta similarity index 100% rename from Assets/ThirdParty/spine.timeline-4.1/Editor/SpineSkeletonFlipClipInspector.cs.meta rename to Assets/ThirdParty/spine.timeline-4.2/Editor/SpineSkeletonFlipClipInspector.cs.meta diff --git a/Assets/ThirdParty/spine.timeline-4.1/Editor/SpineSkeletonFlipDrawer.cs b/Assets/ThirdParty/spine.timeline-4.2/Editor/SpineSkeletonFlipDrawer.cs similarity index 88% rename from Assets/ThirdParty/spine.timeline-4.1/Editor/SpineSkeletonFlipDrawer.cs rename to Assets/ThirdParty/spine.timeline-4.2/Editor/SpineSkeletonFlipDrawer.cs index b9f031c13..428180d8a 100644 --- a/Assets/ThirdParty/spine.timeline-4.1/Editor/SpineSkeletonFlipDrawer.cs +++ b/Assets/ThirdParty/spine.timeline-4.2/Editor/SpineSkeletonFlipDrawer.cs @@ -1,16 +1,16 @@ /****************************************************************************** * Spine Runtimes License Agreement - * Last updated September 24, 2021. Replaces all prior versions. + * Last updated July 28, 2023. Replaces all prior versions. * - * Copyright (c) 2013-2022, Esoteric Software LLC + * Copyright (c) 2013-2023, Esoteric Software LLC * * Integration of the Spine Runtimes into software or otherwise creating * derivative works of the Spine Runtimes is permitted under the terms and * conditions of Section 2 of the Spine Editor License Agreement: * http://esotericsoftware.com/spine-editor-license * - * Otherwise, it is permitted to integrate the Spine Runtimes into software - * or otherwise create derivative works of the Spine Runtimes (collectively, + * Otherwise, it is permitted to integrate the Spine Runtimes into software or + * otherwise create derivative works of the Spine Runtimes (collectively, * "Products"), provided that each user of the Products must obtain their own * Spine Editor license and redistribution of the Products in any form must * include this license and copyright notice. @@ -23,8 +23,8 @@ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, * BUSINESS INTERRUPTION, OR LOSS OF USE, DATA, OR PROFITS) HOWEVER CAUSED AND * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF - * THE SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THE + * SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. *****************************************************************************/ using UnityEditor; diff --git a/Assets/ThirdParty/spine.timeline-4.1/Editor/SpineSkeletonFlipDrawer.cs.meta b/Assets/ThirdParty/spine.timeline-4.2/Editor/SpineSkeletonFlipDrawer.cs.meta similarity index 100% rename from Assets/ThirdParty/spine.timeline-4.1/Editor/SpineSkeletonFlipDrawer.cs.meta rename to Assets/ThirdParty/spine.timeline-4.2/Editor/SpineSkeletonFlipDrawer.cs.meta diff --git a/Assets/ThirdParty/spine.timeline-4.1/Editor/SpineSkeletonFlipTrackInspector.cs b/Assets/ThirdParty/spine.timeline-4.2/Editor/SpineSkeletonFlipTrackInspector.cs similarity index 84% rename from Assets/ThirdParty/spine.timeline-4.1/Editor/SpineSkeletonFlipTrackInspector.cs rename to Assets/ThirdParty/spine.timeline-4.2/Editor/SpineSkeletonFlipTrackInspector.cs index 6dc864d7e..d4a7a7d0f 100644 --- a/Assets/ThirdParty/spine.timeline-4.1/Editor/SpineSkeletonFlipTrackInspector.cs +++ b/Assets/ThirdParty/spine.timeline-4.2/Editor/SpineSkeletonFlipTrackInspector.cs @@ -1,16 +1,16 @@ /****************************************************************************** * Spine Runtimes License Agreement - * Last updated September 24, 2021. Replaces all prior versions. + * Last updated July 28, 2023. Replaces all prior versions. * - * Copyright (c) 2013-2022, Esoteric Software LLC + * Copyright (c) 2013-2023, Esoteric Software LLC * * Integration of the Spine Runtimes into software or otherwise creating * derivative works of the Spine Runtimes is permitted under the terms and * conditions of Section 2 of the Spine Editor License Agreement: * http://esotericsoftware.com/spine-editor-license * - * Otherwise, it is permitted to integrate the Spine Runtimes into software - * or otherwise create derivative works of the Spine Runtimes (collectively, + * Otherwise, it is permitted to integrate the Spine Runtimes into software or + * otherwise create derivative works of the Spine Runtimes (collectively, * "Products"), provided that each user of the Products must obtain their own * Spine Editor license and redistribution of the Products in any form must * include this license and copyright notice. @@ -23,8 +23,8 @@ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, * BUSINESS INTERRUPTION, OR LOSS OF USE, DATA, OR PROFITS) HOWEVER CAUSED AND * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF - * THE SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THE + * SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. *****************************************************************************/ using Spine.Unity.Playables; @@ -40,7 +40,7 @@ namespace Spine.Unity.Editor { public class SpineSkeletonFlipTrackInspector : TrackEditor { public override TrackDrawOptions GetTrackOptions (TrackAsset track, UnityEngine.Object binding) { - var options = base.GetTrackOptions(track, binding); + TrackDrawOptions options = base.GetTrackOptions(track, binding); options.icon = SpineEditorUtilities.Icons.subMeshRenderer; options.trackColor = new Color(0.855f, 0.8623f, 0.87f); return options; diff --git a/Assets/ThirdParty/spine.timeline-4.1/Editor/SpineSkeletonFlipTrackInspector.cs.meta b/Assets/ThirdParty/spine.timeline-4.2/Editor/SpineSkeletonFlipTrackInspector.cs.meta similarity index 100% rename from Assets/ThirdParty/spine.timeline-4.1/Editor/SpineSkeletonFlipTrackInspector.cs.meta rename to Assets/ThirdParty/spine.timeline-4.2/Editor/SpineSkeletonFlipTrackInspector.cs.meta diff --git a/Assets/ThirdParty/spine.timeline-4.1/Editor/spine-timeline-editor.asmdef b/Assets/ThirdParty/spine.timeline-4.2/Editor/spine-timeline-editor.asmdef similarity index 100% rename from Assets/ThirdParty/spine.timeline-4.1/Editor/spine-timeline-editor.asmdef rename to Assets/ThirdParty/spine.timeline-4.2/Editor/spine-timeline-editor.asmdef diff --git a/Assets/ThirdParty/spine.timeline-4.1/Editor/spine-timeline-editor.asmdef.meta b/Assets/ThirdParty/spine.timeline-4.2/Editor/spine-timeline-editor.asmdef.meta similarity index 100% rename from Assets/ThirdParty/spine.timeline-4.1/Editor/spine-timeline-editor.asmdef.meta rename to Assets/ThirdParty/spine.timeline-4.2/Editor/spine-timeline-editor.asmdef.meta diff --git a/Assets/ThirdParty/spine.timeline-4.2/LICENSE.md b/Assets/ThirdParty/spine.timeline-4.2/LICENSE.md new file mode 100644 index 000000000..4425c6122 --- /dev/null +++ b/Assets/ThirdParty/spine.timeline-4.2/LICENSE.md @@ -0,0 +1,26 @@ +# Spine Runtimes License Agreement +Last updated July 28, 2023. Replaces all prior versions. + +Copyright (c) 2013-2023, Esoteric Software LLC + +Integration of the Spine Runtimes into software or otherwise creating +derivative works of the Spine Runtimes is permitted under the terms and +conditions of Section 2 of the Spine Editor License Agreement: +http://esotericsoftware.com/spine-editor-license + +Otherwise, it is permitted to integrate the Spine Runtimes into software or +otherwise create derivative works of the Spine Runtimes (collectively, +"Products"), provided that each user of the Products must obtain their own +Spine Editor license and redistribution of the Products in any form must +include this license and copyright notice. + +THE SPINE RUNTIMES ARE PROVIDED BY ESOTERIC SOFTWARE LLC "AS IS" AND ANY +EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL ESOTERIC SOFTWARE LLC BE LIABLE FOR ANY +DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, +BUSINESS INTERRUPTION, OR LOSS OF USE, DATA, OR PROFITS) HOWEVER CAUSED AND +ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THE +SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. \ No newline at end of file diff --git a/Assets/ThirdParty/spine.timeline-4.1/LICENSE.md.meta b/Assets/ThirdParty/spine.timeline-4.2/LICENSE.md.meta similarity index 100% rename from Assets/ThirdParty/spine.timeline-4.1/LICENSE.md.meta rename to Assets/ThirdParty/spine.timeline-4.2/LICENSE.md.meta diff --git a/Assets/ThirdParty/spine.timeline-4.1/Runtime.meta b/Assets/ThirdParty/spine.timeline-4.2/Runtime.meta similarity index 100% rename from Assets/ThirdParty/spine.timeline-4.1/Runtime.meta rename to Assets/ThirdParty/spine.timeline-4.2/Runtime.meta diff --git a/Assets/ThirdParty/spine.timeline-4.1/Runtime/PlayableHandle Component.meta b/Assets/ThirdParty/spine.timeline-4.2/Runtime/PlayableHandle Component.meta similarity index 100% rename from Assets/ThirdParty/spine.timeline-4.1/Runtime/PlayableHandle Component.meta rename to Assets/ThirdParty/spine.timeline-4.2/Runtime/PlayableHandle Component.meta diff --git a/Assets/ThirdParty/spine.timeline-4.1/Runtime/PlayableHandle Component/SkeletonAnimationPlayableHandle.cs b/Assets/ThirdParty/spine.timeline-4.2/Runtime/PlayableHandle Component/SkeletonAnimationPlayableHandle.cs similarity index 89% rename from Assets/ThirdParty/spine.timeline-4.1/Runtime/PlayableHandle Component/SkeletonAnimationPlayableHandle.cs rename to Assets/ThirdParty/spine.timeline-4.2/Runtime/PlayableHandle Component/SkeletonAnimationPlayableHandle.cs index 2f5709585..d2ed9518f 100644 --- a/Assets/ThirdParty/spine.timeline-4.1/Runtime/PlayableHandle Component/SkeletonAnimationPlayableHandle.cs +++ b/Assets/ThirdParty/spine.timeline-4.2/Runtime/PlayableHandle Component/SkeletonAnimationPlayableHandle.cs @@ -1,16 +1,16 @@ /****************************************************************************** * Spine Runtimes License Agreement - * Last updated September 24, 2021. Replaces all prior versions. + * Last updated July 28, 2023. Replaces all prior versions. * - * Copyright (c) 2013-2022, Esoteric Software LLC + * Copyright (c) 2013-2023, Esoteric Software LLC * * Integration of the Spine Runtimes into software or otherwise creating * derivative works of the Spine Runtimes is permitted under the terms and * conditions of Section 2 of the Spine Editor License Agreement: * http://esotericsoftware.com/spine-editor-license * - * Otherwise, it is permitted to integrate the Spine Runtimes into software - * or otherwise create derivative works of the Spine Runtimes (collectively, + * Otherwise, it is permitted to integrate the Spine Runtimes into software or + * otherwise create derivative works of the Spine Runtimes (collectively, * "Products"), provided that each user of the Products must obtain their own * Spine Editor license and redistribution of the Products in any form must * include this license and copyright notice. @@ -23,8 +23,8 @@ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, * BUSINESS INTERRUPTION, OR LOSS OF USE, DATA, OR PROFITS) HOWEVER CAUSED AND * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF - * THE SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THE + * SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. *****************************************************************************/ //using UnityEngine.Playables; diff --git a/Assets/ThirdParty/spine.timeline-4.1/Runtime/PlayableHandle Component/SkeletonAnimationPlayableHandle.cs.meta b/Assets/ThirdParty/spine.timeline-4.2/Runtime/PlayableHandle Component/SkeletonAnimationPlayableHandle.cs.meta similarity index 100% rename from Assets/ThirdParty/spine.timeline-4.1/Runtime/PlayableHandle Component/SkeletonAnimationPlayableHandle.cs.meta rename to Assets/ThirdParty/spine.timeline-4.2/Runtime/PlayableHandle Component/SkeletonAnimationPlayableHandle.cs.meta diff --git a/Assets/ThirdParty/spine.timeline-4.1/Runtime/PlayableHandle Component/SkeletonGraphicPlayableHandle.cs b/Assets/ThirdParty/spine.timeline-4.2/Runtime/PlayableHandle Component/SkeletonGraphicPlayableHandle.cs similarity index 88% rename from Assets/ThirdParty/spine.timeline-4.1/Runtime/PlayableHandle Component/SkeletonGraphicPlayableHandle.cs rename to Assets/ThirdParty/spine.timeline-4.2/Runtime/PlayableHandle Component/SkeletonGraphicPlayableHandle.cs index 5b7bd15a8..c38ae1ec5 100644 --- a/Assets/ThirdParty/spine.timeline-4.1/Runtime/PlayableHandle Component/SkeletonGraphicPlayableHandle.cs +++ b/Assets/ThirdParty/spine.timeline-4.2/Runtime/PlayableHandle Component/SkeletonGraphicPlayableHandle.cs @@ -1,16 +1,16 @@ /****************************************************************************** * Spine Runtimes License Agreement - * Last updated September 24, 2021. Replaces all prior versions. + * Last updated July 28, 2023. Replaces all prior versions. * - * Copyright (c) 2013-2022, Esoteric Software LLC + * Copyright (c) 2013-2023, Esoteric Software LLC * * Integration of the Spine Runtimes into software or otherwise creating * derivative works of the Spine Runtimes is permitted under the terms and * conditions of Section 2 of the Spine Editor License Agreement: * http://esotericsoftware.com/spine-editor-license * - * Otherwise, it is permitted to integrate the Spine Runtimes into software - * or otherwise create derivative works of the Spine Runtimes (collectively, + * Otherwise, it is permitted to integrate the Spine Runtimes into software or + * otherwise create derivative works of the Spine Runtimes (collectively, * "Products"), provided that each user of the Products must obtain their own * Spine Editor license and redistribution of the Products in any form must * include this license and copyright notice. @@ -23,8 +23,8 @@ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, * BUSINESS INTERRUPTION, OR LOSS OF USE, DATA, OR PROFITS) HOWEVER CAUSED AND * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF - * THE SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THE + * SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. *****************************************************************************/ //using UnityEngine.Playables; diff --git a/Assets/ThirdParty/spine.timeline-4.1/Runtime/PlayableHandle Component/SkeletonGraphicPlayableHandle.cs.meta b/Assets/ThirdParty/spine.timeline-4.2/Runtime/PlayableHandle Component/SkeletonGraphicPlayableHandle.cs.meta similarity index 100% rename from Assets/ThirdParty/spine.timeline-4.1/Runtime/PlayableHandle Component/SkeletonGraphicPlayableHandle.cs.meta rename to Assets/ThirdParty/spine.timeline-4.2/Runtime/PlayableHandle Component/SkeletonGraphicPlayableHandle.cs.meta diff --git a/Assets/ThirdParty/spine.timeline-4.1/Runtime/PlayableHandle Component/SpinePlayableHandleBase.cs b/Assets/ThirdParty/spine.timeline-4.2/Runtime/PlayableHandle Component/SpinePlayableHandleBase.cs similarity index 89% rename from Assets/ThirdParty/spine.timeline-4.1/Runtime/PlayableHandle Component/SpinePlayableHandleBase.cs rename to Assets/ThirdParty/spine.timeline-4.2/Runtime/PlayableHandle Component/SpinePlayableHandleBase.cs index 663476053..13022e0e0 100644 --- a/Assets/ThirdParty/spine.timeline-4.1/Runtime/PlayableHandle Component/SpinePlayableHandleBase.cs +++ b/Assets/ThirdParty/spine.timeline-4.2/Runtime/PlayableHandle Component/SpinePlayableHandleBase.cs @@ -1,16 +1,16 @@ /****************************************************************************** * Spine Runtimes License Agreement - * Last updated September 24, 2021. Replaces all prior versions. + * Last updated July 28, 2023. Replaces all prior versions. * - * Copyright (c) 2013-2022, Esoteric Software LLC + * Copyright (c) 2013-2023, Esoteric Software LLC * * Integration of the Spine Runtimes into software or otherwise creating * derivative works of the Spine Runtimes is permitted under the terms and * conditions of Section 2 of the Spine Editor License Agreement: * http://esotericsoftware.com/spine-editor-license * - * Otherwise, it is permitted to integrate the Spine Runtimes into software - * or otherwise create derivative works of the Spine Runtimes (collectively, + * Otherwise, it is permitted to integrate the Spine Runtimes into software or + * otherwise create derivative works of the Spine Runtimes (collectively, * "Products"), provided that each user of the Products must obtain their own * Spine Editor license and redistribution of the Products in any form must * include this license and copyright notice. @@ -23,8 +23,8 @@ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, * BUSINESS INTERRUPTION, OR LOSS OF USE, DATA, OR PROFITS) HOWEVER CAUSED AND * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF - * THE SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THE + * SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. *****************************************************************************/ using System.Collections; diff --git a/Assets/ThirdParty/spine.timeline-4.1/Runtime/PlayableHandle Component/SpinePlayableHandleBase.cs.meta b/Assets/ThirdParty/spine.timeline-4.2/Runtime/PlayableHandle Component/SpinePlayableHandleBase.cs.meta similarity index 100% rename from Assets/ThirdParty/spine.timeline-4.1/Runtime/PlayableHandle Component/SpinePlayableHandleBase.cs.meta rename to Assets/ThirdParty/spine.timeline-4.2/Runtime/PlayableHandle Component/SpinePlayableHandleBase.cs.meta diff --git a/Assets/ThirdParty/spine.timeline-4.1/Runtime/SpineAnimationState.meta b/Assets/ThirdParty/spine.timeline-4.2/Runtime/SpineAnimationState.meta similarity index 100% rename from Assets/ThirdParty/spine.timeline-4.1/Runtime/SpineAnimationState.meta rename to Assets/ThirdParty/spine.timeline-4.2/Runtime/SpineAnimationState.meta diff --git a/Assets/ThirdParty/spine.timeline-4.1/Runtime/SpineAnimationState/SpineAnimationStateBehaviour.cs b/Assets/ThirdParty/spine.timeline-4.2/Runtime/SpineAnimationState/SpineAnimationStateBehaviour.cs similarity index 90% rename from Assets/ThirdParty/spine.timeline-4.1/Runtime/SpineAnimationState/SpineAnimationStateBehaviour.cs rename to Assets/ThirdParty/spine.timeline-4.2/Runtime/SpineAnimationState/SpineAnimationStateBehaviour.cs index 0e097d01a..5bb8fe4a2 100644 --- a/Assets/ThirdParty/spine.timeline-4.1/Runtime/SpineAnimationState/SpineAnimationStateBehaviour.cs +++ b/Assets/ThirdParty/spine.timeline-4.2/Runtime/SpineAnimationState/SpineAnimationStateBehaviour.cs @@ -1,16 +1,16 @@ /****************************************************************************** * Spine Runtimes License Agreement - * Last updated September 24, 2021. Replaces all prior versions. + * Last updated July 28, 2023. Replaces all prior versions. * - * Copyright (c) 2013-2022, Esoteric Software LLC + * Copyright (c) 2013-2023, Esoteric Software LLC * * Integration of the Spine Runtimes into software or otherwise creating * derivative works of the Spine Runtimes is permitted under the terms and * conditions of Section 2 of the Spine Editor License Agreement: * http://esotericsoftware.com/spine-editor-license * - * Otherwise, it is permitted to integrate the Spine Runtimes into software - * or otherwise create derivative works of the Spine Runtimes (collectively, + * Otherwise, it is permitted to integrate the Spine Runtimes into software or + * otherwise create derivative works of the Spine Runtimes (collectively, * "Products"), provided that each user of the Products must obtain their own * Spine Editor license and redistribution of the Products in any form must * include this license and copyright notice. @@ -23,8 +23,8 @@ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, * BUSINESS INTERRUPTION, OR LOSS OF USE, DATA, OR PROFITS) HOWEVER CAUSED AND * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF - * THE SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THE + * SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. *****************************************************************************/ using Spine; diff --git a/Assets/ThirdParty/spine.timeline-4.1/Runtime/SpineAnimationState/SpineAnimationStateBehaviour.cs.meta b/Assets/ThirdParty/spine.timeline-4.2/Runtime/SpineAnimationState/SpineAnimationStateBehaviour.cs.meta similarity index 100% rename from Assets/ThirdParty/spine.timeline-4.1/Runtime/SpineAnimationState/SpineAnimationStateBehaviour.cs.meta rename to Assets/ThirdParty/spine.timeline-4.2/Runtime/SpineAnimationState/SpineAnimationStateBehaviour.cs.meta diff --git a/Assets/ThirdParty/spine.timeline-4.1/Runtime/SpineAnimationState/SpineAnimationStateClip.cs b/Assets/ThirdParty/spine.timeline-4.2/Runtime/SpineAnimationState/SpineAnimationStateClip.cs similarity index 89% rename from Assets/ThirdParty/spine.timeline-4.1/Runtime/SpineAnimationState/SpineAnimationStateClip.cs rename to Assets/ThirdParty/spine.timeline-4.2/Runtime/SpineAnimationState/SpineAnimationStateClip.cs index 5f8715be7..ceadf0463 100644 --- a/Assets/ThirdParty/spine.timeline-4.1/Runtime/SpineAnimationState/SpineAnimationStateClip.cs +++ b/Assets/ThirdParty/spine.timeline-4.2/Runtime/SpineAnimationState/SpineAnimationStateClip.cs @@ -1,16 +1,16 @@ /****************************************************************************** * Spine Runtimes License Agreement - * Last updated September 24, 2021. Replaces all prior versions. + * Last updated July 28, 2023. Replaces all prior versions. * - * Copyright (c) 2013-2022, Esoteric Software LLC + * Copyright (c) 2013-2023, Esoteric Software LLC * * Integration of the Spine Runtimes into software or otherwise creating * derivative works of the Spine Runtimes is permitted under the terms and * conditions of Section 2 of the Spine Editor License Agreement: * http://esotericsoftware.com/spine-editor-license * - * Otherwise, it is permitted to integrate the Spine Runtimes into software - * or otherwise create derivative works of the Spine Runtimes (collectively, + * Otherwise, it is permitted to integrate the Spine Runtimes into software or + * otherwise create derivative works of the Spine Runtimes (collectively, * "Products"), provided that each user of the Products must obtain their own * Spine Editor license and redistribution of the Products in any form must * include this license and copyright notice. @@ -23,8 +23,8 @@ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, * BUSINESS INTERRUPTION, OR LOSS OF USE, DATA, OR PROFITS) HOWEVER CAUSED AND * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF - * THE SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THE + * SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. *****************************************************************************/ using System; diff --git a/Assets/ThirdParty/spine.timeline-4.1/Runtime/SpineAnimationState/SpineAnimationStateClip.cs.meta b/Assets/ThirdParty/spine.timeline-4.2/Runtime/SpineAnimationState/SpineAnimationStateClip.cs.meta similarity index 100% rename from Assets/ThirdParty/spine.timeline-4.1/Runtime/SpineAnimationState/SpineAnimationStateClip.cs.meta rename to Assets/ThirdParty/spine.timeline-4.2/Runtime/SpineAnimationState/SpineAnimationStateClip.cs.meta diff --git a/Assets/ThirdParty/spine.timeline-4.1/Runtime/SpineAnimationState/SpineAnimationStateGraphicTrack.cs b/Assets/ThirdParty/spine.timeline-4.2/Runtime/SpineAnimationState/SpineAnimationStateGraphicTrack.cs similarity index 86% rename from Assets/ThirdParty/spine.timeline-4.1/Runtime/SpineAnimationState/SpineAnimationStateGraphicTrack.cs rename to Assets/ThirdParty/spine.timeline-4.2/Runtime/SpineAnimationState/SpineAnimationStateGraphicTrack.cs index 86769624f..7311c3228 100644 --- a/Assets/ThirdParty/spine.timeline-4.1/Runtime/SpineAnimationState/SpineAnimationStateGraphicTrack.cs +++ b/Assets/ThirdParty/spine.timeline-4.2/Runtime/SpineAnimationState/SpineAnimationStateGraphicTrack.cs @@ -1,16 +1,16 @@ /****************************************************************************** * Spine Runtimes License Agreement - * Last updated September 24, 2021. Replaces all prior versions. + * Last updated July 28, 2023. Replaces all prior versions. * - * Copyright (c) 2013-2022, Esoteric Software LLC + * Copyright (c) 2013-2023, Esoteric Software LLC * * Integration of the Spine Runtimes into software or otherwise creating * derivative works of the Spine Runtimes is permitted under the terms and * conditions of Section 2 of the Spine Editor License Agreement: * http://esotericsoftware.com/spine-editor-license * - * Otherwise, it is permitted to integrate the Spine Runtimes into software - * or otherwise create derivative works of the Spine Runtimes (collectively, + * Otherwise, it is permitted to integrate the Spine Runtimes into software or + * otherwise create derivative works of the Spine Runtimes (collectively, * "Products"), provided that each user of the Products must obtain their own * Spine Editor license and redistribution of the Products in any form must * include this license and copyright notice. @@ -23,8 +23,8 @@ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, * BUSINESS INTERRUPTION, OR LOSS OF USE, DATA, OR PROFITS) HOWEVER CAUSED AND * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF - * THE SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THE + * SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. *****************************************************************************/ #if UNITY_EDITOR @@ -55,13 +55,13 @@ namespace Spine.Unity.Playables { public override Playable CreateTrackMixer (PlayableGraph graph, GameObject go, int inputCount) { IEnumerable clips = this.GetClips(); foreach (TimelineClip clip in clips) { - var animationStateClip = clip.asset as SpineAnimationStateClip; + SpineAnimationStateClip animationStateClip = clip.asset as SpineAnimationStateClip; if (animationStateClip != null) animationStateClip.timelineClip = clip; } var scriptPlayable = ScriptPlayable.Create(graph, inputCount); - var mixerBehaviour = scriptPlayable.GetBehaviour(); + SpineAnimationStateMixerBehaviour mixerBehaviour = scriptPlayable.GetBehaviour(); mixerBehaviour.trackIndex = this.trackIndex; mixerBehaviour.unscaledTime = this.unscaledTime; return scriptPlayable; diff --git a/Assets/ThirdParty/spine.timeline-4.1/Runtime/SpineAnimationState/SpineAnimationStateGraphicTrack.cs.meta b/Assets/ThirdParty/spine.timeline-4.2/Runtime/SpineAnimationState/SpineAnimationStateGraphicTrack.cs.meta similarity index 100% rename from Assets/ThirdParty/spine.timeline-4.1/Runtime/SpineAnimationState/SpineAnimationStateGraphicTrack.cs.meta rename to Assets/ThirdParty/spine.timeline-4.2/Runtime/SpineAnimationState/SpineAnimationStateGraphicTrack.cs.meta diff --git a/Assets/ThirdParty/spine.timeline-4.1/Runtime/SpineAnimationState/SpineAnimationStateMixerBehaviour.cs b/Assets/ThirdParty/spine.timeline-4.2/Runtime/SpineAnimationState/SpineAnimationStateMixerBehaviour.cs similarity index 82% rename from Assets/ThirdParty/spine.timeline-4.1/Runtime/SpineAnimationState/SpineAnimationStateMixerBehaviour.cs rename to Assets/ThirdParty/spine.timeline-4.2/Runtime/SpineAnimationState/SpineAnimationStateMixerBehaviour.cs index 3816cd10e..ccd7ceae2 100644 --- a/Assets/ThirdParty/spine.timeline-4.1/Runtime/SpineAnimationState/SpineAnimationStateMixerBehaviour.cs +++ b/Assets/ThirdParty/spine.timeline-4.2/Runtime/SpineAnimationState/SpineAnimationStateMixerBehaviour.cs @@ -1,16 +1,16 @@ /****************************************************************************** * Spine Runtimes License Agreement - * Last updated September 24, 2021. Replaces all prior versions. + * Last updated July 28, 2023. Replaces all prior versions. * - * Copyright (c) 2013-2022, Esoteric Software LLC + * Copyright (c) 2013-2023, Esoteric Software LLC * * Integration of the Spine Runtimes into software or otherwise creating * derivative works of the Spine Runtimes is permitted under the terms and * conditions of Section 2 of the Spine Editor License Agreement: * http://esotericsoftware.com/spine-editor-license * - * Otherwise, it is permitted to integrate the Spine Runtimes into software - * or otherwise create derivative works of the Spine Runtimes (collectively, + * Otherwise, it is permitted to integrate the Spine Runtimes into software or + * otherwise create derivative works of the Spine Runtimes (collectively, * "Products"), provided that each user of the Products must obtain their own * Spine Editor license and redistribution of the Products in any form must * include this license and copyright notice. @@ -23,11 +23,17 @@ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, * BUSINESS INTERRUPTION, OR LOSS OF USE, DATA, OR PROFITS) HOWEVER CAUSED AND * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF - * THE SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THE + * SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. *****************************************************************************/ +#if UNITY_2019_1_OR_NEWER +#define SPEED_INCLUDED_IN_CLIP_TIME +#endif + +#if UNITY_EDITOR #define SPINE_EDITMODEPOSE +#endif using System; using UnityEngine; @@ -64,7 +70,8 @@ namespace Spine.Unity.Playables { } public override void OnGraphStop (Playable playable) { - if (!isPaused && endAtClipEnd) + bool isStoppedNotPaused = playable.GetGraph().IsPlaying(); // end of track was reached or graph stopped. + if (isStoppedNotPaused && endAtClipEnd) HandleClipEnd(); } @@ -97,7 +104,7 @@ namespace Spine.Unity.Playables { protected void HandleClipEnd () { if (animationStateComponent.IsNullOrDestroyed()) return; - var state = animationStateComponent.AnimationState; + AnimationState state = animationStateComponent.AnimationState; if (endAtClipEnd && timelineStartedTrackEntry != null && timelineStartedTrackEntry == state.GetCurrent(trackIndex)) { @@ -124,14 +131,14 @@ namespace Spine.Unity.Playables { // NOTE: This function is called at runtime and edit time. Keep that in mind when setting the values of properties. public override void ProcessFrame (Playable playable, FrameData info, object playerData) { - var skeletonAnimation = playerData as SkeletonAnimation; - var skeletonGraphic = playerData as SkeletonGraphic; + SkeletonAnimation skeletonAnimation = playerData as SkeletonAnimation; + SkeletonGraphic skeletonGraphic = playerData as SkeletonGraphic; animationStateComponent = playerData as IAnimationStateComponent; - var skeletonComponent = playerData as ISkeletonComponent; + ISkeletonComponent skeletonComponent = playerData as ISkeletonComponent; if (animationStateComponent.IsNullOrDestroyed() || skeletonComponent == null) return; - var skeleton = skeletonComponent.Skeleton; - var state = animationStateComponent.AnimationState; + Skeleton skeleton = skeletonComponent.Skeleton; + AnimationState state = animationStateComponent.AnimationState; if (!Application.isPlaying) { #if SPINE_EDITMODEPOSE @@ -153,7 +160,7 @@ namespace Spine.Unity.Playables { for (int i = 0; i < inputCount; i++) this.lastInputWeights[i] = default(float); } - var lastInputWeights = this.lastInputWeights; + float[] lastInputWeights = this.lastInputWeights; int numStartingClips = 0; bool anyClipPlaying = false; @@ -161,7 +168,7 @@ namespace Spine.Unity.Playables { for (int i = 0; i < inputCount; i++) { float lastInputWeight = lastInputWeights[i]; float inputWeight = playable.GetInputWeight(i); - bool clipStarted = lastInputWeight == 0 && inputWeight > 0; + bool clipStarted = (inputWeight > 0) && (lastInputWeight == 0 || info.seekOccurred || info.timeLooped); if (inputWeight > 0) anyClipPlaying = true; lastInputWeights[i] = inputWeight; @@ -211,22 +218,25 @@ namespace Spine.Unity.Playables { float clipSpeed = (float)clipPlayable.GetSpeed(); trackEntry.EventThreshold = clipData.eventThreshold; - trackEntry.DrawOrderThreshold = clipData.drawOrderThreshold; - trackEntry.TrackTime = (float)clipPlayable.GetTime() * clipSpeed * rootPlayableSpeed; + trackEntry.MixDrawOrderThreshold = clipData.drawOrderThreshold; +#if SPEED_INCLUDED_IN_CLIP_TIME + trackEntry.TrackTime = (float)clipPlayable.GetTime(); +#else + trackEntry.TrackTime = (float)clipPlayable.GetTime() * rootPlayableSpeed * clipSpeed; +#endif trackEntry.TimeScale = clipSpeed * rootPlayableSpeed; - trackEntry.AttachmentThreshold = clipData.attachmentThreshold; + trackEntry.MixAttachmentThreshold = clipData.attachmentThreshold; trackEntry.HoldPrevious = clipData.holdPrevious; trackEntry.Alpha = clipData.alpha; if (clipData.customDuration) - trackEntry.MixDuration = customMixDuration / rootPlayableSpeed; + trackEntry.SetMixDuration(customMixDuration / rootPlayableSpeed, 0f); timelineStartedTrackEntry = trackEntry; } - //else Debug.LogWarningFormat("Animation named '{0}' not found", clipData.animationName); } - - // Ensure that the first frame ends with an updated mesh. + } + if (numStartingClips > 0) { if (skeletonAnimation) { skeletonAnimation.Update(0); skeletonAnimation.LateUpdate(); @@ -242,8 +252,11 @@ namespace Spine.Unity.Playables { } #if SPINE_EDITMODEPOSE + /// Animation event callback for editor scripts when outside of play-mode. + public static event AnimationState.TrackEntryEventDelegate EditorEvent; AnimationState dummyAnimationState; + ExposedList editorAnimationEvents = new ExposedList(); public void PreviewEditModePose (Playable playable, ISkeletonComponent skeletonComponent, IAnimationStateComponent animationStateComponent, @@ -251,6 +264,7 @@ namespace Spine.Unity.Playables { if (Application.isPlaying) return; if (animationStateComponent.IsNullOrDestroyed() || skeletonComponent == null) return; + editorAnimationEvents.Clear(false); int inputCount = playable.GetInputCount(); float rootSpeed = GetRootPlayableSpeed(playable); @@ -266,7 +280,7 @@ namespace Spine.Unity.Playables { (ScriptPlayable)playable.GetInput(lastNonZeroWeightTrack); SpineAnimationStateBehaviour clipData = inputPlayableClip.GetBehaviour(); - var skeleton = skeletonComponent.Skeleton; + Skeleton skeleton = skeletonComponent.Skeleton; bool skeletonDataMismatch = clipData.animationReference != null && clipData.animationReference.SkeletonDataAsset && skeletonComponent.SkeletonDataAsset.GetSkeletonData(true) != clipData.animationReference.SkeletonDataAsset.GetSkeletonData(true); @@ -281,14 +295,22 @@ namespace Spine.Unity.Playables { bool fromClipLoop = false; if (lastNonZeroWeightTrack != 0 && inputCount > 1) { var fromClip = (ScriptPlayable)playable.GetInput(lastNonZeroWeightTrack - 1); - var fromClipData = fromClip.GetBehaviour(); + SpineAnimationStateBehaviour fromClipData = fromClip.GetBehaviour(); fromAnimation = fromClipData.animationReference != null ? fromClipData.animationReference.Animation : null; +#if SPEED_INCLUDED_IN_CLIP_TIME + fromClipTime = (float)fromClip.GetTime(); +#else fromClipTime = (float)fromClip.GetTime() * (float)fromClip.GetSpeed() * rootSpeed; +#endif fromClipLoop = fromClipData.loop; } Animation toAnimation = clipData.animationReference != null ? clipData.animationReference.Animation : null; +#if SPEED_INCLUDED_IN_CLIP_TIME + float toClipTime = (float)inputPlayableClip.GetTime(); +#else float toClipTime = (float)inputPlayableClip.GetTime() * (float)inputPlayableClip.GetSpeed() * rootSpeed; +#endif float mixDuration = clipData.mixDuration; if (!clipData.customDuration && fromAnimation != null && toAnimation != null) { @@ -302,8 +324,8 @@ namespace Spine.Unity.Playables { if (fromAnimation != null && mixDuration > 0 && toClipTime < mixDuration) { dummyAnimationState = dummyAnimationState ?? new AnimationState(skeletonComponent.SkeletonDataAsset.GetAnimationStateData()); - var toEntry = dummyAnimationState.GetCurrent(0); - var fromEntry = toEntry != null ? toEntry.MixingFrom : null; + TrackEntry toEntry = dummyAnimationState.GetCurrent(0); + TrackEntry fromEntry = toEntry != null ? toEntry.MixingFrom : null; bool isAnimationTransitionMatch = (toEntry != null && toEntry.Animation == toAnimation && fromEntry != null && fromEntry.Animation == fromAnimation); if (!isAnimationTransitionMatch) { @@ -325,18 +347,27 @@ namespace Spine.Unity.Playables { } // Apply Pose + dummyAnimationState.Event += EditorEvent; dummyAnimationState.Update(0); dummyAnimationState.Apply(skeleton); + dummyAnimationState.Event -= EditorEvent; } else { - if (toAnimation != null) - toAnimation.Apply(skeleton, 0, toClipTime, clipData.loop, null, clipData.alpha, MixBlend.Setup, MixDirection.In); + if (toAnimation != null) { + toAnimation.Apply(skeleton, 0, toClipTime, clipData.loop, editorAnimationEvents, clipData.alpha, MixBlend.Setup, MixDirection.In); + if (EditorEvent != null) { + foreach (Spine.Event e in editorAnimationEvents) { + EditorEvent(null, e); + } + } + } } + skeleton.UpdateWorldTransform(Skeleton.Physics.Update); if (skeletonAnimation) { - skeletonAnimation.Update(0); + skeletonAnimation.AfterAnimationApplied(); skeletonAnimation.LateUpdate(); } else if (skeletonGraphic) { - skeletonGraphic.Update(0); + skeletonGraphic.AfterAnimationApplied(); skeletonGraphic.LateUpdate(); } } @@ -351,9 +382,9 @@ namespace Spine.Unity.Playables { return (float)graph.GetRootPlayable(0).GetSpeed(); else { for (int rootIndex = 0; rootIndex < rootPlayableCount; ++rootIndex) { - var rootPlayable = graph.GetRootPlayable(rootIndex); + Playable rootPlayable = graph.GetRootPlayable(rootIndex); for (int i = 0, n = rootPlayable.GetInputCount(); i < n; ++i) { - var playableChild = rootPlayable.GetInput(i); + Playable playableChild = rootPlayable.GetInput(i); if (playableChild.Equals(playable)) { return (float)rootPlayable.GetSpeed(); } diff --git a/Assets/ThirdParty/spine.timeline-4.1/Runtime/SpineAnimationState/SpineAnimationStateMixerBehaviour.cs.meta b/Assets/ThirdParty/spine.timeline-4.2/Runtime/SpineAnimationState/SpineAnimationStateMixerBehaviour.cs.meta similarity index 100% rename from Assets/ThirdParty/spine.timeline-4.1/Runtime/SpineAnimationState/SpineAnimationStateMixerBehaviour.cs.meta rename to Assets/ThirdParty/spine.timeline-4.2/Runtime/SpineAnimationState/SpineAnimationStateMixerBehaviour.cs.meta diff --git a/Assets/ThirdParty/spine.timeline-4.1/Runtime/SpineAnimationState/SpineAnimationStateTrack.cs b/Assets/ThirdParty/spine.timeline-4.2/Runtime/SpineAnimationState/SpineAnimationStateTrack.cs similarity index 86% rename from Assets/ThirdParty/spine.timeline-4.1/Runtime/SpineAnimationState/SpineAnimationStateTrack.cs rename to Assets/ThirdParty/spine.timeline-4.2/Runtime/SpineAnimationState/SpineAnimationStateTrack.cs index 29749953f..a494f283e 100644 --- a/Assets/ThirdParty/spine.timeline-4.1/Runtime/SpineAnimationState/SpineAnimationStateTrack.cs +++ b/Assets/ThirdParty/spine.timeline-4.2/Runtime/SpineAnimationState/SpineAnimationStateTrack.cs @@ -1,16 +1,16 @@ /****************************************************************************** * Spine Runtimes License Agreement - * Last updated September 24, 2021. Replaces all prior versions. + * Last updated July 28, 2023. Replaces all prior versions. * - * Copyright (c) 2013-2022, Esoteric Software LLC + * Copyright (c) 2013-2023, Esoteric Software LLC * * Integration of the Spine Runtimes into software or otherwise creating * derivative works of the Spine Runtimes is permitted under the terms and * conditions of Section 2 of the Spine Editor License Agreement: * http://esotericsoftware.com/spine-editor-license * - * Otherwise, it is permitted to integrate the Spine Runtimes into software - * or otherwise create derivative works of the Spine Runtimes (collectively, + * Otherwise, it is permitted to integrate the Spine Runtimes into software or + * otherwise create derivative works of the Spine Runtimes (collectively, * "Products"), provided that each user of the Products must obtain their own * Spine Editor license and redistribution of the Products in any form must * include this license and copyright notice. @@ -23,8 +23,8 @@ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, * BUSINESS INTERRUPTION, OR LOSS OF USE, DATA, OR PROFITS) HOWEVER CAUSED AND * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF - * THE SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THE + * SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. *****************************************************************************/ #if UNITY_EDITOR @@ -55,13 +55,13 @@ namespace Spine.Unity.Playables { public override Playable CreateTrackMixer (PlayableGraph graph, GameObject go, int inputCount) { IEnumerable clips = this.GetClips(); foreach (TimelineClip clip in clips) { - var animationStateClip = clip.asset as SpineAnimationStateClip; + SpineAnimationStateClip animationStateClip = clip.asset as SpineAnimationStateClip; if (animationStateClip != null) animationStateClip.timelineClip = clip; } var scriptPlayable = ScriptPlayable.Create(graph, inputCount); - var mixerBehaviour = scriptPlayable.GetBehaviour(); + SpineAnimationStateMixerBehaviour mixerBehaviour = scriptPlayable.GetBehaviour(); mixerBehaviour.trackIndex = this.trackIndex; mixerBehaviour.unscaledTime = this.unscaledTime; return scriptPlayable; diff --git a/Assets/ThirdParty/spine.timeline-4.1/Runtime/SpineAnimationState/SpineAnimationStateTrack.cs.meta b/Assets/ThirdParty/spine.timeline-4.2/Runtime/SpineAnimationState/SpineAnimationStateTrack.cs.meta similarity index 100% rename from Assets/ThirdParty/spine.timeline-4.1/Runtime/SpineAnimationState/SpineAnimationStateTrack.cs.meta rename to Assets/ThirdParty/spine.timeline-4.2/Runtime/SpineAnimationState/SpineAnimationStateTrack.cs.meta diff --git a/Assets/ThirdParty/spine.timeline-4.1/Runtime/SpineSkeletonFlip.meta b/Assets/ThirdParty/spine.timeline-4.2/Runtime/SpineSkeletonFlip.meta similarity index 100% rename from Assets/ThirdParty/spine.timeline-4.1/Runtime/SpineSkeletonFlip.meta rename to Assets/ThirdParty/spine.timeline-4.2/Runtime/SpineSkeletonFlip.meta diff --git a/Assets/ThirdParty/spine.timeline-4.1/Runtime/SpineSkeletonFlip/SpineSkeletonFlipBehaviour.cs b/Assets/ThirdParty/spine.timeline-4.2/Runtime/SpineSkeletonFlip/SpineSkeletonFlipBehaviour.cs similarity index 84% rename from Assets/ThirdParty/spine.timeline-4.1/Runtime/SpineSkeletonFlip/SpineSkeletonFlipBehaviour.cs rename to Assets/ThirdParty/spine.timeline-4.2/Runtime/SpineSkeletonFlip/SpineSkeletonFlipBehaviour.cs index 5907b1b2c..241181c35 100644 --- a/Assets/ThirdParty/spine.timeline-4.1/Runtime/SpineSkeletonFlip/SpineSkeletonFlipBehaviour.cs +++ b/Assets/ThirdParty/spine.timeline-4.2/Runtime/SpineSkeletonFlip/SpineSkeletonFlipBehaviour.cs @@ -1,16 +1,16 @@ /****************************************************************************** * Spine Runtimes License Agreement - * Last updated September 24, 2021. Replaces all prior versions. + * Last updated July 28, 2023. Replaces all prior versions. * - * Copyright (c) 2013-2022, Esoteric Software LLC + * Copyright (c) 2013-2023, Esoteric Software LLC * * Integration of the Spine Runtimes into software or otherwise creating * derivative works of the Spine Runtimes is permitted under the terms and * conditions of Section 2 of the Spine Editor License Agreement: * http://esotericsoftware.com/spine-editor-license * - * Otherwise, it is permitted to integrate the Spine Runtimes into software - * or otherwise create derivative works of the Spine Runtimes (collectively, + * Otherwise, it is permitted to integrate the Spine Runtimes into software or + * otherwise create derivative works of the Spine Runtimes (collectively, * "Products"), provided that each user of the Products must obtain their own * Spine Editor license and redistribution of the Products in any form must * include this license and copyright notice. @@ -23,8 +23,8 @@ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, * BUSINESS INTERRUPTION, OR LOSS OF USE, DATA, OR PROFITS) HOWEVER CAUSED AND * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF - * THE SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THE + * SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. *****************************************************************************/ using System; diff --git a/Assets/ThirdParty/spine.timeline-4.1/Runtime/SpineSkeletonFlip/SpineSkeletonFlipBehaviour.cs.meta b/Assets/ThirdParty/spine.timeline-4.2/Runtime/SpineSkeletonFlip/SpineSkeletonFlipBehaviour.cs.meta similarity index 100% rename from Assets/ThirdParty/spine.timeline-4.1/Runtime/SpineSkeletonFlip/SpineSkeletonFlipBehaviour.cs.meta rename to Assets/ThirdParty/spine.timeline-4.2/Runtime/SpineSkeletonFlip/SpineSkeletonFlipBehaviour.cs.meta diff --git a/Assets/ThirdParty/spine.timeline-4.1/Runtime/SpineSkeletonFlip/SpineSkeletonFlipClip.cs b/Assets/ThirdParty/spine.timeline-4.2/Runtime/SpineSkeletonFlip/SpineSkeletonFlipClip.cs similarity index 86% rename from Assets/ThirdParty/spine.timeline-4.1/Runtime/SpineSkeletonFlip/SpineSkeletonFlipClip.cs rename to Assets/ThirdParty/spine.timeline-4.2/Runtime/SpineSkeletonFlip/SpineSkeletonFlipClip.cs index 394b982c7..e9a53386e 100644 --- a/Assets/ThirdParty/spine.timeline-4.1/Runtime/SpineSkeletonFlip/SpineSkeletonFlipClip.cs +++ b/Assets/ThirdParty/spine.timeline-4.2/Runtime/SpineSkeletonFlip/SpineSkeletonFlipClip.cs @@ -1,16 +1,16 @@ /****************************************************************************** * Spine Runtimes License Agreement - * Last updated September 24, 2021. Replaces all prior versions. + * Last updated July 28, 2023. Replaces all prior versions. * - * Copyright (c) 2013-2022, Esoteric Software LLC + * Copyright (c) 2013-2023, Esoteric Software LLC * * Integration of the Spine Runtimes into software or otherwise creating * derivative works of the Spine Runtimes is permitted under the terms and * conditions of Section 2 of the Spine Editor License Agreement: * http://esotericsoftware.com/spine-editor-license * - * Otherwise, it is permitted to integrate the Spine Runtimes into software - * or otherwise create derivative works of the Spine Runtimes (collectively, + * Otherwise, it is permitted to integrate the Spine Runtimes into software or + * otherwise create derivative works of the Spine Runtimes (collectively, * "Products"), provided that each user of the Products must obtain their own * Spine Editor license and redistribution of the Products in any form must * include this license and copyright notice. @@ -23,8 +23,8 @@ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, * BUSINESS INTERRUPTION, OR LOSS OF USE, DATA, OR PROFITS) HOWEVER CAUSED AND * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF - * THE SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THE + * SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. *****************************************************************************/ using System; diff --git a/Assets/ThirdParty/spine.timeline-4.1/Runtime/SpineSkeletonFlip/SpineSkeletonFlipClip.cs.meta b/Assets/ThirdParty/spine.timeline-4.2/Runtime/SpineSkeletonFlip/SpineSkeletonFlipClip.cs.meta similarity index 100% rename from Assets/ThirdParty/spine.timeline-4.1/Runtime/SpineSkeletonFlip/SpineSkeletonFlipClip.cs.meta rename to Assets/ThirdParty/spine.timeline-4.2/Runtime/SpineSkeletonFlip/SpineSkeletonFlipClip.cs.meta diff --git a/Assets/ThirdParty/spine.timeline-4.1/Runtime/SpineSkeletonFlip/SpineSkeletonFlipMixerBehaviour.cs b/Assets/ThirdParty/spine.timeline-4.2/Runtime/SpineSkeletonFlip/SpineSkeletonFlipMixerBehaviour.cs similarity index 91% rename from Assets/ThirdParty/spine.timeline-4.1/Runtime/SpineSkeletonFlip/SpineSkeletonFlipMixerBehaviour.cs rename to Assets/ThirdParty/spine.timeline-4.2/Runtime/SpineSkeletonFlip/SpineSkeletonFlipMixerBehaviour.cs index e18d23d23..2461b556a 100644 --- a/Assets/ThirdParty/spine.timeline-4.1/Runtime/SpineSkeletonFlip/SpineSkeletonFlipMixerBehaviour.cs +++ b/Assets/ThirdParty/spine.timeline-4.2/Runtime/SpineSkeletonFlip/SpineSkeletonFlipMixerBehaviour.cs @@ -1,16 +1,16 @@ /****************************************************************************** * Spine Runtimes License Agreement - * Last updated September 24, 2021. Replaces all prior versions. + * Last updated July 28, 2023. Replaces all prior versions. * - * Copyright (c) 2013-2022, Esoteric Software LLC + * Copyright (c) 2013-2023, Esoteric Software LLC * * Integration of the Spine Runtimes into software or otherwise creating * derivative works of the Spine Runtimes is permitted under the terms and * conditions of Section 2 of the Spine Editor License Agreement: * http://esotericsoftware.com/spine-editor-license * - * Otherwise, it is permitted to integrate the Spine Runtimes into software - * or otherwise create derivative works of the Spine Runtimes (collectively, + * Otherwise, it is permitted to integrate the Spine Runtimes into software or + * otherwise create derivative works of the Spine Runtimes (collectively, * "Products"), provided that each user of the Products must obtain their own * Spine Editor license and redistribution of the Products in any form must * include this license and copyright notice. @@ -23,8 +23,8 @@ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, * BUSINESS INTERRUPTION, OR LOSS OF USE, DATA, OR PROFITS) HOWEVER CAUSED AND * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF - * THE SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THE + * SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. *****************************************************************************/ #if UNITY_2018_1_OR_NEWER @@ -76,7 +76,7 @@ namespace Spine.Unity.Playables { if (playableHandle == null) return; - var skeleton = playableHandle.Skeleton; + Skeleton skeleton = playableHandle.Skeleton; if (!m_FirstFrameHappened) { originalScaleX = skeleton.ScaleX; @@ -125,7 +125,7 @@ namespace Spine.Unity.Playables { if (playableHandle == null) return; - var skeleton = playableHandle.Skeleton; + Skeleton skeleton = playableHandle.Skeleton; skeleton.ScaleX = originalScaleX; skeleton.ScaleY = originalScaleY; } diff --git a/Assets/ThirdParty/spine.timeline-4.1/Runtime/SpineSkeletonFlip/SpineSkeletonFlipMixerBehaviour.cs.meta b/Assets/ThirdParty/spine.timeline-4.2/Runtime/SpineSkeletonFlip/SpineSkeletonFlipMixerBehaviour.cs.meta similarity index 100% rename from Assets/ThirdParty/spine.timeline-4.1/Runtime/SpineSkeletonFlip/SpineSkeletonFlipMixerBehaviour.cs.meta rename to Assets/ThirdParty/spine.timeline-4.2/Runtime/SpineSkeletonFlip/SpineSkeletonFlipMixerBehaviour.cs.meta diff --git a/Assets/ThirdParty/spine.timeline-4.1/Runtime/SpineSkeletonFlip/SpineSkeletonFlipTrack.cs b/Assets/ThirdParty/spine.timeline-4.2/Runtime/SpineSkeletonFlip/SpineSkeletonFlipTrack.cs similarity index 84% rename from Assets/ThirdParty/spine.timeline-4.1/Runtime/SpineSkeletonFlip/SpineSkeletonFlipTrack.cs rename to Assets/ThirdParty/spine.timeline-4.2/Runtime/SpineSkeletonFlip/SpineSkeletonFlipTrack.cs index 5aeb23181..99d6f3d40 100644 --- a/Assets/ThirdParty/spine.timeline-4.1/Runtime/SpineSkeletonFlip/SpineSkeletonFlipTrack.cs +++ b/Assets/ThirdParty/spine.timeline-4.2/Runtime/SpineSkeletonFlip/SpineSkeletonFlipTrack.cs @@ -1,16 +1,16 @@ /****************************************************************************** * Spine Runtimes License Agreement - * Last updated September 24, 2021. Replaces all prior versions. + * Last updated July 28, 2023. Replaces all prior versions. * - * Copyright (c) 2013-2022, Esoteric Software LLC + * Copyright (c) 2013-2023, Esoteric Software LLC * * Integration of the Spine Runtimes into software or otherwise creating * derivative works of the Spine Runtimes is permitted under the terms and * conditions of Section 2 of the Spine Editor License Agreement: * http://esotericsoftware.com/spine-editor-license * - * Otherwise, it is permitted to integrate the Spine Runtimes into software - * or otherwise create derivative works of the Spine Runtimes (collectively, + * Otherwise, it is permitted to integrate the Spine Runtimes into software or + * otherwise create derivative works of the Spine Runtimes (collectively, * "Products"), provided that each user of the Products must obtain their own * Spine Editor license and redistribution of the Products in any form must * include this license and copyright notice. @@ -23,8 +23,8 @@ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, * BUSINESS INTERRUPTION, OR LOSS OF USE, DATA, OR PROFITS) HOWEVER CAUSED AND * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF - * THE SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THE + * SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. *****************************************************************************/ #if UNITY_EDITOR @@ -53,8 +53,8 @@ namespace Spine.Unity.Playables { if (trackBinding == null) return; - var serializedObject = new UnityEditor.SerializedObject(trackBinding); - var iterator = serializedObject.GetIterator(); + UnityEditor.SerializedObject serializedObject = new UnityEditor.SerializedObject(trackBinding); + UnityEditor.SerializedProperty iterator = serializedObject.GetIterator(); while (iterator.NextVisible(true)) { if (iterator.hasVisibleChildren) continue; diff --git a/Assets/ThirdParty/spine.timeline-4.1/Runtime/SpineSkeletonFlip/SpineSkeletonFlipTrack.cs.meta b/Assets/ThirdParty/spine.timeline-4.2/Runtime/SpineSkeletonFlip/SpineSkeletonFlipTrack.cs.meta similarity index 100% rename from Assets/ThirdParty/spine.timeline-4.1/Runtime/SpineSkeletonFlip/SpineSkeletonFlipTrack.cs.meta rename to Assets/ThirdParty/spine.timeline-4.2/Runtime/SpineSkeletonFlip/SpineSkeletonFlipTrack.cs.meta diff --git a/Assets/ThirdParty/spine.timeline-4.1/Runtime/spine-timeline.asmdef b/Assets/ThirdParty/spine.timeline-4.2/Runtime/spine-timeline.asmdef similarity index 100% rename from Assets/ThirdParty/spine.timeline-4.1/Runtime/spine-timeline.asmdef rename to Assets/ThirdParty/spine.timeline-4.2/Runtime/spine-timeline.asmdef diff --git a/Assets/ThirdParty/spine.timeline-4.1/Runtime/spine-timeline.asmdef.meta b/Assets/ThirdParty/spine.timeline-4.2/Runtime/spine-timeline.asmdef.meta similarity index 100% rename from Assets/ThirdParty/spine.timeline-4.1/Runtime/spine-timeline.asmdef.meta rename to Assets/ThirdParty/spine.timeline-4.2/Runtime/spine-timeline.asmdef.meta diff --git a/Assets/ThirdParty/spine.timeline-4.2/package-no-spine-unity-dependency.json b/Assets/ThirdParty/spine.timeline-4.2/package-no-spine-unity-dependency.json new file mode 100644 index 000000000..4094bb1a6 --- /dev/null +++ b/Assets/ThirdParty/spine.timeline-4.2/package-no-spine-unity-dependency.json @@ -0,0 +1,19 @@ +{ + "name": "com.esotericsoftware.spine.timeline", + "displayName": "Spine Timeline Extensions", + "description": "This plugin provides integration of spine-unity for the Unity Timeline.\n\nPrerequisites:\nIt requires a working installation of the spine-unity runtime (via the spine-unity unitypackage), version 4.2.\n(See http://esotericsoftware.com/git/spine-runtimes/spine-unity)", + "version": "4.2.15", + "unity": "2018.3", + "author": { + "name": "Esoteric Software", + "email": "contact@esotericsoftware.com", + "url": "http://esotericsoftware.com/" + }, + "dependencies": { + "com.unity.timeline": "1.2.10" + }, + "keywords": [ + "spine", + "timeline" + ] +} diff --git a/Assets/ThirdParty/spine.timeline-4.2/package-no-spine-unity-dependency.json.meta b/Assets/ThirdParty/spine.timeline-4.2/package-no-spine-unity-dependency.json.meta new file mode 100644 index 000000000..bfe7ca7b6 --- /dev/null +++ b/Assets/ThirdParty/spine.timeline-4.2/package-no-spine-unity-dependency.json.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 7d45acd6a5447f84db6c00a864838a10 +TextScriptImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/ThirdParty/spine.timeline-4.2/package.json b/Assets/ThirdParty/spine.timeline-4.2/package.json new file mode 100644 index 000000000..557d77e43 --- /dev/null +++ b/Assets/ThirdParty/spine.timeline-4.2/package.json @@ -0,0 +1,20 @@ +{ + "name": "com.esotericsoftware.spine.timeline", + "displayName": "Spine Timeline Extensions", + "description": "This plugin provides integration of spine-unity for the Unity Timeline.\n\nPrerequisites:\nIt requires a working installation of the spine-unity and spine-csharp runtimes as UPM packages (not as spine-unity unitypackage), version 4.2.\n(See http://esotericsoftware.com/git/spine-runtimes/spine-unity)", + "version": "4.2.15", + "unity": "2018.3", + "author": { + "name": "Esoteric Software", + "email": "contact@esotericsoftware.com", + "url": "http://esotericsoftware.com/" + }, + "dependencies": { + "com.unity.timeline": "1.2.10", + "com.esotericsoftware.spine.spine-unity": "4.2.13" + }, + "keywords": [ + "spine", + "timeline" + ] +} diff --git a/Assets/ThirdParty/spine.timeline-4.2/package.json.meta b/Assets/ThirdParty/spine.timeline-4.2/package.json.meta new file mode 100644 index 000000000..b3c46c06b --- /dev/null +++ b/Assets/ThirdParty/spine.timeline-4.2/package.json.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 591b30eac7c750e4d8b4cf9d09a80351 +PackageManifestImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/XLua/Gen/DG_Tweening_Color2Wrap.cs b/Assets/XLua/Gen/DG_Tweening_Color2Wrap.cs deleted file mode 100644 index c84e784d7..000000000 --- a/Assets/XLua/Gen/DG_Tweening_Color2Wrap.cs +++ /dev/null @@ -1,241 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class DGTweeningColor2Wrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(DG.Tweening.Color2); - Utils.BeginObjectRegister(type, L, translator, 3, 0, 2, 2); - Utils.RegisterFunc(L, Utils.OBJ_META_IDX, "__add", __AddMeta); - Utils.RegisterFunc(L, Utils.OBJ_META_IDX, "__sub", __SubMeta); - Utils.RegisterFunc(L, Utils.OBJ_META_IDX, "__mul", __MulMeta); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "ca", _g_get_ca); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "cb", _g_get_cb); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "ca", _s_set_ca); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "cb", _s_set_cb); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 3 && translator.Assignable(L, 2) && translator.Assignable(L, 3)) - { - UnityEngine.Color _ca;translator.Get(L, 2, out _ca); - UnityEngine.Color _cb;translator.Get(L, 3, out _cb); - - var gen_ret = new DG.Tweening.Color2(_ca, _cb); - translator.Push(L, gen_ret); - - return 1; - } - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(DG.Tweening.Color2)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Color2 constructor!"); - - } - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __AddMeta(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - if (translator.Assignable(L, 1) && translator.Assignable(L, 2)) - { - DG.Tweening.Color2 leftside;translator.Get(L, 1, out leftside); - DG.Tweening.Color2 rightside;translator.Get(L, 2, out rightside); - - translator.Push(L, leftside + rightside); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to right hand of + operator, need DG.Tweening.Color2!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __SubMeta(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - if (translator.Assignable(L, 1) && translator.Assignable(L, 2)) - { - DG.Tweening.Color2 leftside;translator.Get(L, 1, out leftside); - DG.Tweening.Color2 rightside;translator.Get(L, 2, out rightside); - - translator.Push(L, leftside - rightside); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to right hand of - operator, need DG.Tweening.Color2!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __MulMeta(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - if (translator.Assignable(L, 1) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - DG.Tweening.Color2 leftside;translator.Get(L, 1, out leftside); - float rightside = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Push(L, leftside * rightside); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to right hand of * operator, need DG.Tweening.Color2!"); - - } - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_ca(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Color2 gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineColor(L, gen_to_be_invoked.ca); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_cb(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Color2 gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineColor(L, gen_to_be_invoked.cb); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_ca(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Color2 gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Color gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.ca = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_cb(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Color2 gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Color gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.cb = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/DG_Tweening_Core_DOTweenExternalCommandWrap.cs b/Assets/XLua/Gen/DG_Tweening_Core_DOTweenExternalCommandWrap.cs deleted file mode 100644 index 3f6ea3088..000000000 --- a/Assets/XLua/Gen/DG_Tweening_Core_DOTweenExternalCommandWrap.cs +++ /dev/null @@ -1,97 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class DGTweeningCoreDOTweenExternalCommandWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(DG.Tweening.Core.DOTweenExternalCommand); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 2, 0, 0); - - Utils.RegisterFunc(L, Utils.CLS_IDX, "SetOrientationOnPath", _e_SetOrientationOnPath); - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "DG.Tweening.Core.DOTweenExternalCommand does not have a constructor!"); - } - - - - - - - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_SetOrientationOnPath(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - System.Action gen_delegate = translator.GetDelegate>(L, 2); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#2 need System.Action!"); - } - - - if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "+")) { - DG.Tweening.Core.DOTweenExternalCommand.SetOrientationOnPath += gen_delegate; - return 0; - } - - - if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "-")) { - DG.Tweening.Core.DOTweenExternalCommand.SetOrientationOnPath -= gen_delegate; - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Core.DOTweenExternalCommand.SetOrientationOnPath!"); - } - - } -} diff --git a/Assets/XLua/Gen/DG_Tweening_Core_DOTweenSettingsWrap.cs b/Assets/XLua/Gen/DG_Tweening_Core_DOTweenSettingsWrap.cs deleted file mode 100644 index a24497cd7..000000000 --- a/Assets/XLua/Gen/DG_Tweening_Core_DOTweenSettingsWrap.cs +++ /dev/null @@ -1,868 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class DGTweeningCoreDOTweenSettingsWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(DG.Tweening.Core.DOTweenSettings); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 25, 25); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "useSafeMode", _g_get_useSafeMode); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "safeModeOptions", _g_get_safeModeOptions); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "timeScale", _g_get_timeScale); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "useSmoothDeltaTime", _g_get_useSmoothDeltaTime); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "maxSmoothUnscaledTime", _g_get_maxSmoothUnscaledTime); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "rewindCallbackMode", _g_get_rewindCallbackMode); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "showUnityEditorReport", _g_get_showUnityEditorReport); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "logBehaviour", _g_get_logBehaviour); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "drawGizmos", _g_get_drawGizmos); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "defaultRecyclable", _g_get_defaultRecyclable); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "defaultAutoPlay", _g_get_defaultAutoPlay); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "defaultUpdateType", _g_get_defaultUpdateType); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "defaultTimeScaleIndependent", _g_get_defaultTimeScaleIndependent); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "defaultEaseType", _g_get_defaultEaseType); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "defaultEaseOvershootOrAmplitude", _g_get_defaultEaseOvershootOrAmplitude); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "defaultEasePeriod", _g_get_defaultEasePeriod); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "defaultAutoKill", _g_get_defaultAutoKill); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "defaultLoopType", _g_get_defaultLoopType); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "debugMode", _g_get_debugMode); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "debugStoreTargetId", _g_get_debugStoreTargetId); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "showPreviewPanel", _g_get_showPreviewPanel); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "storeSettingsLocation", _g_get_storeSettingsLocation); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "modules", _g_get_modules); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "showPlayingTweens", _g_get_showPlayingTweens); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "showPausedTweens", _g_get_showPausedTweens); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "useSafeMode", _s_set_useSafeMode); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "safeModeOptions", _s_set_safeModeOptions); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "timeScale", _s_set_timeScale); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "useSmoothDeltaTime", _s_set_useSmoothDeltaTime); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "maxSmoothUnscaledTime", _s_set_maxSmoothUnscaledTime); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "rewindCallbackMode", _s_set_rewindCallbackMode); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "showUnityEditorReport", _s_set_showUnityEditorReport); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "logBehaviour", _s_set_logBehaviour); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "drawGizmos", _s_set_drawGizmos); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "defaultRecyclable", _s_set_defaultRecyclable); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "defaultAutoPlay", _s_set_defaultAutoPlay); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "defaultUpdateType", _s_set_defaultUpdateType); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "defaultTimeScaleIndependent", _s_set_defaultTimeScaleIndependent); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "defaultEaseType", _s_set_defaultEaseType); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "defaultEaseOvershootOrAmplitude", _s_set_defaultEaseOvershootOrAmplitude); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "defaultEasePeriod", _s_set_defaultEasePeriod); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "defaultAutoKill", _s_set_defaultAutoKill); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "defaultLoopType", _s_set_defaultLoopType); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "debugMode", _s_set_debugMode); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "debugStoreTargetId", _s_set_debugStoreTargetId); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "showPreviewPanel", _s_set_showPreviewPanel); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "storeSettingsLocation", _s_set_storeSettingsLocation); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "modules", _s_set_modules); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "showPlayingTweens", _s_set_showPlayingTweens); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "showPausedTweens", _s_set_showPausedTweens); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 3, 0, 0); - - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "AssetName", DG.Tweening.Core.DOTweenSettings.AssetName); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "AssetFullFilename", DG.Tweening.Core.DOTweenSettings.AssetFullFilename); - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new DG.Tweening.Core.DOTweenSettings(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Core.DOTweenSettings constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_useSafeMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Core.DOTweenSettings gen_to_be_invoked = (DG.Tweening.Core.DOTweenSettings)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.useSafeMode); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_safeModeOptions(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Core.DOTweenSettings gen_to_be_invoked = (DG.Tweening.Core.DOTweenSettings)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.safeModeOptions); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_timeScale(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Core.DOTweenSettings gen_to_be_invoked = (DG.Tweening.Core.DOTweenSettings)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.timeScale); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_useSmoothDeltaTime(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Core.DOTweenSettings gen_to_be_invoked = (DG.Tweening.Core.DOTweenSettings)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.useSmoothDeltaTime); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_maxSmoothUnscaledTime(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Core.DOTweenSettings gen_to_be_invoked = (DG.Tweening.Core.DOTweenSettings)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.maxSmoothUnscaledTime); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_rewindCallbackMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Core.DOTweenSettings gen_to_be_invoked = (DG.Tweening.Core.DOTweenSettings)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.rewindCallbackMode); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_showUnityEditorReport(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Core.DOTweenSettings gen_to_be_invoked = (DG.Tweening.Core.DOTweenSettings)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.showUnityEditorReport); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_logBehaviour(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Core.DOTweenSettings gen_to_be_invoked = (DG.Tweening.Core.DOTweenSettings)translator.FastGetCSObj(L, 1); - translator.PushDGTweeningLogBehaviour(L, gen_to_be_invoked.logBehaviour); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_drawGizmos(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Core.DOTweenSettings gen_to_be_invoked = (DG.Tweening.Core.DOTweenSettings)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.drawGizmos); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_defaultRecyclable(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Core.DOTweenSettings gen_to_be_invoked = (DG.Tweening.Core.DOTweenSettings)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.defaultRecyclable); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_defaultAutoPlay(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Core.DOTweenSettings gen_to_be_invoked = (DG.Tweening.Core.DOTweenSettings)translator.FastGetCSObj(L, 1); - translator.PushDGTweeningAutoPlay(L, gen_to_be_invoked.defaultAutoPlay); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_defaultUpdateType(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Core.DOTweenSettings gen_to_be_invoked = (DG.Tweening.Core.DOTweenSettings)translator.FastGetCSObj(L, 1); - translator.PushDGTweeningUpdateType(L, gen_to_be_invoked.defaultUpdateType); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_defaultTimeScaleIndependent(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Core.DOTweenSettings gen_to_be_invoked = (DG.Tweening.Core.DOTweenSettings)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.defaultTimeScaleIndependent); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_defaultEaseType(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Core.DOTweenSettings gen_to_be_invoked = (DG.Tweening.Core.DOTweenSettings)translator.FastGetCSObj(L, 1); - translator.PushDGTweeningEase(L, gen_to_be_invoked.defaultEaseType); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_defaultEaseOvershootOrAmplitude(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Core.DOTweenSettings gen_to_be_invoked = (DG.Tweening.Core.DOTweenSettings)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.defaultEaseOvershootOrAmplitude); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_defaultEasePeriod(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Core.DOTweenSettings gen_to_be_invoked = (DG.Tweening.Core.DOTweenSettings)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.defaultEasePeriod); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_defaultAutoKill(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Core.DOTweenSettings gen_to_be_invoked = (DG.Tweening.Core.DOTweenSettings)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.defaultAutoKill); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_defaultLoopType(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Core.DOTweenSettings gen_to_be_invoked = (DG.Tweening.Core.DOTweenSettings)translator.FastGetCSObj(L, 1); - translator.PushDGTweeningLoopType(L, gen_to_be_invoked.defaultLoopType); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_debugMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Core.DOTweenSettings gen_to_be_invoked = (DG.Tweening.Core.DOTweenSettings)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.debugMode); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_debugStoreTargetId(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Core.DOTweenSettings gen_to_be_invoked = (DG.Tweening.Core.DOTweenSettings)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.debugStoreTargetId); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_showPreviewPanel(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Core.DOTweenSettings gen_to_be_invoked = (DG.Tweening.Core.DOTweenSettings)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.showPreviewPanel); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_storeSettingsLocation(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Core.DOTweenSettings gen_to_be_invoked = (DG.Tweening.Core.DOTweenSettings)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.storeSettingsLocation); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_modules(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Core.DOTweenSettings gen_to_be_invoked = (DG.Tweening.Core.DOTweenSettings)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.modules); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_showPlayingTweens(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Core.DOTweenSettings gen_to_be_invoked = (DG.Tweening.Core.DOTweenSettings)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.showPlayingTweens); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_showPausedTweens(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Core.DOTweenSettings gen_to_be_invoked = (DG.Tweening.Core.DOTweenSettings)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.showPausedTweens); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_useSafeMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Core.DOTweenSettings gen_to_be_invoked = (DG.Tweening.Core.DOTweenSettings)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.useSafeMode = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_safeModeOptions(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Core.DOTweenSettings gen_to_be_invoked = (DG.Tweening.Core.DOTweenSettings)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.safeModeOptions = (DG.Tweening.Core.DOTweenSettings.SafeModeOptions)translator.GetObject(L, 2, typeof(DG.Tweening.Core.DOTweenSettings.SafeModeOptions)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_timeScale(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Core.DOTweenSettings gen_to_be_invoked = (DG.Tweening.Core.DOTweenSettings)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.timeScale = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_useSmoothDeltaTime(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Core.DOTweenSettings gen_to_be_invoked = (DG.Tweening.Core.DOTweenSettings)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.useSmoothDeltaTime = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_maxSmoothUnscaledTime(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Core.DOTweenSettings gen_to_be_invoked = (DG.Tweening.Core.DOTweenSettings)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.maxSmoothUnscaledTime = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_rewindCallbackMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Core.DOTweenSettings gen_to_be_invoked = (DG.Tweening.Core.DOTweenSettings)translator.FastGetCSObj(L, 1); - DG.Tweening.Core.Enums.RewindCallbackMode gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.rewindCallbackMode = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_showUnityEditorReport(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Core.DOTweenSettings gen_to_be_invoked = (DG.Tweening.Core.DOTweenSettings)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.showUnityEditorReport = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_logBehaviour(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Core.DOTweenSettings gen_to_be_invoked = (DG.Tweening.Core.DOTweenSettings)translator.FastGetCSObj(L, 1); - DG.Tweening.LogBehaviour gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.logBehaviour = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_drawGizmos(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Core.DOTweenSettings gen_to_be_invoked = (DG.Tweening.Core.DOTweenSettings)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.drawGizmos = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_defaultRecyclable(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Core.DOTweenSettings gen_to_be_invoked = (DG.Tweening.Core.DOTweenSettings)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.defaultRecyclable = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_defaultAutoPlay(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Core.DOTweenSettings gen_to_be_invoked = (DG.Tweening.Core.DOTweenSettings)translator.FastGetCSObj(L, 1); - DG.Tweening.AutoPlay gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.defaultAutoPlay = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_defaultUpdateType(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Core.DOTweenSettings gen_to_be_invoked = (DG.Tweening.Core.DOTweenSettings)translator.FastGetCSObj(L, 1); - DG.Tweening.UpdateType gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.defaultUpdateType = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_defaultTimeScaleIndependent(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Core.DOTweenSettings gen_to_be_invoked = (DG.Tweening.Core.DOTweenSettings)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.defaultTimeScaleIndependent = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_defaultEaseType(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Core.DOTweenSettings gen_to_be_invoked = (DG.Tweening.Core.DOTweenSettings)translator.FastGetCSObj(L, 1); - DG.Tweening.Ease gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.defaultEaseType = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_defaultEaseOvershootOrAmplitude(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Core.DOTweenSettings gen_to_be_invoked = (DG.Tweening.Core.DOTweenSettings)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.defaultEaseOvershootOrAmplitude = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_defaultEasePeriod(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Core.DOTweenSettings gen_to_be_invoked = (DG.Tweening.Core.DOTweenSettings)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.defaultEasePeriod = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_defaultAutoKill(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Core.DOTweenSettings gen_to_be_invoked = (DG.Tweening.Core.DOTweenSettings)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.defaultAutoKill = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_defaultLoopType(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Core.DOTweenSettings gen_to_be_invoked = (DG.Tweening.Core.DOTweenSettings)translator.FastGetCSObj(L, 1); - DG.Tweening.LoopType gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.defaultLoopType = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_debugMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Core.DOTweenSettings gen_to_be_invoked = (DG.Tweening.Core.DOTweenSettings)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.debugMode = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_debugStoreTargetId(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Core.DOTweenSettings gen_to_be_invoked = (DG.Tweening.Core.DOTweenSettings)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.debugStoreTargetId = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_showPreviewPanel(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Core.DOTweenSettings gen_to_be_invoked = (DG.Tweening.Core.DOTweenSettings)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.showPreviewPanel = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_storeSettingsLocation(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Core.DOTweenSettings gen_to_be_invoked = (DG.Tweening.Core.DOTweenSettings)translator.FastGetCSObj(L, 1); - DG.Tweening.Core.DOTweenSettings.SettingsLocation gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.storeSettingsLocation = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_modules(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Core.DOTweenSettings gen_to_be_invoked = (DG.Tweening.Core.DOTweenSettings)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.modules = (DG.Tweening.Core.DOTweenSettings.ModulesSetup)translator.GetObject(L, 2, typeof(DG.Tweening.Core.DOTweenSettings.ModulesSetup)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_showPlayingTweens(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Core.DOTweenSettings gen_to_be_invoked = (DG.Tweening.Core.DOTweenSettings)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.showPlayingTweens = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_showPausedTweens(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Core.DOTweenSettings gen_to_be_invoked = (DG.Tweening.Core.DOTweenSettings)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.showPausedTweens = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/DG_Tweening_Core_DOTweenSettings_ModulesSetupWrap.cs b/Assets/XLua/Gen/DG_Tweening_Core_DOTweenSettings_ModulesSetupWrap.cs deleted file mode 100644 index c77c7bdf6..000000000 --- a/Assets/XLua/Gen/DG_Tweening_Core_DOTweenSettings_ModulesSetupWrap.cs +++ /dev/null @@ -1,394 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class DGTweeningCoreDOTweenSettingsModulesSetupWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(DG.Tweening.Core.DOTweenSettings.ModulesSetup); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 10, 10); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "showPanel", _g_get_showPanel); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "audioEnabled", _g_get_audioEnabled); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "physicsEnabled", _g_get_physicsEnabled); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "physics2DEnabled", _g_get_physics2DEnabled); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "spriteEnabled", _g_get_spriteEnabled); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "uiEnabled", _g_get_uiEnabled); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "textMeshProEnabled", _g_get_textMeshProEnabled); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "tk2DEnabled", _g_get_tk2DEnabled); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "deAudioEnabled", _g_get_deAudioEnabled); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "deUnityExtendedEnabled", _g_get_deUnityExtendedEnabled); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "showPanel", _s_set_showPanel); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "audioEnabled", _s_set_audioEnabled); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "physicsEnabled", _s_set_physicsEnabled); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "physics2DEnabled", _s_set_physics2DEnabled); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "spriteEnabled", _s_set_spriteEnabled); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "uiEnabled", _s_set_uiEnabled); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "textMeshProEnabled", _s_set_textMeshProEnabled); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "tk2DEnabled", _s_set_tk2DEnabled); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "deAudioEnabled", _s_set_deAudioEnabled); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "deUnityExtendedEnabled", _s_set_deUnityExtendedEnabled); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new DG.Tweening.Core.DOTweenSettings.ModulesSetup(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Core.DOTweenSettings.ModulesSetup constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_showPanel(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Core.DOTweenSettings.ModulesSetup gen_to_be_invoked = (DG.Tweening.Core.DOTweenSettings.ModulesSetup)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.showPanel); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_audioEnabled(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Core.DOTweenSettings.ModulesSetup gen_to_be_invoked = (DG.Tweening.Core.DOTweenSettings.ModulesSetup)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.audioEnabled); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_physicsEnabled(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Core.DOTweenSettings.ModulesSetup gen_to_be_invoked = (DG.Tweening.Core.DOTweenSettings.ModulesSetup)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.physicsEnabled); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_physics2DEnabled(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Core.DOTweenSettings.ModulesSetup gen_to_be_invoked = (DG.Tweening.Core.DOTweenSettings.ModulesSetup)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.physics2DEnabled); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_spriteEnabled(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Core.DOTweenSettings.ModulesSetup gen_to_be_invoked = (DG.Tweening.Core.DOTweenSettings.ModulesSetup)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.spriteEnabled); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_uiEnabled(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Core.DOTweenSettings.ModulesSetup gen_to_be_invoked = (DG.Tweening.Core.DOTweenSettings.ModulesSetup)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.uiEnabled); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_textMeshProEnabled(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Core.DOTweenSettings.ModulesSetup gen_to_be_invoked = (DG.Tweening.Core.DOTweenSettings.ModulesSetup)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.textMeshProEnabled); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_tk2DEnabled(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Core.DOTweenSettings.ModulesSetup gen_to_be_invoked = (DG.Tweening.Core.DOTweenSettings.ModulesSetup)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.tk2DEnabled); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_deAudioEnabled(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Core.DOTweenSettings.ModulesSetup gen_to_be_invoked = (DG.Tweening.Core.DOTweenSettings.ModulesSetup)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.deAudioEnabled); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_deUnityExtendedEnabled(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Core.DOTweenSettings.ModulesSetup gen_to_be_invoked = (DG.Tweening.Core.DOTweenSettings.ModulesSetup)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.deUnityExtendedEnabled); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_showPanel(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Core.DOTweenSettings.ModulesSetup gen_to_be_invoked = (DG.Tweening.Core.DOTweenSettings.ModulesSetup)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.showPanel = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_audioEnabled(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Core.DOTweenSettings.ModulesSetup gen_to_be_invoked = (DG.Tweening.Core.DOTweenSettings.ModulesSetup)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.audioEnabled = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_physicsEnabled(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Core.DOTweenSettings.ModulesSetup gen_to_be_invoked = (DG.Tweening.Core.DOTweenSettings.ModulesSetup)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.physicsEnabled = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_physics2DEnabled(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Core.DOTweenSettings.ModulesSetup gen_to_be_invoked = (DG.Tweening.Core.DOTweenSettings.ModulesSetup)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.physics2DEnabled = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_spriteEnabled(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Core.DOTweenSettings.ModulesSetup gen_to_be_invoked = (DG.Tweening.Core.DOTweenSettings.ModulesSetup)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.spriteEnabled = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_uiEnabled(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Core.DOTweenSettings.ModulesSetup gen_to_be_invoked = (DG.Tweening.Core.DOTweenSettings.ModulesSetup)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.uiEnabled = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_textMeshProEnabled(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Core.DOTweenSettings.ModulesSetup gen_to_be_invoked = (DG.Tweening.Core.DOTweenSettings.ModulesSetup)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.textMeshProEnabled = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_tk2DEnabled(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Core.DOTweenSettings.ModulesSetup gen_to_be_invoked = (DG.Tweening.Core.DOTweenSettings.ModulesSetup)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.tk2DEnabled = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_deAudioEnabled(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Core.DOTweenSettings.ModulesSetup gen_to_be_invoked = (DG.Tweening.Core.DOTweenSettings.ModulesSetup)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.deAudioEnabled = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_deUnityExtendedEnabled(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Core.DOTweenSettings.ModulesSetup gen_to_be_invoked = (DG.Tweening.Core.DOTweenSettings.ModulesSetup)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.deUnityExtendedEnabled = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/DG_Tweening_Core_DOTweenSettings_SafeModeOptionsWrap.cs b/Assets/XLua/Gen/DG_Tweening_Core_DOTweenSettings_SafeModeOptionsWrap.cs deleted file mode 100644 index 7a8c28a3c..000000000 --- a/Assets/XLua/Gen/DG_Tweening_Core_DOTweenSettings_SafeModeOptionsWrap.cs +++ /dev/null @@ -1,116 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class DGTweeningCoreDOTweenSettingsSafeModeOptionsWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(DG.Tweening.Core.DOTweenSettings.SafeModeOptions); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 1, 1); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "nestedTweenFailureBehaviour", _g_get_nestedTweenFailureBehaviour); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "nestedTweenFailureBehaviour", _s_set_nestedTweenFailureBehaviour); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new DG.Tweening.Core.DOTweenSettings.SafeModeOptions(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Core.DOTweenSettings.SafeModeOptions constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_nestedTweenFailureBehaviour(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Core.DOTweenSettings.SafeModeOptions gen_to_be_invoked = (DG.Tweening.Core.DOTweenSettings.SafeModeOptions)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.nestedTweenFailureBehaviour); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_nestedTweenFailureBehaviour(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Core.DOTweenSettings.SafeModeOptions gen_to_be_invoked = (DG.Tweening.Core.DOTweenSettings.SafeModeOptions)translator.FastGetCSObj(L, 1); - DG.Tweening.Core.Enums.NestedTweenFailureBehaviour gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.nestedTweenFailureBehaviour = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/DG_Tweening_Core_DebuggerWrap.cs b/Assets/XLua/Gen/DG_Tweening_Core_DebuggerWrap.cs deleted file mode 100644 index 33c0d080a..000000000 --- a/Assets/XLua/Gen/DG_Tweening_Core_DebuggerWrap.cs +++ /dev/null @@ -1,460 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class DGTweeningCoreDebuggerWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(DG.Tweening.Core.Debugger); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 14, 1, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Log", _m_Log_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "LogWarning", _m_LogWarning_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "LogError", _m_LogError_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "LogReport", _m_LogReport_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "LogSafeModeReport", _m_LogSafeModeReport_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "LogInvalidTween", _m_LogInvalidTween_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "LogNestedTween", _m_LogNestedTween_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "LogNullTween", _m_LogNullTween_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "LogNonPathTween", _m_LogNonPathTween_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "LogMissingMaterialProperty", _m_LogMissingMaterialProperty_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "LogRemoveActiveTweenError", _m_LogRemoveActiveTweenError_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "LogAddActiveTweenError", _m_LogAddActiveTweenError_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "SetLogPriority", _m_SetLogPriority_xlua_st_); - - - - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "logPriority", _g_get_logPriority); - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "DG.Tweening.Core.Debugger does not have a constructor!"); - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Log_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - object _message = translator.GetObject(L, 1, typeof(object)); - - DG.Tweening.Core.Debugger.Log( _message ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_LogWarning_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)) - { - object _message = translator.GetObject(L, 1, typeof(object)); - DG.Tweening.Tween _t = (DG.Tweening.Tween)translator.GetObject(L, 2, typeof(DG.Tweening.Tween)); - - DG.Tweening.Core.Debugger.LogWarning( _message, _t ); - - - - return 0; - } - if(gen_param_count == 1&& translator.Assignable(L, 1)) - { - object _message = translator.GetObject(L, 1, typeof(object)); - - DG.Tweening.Core.Debugger.LogWarning( _message ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Core.Debugger.LogWarning!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_LogError_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - object _message = translator.GetObject(L, 1, typeof(object)); - - DG.Tweening.Core.Debugger.LogError( _message ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_LogReport_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - object _message = translator.GetObject(L, 1, typeof(object)); - - DG.Tweening.Core.Debugger.LogReport( _message ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_LogSafeModeReport_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - object _message = translator.GetObject(L, 1, typeof(object)); - - DG.Tweening.Core.Debugger.LogSafeModeReport( _message ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_LogInvalidTween_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - DG.Tweening.Tween _t = (DG.Tweening.Tween)translator.GetObject(L, 1, typeof(DG.Tweening.Tween)); - - DG.Tweening.Core.Debugger.LogInvalidTween( _t ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_LogNestedTween_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - DG.Tweening.Tween _t = (DG.Tweening.Tween)translator.GetObject(L, 1, typeof(DG.Tweening.Tween)); - - DG.Tweening.Core.Debugger.LogNestedTween( _t ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_LogNullTween_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - DG.Tweening.Tween _t = (DG.Tweening.Tween)translator.GetObject(L, 1, typeof(DG.Tweening.Tween)); - - DG.Tweening.Core.Debugger.LogNullTween( _t ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_LogNonPathTween_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - DG.Tweening.Tween _t = (DG.Tweening.Tween)translator.GetObject(L, 1, typeof(DG.Tweening.Tween)); - - DG.Tweening.Core.Debugger.LogNonPathTween( _t ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_LogMissingMaterialProperty_xlua_st_(RealStatePtr L) - { - try { - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - int _propertyId = LuaAPI.xlua_tointeger(L, 1); - - DG.Tweening.Core.Debugger.LogMissingMaterialProperty( _propertyId ); - - - - return 0; - } - if(gen_param_count == 1&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)) - { - string _propertyName = LuaAPI.lua_tostring(L, 1); - - DG.Tweening.Core.Debugger.LogMissingMaterialProperty( _propertyName ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Core.Debugger.LogMissingMaterialProperty!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_LogRemoveActiveTweenError_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - string _errorInfo = LuaAPI.lua_tostring(L, 1); - DG.Tweening.Tween _t = (DG.Tweening.Tween)translator.GetObject(L, 2, typeof(DG.Tweening.Tween)); - - DG.Tweening.Core.Debugger.LogRemoveActiveTweenError( _errorInfo, _t ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_LogAddActiveTweenError_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - string _errorInfo = LuaAPI.lua_tostring(L, 1); - DG.Tweening.Tween _t = (DG.Tweening.Tween)translator.GetObject(L, 2, typeof(DG.Tweening.Tween)); - - DG.Tweening.Core.Debugger.LogAddActiveTweenError( _errorInfo, _t ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetLogPriority_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - DG.Tweening.LogBehaviour _logBehaviour;translator.Get(L, 1, out _logBehaviour); - - DG.Tweening.Core.Debugger.SetLogPriority( _logBehaviour ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_logPriority(RealStatePtr L) - { - try { - - LuaAPI.xlua_pushinteger(L, DG.Tweening.Core.Debugger.logPriority); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - - - - - } -} diff --git a/Assets/XLua/Gen/DG_Tweening_Core_ExtensionsWrap.cs b/Assets/XLua/Gen/DG_Tweening_Core_ExtensionsWrap.cs deleted file mode 100644 index a906f2cd4..000000000 --- a/Assets/XLua/Gen/DG_Tweening_Core_ExtensionsWrap.cs +++ /dev/null @@ -1,67 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class DGTweeningCoreExtensionsWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(DG.Tweening.Core.Extensions); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "DG.Tweening.Core.Extensions does not have a constructor!"); - } - - - - - - - - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/Spine_AnimationStateWrap.cs b/Assets/XLua/Gen/Spine_AnimationStateWrap.cs index a59dcf5a5..4cb6196b9 100644 --- a/Assets/XLua/Gen/Spine_AnimationStateWrap.cs +++ b/Assets/XLua/Gen/Spine_AnimationStateWrap.cs @@ -21,7 +21,7 @@ namespace XLua.CSObjectWrap { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); System.Type type = typeof(Spine.AnimationState); - Utils.BeginObjectRegister(type, L, translator, 0, 22, 4, 3); + Utils.BeginObjectRegister(type, L, translator, 0, 22, 3, 2); Utils.RegisterFunc(L, Utils.METHOD_IDX, "AssignEventSubscribersFrom", _m_AssignEventSubscribersFrom); Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddEventSubscribersFrom", _m_AddEventSubscribersFrom); @@ -50,11 +50,9 @@ namespace XLua.CSObjectWrap Utils.RegisterFunc(L, Utils.GETTER_IDX, "TimeScale", _g_get_TimeScale); Utils.RegisterFunc(L, Utils.GETTER_IDX, "Data", _g_get_Data); Utils.RegisterFunc(L, Utils.GETTER_IDX, "Tracks", _g_get_Tracks); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "AnimationsChangedOptimization", _g_get_AnimationsChangedOptimization); Utils.RegisterFunc(L, Utils.SETTER_IDX, "TimeScale", _s_set_TimeScale); Utils.RegisterFunc(L, Utils.SETTER_IDX, "Data", _s_set_Data); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "AnimationsChangedOptimization", _s_set_AnimationsChangedOptimization); Utils.EndObjectRegister(type, L, translator, null, null, @@ -658,20 +656,6 @@ namespace XLua.CSObjectWrap return 1; } - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_AnimationsChangedOptimization(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.AnimationState gen_to_be_invoked = (Spine.AnimationState)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.AnimationsChangedOptimization); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] @@ -704,21 +688,6 @@ namespace XLua.CSObjectWrap return 0; } - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_AnimationsChangedOptimization(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.AnimationState gen_to_be_invoked = (Spine.AnimationState)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.AnimationsChangedOptimization = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] diff --git a/Assets/XLua/Gen/Spine_SkeletonDataWrap.cs b/Assets/XLua/Gen/Spine_SkeletonDataWrap.cs index da8305082..2ac2f4084 100644 --- a/Assets/XLua/Gen/Spine_SkeletonDataWrap.cs +++ b/Assets/XLua/Gen/Spine_SkeletonDataWrap.cs @@ -21,7 +21,7 @@ namespace XLua.CSObjectWrap { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); System.Type type = typeof(Spine.SkeletonData); - Utils.BeginObjectRegister(type, L, translator, 0, 9, 19, 17); + Utils.BeginObjectRegister(type, L, translator, 0, 10, 21, 19); Utils.RegisterFunc(L, Utils.METHOD_IDX, "FindBone", _m_FindBone); Utils.RegisterFunc(L, Utils.METHOD_IDX, "FindSlot", _m_FindSlot); @@ -31,6 +31,7 @@ namespace XLua.CSObjectWrap Utils.RegisterFunc(L, Utils.METHOD_IDX, "FindIkConstraint", _m_FindIkConstraint); Utils.RegisterFunc(L, Utils.METHOD_IDX, "FindTransformConstraint", _m_FindTransformConstraint); Utils.RegisterFunc(L, Utils.METHOD_IDX, "FindPathConstraint", _m_FindPathConstraint); + Utils.RegisterFunc(L, Utils.METHOD_IDX, "FindPhysicsConstraint", _m_FindPhysicsConstraint); Utils.RegisterFunc(L, Utils.METHOD_IDX, "ToString", _m_ToString); @@ -44,10 +45,12 @@ namespace XLua.CSObjectWrap Utils.RegisterFunc(L, Utils.GETTER_IDX, "IkConstraints", _g_get_IkConstraints); Utils.RegisterFunc(L, Utils.GETTER_IDX, "TransformConstraints", _g_get_TransformConstraints); Utils.RegisterFunc(L, Utils.GETTER_IDX, "PathConstraints", _g_get_PathConstraints); + Utils.RegisterFunc(L, Utils.GETTER_IDX, "PhysicsConstraints", _g_get_PhysicsConstraints); Utils.RegisterFunc(L, Utils.GETTER_IDX, "X", _g_get_X); Utils.RegisterFunc(L, Utils.GETTER_IDX, "Y", _g_get_Y); Utils.RegisterFunc(L, Utils.GETTER_IDX, "Width", _g_get_Width); Utils.RegisterFunc(L, Utils.GETTER_IDX, "Height", _g_get_Height); + Utils.RegisterFunc(L, Utils.GETTER_IDX, "ReferenceScale", _g_get_ReferenceScale); Utils.RegisterFunc(L, Utils.GETTER_IDX, "Version", _g_get_Version); Utils.RegisterFunc(L, Utils.GETTER_IDX, "Hash", _g_get_Hash); Utils.RegisterFunc(L, Utils.GETTER_IDX, "ImagesPath", _g_get_ImagesPath); @@ -62,10 +65,12 @@ namespace XLua.CSObjectWrap Utils.RegisterFunc(L, Utils.SETTER_IDX, "IkConstraints", _s_set_IkConstraints); Utils.RegisterFunc(L, Utils.SETTER_IDX, "TransformConstraints", _s_set_TransformConstraints); Utils.RegisterFunc(L, Utils.SETTER_IDX, "PathConstraints", _s_set_PathConstraints); + Utils.RegisterFunc(L, Utils.SETTER_IDX, "PhysicsConstraints", _s_set_PhysicsConstraints); Utils.RegisterFunc(L, Utils.SETTER_IDX, "X", _s_set_X); Utils.RegisterFunc(L, Utils.SETTER_IDX, "Y", _s_set_Y); Utils.RegisterFunc(L, Utils.SETTER_IDX, "Width", _s_set_Width); Utils.RegisterFunc(L, Utils.SETTER_IDX, "Height", _s_set_Height); + Utils.RegisterFunc(L, Utils.SETTER_IDX, "ReferenceScale", _s_set_ReferenceScale); Utils.RegisterFunc(L, Utils.SETTER_IDX, "Version", _s_set_Version); Utils.RegisterFunc(L, Utils.SETTER_IDX, "Hash", _s_set_Hash); Utils.RegisterFunc(L, Utils.SETTER_IDX, "ImagesPath", _s_set_ImagesPath); @@ -339,6 +344,35 @@ namespace XLua.CSObjectWrap + return 1; + } + + } catch(System.Exception gen_e) { + return LuaAPI.luaL_error(L, "c# exception:" + gen_e); + } + + } + + [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] + static int _m_FindPhysicsConstraint(RealStatePtr L) + { + try { + + ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); + + + Spine.SkeletonData gen_to_be_invoked = (Spine.SkeletonData)translator.FastGetCSObj(L, 1); + + + + { + string _constraintName = LuaAPI.lua_tostring(L, 2); + + var gen_ret = gen_to_be_invoked.FindPhysicsConstraint( _constraintName ); + translator.Push(L, gen_ret); + + + return 1; } @@ -519,6 +553,20 @@ namespace XLua.CSObjectWrap return 1; } + [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] + static int _g_get_PhysicsConstraints(RealStatePtr L) + { + try { + ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); + + Spine.SkeletonData gen_to_be_invoked = (Spine.SkeletonData)translator.FastGetCSObj(L, 1); + translator.Push(L, gen_to_be_invoked.PhysicsConstraints); + } catch(System.Exception gen_e) { + return LuaAPI.luaL_error(L, "c# exception:" + gen_e); + } + return 1; + } + [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_X(RealStatePtr L) { @@ -575,6 +623,20 @@ namespace XLua.CSObjectWrap return 1; } + [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] + static int _g_get_ReferenceScale(RealStatePtr L) + { + try { + ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); + + Spine.SkeletonData gen_to_be_invoked = (Spine.SkeletonData)translator.FastGetCSObj(L, 1); + LuaAPI.lua_pushnumber(L, gen_to_be_invoked.ReferenceScale); + } catch(System.Exception gen_e) { + return LuaAPI.luaL_error(L, "c# exception:" + gen_e); + } + return 1; + } + [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_Version(RealStatePtr L) { @@ -767,6 +829,21 @@ namespace XLua.CSObjectWrap return 0; } + [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] + static int _s_set_PhysicsConstraints(RealStatePtr L) + { + try { + ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); + + Spine.SkeletonData gen_to_be_invoked = (Spine.SkeletonData)translator.FastGetCSObj(L, 1); + gen_to_be_invoked.PhysicsConstraints = (Spine.ExposedList)translator.GetObject(L, 2, typeof(Spine.ExposedList)); + + } catch(System.Exception gen_e) { + return LuaAPI.luaL_error(L, "c# exception:" + gen_e); + } + return 0; + } + [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_X(RealStatePtr L) { @@ -827,6 +904,21 @@ namespace XLua.CSObjectWrap return 0; } + [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] + static int _s_set_ReferenceScale(RealStatePtr L) + { + try { + ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); + + Spine.SkeletonData gen_to_be_invoked = (Spine.SkeletonData)translator.FastGetCSObj(L, 1); + gen_to_be_invoked.ReferenceScale = (float)LuaAPI.lua_tonumber(L, 2); + + } catch(System.Exception gen_e) { + return LuaAPI.luaL_error(L, "c# exception:" + gen_e); + } + return 0; + } + [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_Version(RealStatePtr L) { diff --git a/Assets/XLua/Gen/Spine_SkeletonWrap.cs b/Assets/XLua/Gen/Spine_SkeletonWrap.cs index b9846d0ca..c3b64a8be 100644 --- a/Assets/XLua/Gen/Spine_SkeletonWrap.cs +++ b/Assets/XLua/Gen/Spine_SkeletonWrap.cs @@ -21,10 +21,13 @@ namespace XLua.CSObjectWrap { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); System.Type type = typeof(Spine.Skeleton); - Utils.BeginObjectRegister(type, L, translator, 0, 14, 18, 9); + Utils.BeginObjectRegister(type, L, translator, 0, 19, 20, 10); Utils.RegisterFunc(L, Utils.METHOD_IDX, "UpdateCache", _m_UpdateCache); Utils.RegisterFunc(L, Utils.METHOD_IDX, "UpdateWorldTransform", _m_UpdateWorldTransform); + Utils.RegisterFunc(L, Utils.METHOD_IDX, "PhysicsTranslate", _m_PhysicsTranslate); + Utils.RegisterFunc(L, Utils.METHOD_IDX, "PhysicsRotate", _m_PhysicsRotate); + Utils.RegisterFunc(L, Utils.METHOD_IDX, "Update", _m_Update); Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetToSetupPose", _m_SetToSetupPose); Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetBonesToSetupPose", _m_SetBonesToSetupPose); Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetSlotsToSetupPose", _m_SetSlotsToSetupPose); @@ -36,7 +39,9 @@ namespace XLua.CSObjectWrap Utils.RegisterFunc(L, Utils.METHOD_IDX, "FindIkConstraint", _m_FindIkConstraint); Utils.RegisterFunc(L, Utils.METHOD_IDX, "FindTransformConstraint", _m_FindTransformConstraint); Utils.RegisterFunc(L, Utils.METHOD_IDX, "FindPathConstraint", _m_FindPathConstraint); + Utils.RegisterFunc(L, Utils.METHOD_IDX, "FindPhysicsConstraint", _m_FindPhysicsConstraint); Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetBounds", _m_GetBounds); + Utils.RegisterFunc(L, Utils.METHOD_IDX, "ToString", _m_ToString); Utils.RegisterFunc(L, Utils.GETTER_IDX, "Data", _g_get_Data); @@ -46,6 +51,7 @@ namespace XLua.CSObjectWrap Utils.RegisterFunc(L, Utils.GETTER_IDX, "DrawOrder", _g_get_DrawOrder); Utils.RegisterFunc(L, Utils.GETTER_IDX, "IkConstraints", _g_get_IkConstraints); Utils.RegisterFunc(L, Utils.GETTER_IDX, "PathConstraints", _g_get_PathConstraints); + Utils.RegisterFunc(L, Utils.GETTER_IDX, "PhysicsConstraints", _g_get_PhysicsConstraints); Utils.RegisterFunc(L, Utils.GETTER_IDX, "TransformConstraints", _g_get_TransformConstraints); Utils.RegisterFunc(L, Utils.GETTER_IDX, "Skin", _g_get_Skin); Utils.RegisterFunc(L, Utils.GETTER_IDX, "R", _g_get_R); @@ -56,6 +62,7 @@ namespace XLua.CSObjectWrap Utils.RegisterFunc(L, Utils.GETTER_IDX, "Y", _g_get_Y); Utils.RegisterFunc(L, Utils.GETTER_IDX, "ScaleX", _g_get_ScaleX); Utils.RegisterFunc(L, Utils.GETTER_IDX, "ScaleY", _g_get_ScaleY); + Utils.RegisterFunc(L, Utils.GETTER_IDX, "Time", _g_get_Time); Utils.RegisterFunc(L, Utils.GETTER_IDX, "RootBone", _g_get_RootBone); Utils.RegisterFunc(L, Utils.SETTER_IDX, "Skin", _s_set_Skin); @@ -67,6 +74,7 @@ namespace XLua.CSObjectWrap Utils.RegisterFunc(L, Utils.SETTER_IDX, "Y", _s_set_Y); Utils.RegisterFunc(L, Utils.SETTER_IDX, "ScaleX", _s_set_ScaleX); Utils.RegisterFunc(L, Utils.SETTER_IDX, "ScaleY", _s_set_ScaleY); + Utils.RegisterFunc(L, Utils.SETTER_IDX, "Time", _s_set_Time); Utils.EndObjectRegister(type, L, translator, null, null, @@ -162,20 +170,22 @@ namespace XLua.CSObjectWrap int gen_param_count = LuaAPI.lua_gettop(L); - if(gen_param_count == 1) + if(gen_param_count == 2&& translator.Assignable(L, 2)) { + Spine.Skeleton.Physics _physics;translator.Get(L, 2, out _physics); - gen_to_be_invoked.UpdateWorldTransform( ); + gen_to_be_invoked.UpdateWorldTransform( _physics ); return 0; } - if(gen_param_count == 2&& translator.Assignable(L, 2)) + if(gen_param_count == 3&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)) { - Spine.Bone _parent = (Spine.Bone)translator.GetObject(L, 2, typeof(Spine.Bone)); + Spine.Skeleton.Physics _physics;translator.Get(L, 2, out _physics); + Spine.Bone _parent = (Spine.Bone)translator.GetObject(L, 3, typeof(Spine.Bone)); - gen_to_be_invoked.UpdateWorldTransform( _parent ); + gen_to_be_invoked.UpdateWorldTransform( _physics, _parent ); @@ -190,6 +200,93 @@ namespace XLua.CSObjectWrap } + [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] + static int _m_PhysicsTranslate(RealStatePtr L) + { + try { + + ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); + + + Spine.Skeleton gen_to_be_invoked = (Spine.Skeleton)translator.FastGetCSObj(L, 1); + + + + { + float _x = (float)LuaAPI.lua_tonumber(L, 2); + float _y = (float)LuaAPI.lua_tonumber(L, 3); + + gen_to_be_invoked.PhysicsTranslate( _x, _y ); + + + + return 0; + } + + } catch(System.Exception gen_e) { + return LuaAPI.luaL_error(L, "c# exception:" + gen_e); + } + + } + + [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] + static int _m_PhysicsRotate(RealStatePtr L) + { + try { + + ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); + + + Spine.Skeleton gen_to_be_invoked = (Spine.Skeleton)translator.FastGetCSObj(L, 1); + + + + { + float _x = (float)LuaAPI.lua_tonumber(L, 2); + float _y = (float)LuaAPI.lua_tonumber(L, 3); + float _degrees = (float)LuaAPI.lua_tonumber(L, 4); + + gen_to_be_invoked.PhysicsRotate( _x, _y, _degrees ); + + + + return 0; + } + + } catch(System.Exception gen_e) { + return LuaAPI.luaL_error(L, "c# exception:" + gen_e); + } + + } + + [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] + static int _m_Update(RealStatePtr L) + { + try { + + ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); + + + Spine.Skeleton gen_to_be_invoked = (Spine.Skeleton)translator.FastGetCSObj(L, 1); + + + + { + float _delta = (float)LuaAPI.lua_tonumber(L, 2); + + gen_to_be_invoked.Update( _delta ); + + + + return 0; + } + + } catch(System.Exception gen_e) { + return LuaAPI.luaL_error(L, "c# exception:" + gen_e); + } + + } + [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_SetToSetupPose(RealStatePtr L) { @@ -534,7 +631,7 @@ namespace XLua.CSObjectWrap } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetBounds(RealStatePtr L) + static int _m_FindPhysicsConstraint(RealStatePtr L) { try { @@ -545,6 +642,62 @@ namespace XLua.CSObjectWrap + { + string _constraintName = LuaAPI.lua_tostring(L, 2); + + var gen_ret = gen_to_be_invoked.FindPhysicsConstraint( _constraintName ); + translator.Push(L, gen_ret); + + + + return 1; + } + + } catch(System.Exception gen_e) { + return LuaAPI.luaL_error(L, "c# exception:" + gen_e); + } + + } + + [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] + static int _m_GetBounds(RealStatePtr L) + { + try { + + ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); + + + Spine.Skeleton gen_to_be_invoked = (Spine.Skeleton)translator.FastGetCSObj(L, 1); + + + int gen_param_count = LuaAPI.lua_gettop(L); + + if(gen_param_count == 3&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)) + { + float _x; + float _y; + float _width; + float _height; + float[] _vertexBuffer = (float[])translator.GetObject(L, 2, typeof(float[])); + Spine.SkeletonClipping _clipper = (Spine.SkeletonClipping)translator.GetObject(L, 3, typeof(Spine.SkeletonClipping)); + + gen_to_be_invoked.GetBounds( out _x, out _y, out _width, out _height, ref _vertexBuffer, _clipper ); + LuaAPI.lua_pushnumber(L, _x); + + LuaAPI.lua_pushnumber(L, _y); + + LuaAPI.lua_pushnumber(L, _width); + + LuaAPI.lua_pushnumber(L, _height); + + translator.Push(L, _vertexBuffer); + + + + + return 5; + } + if(gen_param_count == 2&& translator.Assignable(L, 2)) { float _x; float _y; @@ -573,6 +726,36 @@ namespace XLua.CSObjectWrap return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } + return LuaAPI.luaL_error(L, "invalid arguments to Spine.Skeleton.GetBounds!"); + + } + + [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] + static int _m_ToString(RealStatePtr L) + { + try { + + ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); + + + Spine.Skeleton gen_to_be_invoked = (Spine.Skeleton)translator.FastGetCSObj(L, 1); + + + + { + + var gen_ret = gen_to_be_invoked.ToString( ); + LuaAPI.lua_pushstring(L, gen_ret); + + + + return 1; + } + + } catch(System.Exception gen_e) { + return LuaAPI.luaL_error(L, "c# exception:" + gen_e); + } + } @@ -676,6 +859,20 @@ namespace XLua.CSObjectWrap return 1; } + [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] + static int _g_get_PhysicsConstraints(RealStatePtr L) + { + try { + ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); + + Spine.Skeleton gen_to_be_invoked = (Spine.Skeleton)translator.FastGetCSObj(L, 1); + translator.Push(L, gen_to_be_invoked.PhysicsConstraints); + } catch(System.Exception gen_e) { + return LuaAPI.luaL_error(L, "c# exception:" + gen_e); + } + return 1; + } + [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_TransformConstraints(RealStatePtr L) { @@ -816,6 +1013,20 @@ namespace XLua.CSObjectWrap return 1; } + [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] + static int _g_get_Time(RealStatePtr L) + { + try { + ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); + + Spine.Skeleton gen_to_be_invoked = (Spine.Skeleton)translator.FastGetCSObj(L, 1); + LuaAPI.lua_pushnumber(L, gen_to_be_invoked.Time); + } catch(System.Exception gen_e) { + return LuaAPI.luaL_error(L, "c# exception:" + gen_e); + } + return 1; + } + [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_RootBone(RealStatePtr L) { @@ -967,6 +1178,21 @@ namespace XLua.CSObjectWrap return 0; } + [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] + static int _s_set_Time(RealStatePtr L) + { + try { + ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); + + Spine.Skeleton gen_to_be_invoked = (Spine.Skeleton)translator.FastGetCSObj(L, 1); + gen_to_be_invoked.Time = (float)LuaAPI.lua_tonumber(L, 2); + + } catch(System.Exception gen_e) { + return LuaAPI.luaL_error(L, "c# exception:" + gen_e); + } + return 0; + } + diff --git a/Assets/XLua/Gen/Spine_TrackEntryWrap.cs b/Assets/XLua/Gen/Spine_TrackEntryWrap.cs index 5c0d481c7..1a75979e7 100644 --- a/Assets/XLua/Gen/Spine_TrackEntryWrap.cs +++ b/Assets/XLua/Gen/Spine_TrackEntryWrap.cs @@ -21,9 +21,10 @@ namespace XLua.CSObjectWrap { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); System.Type type = typeof(Spine.TrackEntry); - Utils.BeginObjectRegister(type, L, translator, 0, 10, 29, 18); + Utils.BeginObjectRegister(type, L, translator, 0, 11, 32, 19); Utils.RegisterFunc(L, Utils.METHOD_IDX, "Reset", _m_Reset); + Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetMixDuration", _m_SetMixDuration); Utils.RegisterFunc(L, Utils.METHOD_IDX, "ResetRotationDirections", _m_ResetRotationDirections); Utils.RegisterFunc(L, Utils.METHOD_IDX, "ToString", _m_ToString); Utils.RegisterFunc(L, Utils.METHOD_IDX, "AllowImmediateQueue", _m_AllowImmediateQueue); @@ -50,10 +51,13 @@ namespace XLua.CSObjectWrap Utils.RegisterFunc(L, Utils.GETTER_IDX, "Alpha", _g_get_Alpha); Utils.RegisterFunc(L, Utils.GETTER_IDX, "InterruptAlpha", _g_get_InterruptAlpha); Utils.RegisterFunc(L, Utils.GETTER_IDX, "EventThreshold", _g_get_EventThreshold); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "AttachmentThreshold", _g_get_AttachmentThreshold); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "DrawOrderThreshold", _g_get_DrawOrderThreshold); + Utils.RegisterFunc(L, Utils.GETTER_IDX, "AlphaAttachmentThreshold", _g_get_AlphaAttachmentThreshold); + Utils.RegisterFunc(L, Utils.GETTER_IDX, "MixAttachmentThreshold", _g_get_MixAttachmentThreshold); + Utils.RegisterFunc(L, Utils.GETTER_IDX, "MixDrawOrderThreshold", _g_get_MixDrawOrderThreshold); Utils.RegisterFunc(L, Utils.GETTER_IDX, "Next", _g_get_Next); Utils.RegisterFunc(L, Utils.GETTER_IDX, "Previous", _g_get_Previous); + Utils.RegisterFunc(L, Utils.GETTER_IDX, "WasApplied", _g_get_WasApplied); + Utils.RegisterFunc(L, Utils.GETTER_IDX, "IsNextReady", _g_get_IsNextReady); Utils.RegisterFunc(L, Utils.GETTER_IDX, "IsComplete", _g_get_IsComplete); Utils.RegisterFunc(L, Utils.GETTER_IDX, "MixTime", _g_get_MixTime); Utils.RegisterFunc(L, Utils.GETTER_IDX, "MixDuration", _g_get_MixDuration); @@ -75,8 +79,9 @@ namespace XLua.CSObjectWrap Utils.RegisterFunc(L, Utils.SETTER_IDX, "TimeScale", _s_set_TimeScale); Utils.RegisterFunc(L, Utils.SETTER_IDX, "Alpha", _s_set_Alpha); Utils.RegisterFunc(L, Utils.SETTER_IDX, "EventThreshold", _s_set_EventThreshold); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "AttachmentThreshold", _s_set_AttachmentThreshold); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "DrawOrderThreshold", _s_set_DrawOrderThreshold); + Utils.RegisterFunc(L, Utils.SETTER_IDX, "AlphaAttachmentThreshold", _s_set_AlphaAttachmentThreshold); + Utils.RegisterFunc(L, Utils.SETTER_IDX, "MixAttachmentThreshold", _s_set_MixAttachmentThreshold); + Utils.RegisterFunc(L, Utils.SETTER_IDX, "MixDrawOrderThreshold", _s_set_MixDrawOrderThreshold); Utils.RegisterFunc(L, Utils.SETTER_IDX, "MixTime", _s_set_MixTime); Utils.RegisterFunc(L, Utils.SETTER_IDX, "MixDuration", _s_set_MixDuration); Utils.RegisterFunc(L, Utils.SETTER_IDX, "MixBlend", _s_set_MixBlend); @@ -146,6 +151,35 @@ namespace XLua.CSObjectWrap + return 0; + } + + } catch(System.Exception gen_e) { + return LuaAPI.luaL_error(L, "c# exception:" + gen_e); + } + + } + + [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] + static int _m_SetMixDuration(RealStatePtr L) + { + try { + + ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); + + + Spine.TrackEntry gen_to_be_invoked = (Spine.TrackEntry)translator.FastGetCSObj(L, 1); + + + + { + float _mixDuration = (float)LuaAPI.lua_tonumber(L, 2); + float _delay = (float)LuaAPI.lua_tonumber(L, 3); + + gen_to_be_invoked.SetMixDuration( _mixDuration, _delay ); + + + return 0; } @@ -451,13 +485,13 @@ namespace XLua.CSObjectWrap } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_AttachmentThreshold(RealStatePtr L) + static int _g_get_AlphaAttachmentThreshold(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Spine.TrackEntry gen_to_be_invoked = (Spine.TrackEntry)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.AttachmentThreshold); + LuaAPI.lua_pushnumber(L, gen_to_be_invoked.AlphaAttachmentThreshold); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } @@ -465,13 +499,27 @@ namespace XLua.CSObjectWrap } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_DrawOrderThreshold(RealStatePtr L) + static int _g_get_MixAttachmentThreshold(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Spine.TrackEntry gen_to_be_invoked = (Spine.TrackEntry)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.DrawOrderThreshold); + LuaAPI.lua_pushnumber(L, gen_to_be_invoked.MixAttachmentThreshold); + } catch(System.Exception gen_e) { + return LuaAPI.luaL_error(L, "c# exception:" + gen_e); + } + return 1; + } + + [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] + static int _g_get_MixDrawOrderThreshold(RealStatePtr L) + { + try { + ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); + + Spine.TrackEntry gen_to_be_invoked = (Spine.TrackEntry)translator.FastGetCSObj(L, 1); + LuaAPI.lua_pushnumber(L, gen_to_be_invoked.MixDrawOrderThreshold); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } @@ -506,6 +554,34 @@ namespace XLua.CSObjectWrap return 1; } + [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] + static int _g_get_WasApplied(RealStatePtr L) + { + try { + ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); + + Spine.TrackEntry gen_to_be_invoked = (Spine.TrackEntry)translator.FastGetCSObj(L, 1); + LuaAPI.lua_pushboolean(L, gen_to_be_invoked.WasApplied); + } catch(System.Exception gen_e) { + return LuaAPI.luaL_error(L, "c# exception:" + gen_e); + } + return 1; + } + + [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] + static int _g_get_IsNextReady(RealStatePtr L) + { + try { + ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); + + Spine.TrackEntry gen_to_be_invoked = (Spine.TrackEntry)translator.FastGetCSObj(L, 1); + LuaAPI.lua_pushboolean(L, gen_to_be_invoked.IsNextReady); + } catch(System.Exception gen_e) { + return LuaAPI.luaL_error(L, "c# exception:" + gen_e); + } + return 1; + } + [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_IsComplete(RealStatePtr L) { @@ -799,13 +875,13 @@ namespace XLua.CSObjectWrap } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_AttachmentThreshold(RealStatePtr L) + static int _s_set_AlphaAttachmentThreshold(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Spine.TrackEntry gen_to_be_invoked = (Spine.TrackEntry)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.AttachmentThreshold = (float)LuaAPI.lua_tonumber(L, 2); + gen_to_be_invoked.AlphaAttachmentThreshold = (float)LuaAPI.lua_tonumber(L, 2); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); @@ -814,13 +890,28 @@ namespace XLua.CSObjectWrap } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_DrawOrderThreshold(RealStatePtr L) + static int _s_set_MixAttachmentThreshold(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Spine.TrackEntry gen_to_be_invoked = (Spine.TrackEntry)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.DrawOrderThreshold = (float)LuaAPI.lua_tonumber(L, 2); + gen_to_be_invoked.MixAttachmentThreshold = (float)LuaAPI.lua_tonumber(L, 2); + + } catch(System.Exception gen_e) { + return LuaAPI.luaL_error(L, "c# exception:" + gen_e); + } + return 0; + } + + [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] + static int _s_set_MixDrawOrderThreshold(RealStatePtr L) + { + try { + ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); + + Spine.TrackEntry gen_to_be_invoked = (Spine.TrackEntry)translator.FastGetCSObj(L, 1); + gen_to_be_invoked.MixDrawOrderThreshold = (float)LuaAPI.lua_tonumber(L, 2); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); diff --git a/Assets/XLua/Gen/Spine_Unity_MeshGeneratorWrap.cs b/Assets/XLua/Gen/Spine_Unity_MeshGeneratorWrap.cs index 76da9ec10..47ce458d9 100644 --- a/Assets/XLua/Gen/Spine_Unity_MeshGeneratorWrap.cs +++ b/Assets/XLua/Gen/Spine_Unity_MeshGeneratorWrap.cs @@ -21,7 +21,7 @@ namespace XLua.CSObjectWrap { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); System.Type type = typeof(Spine.Unity.MeshGenerator); - Utils.BeginObjectRegister(type, L, translator, 0, 12, 3, 1); + Utils.BeginObjectRegister(type, L, translator, 0, 13, 6, 1); Utils.RegisterFunc(L, Utils.METHOD_IDX, "SubmeshIndexCount", _m_SubmeshIndexCount); Utils.RegisterFunc(L, Utils.METHOD_IDX, "Begin", _m_Begin); @@ -29,6 +29,7 @@ namespace XLua.CSObjectWrap Utils.RegisterFunc(L, Utils.METHOD_IDX, "BuildMesh", _m_BuildMesh); Utils.RegisterFunc(L, Utils.METHOD_IDX, "BuildMeshWithArrays", _m_BuildMeshWithArrays); Utils.RegisterFunc(L, Utils.METHOD_IDX, "ScaleVertexData", _m_ScaleVertexData); + Utils.RegisterFunc(L, Utils.METHOD_IDX, "ScaleAndOffsetVertexData", _m_ScaleAndOffsetVertexData); Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetMeshBounds", _m_GetMeshBounds); Utils.RegisterFunc(L, Utils.METHOD_IDX, "FillVertexData", _m_FillVertexData); Utils.RegisterFunc(L, Utils.METHOD_IDX, "FillLateVertexData", _m_FillLateVertexData); @@ -37,8 +38,11 @@ namespace XLua.CSObjectWrap Utils.RegisterFunc(L, Utils.METHOD_IDX, "TrimExcess", _m_TrimExcess); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "VertexCount", _g_get_VertexCount); + Utils.RegisterFunc(L, Utils.GETTER_IDX, "UV2", _g_get_UV2); + Utils.RegisterFunc(L, Utils.GETTER_IDX, "UV3", _g_get_UV3); + Utils.RegisterFunc(L, Utils.GETTER_IDX, "VertexCount", _g_get_VertexCount); Utils.RegisterFunc(L, Utils.GETTER_IDX, "Buffers", _g_get_Buffers); + Utils.RegisterFunc(L, Utils.GETTER_IDX, "SkeletonClipping", _g_get_SkeletonClipping); Utils.RegisterFunc(L, Utils.GETTER_IDX, "settings", _g_get_settings); Utils.RegisterFunc(L, Utils.SETTER_IDX, "settings", _s_set_settings); @@ -399,6 +403,35 @@ namespace XLua.CSObjectWrap + return 0; + } + + } catch(System.Exception gen_e) { + return LuaAPI.luaL_error(L, "c# exception:" + gen_e); + } + + } + + [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] + static int _m_ScaleAndOffsetVertexData(RealStatePtr L) + { + try { + + ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); + + + Spine.Unity.MeshGenerator gen_to_be_invoked = (Spine.Unity.MeshGenerator)translator.FastGetCSObj(L, 1); + + + + { + float _scale = (float)LuaAPI.lua_tonumber(L, 2); + UnityEngine.Vector2 _offset2D;translator.Get(L, 3, out _offset2D); + + gen_to_be_invoked.ScaleAndOffsetVertexData( _scale, _offset2D ); + + + return 0; } @@ -661,6 +694,34 @@ namespace XLua.CSObjectWrap + [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] + static int _g_get_UV2(RealStatePtr L) + { + try { + ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); + + Spine.Unity.MeshGenerator gen_to_be_invoked = (Spine.Unity.MeshGenerator)translator.FastGetCSObj(L, 1); + translator.Push(L, gen_to_be_invoked.UV2); + } catch(System.Exception gen_e) { + return LuaAPI.luaL_error(L, "c# exception:" + gen_e); + } + return 1; + } + + [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] + static int _g_get_UV3(RealStatePtr L) + { + try { + ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); + + Spine.Unity.MeshGenerator gen_to_be_invoked = (Spine.Unity.MeshGenerator)translator.FastGetCSObj(L, 1); + translator.Push(L, gen_to_be_invoked.UV3); + } catch(System.Exception gen_e) { + return LuaAPI.luaL_error(L, "c# exception:" + gen_e); + } + return 1; + } + [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_VertexCount(RealStatePtr L) { @@ -689,6 +750,20 @@ namespace XLua.CSObjectWrap return 1; } + [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] + static int _g_get_SkeletonClipping(RealStatePtr L) + { + try { + ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); + + Spine.Unity.MeshGenerator gen_to_be_invoked = (Spine.Unity.MeshGenerator)translator.FastGetCSObj(L, 1); + translator.Push(L, gen_to_be_invoked.SkeletonClipping); + } catch(System.Exception gen_e) { + return LuaAPI.luaL_error(L, "c# exception:" + gen_e); + } + return 1; + } + [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_settings(RealStatePtr L) { diff --git a/Assets/XLua/Gen/Spine_Unity_MeshGenerator_SettingsWrap.cs b/Assets/XLua/Gen/Spine_Unity_MeshGenerator_SettingsWrap.cs index 01f95b71f..c26dc918c 100644 --- a/Assets/XLua/Gen/Spine_Unity_MeshGenerator_SettingsWrap.cs +++ b/Assets/XLua/Gen/Spine_Unity_MeshGenerator_SettingsWrap.cs @@ -27,20 +27,20 @@ namespace XLua.CSObjectWrap Utils.RegisterFunc(L, Utils.GETTER_IDX, "useClipping", _g_get_useClipping); Utils.RegisterFunc(L, Utils.GETTER_IDX, "zSpacing", _g_get_zSpacing); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "pmaVertexColors", _g_get_pmaVertexColors); Utils.RegisterFunc(L, Utils.GETTER_IDX, "tintBlack", _g_get_tintBlack); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "canvasGroupTintBlack", _g_get_canvasGroupTintBlack); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "calculateTangents", _g_get_calculateTangents); + Utils.RegisterFunc(L, Utils.GETTER_IDX, "canvasGroupCompatible", _g_get_canvasGroupCompatible); + Utils.RegisterFunc(L, Utils.GETTER_IDX, "pmaVertexColors", _g_get_pmaVertexColors); Utils.RegisterFunc(L, Utils.GETTER_IDX, "addNormals", _g_get_addNormals); + Utils.RegisterFunc(L, Utils.GETTER_IDX, "calculateTangents", _g_get_calculateTangents); Utils.RegisterFunc(L, Utils.GETTER_IDX, "immutableTriangles", _g_get_immutableTriangles); Utils.RegisterFunc(L, Utils.SETTER_IDX, "useClipping", _s_set_useClipping); Utils.RegisterFunc(L, Utils.SETTER_IDX, "zSpacing", _s_set_zSpacing); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "pmaVertexColors", _s_set_pmaVertexColors); Utils.RegisterFunc(L, Utils.SETTER_IDX, "tintBlack", _s_set_tintBlack); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "canvasGroupTintBlack", _s_set_canvasGroupTintBlack); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "calculateTangents", _s_set_calculateTangents); + Utils.RegisterFunc(L, Utils.SETTER_IDX, "canvasGroupCompatible", _s_set_canvasGroupCompatible); + Utils.RegisterFunc(L, Utils.SETTER_IDX, "pmaVertexColors", _s_set_pmaVertexColors); Utils.RegisterFunc(L, Utils.SETTER_IDX, "addNormals", _s_set_addNormals); + Utils.RegisterFunc(L, Utils.SETTER_IDX, "calculateTangents", _s_set_calculateTangents); Utils.RegisterFunc(L, Utils.SETTER_IDX, "immutableTriangles", _s_set_immutableTriangles); @@ -129,20 +129,6 @@ namespace XLua.CSObjectWrap return 1; } - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_pmaVertexColors(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.MeshGenerator.Settings gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.pmaVertexColors); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_tintBlack(RealStatePtr L) { @@ -158,13 +144,13 @@ namespace XLua.CSObjectWrap } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_canvasGroupTintBlack(RealStatePtr L) + static int _g_get_canvasGroupCompatible(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Spine.Unity.MeshGenerator.Settings gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.canvasGroupTintBlack); + LuaAPI.lua_pushboolean(L, gen_to_be_invoked.canvasGroupCompatible); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } @@ -172,13 +158,13 @@ namespace XLua.CSObjectWrap } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_calculateTangents(RealStatePtr L) + static int _g_get_pmaVertexColors(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Spine.Unity.MeshGenerator.Settings gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.calculateTangents); + LuaAPI.lua_pushboolean(L, gen_to_be_invoked.pmaVertexColors); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } @@ -199,6 +185,20 @@ namespace XLua.CSObjectWrap return 1; } + [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] + static int _g_get_calculateTangents(RealStatePtr L) + { + try { + ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); + + Spine.Unity.MeshGenerator.Settings gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); + LuaAPI.lua_pushboolean(L, gen_to_be_invoked.calculateTangents); + } catch(System.Exception gen_e) { + return LuaAPI.luaL_error(L, "c# exception:" + gen_e); + } + return 1; + } + [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_immutableTriangles(RealStatePtr L) { @@ -249,23 +249,6 @@ namespace XLua.CSObjectWrap return 0; } - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_pmaVertexColors(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.MeshGenerator.Settings gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.pmaVertexColors = LuaAPI.lua_toboolean(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_tintBlack(RealStatePtr L) { @@ -284,13 +267,13 @@ namespace XLua.CSObjectWrap } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_canvasGroupTintBlack(RealStatePtr L) + static int _s_set_canvasGroupCompatible(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Spine.Unity.MeshGenerator.Settings gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.canvasGroupTintBlack = LuaAPI.lua_toboolean(L, 2); + gen_to_be_invoked.canvasGroupCompatible = LuaAPI.lua_toboolean(L, 2); translator.Update(L, 1, gen_to_be_invoked); @@ -301,13 +284,13 @@ namespace XLua.CSObjectWrap } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_calculateTangents(RealStatePtr L) + static int _s_set_pmaVertexColors(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Spine.Unity.MeshGenerator.Settings gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.calculateTangents = LuaAPI.lua_toboolean(L, 2); + gen_to_be_invoked.pmaVertexColors = LuaAPI.lua_toboolean(L, 2); translator.Update(L, 1, gen_to_be_invoked); @@ -334,6 +317,23 @@ namespace XLua.CSObjectWrap return 0; } + [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] + static int _s_set_calculateTangents(RealStatePtr L) + { + try { + ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); + + Spine.Unity.MeshGenerator.Settings gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); + gen_to_be_invoked.calculateTangents = LuaAPI.lua_toboolean(L, 2); + + translator.Update(L, 1, gen_to_be_invoked); + + } catch(System.Exception gen_e) { + return LuaAPI.luaL_error(L, "c# exception:" + gen_e); + } + return 0; + } + [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_immutableTriangles(RealStatePtr L) { diff --git a/Assets/XLua/Gen/Spine_Unity_SkeletonAnimationWrap.cs b/Assets/XLua/Gen/Spine_Unity_SkeletonAnimationWrap.cs index a30dd2639..8da54b42c 100644 --- a/Assets/XLua/Gen/Spine_Unity_SkeletonAnimationWrap.cs +++ b/Assets/XLua/Gen/Spine_Unity_SkeletonAnimationWrap.cs @@ -21,11 +21,12 @@ namespace XLua.CSObjectWrap { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); System.Type type = typeof(Spine.Unity.SkeletonAnimation); - Utils.BeginObjectRegister(type, L, translator, 0, 11, 7, 6); + Utils.BeginObjectRegister(type, L, translator, 0, 12, 7, 6); Utils.RegisterFunc(L, Utils.METHOD_IDX, "ClearState", _m_ClearState); Utils.RegisterFunc(L, Utils.METHOD_IDX, "Initialize", _m_Initialize); Utils.RegisterFunc(L, Utils.METHOD_IDX, "Update", _m_Update); + Utils.RegisterFunc(L, Utils.METHOD_IDX, "ApplyAnimation", _m_ApplyAnimation); Utils.RegisterFunc(L, Utils.METHOD_IDX, "AfterAnimationApplied", _m_AfterAnimationApplied); Utils.RegisterFunc(L, Utils.METHOD_IDX, "LateUpdate", _m_LateUpdate); Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnBecameVisible", _m_OnBecameVisible); @@ -274,6 +275,33 @@ namespace XLua.CSObjectWrap + return 0; + } + + } catch(System.Exception gen_e) { + return LuaAPI.luaL_error(L, "c# exception:" + gen_e); + } + + } + + [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] + static int _m_ApplyAnimation(RealStatePtr L) + { + try { + + ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); + + + Spine.Unity.SkeletonAnimation gen_to_be_invoked = (Spine.Unity.SkeletonAnimation)translator.FastGetCSObj(L, 1); + + + + { + + gen_to_be_invoked.ApplyAnimation( ); + + + return 0; } diff --git a/Assets/XLua/Gen/Spine_Unity_SkeletonDataAssetWrap.cs b/Assets/XLua/Gen/Spine_Unity_SkeletonDataAssetWrap.cs index e72e5767b..a311d2280 100644 --- a/Assets/XLua/Gen/Spine_Unity_SkeletonDataAssetWrap.cs +++ b/Assets/XLua/Gen/Spine_Unity_SkeletonDataAssetWrap.cs @@ -21,8 +21,9 @@ namespace XLua.CSObjectWrap { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); System.Type type = typeof(Spine.Unity.SkeletonDataAsset); - Utils.BeginObjectRegister(type, L, translator, 0, 4, 12, 11); + Utils.BeginObjectRegister(type, L, translator, 0, 5, 12, 11); + Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetupRuntimeBlendModeMaterials", _m_SetupRuntimeBlendModeMaterials); Utils.RegisterFunc(L, Utils.METHOD_IDX, "Clear", _m_Clear); Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetAnimationStateData", _m_GetAnimationStateData); Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetSkeletonData", _m_GetSkeletonData); @@ -173,6 +174,35 @@ namespace XLua.CSObjectWrap } + [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] + static int _m_SetupRuntimeBlendModeMaterials(RealStatePtr L) + { + try { + + ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); + + + Spine.Unity.SkeletonDataAsset gen_to_be_invoked = (Spine.Unity.SkeletonDataAsset)translator.FastGetCSObj(L, 1); + + + + { + bool _applyAdditiveMaterial = LuaAPI.lua_toboolean(L, 2); + Spine.Unity.BlendModeMaterials.TemplateMaterials _templateMaterials = (Spine.Unity.BlendModeMaterials.TemplateMaterials)translator.GetObject(L, 3, typeof(Spine.Unity.BlendModeMaterials.TemplateMaterials)); + + gen_to_be_invoked.SetupRuntimeBlendModeMaterials( _applyAdditiveMaterial, _templateMaterials ); + + + + return 0; + } + + } catch(System.Exception gen_e) { + return LuaAPI.luaL_error(L, "c# exception:" + gen_e); + } + + } + [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_Clear(RealStatePtr L) { diff --git a/Assets/XLua/Gen/Spine_Unity_SkeletonGraphicWrap.cs b/Assets/XLua/Gen/Spine_Unity_SkeletonGraphicWrap.cs index 2ffbe0dad..472024bf3 100644 --- a/Assets/XLua/Gen/Spine_Unity_SkeletonGraphicWrap.cs +++ b/Assets/XLua/Gen/Spine_Unity_SkeletonGraphicWrap.cs @@ -21,15 +21,20 @@ namespace XLua.CSObjectWrap { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); System.Type type = typeof(Spine.Unity.SkeletonGraphic); - Utils.BeginObjectRegister(type, L, translator, 0, 27, 38, 24); + Utils.BeginObjectRegister(type, L, translator, 0, 35, 44, 28); Utils.RegisterFunc(L, Utils.METHOD_IDX, "Rebuild", _m_Rebuild); Utils.RegisterFunc(L, Utils.METHOD_IDX, "Update", _m_Update); + Utils.RegisterFunc(L, Utils.METHOD_IDX, "ApplyTransformMovementToPhysics", _m_ApplyTransformMovementToPhysics); + Utils.RegisterFunc(L, Utils.METHOD_IDX, "ApplyAnimation", _m_ApplyAnimation); Utils.RegisterFunc(L, Utils.METHOD_IDX, "AfterAnimationApplied", _m_AfterAnimationApplied); Utils.RegisterFunc(L, Utils.METHOD_IDX, "LateUpdate", _m_LateUpdate); Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnBecameVisible", _m_OnBecameVisible); Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnBecameInvisible", _m_OnBecameInvisible); Utils.RegisterFunc(L, Utils.METHOD_IDX, "ReapplySeparatorSlotNames", _m_ReapplySeparatorSlotNames); + Utils.RegisterFunc(L, Utils.METHOD_IDX, "ResetLastPosition", _m_ResetLastPosition); + Utils.RegisterFunc(L, Utils.METHOD_IDX, "ResetLastRotation", _m_ResetLastRotation); + Utils.RegisterFunc(L, Utils.METHOD_IDX, "ResetLastPositionAndRotation", _m_ResetLastPositionAndRotation); Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetLastMesh", _m_GetLastMesh); Utils.RegisterFunc(L, Utils.METHOD_IDX, "MatchRectTransformWithBounds", _m_MatchRectTransformWithBounds); Utils.RegisterFunc(L, Utils.METHOD_IDX, "Clear", _m_Clear); @@ -39,6 +44,9 @@ namespace XLua.CSObjectWrap Utils.RegisterFunc(L, Utils.METHOD_IDX, "UpdateMesh", _m_UpdateMesh); Utils.RegisterFunc(L, Utils.METHOD_IDX, "UpdateMeshToInstructions", _m_UpdateMeshToInstructions); Utils.RegisterFunc(L, Utils.METHOD_IDX, "HasMultipleSubmeshInstructions", _m_HasMultipleSubmeshInstructions); + Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetPivotOffset", _m_GetPivotOffset); + Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetScaledPivotOffset", _m_GetScaledPivotOffset); + Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetScaledPivotOffset", _m_SetScaledPivotOffset); Utils.RegisterFunc(L, Utils.METHOD_IDX, "AssignMeshOverrideSingleRenderer", _e_AssignMeshOverrideSingleRenderer); Utils.RegisterFunc(L, Utils.METHOD_IDX, "AssignMeshOverrideMultipleRenderers", _e_AssignMeshOverrideMultipleRenderers); @@ -53,7 +61,9 @@ namespace XLua.CSObjectWrap Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnPostProcessVertices", _e_OnPostProcessVertices); Utils.RegisterFunc(L, Utils.GETTER_IDX, "SkeletonDataAsset", _g_get_SkeletonDataAsset); + Utils.RegisterFunc(L, Utils.GETTER_IDX, "color", _g_get_color); Utils.RegisterFunc(L, Utils.GETTER_IDX, "MeshScale", _g_get_MeshScale); + Utils.RegisterFunc(L, Utils.GETTER_IDX, "MeshOffset", _g_get_MeshOffset); Utils.RegisterFunc(L, Utils.GETTER_IDX, "UpdateMode", _g_get_UpdateMode); Utils.RegisterFunc(L, Utils.GETTER_IDX, "SeparatorParts", _g_get_SeparatorParts); Utils.RegisterFunc(L, Utils.GETTER_IDX, "CustomTextureOverride", _g_get_CustomTextureOverride); @@ -64,7 +74,11 @@ namespace XLua.CSObjectWrap Utils.RegisterFunc(L, Utils.GETTER_IDX, "SkeletonData", _g_get_SkeletonData); Utils.RegisterFunc(L, Utils.GETTER_IDX, "IsValid", _g_get_IsValid); Utils.RegisterFunc(L, Utils.GETTER_IDX, "AnimationState", _g_get_AnimationState); + Utils.RegisterFunc(L, Utils.GETTER_IDX, "PhysicsPositionInheritanceFactor", _g_get_PhysicsPositionInheritanceFactor); + Utils.RegisterFunc(L, Utils.GETTER_IDX, "PhysicsRotationInheritanceFactor", _g_get_PhysicsRotationInheritanceFactor); + Utils.RegisterFunc(L, Utils.GETTER_IDX, "PhysicsMovementRelativeTo", _g_get_PhysicsMovementRelativeTo); Utils.RegisterFunc(L, Utils.GETTER_IDX, "MeshGenerator", _g_get_MeshGenerator); + Utils.RegisterFunc(L, Utils.GETTER_IDX, "SkeletonClipping", _g_get_SkeletonClipping); Utils.RegisterFunc(L, Utils.GETTER_IDX, "MeshesMultipleCanvasRenderers", _g_get_MeshesMultipleCanvasRenderers); Utils.RegisterFunc(L, Utils.GETTER_IDX, "MaterialsMultipleCanvasRenderers", _g_get_MaterialsMultipleCanvasRenderers); Utils.RegisterFunc(L, Utils.GETTER_IDX, "TexturesMultipleCanvasRenderers", _g_get_TexturesMultipleCanvasRenderers); @@ -91,9 +105,13 @@ namespace XLua.CSObjectWrap Utils.RegisterFunc(L, Utils.GETTER_IDX, "updateSeparatorPartScale", _g_get_updateSeparatorPartScale); Utils.RegisterFunc(L, Utils.GETTER_IDX, "disableMeshAssignmentOnOverride", _g_get_disableMeshAssignmentOnOverride); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "UpdateMode", _s_set_UpdateMode); + Utils.RegisterFunc(L, Utils.SETTER_IDX, "color", _s_set_color); + Utils.RegisterFunc(L, Utils.SETTER_IDX, "UpdateMode", _s_set_UpdateMode); Utils.RegisterFunc(L, Utils.SETTER_IDX, "OverrideTexture", _s_set_OverrideTexture); Utils.RegisterFunc(L, Utils.SETTER_IDX, "Skeleton", _s_set_Skeleton); + Utils.RegisterFunc(L, Utils.SETTER_IDX, "PhysicsPositionInheritanceFactor", _s_set_PhysicsPositionInheritanceFactor); + Utils.RegisterFunc(L, Utils.SETTER_IDX, "PhysicsRotationInheritanceFactor", _s_set_PhysicsRotationInheritanceFactor); + Utils.RegisterFunc(L, Utils.SETTER_IDX, "PhysicsMovementRelativeTo", _s_set_PhysicsMovementRelativeTo); Utils.RegisterFunc(L, Utils.SETTER_IDX, "UpdateTiming", _s_set_UpdateTiming); Utils.RegisterFunc(L, Utils.SETTER_IDX, "UnscaledTime", _s_set_UnscaledTime); Utils.RegisterFunc(L, Utils.SETTER_IDX, "skeletonDataAsset", _s_set_skeletonDataAsset); @@ -291,6 +309,60 @@ namespace XLua.CSObjectWrap } + [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] + static int _m_ApplyTransformMovementToPhysics(RealStatePtr L) + { + try { + + ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); + + + Spine.Unity.SkeletonGraphic gen_to_be_invoked = (Spine.Unity.SkeletonGraphic)translator.FastGetCSObj(L, 1); + + + + { + + gen_to_be_invoked.ApplyTransformMovementToPhysics( ); + + + + return 0; + } + + } catch(System.Exception gen_e) { + return LuaAPI.luaL_error(L, "c# exception:" + gen_e); + } + + } + + [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] + static int _m_ApplyAnimation(RealStatePtr L) + { + try { + + ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); + + + Spine.Unity.SkeletonGraphic gen_to_be_invoked = (Spine.Unity.SkeletonGraphic)translator.FastGetCSObj(L, 1); + + + + { + + gen_to_be_invoked.ApplyAnimation( ); + + + + return 0; + } + + } catch(System.Exception gen_e) { + return LuaAPI.luaL_error(L, "c# exception:" + gen_e); + } + + } + [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_AfterAnimationApplied(RealStatePtr L) { @@ -417,6 +489,87 @@ namespace XLua.CSObjectWrap + return 0; + } + + } catch(System.Exception gen_e) { + return LuaAPI.luaL_error(L, "c# exception:" + gen_e); + } + + } + + [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] + static int _m_ResetLastPosition(RealStatePtr L) + { + try { + + ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); + + + Spine.Unity.SkeletonGraphic gen_to_be_invoked = (Spine.Unity.SkeletonGraphic)translator.FastGetCSObj(L, 1); + + + + { + + gen_to_be_invoked.ResetLastPosition( ); + + + + return 0; + } + + } catch(System.Exception gen_e) { + return LuaAPI.luaL_error(L, "c# exception:" + gen_e); + } + + } + + [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] + static int _m_ResetLastRotation(RealStatePtr L) + { + try { + + ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); + + + Spine.Unity.SkeletonGraphic gen_to_be_invoked = (Spine.Unity.SkeletonGraphic)translator.FastGetCSObj(L, 1); + + + + { + + gen_to_be_invoked.ResetLastRotation( ); + + + + return 0; + } + + } catch(System.Exception gen_e) { + return LuaAPI.luaL_error(L, "c# exception:" + gen_e); + } + + } + + [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] + static int _m_ResetLastPositionAndRotation(RealStatePtr L) + { + try { + + ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); + + + Spine.Unity.SkeletonGraphic gen_to_be_invoked = (Spine.Unity.SkeletonGraphic)translator.FastGetCSObj(L, 1); + + + + { + + gen_to_be_invoked.ResetLastPositionAndRotation( ); + + + return 0; } @@ -729,6 +882,90 @@ namespace XLua.CSObjectWrap } + [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] + static int _m_GetPivotOffset(RealStatePtr L) + { + try { + + ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); + + + Spine.Unity.SkeletonGraphic gen_to_be_invoked = (Spine.Unity.SkeletonGraphic)translator.FastGetCSObj(L, 1); + + + + { + + var gen_ret = gen_to_be_invoked.GetPivotOffset( ); + translator.PushUnityEngineVector2(L, gen_ret); + + + + return 1; + } + + } catch(System.Exception gen_e) { + return LuaAPI.luaL_error(L, "c# exception:" + gen_e); + } + + } + + [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] + static int _m_GetScaledPivotOffset(RealStatePtr L) + { + try { + + ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); + + + Spine.Unity.SkeletonGraphic gen_to_be_invoked = (Spine.Unity.SkeletonGraphic)translator.FastGetCSObj(L, 1); + + + + { + + var gen_ret = gen_to_be_invoked.GetScaledPivotOffset( ); + translator.PushUnityEngineVector2(L, gen_ret); + + + + return 1; + } + + } catch(System.Exception gen_e) { + return LuaAPI.luaL_error(L, "c# exception:" + gen_e); + } + + } + + [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] + static int _m_SetScaledPivotOffset(RealStatePtr L) + { + try { + + ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); + + + Spine.Unity.SkeletonGraphic gen_to_be_invoked = (Spine.Unity.SkeletonGraphic)translator.FastGetCSObj(L, 1); + + + + { + UnityEngine.Vector2 _pivotOffsetScaled;translator.Get(L, 2, out _pivotOffsetScaled); + + gen_to_be_invoked.SetScaledPivotOffset( _pivotOffsetScaled ); + + + + return 0; + } + + } catch(System.Exception gen_e) { + return LuaAPI.luaL_error(L, "c# exception:" + gen_e); + } + + } + @@ -746,6 +983,20 @@ namespace XLua.CSObjectWrap return 1; } + [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] + static int _g_get_color(RealStatePtr L) + { + try { + ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); + + Spine.Unity.SkeletonGraphic gen_to_be_invoked = (Spine.Unity.SkeletonGraphic)translator.FastGetCSObj(L, 1); + translator.PushUnityEngineColor(L, gen_to_be_invoked.color); + } catch(System.Exception gen_e) { + return LuaAPI.luaL_error(L, "c# exception:" + gen_e); + } + return 1; + } + [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_MeshScale(RealStatePtr L) { @@ -760,6 +1011,20 @@ namespace XLua.CSObjectWrap return 1; } + [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] + static int _g_get_MeshOffset(RealStatePtr L) + { + try { + ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); + + Spine.Unity.SkeletonGraphic gen_to_be_invoked = (Spine.Unity.SkeletonGraphic)translator.FastGetCSObj(L, 1); + translator.PushUnityEngineVector2(L, gen_to_be_invoked.MeshOffset); + } catch(System.Exception gen_e) { + return LuaAPI.luaL_error(L, "c# exception:" + gen_e); + } + return 1; + } + [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_UpdateMode(RealStatePtr L) { @@ -900,6 +1165,48 @@ namespace XLua.CSObjectWrap return 1; } + [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] + static int _g_get_PhysicsPositionInheritanceFactor(RealStatePtr L) + { + try { + ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); + + Spine.Unity.SkeletonGraphic gen_to_be_invoked = (Spine.Unity.SkeletonGraphic)translator.FastGetCSObj(L, 1); + translator.PushUnityEngineVector2(L, gen_to_be_invoked.PhysicsPositionInheritanceFactor); + } catch(System.Exception gen_e) { + return LuaAPI.luaL_error(L, "c# exception:" + gen_e); + } + return 1; + } + + [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] + static int _g_get_PhysicsRotationInheritanceFactor(RealStatePtr L) + { + try { + ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); + + Spine.Unity.SkeletonGraphic gen_to_be_invoked = (Spine.Unity.SkeletonGraphic)translator.FastGetCSObj(L, 1); + LuaAPI.lua_pushnumber(L, gen_to_be_invoked.PhysicsRotationInheritanceFactor); + } catch(System.Exception gen_e) { + return LuaAPI.luaL_error(L, "c# exception:" + gen_e); + } + return 1; + } + + [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] + static int _g_get_PhysicsMovementRelativeTo(RealStatePtr L) + { + try { + ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); + + Spine.Unity.SkeletonGraphic gen_to_be_invoked = (Spine.Unity.SkeletonGraphic)translator.FastGetCSObj(L, 1); + translator.Push(L, gen_to_be_invoked.PhysicsMovementRelativeTo); + } catch(System.Exception gen_e) { + return LuaAPI.luaL_error(L, "c# exception:" + gen_e); + } + return 1; + } + [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_MeshGenerator(RealStatePtr L) { @@ -914,6 +1221,20 @@ namespace XLua.CSObjectWrap return 1; } + [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] + static int _g_get_SkeletonClipping(RealStatePtr L) + { + try { + ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); + + Spine.Unity.SkeletonGraphic gen_to_be_invoked = (Spine.Unity.SkeletonGraphic)translator.FastGetCSObj(L, 1); + translator.Push(L, gen_to_be_invoked.SkeletonClipping); + } catch(System.Exception gen_e) { + return LuaAPI.luaL_error(L, "c# exception:" + gen_e); + } + return 1; + } + [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_MeshesMultipleCanvasRenderers(RealStatePtr L) { @@ -1266,6 +1587,22 @@ namespace XLua.CSObjectWrap + [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] + static int _s_set_color(RealStatePtr L) + { + try { + ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); + + Spine.Unity.SkeletonGraphic gen_to_be_invoked = (Spine.Unity.SkeletonGraphic)translator.FastGetCSObj(L, 1); + UnityEngine.Color gen_value;translator.Get(L, 2, out gen_value); + gen_to_be_invoked.color = gen_value; + + } catch(System.Exception gen_e) { + return LuaAPI.luaL_error(L, "c# exception:" + gen_e); + } + return 0; + } + [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_UpdateMode(RealStatePtr L) { @@ -1312,6 +1649,52 @@ namespace XLua.CSObjectWrap return 0; } + [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] + static int _s_set_PhysicsPositionInheritanceFactor(RealStatePtr L) + { + try { + ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); + + Spine.Unity.SkeletonGraphic gen_to_be_invoked = (Spine.Unity.SkeletonGraphic)translator.FastGetCSObj(L, 1); + UnityEngine.Vector2 gen_value;translator.Get(L, 2, out gen_value); + gen_to_be_invoked.PhysicsPositionInheritanceFactor = gen_value; + + } catch(System.Exception gen_e) { + return LuaAPI.luaL_error(L, "c# exception:" + gen_e); + } + return 0; + } + + [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] + static int _s_set_PhysicsRotationInheritanceFactor(RealStatePtr L) + { + try { + ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); + + Spine.Unity.SkeletonGraphic gen_to_be_invoked = (Spine.Unity.SkeletonGraphic)translator.FastGetCSObj(L, 1); + gen_to_be_invoked.PhysicsRotationInheritanceFactor = (float)LuaAPI.lua_tonumber(L, 2); + + } catch(System.Exception gen_e) { + return LuaAPI.luaL_error(L, "c# exception:" + gen_e); + } + return 0; + } + + [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] + static int _s_set_PhysicsMovementRelativeTo(RealStatePtr L) + { + try { + ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); + + Spine.Unity.SkeletonGraphic gen_to_be_invoked = (Spine.Unity.SkeletonGraphic)translator.FastGetCSObj(L, 1); + gen_to_be_invoked.PhysicsMovementRelativeTo = (UnityEngine.Transform)translator.GetObject(L, 2, typeof(UnityEngine.Transform)); + + } catch(System.Exception gen_e) { + return LuaAPI.luaL_error(L, "c# exception:" + gen_e); + } + return 0; + } + [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_UpdateTiming(RealStatePtr L) { diff --git a/Assets/XLua/Gen/Spine_Unity_SkeletonRendererWrap.cs b/Assets/XLua/Gen/Spine_Unity_SkeletonRendererWrap.cs index 732672c0a..0c5087d43 100644 --- a/Assets/XLua/Gen/Spine_Unity_SkeletonRendererWrap.cs +++ b/Assets/XLua/Gen/Spine_Unity_SkeletonRendererWrap.cs @@ -21,13 +21,17 @@ namespace XLua.CSObjectWrap { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); System.Type type = typeof(Spine.Unity.SkeletonRenderer); - Utils.BeginObjectRegister(type, L, translator, 0, 15, 26, 21); + Utils.BeginObjectRegister(type, L, translator, 0, 19, 30, 24); + Utils.RegisterFunc(L, Utils.METHOD_IDX, "ResetLastPosition", _m_ResetLastPosition); + Utils.RegisterFunc(L, Utils.METHOD_IDX, "ResetLastRotation", _m_ResetLastRotation); + Utils.RegisterFunc(L, Utils.METHOD_IDX, "ResetLastPositionAndRotation", _m_ResetLastPositionAndRotation); Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetMeshSettings", _m_SetMeshSettings); Utils.RegisterFunc(L, Utils.METHOD_IDX, "Awake", _m_Awake); Utils.RegisterFunc(L, Utils.METHOD_IDX, "ClearState", _m_ClearState); Utils.RegisterFunc(L, Utils.METHOD_IDX, "EnsureMeshGeneratorCapacity", _m_EnsureMeshGeneratorCapacity); Utils.RegisterFunc(L, Utils.METHOD_IDX, "Initialize", _m_Initialize); + Utils.RegisterFunc(L, Utils.METHOD_IDX, "ApplyTransformMovementToPhysics", _m_ApplyTransformMovementToPhysics); Utils.RegisterFunc(L, Utils.METHOD_IDX, "LateUpdate", _m_LateUpdate); Utils.RegisterFunc(L, Utils.METHOD_IDX, "LateUpdateMesh", _m_LateUpdateMesh); Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnBecameVisible", _m_OnBecameVisible); @@ -43,7 +47,11 @@ namespace XLua.CSObjectWrap Utils.RegisterFunc(L, Utils.GETTER_IDX, "UpdateMode", _g_get_UpdateMode); Utils.RegisterFunc(L, Utils.GETTER_IDX, "CustomMaterialOverride", _g_get_CustomMaterialOverride); Utils.RegisterFunc(L, Utils.GETTER_IDX, "CustomSlotMaterials", _g_get_CustomSlotMaterials); + Utils.RegisterFunc(L, Utils.GETTER_IDX, "SkeletonClipping", _g_get_SkeletonClipping); Utils.RegisterFunc(L, Utils.GETTER_IDX, "Skeleton", _g_get_Skeleton); + Utils.RegisterFunc(L, Utils.GETTER_IDX, "PhysicsPositionInheritanceFactor", _g_get_PhysicsPositionInheritanceFactor); + Utils.RegisterFunc(L, Utils.GETTER_IDX, "PhysicsRotationInheritanceFactor", _g_get_PhysicsRotationInheritanceFactor); + Utils.RegisterFunc(L, Utils.GETTER_IDX, "PhysicsMovementRelativeTo", _g_get_PhysicsMovementRelativeTo); Utils.RegisterFunc(L, Utils.GETTER_IDX, "SkeletonDataAsset", _g_get_SkeletonDataAsset); Utils.RegisterFunc(L, Utils.GETTER_IDX, "skeletonDataAsset", _g_get_skeletonDataAsset); Utils.RegisterFunc(L, Utils.GETTER_IDX, "initialSkinName", _g_get_initialSkinName); @@ -68,6 +76,9 @@ namespace XLua.CSObjectWrap Utils.RegisterFunc(L, Utils.GETTER_IDX, "skeleton", _g_get_skeleton); Utils.RegisterFunc(L, Utils.SETTER_IDX, "UpdateMode", _s_set_UpdateMode); + Utils.RegisterFunc(L, Utils.SETTER_IDX, "PhysicsPositionInheritanceFactor", _s_set_PhysicsPositionInheritanceFactor); + Utils.RegisterFunc(L, Utils.SETTER_IDX, "PhysicsRotationInheritanceFactor", _s_set_PhysicsRotationInheritanceFactor); + Utils.RegisterFunc(L, Utils.SETTER_IDX, "PhysicsMovementRelativeTo", _s_set_PhysicsMovementRelativeTo); Utils.RegisterFunc(L, Utils.SETTER_IDX, "skeletonDataAsset", _s_set_skeletonDataAsset); Utils.RegisterFunc(L, Utils.SETTER_IDX, "initialSkinName", _s_set_initialSkinName); Utils.RegisterFunc(L, Utils.SETTER_IDX, "initialFlipX", _s_set_initialFlipX); @@ -138,6 +149,87 @@ namespace XLua.CSObjectWrap + [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] + static int _m_ResetLastPosition(RealStatePtr L) + { + try { + + ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); + + + Spine.Unity.SkeletonRenderer gen_to_be_invoked = (Spine.Unity.SkeletonRenderer)translator.FastGetCSObj(L, 1); + + + + { + + gen_to_be_invoked.ResetLastPosition( ); + + + + return 0; + } + + } catch(System.Exception gen_e) { + return LuaAPI.luaL_error(L, "c# exception:" + gen_e); + } + + } + + [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] + static int _m_ResetLastRotation(RealStatePtr L) + { + try { + + ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); + + + Spine.Unity.SkeletonRenderer gen_to_be_invoked = (Spine.Unity.SkeletonRenderer)translator.FastGetCSObj(L, 1); + + + + { + + gen_to_be_invoked.ResetLastRotation( ); + + + + return 0; + } + + } catch(System.Exception gen_e) { + return LuaAPI.luaL_error(L, "c# exception:" + gen_e); + } + + } + + [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] + static int _m_ResetLastPositionAndRotation(RealStatePtr L) + { + try { + + ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); + + + Spine.Unity.SkeletonRenderer gen_to_be_invoked = (Spine.Unity.SkeletonRenderer)translator.FastGetCSObj(L, 1); + + + + { + + gen_to_be_invoked.ResetLastPositionAndRotation( ); + + + + return 0; + } + + } catch(System.Exception gen_e) { + return LuaAPI.luaL_error(L, "c# exception:" + gen_e); + } + + } + [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_SetMeshSettings(RealStatePtr L) { @@ -291,6 +383,33 @@ namespace XLua.CSObjectWrap } + [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] + static int _m_ApplyTransformMovementToPhysics(RealStatePtr L) + { + try { + + ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); + + + Spine.Unity.SkeletonRenderer gen_to_be_invoked = (Spine.Unity.SkeletonRenderer)translator.FastGetCSObj(L, 1); + + + + { + + gen_to_be_invoked.ApplyTransformMovementToPhysics( ); + + + + return 0; + } + + } catch(System.Exception gen_e) { + return LuaAPI.luaL_error(L, "c# exception:" + gen_e); + } + + } + [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_LateUpdate(RealStatePtr L) { @@ -559,6 +678,20 @@ namespace XLua.CSObjectWrap return 1; } + [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] + static int _g_get_SkeletonClipping(RealStatePtr L) + { + try { + ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); + + Spine.Unity.SkeletonRenderer gen_to_be_invoked = (Spine.Unity.SkeletonRenderer)translator.FastGetCSObj(L, 1); + translator.Push(L, gen_to_be_invoked.SkeletonClipping); + } catch(System.Exception gen_e) { + return LuaAPI.luaL_error(L, "c# exception:" + gen_e); + } + return 1; + } + [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_Skeleton(RealStatePtr L) { @@ -573,6 +706,48 @@ namespace XLua.CSObjectWrap return 1; } + [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] + static int _g_get_PhysicsPositionInheritanceFactor(RealStatePtr L) + { + try { + ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); + + Spine.Unity.SkeletonRenderer gen_to_be_invoked = (Spine.Unity.SkeletonRenderer)translator.FastGetCSObj(L, 1); + translator.PushUnityEngineVector2(L, gen_to_be_invoked.PhysicsPositionInheritanceFactor); + } catch(System.Exception gen_e) { + return LuaAPI.luaL_error(L, "c# exception:" + gen_e); + } + return 1; + } + + [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] + static int _g_get_PhysicsRotationInheritanceFactor(RealStatePtr L) + { + try { + ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); + + Spine.Unity.SkeletonRenderer gen_to_be_invoked = (Spine.Unity.SkeletonRenderer)translator.FastGetCSObj(L, 1); + LuaAPI.lua_pushnumber(L, gen_to_be_invoked.PhysicsRotationInheritanceFactor); + } catch(System.Exception gen_e) { + return LuaAPI.luaL_error(L, "c# exception:" + gen_e); + } + return 1; + } + + [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] + static int _g_get_PhysicsMovementRelativeTo(RealStatePtr L) + { + try { + ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); + + Spine.Unity.SkeletonRenderer gen_to_be_invoked = (Spine.Unity.SkeletonRenderer)translator.FastGetCSObj(L, 1); + translator.Push(L, gen_to_be_invoked.PhysicsMovementRelativeTo); + } catch(System.Exception gen_e) { + return LuaAPI.luaL_error(L, "c# exception:" + gen_e); + } + return 1; + } + [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_SkeletonDataAsset(RealStatePtr L) { @@ -899,6 +1074,52 @@ namespace XLua.CSObjectWrap return 0; } + [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] + static int _s_set_PhysicsPositionInheritanceFactor(RealStatePtr L) + { + try { + ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); + + Spine.Unity.SkeletonRenderer gen_to_be_invoked = (Spine.Unity.SkeletonRenderer)translator.FastGetCSObj(L, 1); + UnityEngine.Vector2 gen_value;translator.Get(L, 2, out gen_value); + gen_to_be_invoked.PhysicsPositionInheritanceFactor = gen_value; + + } catch(System.Exception gen_e) { + return LuaAPI.luaL_error(L, "c# exception:" + gen_e); + } + return 0; + } + + [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] + static int _s_set_PhysicsRotationInheritanceFactor(RealStatePtr L) + { + try { + ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); + + Spine.Unity.SkeletonRenderer gen_to_be_invoked = (Spine.Unity.SkeletonRenderer)translator.FastGetCSObj(L, 1); + gen_to_be_invoked.PhysicsRotationInheritanceFactor = (float)LuaAPI.lua_tonumber(L, 2); + + } catch(System.Exception gen_e) { + return LuaAPI.luaL_error(L, "c# exception:" + gen_e); + } + return 0; + } + + [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] + static int _s_set_PhysicsMovementRelativeTo(RealStatePtr L) + { + try { + ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); + + Spine.Unity.SkeletonRenderer gen_to_be_invoked = (Spine.Unity.SkeletonRenderer)translator.FastGetCSObj(L, 1); + gen_to_be_invoked.PhysicsMovementRelativeTo = (UnityEngine.Transform)translator.GetObject(L, 2, typeof(UnityEngine.Transform)); + + } catch(System.Exception gen_e) { + return LuaAPI.luaL_error(L, "c# exception:" + gen_e); + } + return 0; + } + [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_skeletonDataAsset(RealStatePtr L) { diff --git a/Assets/XLua/Gen/TMPro_CaretInfoWrap.cs b/Assets/XLua/Gen/TMPro_CaretInfoWrap.cs deleted file mode 100644 index 07539dcf0..000000000 --- a/Assets/XLua/Gen/TMPro_CaretInfoWrap.cs +++ /dev/null @@ -1,159 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class TMProCaretInfoWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(TMPro.CaretInfo); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 2, 2); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "index", _g_get_index); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "position", _g_get_position); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "index", _s_set_index); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "position", _s_set_position); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 3 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && translator.Assignable(L, 3)) - { - int _index = LuaAPI.xlua_tointeger(L, 2); - TMPro.CaretPosition _position;translator.Get(L, 3, out _position); - - var gen_ret = new TMPro.CaretInfo(_index, _position); - translator.Push(L, gen_ret); - - return 1; - } - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(TMPro.CaretInfo)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to TMPro.CaretInfo constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_index(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.CaretInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.index); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_position(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.CaretInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.position); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_index(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.CaretInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.index = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_position(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.CaretInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - TMPro.CaretPosition gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.position = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/TMPro_Compute_DT_EventArgsWrap.cs b/Assets/XLua/Gen/TMPro_Compute_DT_EventArgsWrap.cs deleted file mode 100644 index 082778db9..000000000 --- a/Assets/XLua/Gen/TMPro_Compute_DT_EventArgsWrap.cs +++ /dev/null @@ -1,190 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class TMProCompute_DT_EventArgsWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(TMPro.Compute_DT_EventArgs); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 3, 3); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "EventType", _g_get_EventType); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "ProgressPercentage", _g_get_ProgressPercentage); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Colors", _g_get_Colors); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "EventType", _s_set_EventType); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "ProgressPercentage", _s_set_ProgressPercentage); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "Colors", _s_set_Colors); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 3 && translator.Assignable(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - TMPro.Compute_DistanceTransform_EventTypes _type;translator.Get(L, 2, out _type); - float _progress = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = new TMPro.Compute_DT_EventArgs(_type, _progress); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 3 && translator.Assignable(L, 2) && translator.Assignable(L, 3)) - { - TMPro.Compute_DistanceTransform_EventTypes _type;translator.Get(L, 2, out _type); - UnityEngine.Color[] _colors = (UnityEngine.Color[])translator.GetObject(L, 3, typeof(UnityEngine.Color[])); - - var gen_ret = new TMPro.Compute_DT_EventArgs(_type, _colors); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to TMPro.Compute_DT_EventArgs constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_EventType(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.Compute_DT_EventArgs gen_to_be_invoked = (TMPro.Compute_DT_EventArgs)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.EventType); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_ProgressPercentage(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.Compute_DT_EventArgs gen_to_be_invoked = (TMPro.Compute_DT_EventArgs)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.ProgressPercentage); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Colors(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.Compute_DT_EventArgs gen_to_be_invoked = (TMPro.Compute_DT_EventArgs)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.Colors); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_EventType(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.Compute_DT_EventArgs gen_to_be_invoked = (TMPro.Compute_DT_EventArgs)translator.FastGetCSObj(L, 1); - TMPro.Compute_DistanceTransform_EventTypes gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.EventType = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_ProgressPercentage(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.Compute_DT_EventArgs gen_to_be_invoked = (TMPro.Compute_DT_EventArgs)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.ProgressPercentage = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_Colors(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.Compute_DT_EventArgs gen_to_be_invoked = (TMPro.Compute_DT_EventArgs)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.Colors = (UnityEngine.Color[])translator.GetObject(L, 2, typeof(UnityEngine.Color[])); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/TMPro_ExtentsWrap.cs b/Assets/XLua/Gen/TMPro_ExtentsWrap.cs deleted file mode 100644 index 7518556a7..000000000 --- a/Assets/XLua/Gen/TMPro_ExtentsWrap.cs +++ /dev/null @@ -1,191 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class TMProExtentsWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(TMPro.Extents); - Utils.BeginObjectRegister(type, L, translator, 0, 1, 2, 2); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ToString", _m_ToString); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "min", _g_get_min); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "max", _g_get_max); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "min", _s_set_min); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "max", _s_set_max); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 3 && translator.Assignable(L, 2) && translator.Assignable(L, 3)) - { - UnityEngine.Vector2 _min;translator.Get(L, 2, out _min); - UnityEngine.Vector2 _max;translator.Get(L, 3, out _max); - - var gen_ret = new TMPro.Extents(_min, _max); - translator.Push(L, gen_ret); - - return 1; - } - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(TMPro.Extents)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to TMPro.Extents constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ToString(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - TMPro.Extents gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - - var gen_ret = gen_to_be_invoked.ToString( ); - LuaAPI.lua_pushstring(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_min(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.Extents gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineVector2(L, gen_to_be_invoked.min); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_max(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.Extents gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineVector2(L, gen_to_be_invoked.max); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_min(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.Extents gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Vector2 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.min = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_max(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.Extents gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Vector2 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.max = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/TMPro_FaceInfo_LegacyWrap.cs b/Assets/XLua/Gen/TMPro_FaceInfo_LegacyWrap.cs deleted file mode 100644 index ab5184b46..000000000 --- a/Assets/XLua/Gen/TMPro_FaceInfo_LegacyWrap.cs +++ /dev/null @@ -1,735 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class TMProFaceInfo_LegacyWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(TMPro.FaceInfo_Legacy); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 21, 21); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Name", _g_get_Name); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "PointSize", _g_get_PointSize); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Scale", _g_get_Scale); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "CharacterCount", _g_get_CharacterCount); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "LineHeight", _g_get_LineHeight); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Baseline", _g_get_Baseline); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Ascender", _g_get_Ascender); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "CapHeight", _g_get_CapHeight); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Descender", _g_get_Descender); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "CenterLine", _g_get_CenterLine); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "SuperscriptOffset", _g_get_SuperscriptOffset); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "SubscriptOffset", _g_get_SubscriptOffset); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "SubSize", _g_get_SubSize); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Underline", _g_get_Underline); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "UnderlineThickness", _g_get_UnderlineThickness); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "strikethrough", _g_get_strikethrough); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "strikethroughThickness", _g_get_strikethroughThickness); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "TabWidth", _g_get_TabWidth); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Padding", _g_get_Padding); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "AtlasWidth", _g_get_AtlasWidth); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "AtlasHeight", _g_get_AtlasHeight); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "Name", _s_set_Name); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "PointSize", _s_set_PointSize); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "Scale", _s_set_Scale); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "CharacterCount", _s_set_CharacterCount); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "LineHeight", _s_set_LineHeight); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "Baseline", _s_set_Baseline); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "Ascender", _s_set_Ascender); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "CapHeight", _s_set_CapHeight); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "Descender", _s_set_Descender); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "CenterLine", _s_set_CenterLine); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "SuperscriptOffset", _s_set_SuperscriptOffset); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "SubscriptOffset", _s_set_SubscriptOffset); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "SubSize", _s_set_SubSize); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "Underline", _s_set_Underline); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "UnderlineThickness", _s_set_UnderlineThickness); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "strikethrough", _s_set_strikethrough); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "strikethroughThickness", _s_set_strikethroughThickness); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "TabWidth", _s_set_TabWidth); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "Padding", _s_set_Padding); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "AtlasWidth", _s_set_AtlasWidth); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "AtlasHeight", _s_set_AtlasHeight); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new TMPro.FaceInfo_Legacy(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to TMPro.FaceInfo_Legacy constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Name(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.FaceInfo_Legacy gen_to_be_invoked = (TMPro.FaceInfo_Legacy)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.Name); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_PointSize(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.FaceInfo_Legacy gen_to_be_invoked = (TMPro.FaceInfo_Legacy)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.PointSize); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Scale(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.FaceInfo_Legacy gen_to_be_invoked = (TMPro.FaceInfo_Legacy)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.Scale); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_CharacterCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.FaceInfo_Legacy gen_to_be_invoked = (TMPro.FaceInfo_Legacy)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.CharacterCount); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_LineHeight(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.FaceInfo_Legacy gen_to_be_invoked = (TMPro.FaceInfo_Legacy)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.LineHeight); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Baseline(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.FaceInfo_Legacy gen_to_be_invoked = (TMPro.FaceInfo_Legacy)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.Baseline); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Ascender(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.FaceInfo_Legacy gen_to_be_invoked = (TMPro.FaceInfo_Legacy)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.Ascender); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_CapHeight(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.FaceInfo_Legacy gen_to_be_invoked = (TMPro.FaceInfo_Legacy)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.CapHeight); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Descender(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.FaceInfo_Legacy gen_to_be_invoked = (TMPro.FaceInfo_Legacy)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.Descender); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_CenterLine(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.FaceInfo_Legacy gen_to_be_invoked = (TMPro.FaceInfo_Legacy)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.CenterLine); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_SuperscriptOffset(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.FaceInfo_Legacy gen_to_be_invoked = (TMPro.FaceInfo_Legacy)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.SuperscriptOffset); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_SubscriptOffset(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.FaceInfo_Legacy gen_to_be_invoked = (TMPro.FaceInfo_Legacy)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.SubscriptOffset); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_SubSize(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.FaceInfo_Legacy gen_to_be_invoked = (TMPro.FaceInfo_Legacy)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.SubSize); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Underline(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.FaceInfo_Legacy gen_to_be_invoked = (TMPro.FaceInfo_Legacy)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.Underline); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_UnderlineThickness(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.FaceInfo_Legacy gen_to_be_invoked = (TMPro.FaceInfo_Legacy)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.UnderlineThickness); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_strikethrough(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.FaceInfo_Legacy gen_to_be_invoked = (TMPro.FaceInfo_Legacy)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.strikethrough); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_strikethroughThickness(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.FaceInfo_Legacy gen_to_be_invoked = (TMPro.FaceInfo_Legacy)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.strikethroughThickness); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_TabWidth(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.FaceInfo_Legacy gen_to_be_invoked = (TMPro.FaceInfo_Legacy)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.TabWidth); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Padding(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.FaceInfo_Legacy gen_to_be_invoked = (TMPro.FaceInfo_Legacy)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.Padding); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_AtlasWidth(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.FaceInfo_Legacy gen_to_be_invoked = (TMPro.FaceInfo_Legacy)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.AtlasWidth); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_AtlasHeight(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.FaceInfo_Legacy gen_to_be_invoked = (TMPro.FaceInfo_Legacy)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.AtlasHeight); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_Name(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.FaceInfo_Legacy gen_to_be_invoked = (TMPro.FaceInfo_Legacy)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.Name = LuaAPI.lua_tostring(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_PointSize(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.FaceInfo_Legacy gen_to_be_invoked = (TMPro.FaceInfo_Legacy)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.PointSize = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_Scale(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.FaceInfo_Legacy gen_to_be_invoked = (TMPro.FaceInfo_Legacy)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.Scale = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_CharacterCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.FaceInfo_Legacy gen_to_be_invoked = (TMPro.FaceInfo_Legacy)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.CharacterCount = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_LineHeight(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.FaceInfo_Legacy gen_to_be_invoked = (TMPro.FaceInfo_Legacy)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.LineHeight = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_Baseline(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.FaceInfo_Legacy gen_to_be_invoked = (TMPro.FaceInfo_Legacy)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.Baseline = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_Ascender(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.FaceInfo_Legacy gen_to_be_invoked = (TMPro.FaceInfo_Legacy)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.Ascender = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_CapHeight(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.FaceInfo_Legacy gen_to_be_invoked = (TMPro.FaceInfo_Legacy)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.CapHeight = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_Descender(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.FaceInfo_Legacy gen_to_be_invoked = (TMPro.FaceInfo_Legacy)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.Descender = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_CenterLine(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.FaceInfo_Legacy gen_to_be_invoked = (TMPro.FaceInfo_Legacy)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.CenterLine = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_SuperscriptOffset(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.FaceInfo_Legacy gen_to_be_invoked = (TMPro.FaceInfo_Legacy)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.SuperscriptOffset = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_SubscriptOffset(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.FaceInfo_Legacy gen_to_be_invoked = (TMPro.FaceInfo_Legacy)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.SubscriptOffset = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_SubSize(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.FaceInfo_Legacy gen_to_be_invoked = (TMPro.FaceInfo_Legacy)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.SubSize = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_Underline(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.FaceInfo_Legacy gen_to_be_invoked = (TMPro.FaceInfo_Legacy)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.Underline = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_UnderlineThickness(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.FaceInfo_Legacy gen_to_be_invoked = (TMPro.FaceInfo_Legacy)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.UnderlineThickness = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_strikethrough(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.FaceInfo_Legacy gen_to_be_invoked = (TMPro.FaceInfo_Legacy)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.strikethrough = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_strikethroughThickness(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.FaceInfo_Legacy gen_to_be_invoked = (TMPro.FaceInfo_Legacy)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.strikethroughThickness = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_TabWidth(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.FaceInfo_Legacy gen_to_be_invoked = (TMPro.FaceInfo_Legacy)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.TabWidth = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_Padding(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.FaceInfo_Legacy gen_to_be_invoked = (TMPro.FaceInfo_Legacy)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.Padding = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_AtlasWidth(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.FaceInfo_Legacy gen_to_be_invoked = (TMPro.FaceInfo_Legacy)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.AtlasWidth = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_AtlasHeight(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.FaceInfo_Legacy gen_to_be_invoked = (TMPro.FaceInfo_Legacy)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.AtlasHeight = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/TMPro_FastActionWrap.cs b/Assets/XLua/Gen/TMPro_FastActionWrap.cs deleted file mode 100644 index 2347d5d08..000000000 --- a/Assets/XLua/Gen/TMPro_FastActionWrap.cs +++ /dev/null @@ -1,170 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class TMProFastActionWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(TMPro.FastAction); - Utils.BeginObjectRegister(type, L, translator, 0, 3, 0, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Add", _m_Add); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Remove", _m_Remove); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Call", _m_Call); - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new TMPro.FastAction(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to TMPro.FastAction constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Add(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - TMPro.FastAction gen_to_be_invoked = (TMPro.FastAction)translator.FastGetCSObj(L, 1); - - - - { - System.Action _rhs = translator.GetDelegate(L, 2); - - gen_to_be_invoked.Add( _rhs ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Remove(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - TMPro.FastAction gen_to_be_invoked = (TMPro.FastAction)translator.FastGetCSObj(L, 1); - - - - { - System.Action _rhs = translator.GetDelegate(L, 2); - - gen_to_be_invoked.Remove( _rhs ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Call(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - TMPro.FastAction gen_to_be_invoked = (TMPro.FastAction)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Call( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/TMPro_FontAssetCreationSettingsWrap.cs b/Assets/XLua/Gen/TMPro_FontAssetCreationSettingsWrap.cs deleted file mode 100644 index 11fe12802..000000000 --- a/Assets/XLua/Gen/TMPro_FontAssetCreationSettingsWrap.cs +++ /dev/null @@ -1,610 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class TMProFontAssetCreationSettingsWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(TMPro.FontAssetCreationSettings); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 16, 16); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "sourceFontFileName", _g_get_sourceFontFileName); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "sourceFontFileGUID", _g_get_sourceFontFileGUID); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "pointSizeSamplingMode", _g_get_pointSizeSamplingMode); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "pointSize", _g_get_pointSize); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "padding", _g_get_padding); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "packingMode", _g_get_packingMode); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "atlasWidth", _g_get_atlasWidth); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "atlasHeight", _g_get_atlasHeight); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "characterSetSelectionMode", _g_get_characterSetSelectionMode); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "characterSequence", _g_get_characterSequence); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "referencedFontAssetGUID", _g_get_referencedFontAssetGUID); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "referencedTextAssetGUID", _g_get_referencedTextAssetGUID); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "fontStyle", _g_get_fontStyle); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "fontStyleModifier", _g_get_fontStyleModifier); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "renderMode", _g_get_renderMode); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "includeFontFeatures", _g_get_includeFontFeatures); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "sourceFontFileName", _s_set_sourceFontFileName); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "sourceFontFileGUID", _s_set_sourceFontFileGUID); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "pointSizeSamplingMode", _s_set_pointSizeSamplingMode); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "pointSize", _s_set_pointSize); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "padding", _s_set_padding); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "packingMode", _s_set_packingMode); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "atlasWidth", _s_set_atlasWidth); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "atlasHeight", _s_set_atlasHeight); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "characterSetSelectionMode", _s_set_characterSetSelectionMode); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "characterSequence", _s_set_characterSequence); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "referencedFontAssetGUID", _s_set_referencedFontAssetGUID); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "referencedTextAssetGUID", _s_set_referencedTextAssetGUID); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "fontStyle", _s_set_fontStyle); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "fontStyleModifier", _s_set_fontStyleModifier); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "renderMode", _s_set_renderMode); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "includeFontFeatures", _s_set_includeFontFeatures); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(TMPro.FontAssetCreationSettings)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to TMPro.FontAssetCreationSettings constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_sourceFontFileName(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.FontAssetCreationSettings gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.sourceFontFileName); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_sourceFontFileGUID(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.FontAssetCreationSettings gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.sourceFontFileGUID); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_pointSizeSamplingMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.FontAssetCreationSettings gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.pointSizeSamplingMode); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_pointSize(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.FontAssetCreationSettings gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.pointSize); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_padding(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.FontAssetCreationSettings gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.padding); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_packingMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.FontAssetCreationSettings gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.packingMode); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_atlasWidth(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.FontAssetCreationSettings gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.atlasWidth); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_atlasHeight(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.FontAssetCreationSettings gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.atlasHeight); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_characterSetSelectionMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.FontAssetCreationSettings gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.characterSetSelectionMode); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_characterSequence(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.FontAssetCreationSettings gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.characterSequence); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_referencedFontAssetGUID(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.FontAssetCreationSettings gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.referencedFontAssetGUID); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_referencedTextAssetGUID(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.FontAssetCreationSettings gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.referencedTextAssetGUID); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_fontStyle(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.FontAssetCreationSettings gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.fontStyle); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_fontStyleModifier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.FontAssetCreationSettings gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.fontStyleModifier); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_renderMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.FontAssetCreationSettings gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.renderMode); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_includeFontFeatures(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.FontAssetCreationSettings gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.includeFontFeatures); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_sourceFontFileName(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.FontAssetCreationSettings gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.sourceFontFileName = LuaAPI.lua_tostring(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_sourceFontFileGUID(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.FontAssetCreationSettings gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.sourceFontFileGUID = LuaAPI.lua_tostring(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_pointSizeSamplingMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.FontAssetCreationSettings gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.pointSizeSamplingMode = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_pointSize(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.FontAssetCreationSettings gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.pointSize = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_padding(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.FontAssetCreationSettings gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.padding = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_packingMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.FontAssetCreationSettings gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.packingMode = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_atlasWidth(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.FontAssetCreationSettings gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.atlasWidth = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_atlasHeight(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.FontAssetCreationSettings gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.atlasHeight = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_characterSetSelectionMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.FontAssetCreationSettings gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.characterSetSelectionMode = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_characterSequence(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.FontAssetCreationSettings gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.characterSequence = LuaAPI.lua_tostring(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_referencedFontAssetGUID(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.FontAssetCreationSettings gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.referencedFontAssetGUID = LuaAPI.lua_tostring(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_referencedTextAssetGUID(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.FontAssetCreationSettings gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.referencedTextAssetGUID = LuaAPI.lua_tostring(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_fontStyle(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.FontAssetCreationSettings gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.fontStyle = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_fontStyleModifier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.FontAssetCreationSettings gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.fontStyleModifier = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_renderMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.FontAssetCreationSettings gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.renderMode = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_includeFontFeatures(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.FontAssetCreationSettings gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.includeFontFeatures = LuaAPI.lua_toboolean(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/TMPro_GlyphPairKeyWrap.cs b/Assets/XLua/Gen/TMPro_GlyphPairKeyWrap.cs deleted file mode 100644 index 4d4a33bcc..000000000 --- a/Assets/XLua/Gen/TMPro_GlyphPairKeyWrap.cs +++ /dev/null @@ -1,191 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class TMProGlyphPairKeyWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(TMPro.GlyphPairKey); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 3, 3); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "firstGlyphIndex", _g_get_firstGlyphIndex); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "secondGlyphIndex", _g_get_secondGlyphIndex); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "key", _g_get_key); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "firstGlyphIndex", _s_set_firstGlyphIndex); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "secondGlyphIndex", _s_set_secondGlyphIndex); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "key", _s_set_key); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 3 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - uint _firstGlyphIndex = LuaAPI.xlua_touint(L, 2); - uint _secondGlyphIndex = LuaAPI.xlua_touint(L, 3); - - var gen_ret = new TMPro.GlyphPairKey(_firstGlyphIndex, _secondGlyphIndex); - translator.Push(L, gen_ret); - - return 1; - } - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(TMPro.GlyphPairKey)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to TMPro.GlyphPairKey constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_firstGlyphIndex(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.GlyphPairKey gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushuint(L, gen_to_be_invoked.firstGlyphIndex); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_secondGlyphIndex(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.GlyphPairKey gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushuint(L, gen_to_be_invoked.secondGlyphIndex); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_key(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.GlyphPairKey gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushuint(L, gen_to_be_invoked.key); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_firstGlyphIndex(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.GlyphPairKey gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.firstGlyphIndex = LuaAPI.xlua_touint(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_secondGlyphIndex(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.GlyphPairKey gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.secondGlyphIndex = LuaAPI.xlua_touint(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_key(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.GlyphPairKey gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.key = LuaAPI.xlua_touint(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/TMPro_GlyphValueRecord_LegacyWrap.cs b/Assets/XLua/Gen/TMPro_GlyphValueRecord_LegacyWrap.cs deleted file mode 100644 index 859446abf..000000000 --- a/Assets/XLua/Gen/TMPro_GlyphValueRecord_LegacyWrap.cs +++ /dev/null @@ -1,241 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class TMProGlyphValueRecord_LegacyWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(TMPro.GlyphValueRecord_Legacy); - Utils.BeginObjectRegister(type, L, translator, 1, 0, 4, 4); - Utils.RegisterFunc(L, Utils.OBJ_META_IDX, "__add", __AddMeta); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "xPlacement", _g_get_xPlacement); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "yPlacement", _g_get_yPlacement); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "xAdvance", _g_get_xAdvance); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "yAdvance", _g_get_yAdvance); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "xPlacement", _s_set_xPlacement); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "yPlacement", _s_set_yPlacement); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "xAdvance", _s_set_xAdvance); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "yAdvance", _s_set_yAdvance); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(TMPro.GlyphValueRecord_Legacy)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to TMPro.GlyphValueRecord_Legacy constructor!"); - - } - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __AddMeta(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - if (translator.Assignable(L, 1) && translator.Assignable(L, 2)) - { - TMPro.GlyphValueRecord_Legacy leftside;translator.Get(L, 1, out leftside); - TMPro.GlyphValueRecord_Legacy rightside;translator.Get(L, 2, out rightside); - - translator.Push(L, leftside + rightside); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to right hand of + operator, need TMPro.GlyphValueRecord_Legacy!"); - - } - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_xPlacement(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.GlyphValueRecord_Legacy gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.xPlacement); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_yPlacement(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.GlyphValueRecord_Legacy gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.yPlacement); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_xAdvance(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.GlyphValueRecord_Legacy gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.xAdvance); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_yAdvance(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.GlyphValueRecord_Legacy gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.yAdvance); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_xPlacement(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.GlyphValueRecord_Legacy gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.xPlacement = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_yPlacement(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.GlyphValueRecord_Legacy gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.yPlacement = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_xAdvance(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.GlyphValueRecord_Legacy gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.xAdvance = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_yAdvance(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.GlyphValueRecord_Legacy gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.yAdvance = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/TMPro_HighlightStateWrap.cs b/Assets/XLua/Gen/TMPro_HighlightStateWrap.cs deleted file mode 100644 index 338d5ff3c..000000000 --- a/Assets/XLua/Gen/TMPro_HighlightStateWrap.cs +++ /dev/null @@ -1,267 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class TMProHighlightStateWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(TMPro.HighlightState); - Utils.BeginObjectRegister(type, L, translator, 1, 2, 2, 2); - Utils.RegisterFunc(L, Utils.OBJ_META_IDX, "__eq", __EqMeta); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetHashCode", _m_GetHashCode); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Equals", _m_Equals); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "color", _g_get_color); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "padding", _g_get_padding); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "color", _s_set_color); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "padding", _s_set_padding); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 3 && translator.Assignable(L, 2) && translator.Assignable(L, 3)) - { - UnityEngine.Color32 _color;translator.Get(L, 2, out _color); - TMPro.TMP_Offset _padding;translator.Get(L, 3, out _padding); - - var gen_ret = new TMPro.HighlightState(_color, _padding); - translator.Push(L, gen_ret); - - return 1; - } - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(TMPro.HighlightState)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to TMPro.HighlightState constructor!"); - - } - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __EqMeta(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - if (translator.Assignable(L, 1) && translator.Assignable(L, 2)) - { - TMPro.HighlightState leftside;translator.Get(L, 1, out leftside); - TMPro.HighlightState rightside;translator.Get(L, 2, out rightside); - - LuaAPI.lua_pushboolean(L, leftside == rightside); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to right hand of == operator, need TMPro.HighlightState!"); - - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetHashCode(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - TMPro.HighlightState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - - var gen_ret = gen_to_be_invoked.GetHashCode( ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Equals(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - TMPro.HighlightState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - object _obj = translator.GetObject(L, 2, typeof(object)); - - var gen_ret = gen_to_be_invoked.Equals( _obj ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - TMPro.HighlightState _other;translator.Get(L, 2, out _other); - - var gen_ret = gen_to_be_invoked.Equals( _other ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to TMPro.HighlightState.Equals!"); - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_color(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.HighlightState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.color); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_padding(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.HighlightState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.padding); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_color(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.HighlightState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Color32 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.color = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_padding(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.HighlightState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - TMPro.TMP_Offset gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.padding = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/TMPro_KerningPairKeyWrap.cs b/Assets/XLua/Gen/TMPro_KerningPairKeyWrap.cs deleted file mode 100644 index b4e40b9b0..000000000 --- a/Assets/XLua/Gen/TMPro_KerningPairKeyWrap.cs +++ /dev/null @@ -1,191 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class TMProKerningPairKeyWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(TMPro.KerningPairKey); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 3, 3); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "ascii_Left", _g_get_ascii_Left); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "ascii_Right", _g_get_ascii_Right); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "key", _g_get_key); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "ascii_Left", _s_set_ascii_Left); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "ascii_Right", _s_set_ascii_Right); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "key", _s_set_key); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 3 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - uint _ascii_left = LuaAPI.xlua_touint(L, 2); - uint _ascii_right = LuaAPI.xlua_touint(L, 3); - - var gen_ret = new TMPro.KerningPairKey(_ascii_left, _ascii_right); - translator.Push(L, gen_ret); - - return 1; - } - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(TMPro.KerningPairKey)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to TMPro.KerningPairKey constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_ascii_Left(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.KerningPairKey gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushuint(L, gen_to_be_invoked.ascii_Left); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_ascii_Right(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.KerningPairKey gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushuint(L, gen_to_be_invoked.ascii_Right); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_key(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.KerningPairKey gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushuint(L, gen_to_be_invoked.key); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_ascii_Left(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.KerningPairKey gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.ascii_Left = LuaAPI.xlua_touint(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_ascii_Right(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.KerningPairKey gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.ascii_Right = LuaAPI.xlua_touint(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_key(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.KerningPairKey gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.key = LuaAPI.xlua_touint(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/TMPro_KerningPairWrap.cs b/Assets/XLua/Gen/TMPro_KerningPairWrap.cs deleted file mode 100644 index 3ff3597c3..000000000 --- a/Assets/XLua/Gen/TMPro_KerningPairWrap.cs +++ /dev/null @@ -1,245 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class TMProKerningPairWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(TMPro.KerningPair); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 6, 3); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "firstGlyph", _g_get_firstGlyph); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "firstGlyphAdjustments", _g_get_firstGlyphAdjustments); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "secondGlyph", _g_get_secondGlyph); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "secondGlyphAdjustments", _g_get_secondGlyphAdjustments); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "ignoreSpacingAdjustments", _g_get_ignoreSpacingAdjustments); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "xOffset", _g_get_xOffset); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "firstGlyph", _s_set_firstGlyph); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "secondGlyph", _s_set_secondGlyph); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "xOffset", _s_set_xOffset); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new TMPro.KerningPair(); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 4 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - uint _left = LuaAPI.xlua_touint(L, 2); - uint _right = LuaAPI.xlua_touint(L, 3); - float _offset = (float)LuaAPI.lua_tonumber(L, 4); - - var gen_ret = new TMPro.KerningPair(_left, _right, _offset); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 5 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && translator.Assignable(L, 3) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4) && translator.Assignable(L, 5)) - { - uint _firstGlyph = LuaAPI.xlua_touint(L, 2); - TMPro.GlyphValueRecord_Legacy _firstGlyphAdjustments;translator.Get(L, 3, out _firstGlyphAdjustments); - uint _secondGlyph = LuaAPI.xlua_touint(L, 4); - TMPro.GlyphValueRecord_Legacy _secondGlyphAdjustments;translator.Get(L, 5, out _secondGlyphAdjustments); - - var gen_ret = new TMPro.KerningPair(_firstGlyph, _firstGlyphAdjustments, _secondGlyph, _secondGlyphAdjustments); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to TMPro.KerningPair constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_firstGlyph(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.KerningPair gen_to_be_invoked = (TMPro.KerningPair)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushuint(L, gen_to_be_invoked.firstGlyph); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_firstGlyphAdjustments(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.KerningPair gen_to_be_invoked = (TMPro.KerningPair)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.firstGlyphAdjustments); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_secondGlyph(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.KerningPair gen_to_be_invoked = (TMPro.KerningPair)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushuint(L, gen_to_be_invoked.secondGlyph); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_secondGlyphAdjustments(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.KerningPair gen_to_be_invoked = (TMPro.KerningPair)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.secondGlyphAdjustments); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_ignoreSpacingAdjustments(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.KerningPair gen_to_be_invoked = (TMPro.KerningPair)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.ignoreSpacingAdjustments); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_xOffset(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.KerningPair gen_to_be_invoked = (TMPro.KerningPair)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.xOffset); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_firstGlyph(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.KerningPair gen_to_be_invoked = (TMPro.KerningPair)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.firstGlyph = LuaAPI.xlua_touint(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_secondGlyph(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.KerningPair gen_to_be_invoked = (TMPro.KerningPair)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.secondGlyph = LuaAPI.xlua_touint(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_xOffset(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.KerningPair gen_to_be_invoked = (TMPro.KerningPair)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.xOffset = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/TMPro_KerningTableWrap.cs b/Assets/XLua/Gen/TMPro_KerningTableWrap.cs deleted file mode 100644 index 2efbc371c..000000000 --- a/Assets/XLua/Gen/TMPro_KerningTableWrap.cs +++ /dev/null @@ -1,265 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class TMProKerningTableWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(TMPro.KerningTable); - Utils.BeginObjectRegister(type, L, translator, 0, 4, 1, 1); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddKerningPair", _m_AddKerningPair); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddGlyphPairAdjustmentRecord", _m_AddGlyphPairAdjustmentRecord); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "RemoveKerningPair", _m_RemoveKerningPair); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SortKerningPairs", _m_SortKerningPairs); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "kerningPairs", _g_get_kerningPairs); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "kerningPairs", _s_set_kerningPairs); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new TMPro.KerningTable(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to TMPro.KerningTable constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AddKerningPair(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - TMPro.KerningTable gen_to_be_invoked = (TMPro.KerningTable)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - gen_to_be_invoked.AddKerningPair( ); - - - - return 0; - } - if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - uint _first = LuaAPI.xlua_touint(L, 2); - uint _second = LuaAPI.xlua_touint(L, 3); - float _offset = (float)LuaAPI.lua_tonumber(L, 4); - - var gen_ret = gen_to_be_invoked.AddKerningPair( _first, _second, _offset ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to TMPro.KerningTable.AddKerningPair!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AddGlyphPairAdjustmentRecord(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - TMPro.KerningTable gen_to_be_invoked = (TMPro.KerningTable)translator.FastGetCSObj(L, 1); - - - - { - uint _first = LuaAPI.xlua_touint(L, 2); - TMPro.GlyphValueRecord_Legacy _firstAdjustments;translator.Get(L, 3, out _firstAdjustments); - uint _second = LuaAPI.xlua_touint(L, 4); - TMPro.GlyphValueRecord_Legacy _secondAdjustments;translator.Get(L, 5, out _secondAdjustments); - - var gen_ret = gen_to_be_invoked.AddGlyphPairAdjustmentRecord( _first, _firstAdjustments, _second, _secondAdjustments ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RemoveKerningPair(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - TMPro.KerningTable gen_to_be_invoked = (TMPro.KerningTable)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - int _index = LuaAPI.xlua_tointeger(L, 2); - - gen_to_be_invoked.RemoveKerningPair( _index ); - - - - return 0; - } - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - int _left = LuaAPI.xlua_tointeger(L, 2); - int _right = LuaAPI.xlua_tointeger(L, 3); - - gen_to_be_invoked.RemoveKerningPair( _left, _right ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to TMPro.KerningTable.RemoveKerningPair!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SortKerningPairs(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - TMPro.KerningTable gen_to_be_invoked = (TMPro.KerningTable)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.SortKerningPairs( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_kerningPairs(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.KerningTable gen_to_be_invoked = (TMPro.KerningTable)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.kerningPairs); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_kerningPairs(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.KerningTable gen_to_be_invoked = (TMPro.KerningTable)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.kerningPairs = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/TMPro_MaterialReferenceManagerWrap.cs b/Assets/XLua/Gen/TMPro_MaterialReferenceManagerWrap.cs deleted file mode 100644 index 9dfaab275..000000000 --- a/Assets/XLua/Gen/TMPro_MaterialReferenceManagerWrap.cs +++ /dev/null @@ -1,391 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class TMProMaterialReferenceManagerWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(TMPro.MaterialReferenceManager); - Utils.BeginObjectRegister(type, L, translator, 0, 1, 0, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Contains", _m_Contains); - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 9, 1, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "AddFontAsset", _m_AddFontAsset_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "AddSpriteAsset", _m_AddSpriteAsset_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "AddFontMaterial", _m_AddFontMaterial_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "AddColorGradientPreset", _m_AddColorGradientPreset_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "TryGetFontAsset", _m_TryGetFontAsset_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "TryGetSpriteAsset", _m_TryGetSpriteAsset_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "TryGetColorGradientPreset", _m_TryGetColorGradientPreset_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "TryGetMaterial", _m_TryGetMaterial_xlua_st_); - - - - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "instance", _g_get_instance); - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new TMPro.MaterialReferenceManager(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to TMPro.MaterialReferenceManager constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AddFontAsset_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - TMPro.TMP_FontAsset _fontAsset = (TMPro.TMP_FontAsset)translator.GetObject(L, 1, typeof(TMPro.TMP_FontAsset)); - - TMPro.MaterialReferenceManager.AddFontAsset( _fontAsset ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AddSpriteAsset_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1&& translator.Assignable(L, 1)) - { - TMPro.TMP_SpriteAsset _spriteAsset = (TMPro.TMP_SpriteAsset)translator.GetObject(L, 1, typeof(TMPro.TMP_SpriteAsset)); - - TMPro.MaterialReferenceManager.AddSpriteAsset( _spriteAsset ); - - - - return 0; - } - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& translator.Assignable(L, 2)) - { - int _hashCode = LuaAPI.xlua_tointeger(L, 1); - TMPro.TMP_SpriteAsset _spriteAsset = (TMPro.TMP_SpriteAsset)translator.GetObject(L, 2, typeof(TMPro.TMP_SpriteAsset)); - - TMPro.MaterialReferenceManager.AddSpriteAsset( _hashCode, _spriteAsset ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to TMPro.MaterialReferenceManager.AddSpriteAsset!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AddFontMaterial_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - int _hashCode = LuaAPI.xlua_tointeger(L, 1); - UnityEngine.Material _material = (UnityEngine.Material)translator.GetObject(L, 2, typeof(UnityEngine.Material)); - - TMPro.MaterialReferenceManager.AddFontMaterial( _hashCode, _material ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AddColorGradientPreset_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - int _hashCode = LuaAPI.xlua_tointeger(L, 1); - TMPro.TMP_ColorGradient _spriteAsset = (TMPro.TMP_ColorGradient)translator.GetObject(L, 2, typeof(TMPro.TMP_ColorGradient)); - - TMPro.MaterialReferenceManager.AddColorGradientPreset( _hashCode, _spriteAsset ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Contains(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - TMPro.MaterialReferenceManager gen_to_be_invoked = (TMPro.MaterialReferenceManager)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - TMPro.TMP_FontAsset _font = (TMPro.TMP_FontAsset)translator.GetObject(L, 2, typeof(TMPro.TMP_FontAsset)); - - var gen_ret = gen_to_be_invoked.Contains( _font ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - TMPro.TMP_SpriteAsset _sprite = (TMPro.TMP_SpriteAsset)translator.GetObject(L, 2, typeof(TMPro.TMP_SpriteAsset)); - - var gen_ret = gen_to_be_invoked.Contains( _sprite ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to TMPro.MaterialReferenceManager.Contains!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_TryGetFontAsset_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - int _hashCode = LuaAPI.xlua_tointeger(L, 1); - TMPro.TMP_FontAsset _fontAsset; - - var gen_ret = TMPro.MaterialReferenceManager.TryGetFontAsset( _hashCode, out _fontAsset ); - LuaAPI.lua_pushboolean(L, gen_ret); - translator.Push(L, _fontAsset); - - - - - return 2; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_TryGetSpriteAsset_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - int _hashCode = LuaAPI.xlua_tointeger(L, 1); - TMPro.TMP_SpriteAsset _spriteAsset; - - var gen_ret = TMPro.MaterialReferenceManager.TryGetSpriteAsset( _hashCode, out _spriteAsset ); - LuaAPI.lua_pushboolean(L, gen_ret); - translator.Push(L, _spriteAsset); - - - - - return 2; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_TryGetColorGradientPreset_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - int _hashCode = LuaAPI.xlua_tointeger(L, 1); - TMPro.TMP_ColorGradient _gradientPreset; - - var gen_ret = TMPro.MaterialReferenceManager.TryGetColorGradientPreset( _hashCode, out _gradientPreset ); - LuaAPI.lua_pushboolean(L, gen_ret); - translator.Push(L, _gradientPreset); - - - - - return 2; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_TryGetMaterial_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - int _hashCode = LuaAPI.xlua_tointeger(L, 1); - UnityEngine.Material _material; - - var gen_ret = TMPro.MaterialReferenceManager.TryGetMaterial( _hashCode, out _material ); - LuaAPI.lua_pushboolean(L, gen_ret); - translator.Push(L, _material); - - - - - return 2; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_instance(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, TMPro.MaterialReferenceManager.instance); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - - - - - } -} diff --git a/Assets/XLua/Gen/TMPro_MaterialReferenceWrap.cs b/Assets/XLua/Gen/TMPro_MaterialReferenceWrap.cs deleted file mode 100644 index 9146b50ac..000000000 --- a/Assets/XLua/Gen/TMPro_MaterialReferenceWrap.cs +++ /dev/null @@ -1,474 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class TMProMaterialReferenceWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(TMPro.MaterialReference); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 9, 9); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "index", _g_get_index); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "fontAsset", _g_get_fontAsset); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "spriteAsset", _g_get_spriteAsset); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "material", _g_get_material); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "isDefaultMaterial", _g_get_isDefaultMaterial); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "isFallbackMaterial", _g_get_isFallbackMaterial); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "fallbackMaterial", _g_get_fallbackMaterial); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "padding", _g_get_padding); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "referenceCount", _g_get_referenceCount); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "index", _s_set_index); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "fontAsset", _s_set_fontAsset); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "spriteAsset", _s_set_spriteAsset); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "material", _s_set_material); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "isDefaultMaterial", _s_set_isDefaultMaterial); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "isFallbackMaterial", _s_set_isFallbackMaterial); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "fallbackMaterial", _s_set_fallbackMaterial); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "padding", _s_set_padding); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "referenceCount", _s_set_referenceCount); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 3, 0, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Contains", _m_Contains_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "AddMaterialReference", _m_AddMaterialReference_xlua_st_); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 6 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && translator.Assignable(L, 3) && translator.Assignable(L, 4) && translator.Assignable(L, 5) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)) - { - int _index = LuaAPI.xlua_tointeger(L, 2); - TMPro.TMP_FontAsset _fontAsset = (TMPro.TMP_FontAsset)translator.GetObject(L, 3, typeof(TMPro.TMP_FontAsset)); - TMPro.TMP_SpriteAsset _spriteAsset = (TMPro.TMP_SpriteAsset)translator.GetObject(L, 4, typeof(TMPro.TMP_SpriteAsset)); - UnityEngine.Material _material = (UnityEngine.Material)translator.GetObject(L, 5, typeof(UnityEngine.Material)); - float _padding = (float)LuaAPI.lua_tonumber(L, 6); - - var gen_ret = new TMPro.MaterialReference(_index, _fontAsset, _spriteAsset, _material, _padding); - translator.Push(L, gen_ret); - - return 1; - } - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(TMPro.MaterialReference)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to TMPro.MaterialReference constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Contains_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - TMPro.MaterialReference[] _materialReferences = (TMPro.MaterialReference[])translator.GetObject(L, 1, typeof(TMPro.MaterialReference[])); - TMPro.TMP_FontAsset _fontAsset = (TMPro.TMP_FontAsset)translator.GetObject(L, 2, typeof(TMPro.TMP_FontAsset)); - - var gen_ret = TMPro.MaterialReference.Contains( _materialReferences, _fontAsset ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AddMaterialReference_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 4&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable>(L, 4)) - { - UnityEngine.Material _material = (UnityEngine.Material)translator.GetObject(L, 1, typeof(UnityEngine.Material)); - TMPro.TMP_FontAsset _fontAsset = (TMPro.TMP_FontAsset)translator.GetObject(L, 2, typeof(TMPro.TMP_FontAsset)); - TMPro.MaterialReference[] _materialReferences = (TMPro.MaterialReference[])translator.GetObject(L, 3, typeof(TMPro.MaterialReference[])); - System.Collections.Generic.Dictionary _materialReferenceIndexLookup = (System.Collections.Generic.Dictionary)translator.GetObject(L, 4, typeof(System.Collections.Generic.Dictionary)); - - var gen_ret = TMPro.MaterialReference.AddMaterialReference( _material, _fontAsset, ref _materialReferences, _materialReferenceIndexLookup ); - LuaAPI.xlua_pushinteger(L, gen_ret); - translator.Push(L, _materialReferences); - - - - - return 2; - } - if(gen_param_count == 4&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable>(L, 4)) - { - UnityEngine.Material _material = (UnityEngine.Material)translator.GetObject(L, 1, typeof(UnityEngine.Material)); - TMPro.TMP_SpriteAsset _spriteAsset = (TMPro.TMP_SpriteAsset)translator.GetObject(L, 2, typeof(TMPro.TMP_SpriteAsset)); - TMPro.MaterialReference[] _materialReferences = (TMPro.MaterialReference[])translator.GetObject(L, 3, typeof(TMPro.MaterialReference[])); - System.Collections.Generic.Dictionary _materialReferenceIndexLookup = (System.Collections.Generic.Dictionary)translator.GetObject(L, 4, typeof(System.Collections.Generic.Dictionary)); - - var gen_ret = TMPro.MaterialReference.AddMaterialReference( _material, _spriteAsset, ref _materialReferences, _materialReferenceIndexLookup ); - LuaAPI.xlua_pushinteger(L, gen_ret); - translator.Push(L, _materialReferences); - - - - - return 2; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to TMPro.MaterialReference.AddMaterialReference!"); - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_index(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.MaterialReference gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.index); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_fontAsset(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.MaterialReference gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.fontAsset); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_spriteAsset(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.MaterialReference gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.spriteAsset); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_material(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.MaterialReference gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.material); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_isDefaultMaterial(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.MaterialReference gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.isDefaultMaterial); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_isFallbackMaterial(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.MaterialReference gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.isFallbackMaterial); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_fallbackMaterial(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.MaterialReference gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.fallbackMaterial); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_padding(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.MaterialReference gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.padding); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_referenceCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.MaterialReference gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.referenceCount); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_index(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.MaterialReference gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.index = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_fontAsset(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.MaterialReference gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.fontAsset = (TMPro.TMP_FontAsset)translator.GetObject(L, 2, typeof(TMPro.TMP_FontAsset)); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_spriteAsset(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.MaterialReference gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.spriteAsset = (TMPro.TMP_SpriteAsset)translator.GetObject(L, 2, typeof(TMPro.TMP_SpriteAsset)); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_material(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.MaterialReference gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.material = (UnityEngine.Material)translator.GetObject(L, 2, typeof(UnityEngine.Material)); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_isDefaultMaterial(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.MaterialReference gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.isDefaultMaterial = LuaAPI.lua_toboolean(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_isFallbackMaterial(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.MaterialReference gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.isFallbackMaterial = LuaAPI.lua_toboolean(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_fallbackMaterial(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.MaterialReference gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.fallbackMaterial = (UnityEngine.Material)translator.GetObject(L, 2, typeof(UnityEngine.Material)); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_padding(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.MaterialReference gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.padding = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_referenceCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.MaterialReference gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.referenceCount = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/TMPro_Mesh_ExtentsWrap.cs b/Assets/XLua/Gen/TMPro_Mesh_ExtentsWrap.cs deleted file mode 100644 index 1dd593542..000000000 --- a/Assets/XLua/Gen/TMPro_Mesh_ExtentsWrap.cs +++ /dev/null @@ -1,191 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class TMProMesh_ExtentsWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(TMPro.Mesh_Extents); - Utils.BeginObjectRegister(type, L, translator, 0, 1, 2, 2); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ToString", _m_ToString); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "min", _g_get_min); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "max", _g_get_max); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "min", _s_set_min); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "max", _s_set_max); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 3 && translator.Assignable(L, 2) && translator.Assignable(L, 3)) - { - UnityEngine.Vector2 _min;translator.Get(L, 2, out _min); - UnityEngine.Vector2 _max;translator.Get(L, 3, out _max); - - var gen_ret = new TMPro.Mesh_Extents(_min, _max); - translator.Push(L, gen_ret); - - return 1; - } - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(TMPro.Mesh_Extents)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to TMPro.Mesh_Extents constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ToString(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - TMPro.Mesh_Extents gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - - var gen_ret = gen_to_be_invoked.ToString( ); - LuaAPI.lua_pushstring(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_min(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.Mesh_Extents gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineVector2(L, gen_to_be_invoked.min); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_max(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.Mesh_Extents gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineVector2(L, gen_to_be_invoked.max); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_min(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.Mesh_Extents gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Vector2 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.min = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_max(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.Mesh_Extents gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Vector2 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.max = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/TMPro_ShaderUtilitiesWrap.cs b/Assets/XLua/Gen/TMPro_ShaderUtilitiesWrap.cs deleted file mode 100644 index 35f18cef8..000000000 --- a/Assets/XLua/Gen/TMPro_ShaderUtilitiesWrap.cs +++ /dev/null @@ -1,1976 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class TMProShaderUtilitiesWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(TMPro.ShaderUtilities); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 6, 65, 65); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetShaderPropertyIDs", _m_GetShaderPropertyIDs_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "UpdateShaderRatios", _m_UpdateShaderRatios_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetFontExtent", _m_GetFontExtent_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "IsMaskingEnabled", _m_IsMaskingEnabled_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetPadding", _m_GetPadding_xlua_st_); - - - - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "ID_MainTex", _g_get_ID_MainTex); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "ID_FaceTex", _g_get_ID_FaceTex); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "ID_FaceColor", _g_get_ID_FaceColor); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "ID_FaceDilate", _g_get_ID_FaceDilate); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "ID_Shininess", _g_get_ID_Shininess); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "ID_UnderlayColor", _g_get_ID_UnderlayColor); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "ID_UnderlayOffsetX", _g_get_ID_UnderlayOffsetX); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "ID_UnderlayOffsetY", _g_get_ID_UnderlayOffsetY); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "ID_UnderlayDilate", _g_get_ID_UnderlayDilate); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "ID_UnderlaySoftness", _g_get_ID_UnderlaySoftness); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "ID_UnderlayOffset", _g_get_ID_UnderlayOffset); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "ID_UnderlayIsoPerimeter", _g_get_ID_UnderlayIsoPerimeter); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "ID_WeightNormal", _g_get_ID_WeightNormal); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "ID_WeightBold", _g_get_ID_WeightBold); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "ID_OutlineTex", _g_get_ID_OutlineTex); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "ID_OutlineWidth", _g_get_ID_OutlineWidth); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "ID_OutlineSoftness", _g_get_ID_OutlineSoftness); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "ID_OutlineColor", _g_get_ID_OutlineColor); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "ID_Outline2Color", _g_get_ID_Outline2Color); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "ID_Outline2Width", _g_get_ID_Outline2Width); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "ID_Padding", _g_get_ID_Padding); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "ID_GradientScale", _g_get_ID_GradientScale); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "ID_ScaleX", _g_get_ID_ScaleX); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "ID_ScaleY", _g_get_ID_ScaleY); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "ID_PerspectiveFilter", _g_get_ID_PerspectiveFilter); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "ID_Sharpness", _g_get_ID_Sharpness); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "ID_TextureWidth", _g_get_ID_TextureWidth); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "ID_TextureHeight", _g_get_ID_TextureHeight); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "ID_BevelAmount", _g_get_ID_BevelAmount); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "ID_GlowColor", _g_get_ID_GlowColor); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "ID_GlowOffset", _g_get_ID_GlowOffset); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "ID_GlowPower", _g_get_ID_GlowPower); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "ID_GlowOuter", _g_get_ID_GlowOuter); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "ID_GlowInner", _g_get_ID_GlowInner); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "ID_LightAngle", _g_get_ID_LightAngle); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "ID_EnvMap", _g_get_ID_EnvMap); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "ID_EnvMatrix", _g_get_ID_EnvMatrix); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "ID_EnvMatrixRotation", _g_get_ID_EnvMatrixRotation); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "ID_MaskCoord", _g_get_ID_MaskCoord); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "ID_ClipRect", _g_get_ID_ClipRect); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "ID_MaskSoftnessX", _g_get_ID_MaskSoftnessX); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "ID_MaskSoftnessY", _g_get_ID_MaskSoftnessY); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "ID_VertexOffsetX", _g_get_ID_VertexOffsetX); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "ID_VertexOffsetY", _g_get_ID_VertexOffsetY); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "ID_UseClipRect", _g_get_ID_UseClipRect); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "ID_StencilID", _g_get_ID_StencilID); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "ID_StencilOp", _g_get_ID_StencilOp); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "ID_StencilComp", _g_get_ID_StencilComp); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "ID_StencilReadMask", _g_get_ID_StencilReadMask); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "ID_StencilWriteMask", _g_get_ID_StencilWriteMask); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "ID_ShaderFlags", _g_get_ID_ShaderFlags); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "ID_ScaleRatio_A", _g_get_ID_ScaleRatio_A); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "ID_ScaleRatio_B", _g_get_ID_ScaleRatio_B); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "ID_ScaleRatio_C", _g_get_ID_ScaleRatio_C); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "Keyword_Bevel", _g_get_Keyword_Bevel); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "Keyword_Glow", _g_get_Keyword_Glow); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "Keyword_Underlay", _g_get_Keyword_Underlay); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "Keyword_Ratios", _g_get_Keyword_Ratios); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "Keyword_MASK_SOFT", _g_get_Keyword_MASK_SOFT); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "Keyword_MASK_HARD", _g_get_Keyword_MASK_HARD); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "Keyword_MASK_TEX", _g_get_Keyword_MASK_TEX); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "Keyword_Outline", _g_get_Keyword_Outline); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "ShaderTag_ZTestMode", _g_get_ShaderTag_ZTestMode); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "ShaderTag_CullMode", _g_get_ShaderTag_CullMode); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "isInitialized", _g_get_isInitialized); - - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "ID_MainTex", _s_set_ID_MainTex); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "ID_FaceTex", _s_set_ID_FaceTex); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "ID_FaceColor", _s_set_ID_FaceColor); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "ID_FaceDilate", _s_set_ID_FaceDilate); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "ID_Shininess", _s_set_ID_Shininess); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "ID_UnderlayColor", _s_set_ID_UnderlayColor); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "ID_UnderlayOffsetX", _s_set_ID_UnderlayOffsetX); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "ID_UnderlayOffsetY", _s_set_ID_UnderlayOffsetY); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "ID_UnderlayDilate", _s_set_ID_UnderlayDilate); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "ID_UnderlaySoftness", _s_set_ID_UnderlaySoftness); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "ID_UnderlayOffset", _s_set_ID_UnderlayOffset); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "ID_UnderlayIsoPerimeter", _s_set_ID_UnderlayIsoPerimeter); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "ID_WeightNormal", _s_set_ID_WeightNormal); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "ID_WeightBold", _s_set_ID_WeightBold); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "ID_OutlineTex", _s_set_ID_OutlineTex); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "ID_OutlineWidth", _s_set_ID_OutlineWidth); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "ID_OutlineSoftness", _s_set_ID_OutlineSoftness); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "ID_OutlineColor", _s_set_ID_OutlineColor); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "ID_Outline2Color", _s_set_ID_Outline2Color); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "ID_Outline2Width", _s_set_ID_Outline2Width); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "ID_Padding", _s_set_ID_Padding); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "ID_GradientScale", _s_set_ID_GradientScale); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "ID_ScaleX", _s_set_ID_ScaleX); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "ID_ScaleY", _s_set_ID_ScaleY); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "ID_PerspectiveFilter", _s_set_ID_PerspectiveFilter); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "ID_Sharpness", _s_set_ID_Sharpness); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "ID_TextureWidth", _s_set_ID_TextureWidth); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "ID_TextureHeight", _s_set_ID_TextureHeight); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "ID_BevelAmount", _s_set_ID_BevelAmount); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "ID_GlowColor", _s_set_ID_GlowColor); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "ID_GlowOffset", _s_set_ID_GlowOffset); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "ID_GlowPower", _s_set_ID_GlowPower); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "ID_GlowOuter", _s_set_ID_GlowOuter); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "ID_GlowInner", _s_set_ID_GlowInner); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "ID_LightAngle", _s_set_ID_LightAngle); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "ID_EnvMap", _s_set_ID_EnvMap); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "ID_EnvMatrix", _s_set_ID_EnvMatrix); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "ID_EnvMatrixRotation", _s_set_ID_EnvMatrixRotation); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "ID_MaskCoord", _s_set_ID_MaskCoord); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "ID_ClipRect", _s_set_ID_ClipRect); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "ID_MaskSoftnessX", _s_set_ID_MaskSoftnessX); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "ID_MaskSoftnessY", _s_set_ID_MaskSoftnessY); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "ID_VertexOffsetX", _s_set_ID_VertexOffsetX); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "ID_VertexOffsetY", _s_set_ID_VertexOffsetY); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "ID_UseClipRect", _s_set_ID_UseClipRect); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "ID_StencilID", _s_set_ID_StencilID); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "ID_StencilOp", _s_set_ID_StencilOp); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "ID_StencilComp", _s_set_ID_StencilComp); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "ID_StencilReadMask", _s_set_ID_StencilReadMask); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "ID_StencilWriteMask", _s_set_ID_StencilWriteMask); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "ID_ShaderFlags", _s_set_ID_ShaderFlags); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "ID_ScaleRatio_A", _s_set_ID_ScaleRatio_A); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "ID_ScaleRatio_B", _s_set_ID_ScaleRatio_B); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "ID_ScaleRatio_C", _s_set_ID_ScaleRatio_C); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "Keyword_Bevel", _s_set_Keyword_Bevel); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "Keyword_Glow", _s_set_Keyword_Glow); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "Keyword_Underlay", _s_set_Keyword_Underlay); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "Keyword_Ratios", _s_set_Keyword_Ratios); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "Keyword_MASK_SOFT", _s_set_Keyword_MASK_SOFT); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "Keyword_MASK_HARD", _s_set_Keyword_MASK_HARD); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "Keyword_MASK_TEX", _s_set_Keyword_MASK_TEX); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "Keyword_Outline", _s_set_Keyword_Outline); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "ShaderTag_ZTestMode", _s_set_ShaderTag_ZTestMode); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "ShaderTag_CullMode", _s_set_ShaderTag_CullMode); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "isInitialized", _s_set_isInitialized); - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "TMPro.ShaderUtilities does not have a constructor!"); - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetShaderPropertyIDs_xlua_st_(RealStatePtr L) - { - try { - - - - - { - - TMPro.ShaderUtilities.GetShaderPropertyIDs( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_UpdateShaderRatios_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Material _mat = (UnityEngine.Material)translator.GetObject(L, 1, typeof(UnityEngine.Material)); - - TMPro.ShaderUtilities.UpdateShaderRatios( _mat ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetFontExtent_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Material _material = (UnityEngine.Material)translator.GetObject(L, 1, typeof(UnityEngine.Material)); - - var gen_ret = TMPro.ShaderUtilities.GetFontExtent( _material ); - translator.PushUnityEngineVector4(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_IsMaskingEnabled_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Material _material = (UnityEngine.Material)translator.GetObject(L, 1, typeof(UnityEngine.Material)); - - var gen_ret = TMPro.ShaderUtilities.IsMaskingEnabled( _material ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetPadding_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& translator.Assignable(L, 1)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) - { - UnityEngine.Material _material = (UnityEngine.Material)translator.GetObject(L, 1, typeof(UnityEngine.Material)); - bool _enableExtraPadding = LuaAPI.lua_toboolean(L, 2); - bool _isBold = LuaAPI.lua_toboolean(L, 3); - - var gen_ret = TMPro.ShaderUtilities.GetPadding( _material, _enableExtraPadding, _isBold ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 1)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) - { - UnityEngine.Material[] _materials = (UnityEngine.Material[])translator.GetObject(L, 1, typeof(UnityEngine.Material[])); - bool _enableExtraPadding = LuaAPI.lua_toboolean(L, 2); - bool _isBold = LuaAPI.lua_toboolean(L, 3); - - var gen_ret = TMPro.ShaderUtilities.GetPadding( _materials, _enableExtraPadding, _isBold ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to TMPro.ShaderUtilities.GetPadding!"); - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_ID_MainTex(RealStatePtr L) - { - try { - - LuaAPI.xlua_pushinteger(L, TMPro.ShaderUtilities.ID_MainTex); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_ID_FaceTex(RealStatePtr L) - { - try { - - LuaAPI.xlua_pushinteger(L, TMPro.ShaderUtilities.ID_FaceTex); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_ID_FaceColor(RealStatePtr L) - { - try { - - LuaAPI.xlua_pushinteger(L, TMPro.ShaderUtilities.ID_FaceColor); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_ID_FaceDilate(RealStatePtr L) - { - try { - - LuaAPI.xlua_pushinteger(L, TMPro.ShaderUtilities.ID_FaceDilate); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_ID_Shininess(RealStatePtr L) - { - try { - - LuaAPI.xlua_pushinteger(L, TMPro.ShaderUtilities.ID_Shininess); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_ID_UnderlayColor(RealStatePtr L) - { - try { - - LuaAPI.xlua_pushinteger(L, TMPro.ShaderUtilities.ID_UnderlayColor); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_ID_UnderlayOffsetX(RealStatePtr L) - { - try { - - LuaAPI.xlua_pushinteger(L, TMPro.ShaderUtilities.ID_UnderlayOffsetX); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_ID_UnderlayOffsetY(RealStatePtr L) - { - try { - - LuaAPI.xlua_pushinteger(L, TMPro.ShaderUtilities.ID_UnderlayOffsetY); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_ID_UnderlayDilate(RealStatePtr L) - { - try { - - LuaAPI.xlua_pushinteger(L, TMPro.ShaderUtilities.ID_UnderlayDilate); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_ID_UnderlaySoftness(RealStatePtr L) - { - try { - - LuaAPI.xlua_pushinteger(L, TMPro.ShaderUtilities.ID_UnderlaySoftness); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_ID_UnderlayOffset(RealStatePtr L) - { - try { - - LuaAPI.xlua_pushinteger(L, TMPro.ShaderUtilities.ID_UnderlayOffset); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_ID_UnderlayIsoPerimeter(RealStatePtr L) - { - try { - - LuaAPI.xlua_pushinteger(L, TMPro.ShaderUtilities.ID_UnderlayIsoPerimeter); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_ID_WeightNormal(RealStatePtr L) - { - try { - - LuaAPI.xlua_pushinteger(L, TMPro.ShaderUtilities.ID_WeightNormal); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_ID_WeightBold(RealStatePtr L) - { - try { - - LuaAPI.xlua_pushinteger(L, TMPro.ShaderUtilities.ID_WeightBold); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_ID_OutlineTex(RealStatePtr L) - { - try { - - LuaAPI.xlua_pushinteger(L, TMPro.ShaderUtilities.ID_OutlineTex); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_ID_OutlineWidth(RealStatePtr L) - { - try { - - LuaAPI.xlua_pushinteger(L, TMPro.ShaderUtilities.ID_OutlineWidth); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_ID_OutlineSoftness(RealStatePtr L) - { - try { - - LuaAPI.xlua_pushinteger(L, TMPro.ShaderUtilities.ID_OutlineSoftness); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_ID_OutlineColor(RealStatePtr L) - { - try { - - LuaAPI.xlua_pushinteger(L, TMPro.ShaderUtilities.ID_OutlineColor); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_ID_Outline2Color(RealStatePtr L) - { - try { - - LuaAPI.xlua_pushinteger(L, TMPro.ShaderUtilities.ID_Outline2Color); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_ID_Outline2Width(RealStatePtr L) - { - try { - - LuaAPI.xlua_pushinteger(L, TMPro.ShaderUtilities.ID_Outline2Width); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_ID_Padding(RealStatePtr L) - { - try { - - LuaAPI.xlua_pushinteger(L, TMPro.ShaderUtilities.ID_Padding); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_ID_GradientScale(RealStatePtr L) - { - try { - - LuaAPI.xlua_pushinteger(L, TMPro.ShaderUtilities.ID_GradientScale); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_ID_ScaleX(RealStatePtr L) - { - try { - - LuaAPI.xlua_pushinteger(L, TMPro.ShaderUtilities.ID_ScaleX); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_ID_ScaleY(RealStatePtr L) - { - try { - - LuaAPI.xlua_pushinteger(L, TMPro.ShaderUtilities.ID_ScaleY); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_ID_PerspectiveFilter(RealStatePtr L) - { - try { - - LuaAPI.xlua_pushinteger(L, TMPro.ShaderUtilities.ID_PerspectiveFilter); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_ID_Sharpness(RealStatePtr L) - { - try { - - LuaAPI.xlua_pushinteger(L, TMPro.ShaderUtilities.ID_Sharpness); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_ID_TextureWidth(RealStatePtr L) - { - try { - - LuaAPI.xlua_pushinteger(L, TMPro.ShaderUtilities.ID_TextureWidth); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_ID_TextureHeight(RealStatePtr L) - { - try { - - LuaAPI.xlua_pushinteger(L, TMPro.ShaderUtilities.ID_TextureHeight); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_ID_BevelAmount(RealStatePtr L) - { - try { - - LuaAPI.xlua_pushinteger(L, TMPro.ShaderUtilities.ID_BevelAmount); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_ID_GlowColor(RealStatePtr L) - { - try { - - LuaAPI.xlua_pushinteger(L, TMPro.ShaderUtilities.ID_GlowColor); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_ID_GlowOffset(RealStatePtr L) - { - try { - - LuaAPI.xlua_pushinteger(L, TMPro.ShaderUtilities.ID_GlowOffset); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_ID_GlowPower(RealStatePtr L) - { - try { - - LuaAPI.xlua_pushinteger(L, TMPro.ShaderUtilities.ID_GlowPower); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_ID_GlowOuter(RealStatePtr L) - { - try { - - LuaAPI.xlua_pushinteger(L, TMPro.ShaderUtilities.ID_GlowOuter); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_ID_GlowInner(RealStatePtr L) - { - try { - - LuaAPI.xlua_pushinteger(L, TMPro.ShaderUtilities.ID_GlowInner); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_ID_LightAngle(RealStatePtr L) - { - try { - - LuaAPI.xlua_pushinteger(L, TMPro.ShaderUtilities.ID_LightAngle); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_ID_EnvMap(RealStatePtr L) - { - try { - - LuaAPI.xlua_pushinteger(L, TMPro.ShaderUtilities.ID_EnvMap); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_ID_EnvMatrix(RealStatePtr L) - { - try { - - LuaAPI.xlua_pushinteger(L, TMPro.ShaderUtilities.ID_EnvMatrix); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_ID_EnvMatrixRotation(RealStatePtr L) - { - try { - - LuaAPI.xlua_pushinteger(L, TMPro.ShaderUtilities.ID_EnvMatrixRotation); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_ID_MaskCoord(RealStatePtr L) - { - try { - - LuaAPI.xlua_pushinteger(L, TMPro.ShaderUtilities.ID_MaskCoord); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_ID_ClipRect(RealStatePtr L) - { - try { - - LuaAPI.xlua_pushinteger(L, TMPro.ShaderUtilities.ID_ClipRect); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_ID_MaskSoftnessX(RealStatePtr L) - { - try { - - LuaAPI.xlua_pushinteger(L, TMPro.ShaderUtilities.ID_MaskSoftnessX); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_ID_MaskSoftnessY(RealStatePtr L) - { - try { - - LuaAPI.xlua_pushinteger(L, TMPro.ShaderUtilities.ID_MaskSoftnessY); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_ID_VertexOffsetX(RealStatePtr L) - { - try { - - LuaAPI.xlua_pushinteger(L, TMPro.ShaderUtilities.ID_VertexOffsetX); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_ID_VertexOffsetY(RealStatePtr L) - { - try { - - LuaAPI.xlua_pushinteger(L, TMPro.ShaderUtilities.ID_VertexOffsetY); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_ID_UseClipRect(RealStatePtr L) - { - try { - - LuaAPI.xlua_pushinteger(L, TMPro.ShaderUtilities.ID_UseClipRect); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_ID_StencilID(RealStatePtr L) - { - try { - - LuaAPI.xlua_pushinteger(L, TMPro.ShaderUtilities.ID_StencilID); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_ID_StencilOp(RealStatePtr L) - { - try { - - LuaAPI.xlua_pushinteger(L, TMPro.ShaderUtilities.ID_StencilOp); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_ID_StencilComp(RealStatePtr L) - { - try { - - LuaAPI.xlua_pushinteger(L, TMPro.ShaderUtilities.ID_StencilComp); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_ID_StencilReadMask(RealStatePtr L) - { - try { - - LuaAPI.xlua_pushinteger(L, TMPro.ShaderUtilities.ID_StencilReadMask); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_ID_StencilWriteMask(RealStatePtr L) - { - try { - - LuaAPI.xlua_pushinteger(L, TMPro.ShaderUtilities.ID_StencilWriteMask); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_ID_ShaderFlags(RealStatePtr L) - { - try { - - LuaAPI.xlua_pushinteger(L, TMPro.ShaderUtilities.ID_ShaderFlags); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_ID_ScaleRatio_A(RealStatePtr L) - { - try { - - LuaAPI.xlua_pushinteger(L, TMPro.ShaderUtilities.ID_ScaleRatio_A); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_ID_ScaleRatio_B(RealStatePtr L) - { - try { - - LuaAPI.xlua_pushinteger(L, TMPro.ShaderUtilities.ID_ScaleRatio_B); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_ID_ScaleRatio_C(RealStatePtr L) - { - try { - - LuaAPI.xlua_pushinteger(L, TMPro.ShaderUtilities.ID_ScaleRatio_C); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Keyword_Bevel(RealStatePtr L) - { - try { - - LuaAPI.lua_pushstring(L, TMPro.ShaderUtilities.Keyword_Bevel); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Keyword_Glow(RealStatePtr L) - { - try { - - LuaAPI.lua_pushstring(L, TMPro.ShaderUtilities.Keyword_Glow); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Keyword_Underlay(RealStatePtr L) - { - try { - - LuaAPI.lua_pushstring(L, TMPro.ShaderUtilities.Keyword_Underlay); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Keyword_Ratios(RealStatePtr L) - { - try { - - LuaAPI.lua_pushstring(L, TMPro.ShaderUtilities.Keyword_Ratios); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Keyword_MASK_SOFT(RealStatePtr L) - { - try { - - LuaAPI.lua_pushstring(L, TMPro.ShaderUtilities.Keyword_MASK_SOFT); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Keyword_MASK_HARD(RealStatePtr L) - { - try { - - LuaAPI.lua_pushstring(L, TMPro.ShaderUtilities.Keyword_MASK_HARD); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Keyword_MASK_TEX(RealStatePtr L) - { - try { - - LuaAPI.lua_pushstring(L, TMPro.ShaderUtilities.Keyword_MASK_TEX); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Keyword_Outline(RealStatePtr L) - { - try { - - LuaAPI.lua_pushstring(L, TMPro.ShaderUtilities.Keyword_Outline); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_ShaderTag_ZTestMode(RealStatePtr L) - { - try { - - LuaAPI.lua_pushstring(L, TMPro.ShaderUtilities.ShaderTag_ZTestMode); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_ShaderTag_CullMode(RealStatePtr L) - { - try { - - LuaAPI.lua_pushstring(L, TMPro.ShaderUtilities.ShaderTag_CullMode); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_isInitialized(RealStatePtr L) - { - try { - - LuaAPI.lua_pushboolean(L, TMPro.ShaderUtilities.isInitialized); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_ID_MainTex(RealStatePtr L) - { - try { - - TMPro.ShaderUtilities.ID_MainTex = LuaAPI.xlua_tointeger(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_ID_FaceTex(RealStatePtr L) - { - try { - - TMPro.ShaderUtilities.ID_FaceTex = LuaAPI.xlua_tointeger(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_ID_FaceColor(RealStatePtr L) - { - try { - - TMPro.ShaderUtilities.ID_FaceColor = LuaAPI.xlua_tointeger(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_ID_FaceDilate(RealStatePtr L) - { - try { - - TMPro.ShaderUtilities.ID_FaceDilate = LuaAPI.xlua_tointeger(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_ID_Shininess(RealStatePtr L) - { - try { - - TMPro.ShaderUtilities.ID_Shininess = LuaAPI.xlua_tointeger(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_ID_UnderlayColor(RealStatePtr L) - { - try { - - TMPro.ShaderUtilities.ID_UnderlayColor = LuaAPI.xlua_tointeger(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_ID_UnderlayOffsetX(RealStatePtr L) - { - try { - - TMPro.ShaderUtilities.ID_UnderlayOffsetX = LuaAPI.xlua_tointeger(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_ID_UnderlayOffsetY(RealStatePtr L) - { - try { - - TMPro.ShaderUtilities.ID_UnderlayOffsetY = LuaAPI.xlua_tointeger(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_ID_UnderlayDilate(RealStatePtr L) - { - try { - - TMPro.ShaderUtilities.ID_UnderlayDilate = LuaAPI.xlua_tointeger(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_ID_UnderlaySoftness(RealStatePtr L) - { - try { - - TMPro.ShaderUtilities.ID_UnderlaySoftness = LuaAPI.xlua_tointeger(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_ID_UnderlayOffset(RealStatePtr L) - { - try { - - TMPro.ShaderUtilities.ID_UnderlayOffset = LuaAPI.xlua_tointeger(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_ID_UnderlayIsoPerimeter(RealStatePtr L) - { - try { - - TMPro.ShaderUtilities.ID_UnderlayIsoPerimeter = LuaAPI.xlua_tointeger(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_ID_WeightNormal(RealStatePtr L) - { - try { - - TMPro.ShaderUtilities.ID_WeightNormal = LuaAPI.xlua_tointeger(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_ID_WeightBold(RealStatePtr L) - { - try { - - TMPro.ShaderUtilities.ID_WeightBold = LuaAPI.xlua_tointeger(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_ID_OutlineTex(RealStatePtr L) - { - try { - - TMPro.ShaderUtilities.ID_OutlineTex = LuaAPI.xlua_tointeger(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_ID_OutlineWidth(RealStatePtr L) - { - try { - - TMPro.ShaderUtilities.ID_OutlineWidth = LuaAPI.xlua_tointeger(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_ID_OutlineSoftness(RealStatePtr L) - { - try { - - TMPro.ShaderUtilities.ID_OutlineSoftness = LuaAPI.xlua_tointeger(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_ID_OutlineColor(RealStatePtr L) - { - try { - - TMPro.ShaderUtilities.ID_OutlineColor = LuaAPI.xlua_tointeger(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_ID_Outline2Color(RealStatePtr L) - { - try { - - TMPro.ShaderUtilities.ID_Outline2Color = LuaAPI.xlua_tointeger(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_ID_Outline2Width(RealStatePtr L) - { - try { - - TMPro.ShaderUtilities.ID_Outline2Width = LuaAPI.xlua_tointeger(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_ID_Padding(RealStatePtr L) - { - try { - - TMPro.ShaderUtilities.ID_Padding = LuaAPI.xlua_tointeger(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_ID_GradientScale(RealStatePtr L) - { - try { - - TMPro.ShaderUtilities.ID_GradientScale = LuaAPI.xlua_tointeger(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_ID_ScaleX(RealStatePtr L) - { - try { - - TMPro.ShaderUtilities.ID_ScaleX = LuaAPI.xlua_tointeger(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_ID_ScaleY(RealStatePtr L) - { - try { - - TMPro.ShaderUtilities.ID_ScaleY = LuaAPI.xlua_tointeger(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_ID_PerspectiveFilter(RealStatePtr L) - { - try { - - TMPro.ShaderUtilities.ID_PerspectiveFilter = LuaAPI.xlua_tointeger(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_ID_Sharpness(RealStatePtr L) - { - try { - - TMPro.ShaderUtilities.ID_Sharpness = LuaAPI.xlua_tointeger(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_ID_TextureWidth(RealStatePtr L) - { - try { - - TMPro.ShaderUtilities.ID_TextureWidth = LuaAPI.xlua_tointeger(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_ID_TextureHeight(RealStatePtr L) - { - try { - - TMPro.ShaderUtilities.ID_TextureHeight = LuaAPI.xlua_tointeger(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_ID_BevelAmount(RealStatePtr L) - { - try { - - TMPro.ShaderUtilities.ID_BevelAmount = LuaAPI.xlua_tointeger(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_ID_GlowColor(RealStatePtr L) - { - try { - - TMPro.ShaderUtilities.ID_GlowColor = LuaAPI.xlua_tointeger(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_ID_GlowOffset(RealStatePtr L) - { - try { - - TMPro.ShaderUtilities.ID_GlowOffset = LuaAPI.xlua_tointeger(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_ID_GlowPower(RealStatePtr L) - { - try { - - TMPro.ShaderUtilities.ID_GlowPower = LuaAPI.xlua_tointeger(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_ID_GlowOuter(RealStatePtr L) - { - try { - - TMPro.ShaderUtilities.ID_GlowOuter = LuaAPI.xlua_tointeger(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_ID_GlowInner(RealStatePtr L) - { - try { - - TMPro.ShaderUtilities.ID_GlowInner = LuaAPI.xlua_tointeger(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_ID_LightAngle(RealStatePtr L) - { - try { - - TMPro.ShaderUtilities.ID_LightAngle = LuaAPI.xlua_tointeger(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_ID_EnvMap(RealStatePtr L) - { - try { - - TMPro.ShaderUtilities.ID_EnvMap = LuaAPI.xlua_tointeger(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_ID_EnvMatrix(RealStatePtr L) - { - try { - - TMPro.ShaderUtilities.ID_EnvMatrix = LuaAPI.xlua_tointeger(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_ID_EnvMatrixRotation(RealStatePtr L) - { - try { - - TMPro.ShaderUtilities.ID_EnvMatrixRotation = LuaAPI.xlua_tointeger(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_ID_MaskCoord(RealStatePtr L) - { - try { - - TMPro.ShaderUtilities.ID_MaskCoord = LuaAPI.xlua_tointeger(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_ID_ClipRect(RealStatePtr L) - { - try { - - TMPro.ShaderUtilities.ID_ClipRect = LuaAPI.xlua_tointeger(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_ID_MaskSoftnessX(RealStatePtr L) - { - try { - - TMPro.ShaderUtilities.ID_MaskSoftnessX = LuaAPI.xlua_tointeger(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_ID_MaskSoftnessY(RealStatePtr L) - { - try { - - TMPro.ShaderUtilities.ID_MaskSoftnessY = LuaAPI.xlua_tointeger(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_ID_VertexOffsetX(RealStatePtr L) - { - try { - - TMPro.ShaderUtilities.ID_VertexOffsetX = LuaAPI.xlua_tointeger(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_ID_VertexOffsetY(RealStatePtr L) - { - try { - - TMPro.ShaderUtilities.ID_VertexOffsetY = LuaAPI.xlua_tointeger(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_ID_UseClipRect(RealStatePtr L) - { - try { - - TMPro.ShaderUtilities.ID_UseClipRect = LuaAPI.xlua_tointeger(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_ID_StencilID(RealStatePtr L) - { - try { - - TMPro.ShaderUtilities.ID_StencilID = LuaAPI.xlua_tointeger(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_ID_StencilOp(RealStatePtr L) - { - try { - - TMPro.ShaderUtilities.ID_StencilOp = LuaAPI.xlua_tointeger(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_ID_StencilComp(RealStatePtr L) - { - try { - - TMPro.ShaderUtilities.ID_StencilComp = LuaAPI.xlua_tointeger(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_ID_StencilReadMask(RealStatePtr L) - { - try { - - TMPro.ShaderUtilities.ID_StencilReadMask = LuaAPI.xlua_tointeger(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_ID_StencilWriteMask(RealStatePtr L) - { - try { - - TMPro.ShaderUtilities.ID_StencilWriteMask = LuaAPI.xlua_tointeger(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_ID_ShaderFlags(RealStatePtr L) - { - try { - - TMPro.ShaderUtilities.ID_ShaderFlags = LuaAPI.xlua_tointeger(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_ID_ScaleRatio_A(RealStatePtr L) - { - try { - - TMPro.ShaderUtilities.ID_ScaleRatio_A = LuaAPI.xlua_tointeger(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_ID_ScaleRatio_B(RealStatePtr L) - { - try { - - TMPro.ShaderUtilities.ID_ScaleRatio_B = LuaAPI.xlua_tointeger(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_ID_ScaleRatio_C(RealStatePtr L) - { - try { - - TMPro.ShaderUtilities.ID_ScaleRatio_C = LuaAPI.xlua_tointeger(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_Keyword_Bevel(RealStatePtr L) - { - try { - - TMPro.ShaderUtilities.Keyword_Bevel = LuaAPI.lua_tostring(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_Keyword_Glow(RealStatePtr L) - { - try { - - TMPro.ShaderUtilities.Keyword_Glow = LuaAPI.lua_tostring(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_Keyword_Underlay(RealStatePtr L) - { - try { - - TMPro.ShaderUtilities.Keyword_Underlay = LuaAPI.lua_tostring(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_Keyword_Ratios(RealStatePtr L) - { - try { - - TMPro.ShaderUtilities.Keyword_Ratios = LuaAPI.lua_tostring(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_Keyword_MASK_SOFT(RealStatePtr L) - { - try { - - TMPro.ShaderUtilities.Keyword_MASK_SOFT = LuaAPI.lua_tostring(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_Keyword_MASK_HARD(RealStatePtr L) - { - try { - - TMPro.ShaderUtilities.Keyword_MASK_HARD = LuaAPI.lua_tostring(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_Keyword_MASK_TEX(RealStatePtr L) - { - try { - - TMPro.ShaderUtilities.Keyword_MASK_TEX = LuaAPI.lua_tostring(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_Keyword_Outline(RealStatePtr L) - { - try { - - TMPro.ShaderUtilities.Keyword_Outline = LuaAPI.lua_tostring(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_ShaderTag_ZTestMode(RealStatePtr L) - { - try { - - TMPro.ShaderUtilities.ShaderTag_ZTestMode = LuaAPI.lua_tostring(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_ShaderTag_CullMode(RealStatePtr L) - { - try { - - TMPro.ShaderUtilities.ShaderTag_CullMode = LuaAPI.lua_tostring(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_isInitialized(RealStatePtr L) - { - try { - - TMPro.ShaderUtilities.isInitialized = LuaAPI.lua_toboolean(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/TMPro_TMP_AssetWrap.cs b/Assets/XLua/Gen/TMPro_TMP_AssetWrap.cs deleted file mode 100644 index f16374ac2..000000000 --- a/Assets/XLua/Gen/TMPro_TMP_AssetWrap.cs +++ /dev/null @@ -1,175 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class TMProTMP_AssetWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(TMPro.TMP_Asset); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 4, 3); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "instanceID", _g_get_instanceID); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "hashCode", _g_get_hashCode); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "material", _g_get_material); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "materialHashCode", _g_get_materialHashCode); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "hashCode", _s_set_hashCode); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "material", _s_set_material); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "materialHashCode", _s_set_materialHashCode); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "TMPro.TMP_Asset does not have a constructor!"); - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_instanceID(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Asset gen_to_be_invoked = (TMPro.TMP_Asset)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.instanceID); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_hashCode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Asset gen_to_be_invoked = (TMPro.TMP_Asset)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.hashCode); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_material(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Asset gen_to_be_invoked = (TMPro.TMP_Asset)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.material); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_materialHashCode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Asset gen_to_be_invoked = (TMPro.TMP_Asset)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.materialHashCode); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_hashCode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Asset gen_to_be_invoked = (TMPro.TMP_Asset)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.hashCode = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_material(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Asset gen_to_be_invoked = (TMPro.TMP_Asset)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.material = (UnityEngine.Material)translator.GetObject(L, 2, typeof(UnityEngine.Material)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_materialHashCode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Asset gen_to_be_invoked = (TMPro.TMP_Asset)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.materialHashCode = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/TMPro_TMP_CharacterInfoWrap.cs b/Assets/XLua/Gen/TMPro_TMP_CharacterInfoWrap.cs deleted file mode 100644 index 18ec3a62c..000000000 --- a/Assets/XLua/Gen/TMPro_TMP_CharacterInfoWrap.cs +++ /dev/null @@ -1,1384 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class TMProTMP_CharacterInfoWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(TMPro.TMP_CharacterInfo); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 39, 39); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "character", _g_get_character); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "index", _g_get_index); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "stringLength", _g_get_stringLength); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "elementType", _g_get_elementType); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "textElement", _g_get_textElement); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "fontAsset", _g_get_fontAsset); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "spriteAsset", _g_get_spriteAsset); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "spriteIndex", _g_get_spriteIndex); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "material", _g_get_material); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "materialReferenceIndex", _g_get_materialReferenceIndex); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "isUsingAlternateTypeface", _g_get_isUsingAlternateTypeface); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "pointSize", _g_get_pointSize); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "lineNumber", _g_get_lineNumber); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "pageNumber", _g_get_pageNumber); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "vertexIndex", _g_get_vertexIndex); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "vertex_BL", _g_get_vertex_BL); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "vertex_TL", _g_get_vertex_TL); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "vertex_TR", _g_get_vertex_TR); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "vertex_BR", _g_get_vertex_BR); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "topLeft", _g_get_topLeft); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "bottomLeft", _g_get_bottomLeft); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "topRight", _g_get_topRight); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "bottomRight", _g_get_bottomRight); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "origin", _g_get_origin); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "xAdvance", _g_get_xAdvance); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "ascender", _g_get_ascender); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "baseLine", _g_get_baseLine); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "descender", _g_get_descender); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "aspectRatio", _g_get_aspectRatio); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "scale", _g_get_scale); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "color", _g_get_color); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "underlineColor", _g_get_underlineColor); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "underlineVertexIndex", _g_get_underlineVertexIndex); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "strikethroughColor", _g_get_strikethroughColor); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "strikethroughVertexIndex", _g_get_strikethroughVertexIndex); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "highlightColor", _g_get_highlightColor); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "highlightState", _g_get_highlightState); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "style", _g_get_style); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "isVisible", _g_get_isVisible); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "character", _s_set_character); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "index", _s_set_index); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "stringLength", _s_set_stringLength); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "elementType", _s_set_elementType); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "textElement", _s_set_textElement); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "fontAsset", _s_set_fontAsset); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "spriteAsset", _s_set_spriteAsset); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "spriteIndex", _s_set_spriteIndex); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "material", _s_set_material); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "materialReferenceIndex", _s_set_materialReferenceIndex); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "isUsingAlternateTypeface", _s_set_isUsingAlternateTypeface); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "pointSize", _s_set_pointSize); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "lineNumber", _s_set_lineNumber); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "pageNumber", _s_set_pageNumber); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "vertexIndex", _s_set_vertexIndex); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "vertex_BL", _s_set_vertex_BL); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "vertex_TL", _s_set_vertex_TL); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "vertex_TR", _s_set_vertex_TR); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "vertex_BR", _s_set_vertex_BR); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "topLeft", _s_set_topLeft); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "bottomLeft", _s_set_bottomLeft); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "topRight", _s_set_topRight); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "bottomRight", _s_set_bottomRight); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "origin", _s_set_origin); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "xAdvance", _s_set_xAdvance); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "ascender", _s_set_ascender); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "baseLine", _s_set_baseLine); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "descender", _s_set_descender); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "aspectRatio", _s_set_aspectRatio); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "scale", _s_set_scale); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "color", _s_set_color); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "underlineColor", _s_set_underlineColor); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "underlineVertexIndex", _s_set_underlineVertexIndex); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "strikethroughColor", _s_set_strikethroughColor); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "strikethroughVertexIndex", _s_set_strikethroughVertexIndex); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "highlightColor", _s_set_highlightColor); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "highlightState", _s_set_highlightState); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "style", _s_set_style); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "isVisible", _s_set_isVisible); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(TMPro.TMP_CharacterInfo)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to TMPro.TMP_CharacterInfo constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_character(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_CharacterInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.character); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_index(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_CharacterInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.index); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_stringLength(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_CharacterInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.stringLength); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_elementType(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_CharacterInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.elementType); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_textElement(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_CharacterInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.textElement); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_fontAsset(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_CharacterInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.fontAsset); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_spriteAsset(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_CharacterInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.spriteAsset); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_spriteIndex(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_CharacterInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.spriteIndex); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_material(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_CharacterInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.material); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_materialReferenceIndex(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_CharacterInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.materialReferenceIndex); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_isUsingAlternateTypeface(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_CharacterInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.isUsingAlternateTypeface); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_pointSize(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_CharacterInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.pointSize); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_lineNumber(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_CharacterInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.lineNumber); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_pageNumber(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_CharacterInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.pageNumber); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_vertexIndex(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_CharacterInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.vertexIndex); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_vertex_BL(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_CharacterInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.vertex_BL); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_vertex_TL(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_CharacterInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.vertex_TL); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_vertex_TR(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_CharacterInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.vertex_TR); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_vertex_BR(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_CharacterInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.vertex_BR); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_topLeft(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_CharacterInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.topLeft); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_bottomLeft(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_CharacterInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.bottomLeft); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_topRight(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_CharacterInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.topRight); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_bottomRight(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_CharacterInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.bottomRight); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_origin(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_CharacterInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.origin); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_xAdvance(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_CharacterInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.xAdvance); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_ascender(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_CharacterInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.ascender); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_baseLine(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_CharacterInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.baseLine); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_descender(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_CharacterInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.descender); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_aspectRatio(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_CharacterInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.aspectRatio); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_scale(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_CharacterInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.scale); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_color(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_CharacterInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.color); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_underlineColor(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_CharacterInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.underlineColor); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_underlineVertexIndex(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_CharacterInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.underlineVertexIndex); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_strikethroughColor(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_CharacterInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.strikethroughColor); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_strikethroughVertexIndex(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_CharacterInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.strikethroughVertexIndex); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_highlightColor(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_CharacterInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.highlightColor); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_highlightState(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_CharacterInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.highlightState); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_style(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_CharacterInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.style); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_isVisible(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_CharacterInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.isVisible); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_character(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_CharacterInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.character = (char)LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_index(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_CharacterInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.index = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_stringLength(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_CharacterInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.stringLength = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_elementType(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_CharacterInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - TMPro.TMP_TextElementType gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.elementType = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_textElement(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_CharacterInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.textElement = (TMPro.TMP_TextElement)translator.GetObject(L, 2, typeof(TMPro.TMP_TextElement)); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_fontAsset(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_CharacterInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.fontAsset = (TMPro.TMP_FontAsset)translator.GetObject(L, 2, typeof(TMPro.TMP_FontAsset)); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_spriteAsset(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_CharacterInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.spriteAsset = (TMPro.TMP_SpriteAsset)translator.GetObject(L, 2, typeof(TMPro.TMP_SpriteAsset)); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_spriteIndex(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_CharacterInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.spriteIndex = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_material(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_CharacterInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.material = (UnityEngine.Material)translator.GetObject(L, 2, typeof(UnityEngine.Material)); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_materialReferenceIndex(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_CharacterInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.materialReferenceIndex = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_isUsingAlternateTypeface(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_CharacterInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.isUsingAlternateTypeface = LuaAPI.lua_toboolean(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_pointSize(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_CharacterInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.pointSize = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_lineNumber(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_CharacterInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.lineNumber = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_pageNumber(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_CharacterInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.pageNumber = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_vertexIndex(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_CharacterInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.vertexIndex = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_vertex_BL(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_CharacterInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - TMPro.TMP_Vertex gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.vertex_BL = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_vertex_TL(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_CharacterInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - TMPro.TMP_Vertex gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.vertex_TL = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_vertex_TR(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_CharacterInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - TMPro.TMP_Vertex gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.vertex_TR = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_vertex_BR(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_CharacterInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - TMPro.TMP_Vertex gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.vertex_BR = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_topLeft(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_CharacterInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Vector3 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.topLeft = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_bottomLeft(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_CharacterInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Vector3 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.bottomLeft = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_topRight(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_CharacterInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Vector3 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.topRight = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_bottomRight(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_CharacterInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Vector3 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.bottomRight = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_origin(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_CharacterInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.origin = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_xAdvance(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_CharacterInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.xAdvance = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_ascender(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_CharacterInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.ascender = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_baseLine(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_CharacterInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.baseLine = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_descender(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_CharacterInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.descender = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_aspectRatio(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_CharacterInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.aspectRatio = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_scale(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_CharacterInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.scale = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_color(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_CharacterInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Color32 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.color = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_underlineColor(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_CharacterInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Color32 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.underlineColor = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_underlineVertexIndex(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_CharacterInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.underlineVertexIndex = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_strikethroughColor(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_CharacterInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Color32 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.strikethroughColor = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_strikethroughVertexIndex(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_CharacterInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.strikethroughVertexIndex = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_highlightColor(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_CharacterInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Color32 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.highlightColor = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_highlightState(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_CharacterInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - TMPro.HighlightState gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.highlightState = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_style(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_CharacterInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - TMPro.FontStyles gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.style = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_isVisible(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_CharacterInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.isVisible = LuaAPI.lua_toboolean(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/TMPro_TMP_ColorGradientWrap.cs b/Assets/XLua/Gen/TMPro_TMP_ColorGradientWrap.cs deleted file mode 100644 index a77a39cd9..000000000 --- a/Assets/XLua/Gen/TMPro_TMP_ColorGradientWrap.cs +++ /dev/null @@ -1,265 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class TMProTMP_ColorGradientWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(TMPro.TMP_ColorGradient); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 5, 5); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "colorMode", _g_get_colorMode); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "topLeft", _g_get_topLeft); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "topRight", _g_get_topRight); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "bottomLeft", _g_get_bottomLeft); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "bottomRight", _g_get_bottomRight); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "colorMode", _s_set_colorMode); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "topLeft", _s_set_topLeft); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "topRight", _s_set_topRight); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "bottomLeft", _s_set_bottomLeft); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "bottomRight", _s_set_bottomRight); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new TMPro.TMP_ColorGradient(); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 2 && translator.Assignable(L, 2)) - { - UnityEngine.Color _color;translator.Get(L, 2, out _color); - - var gen_ret = new TMPro.TMP_ColorGradient(_color); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 5 && translator.Assignable(L, 2) && translator.Assignable(L, 3) && translator.Assignable(L, 4) && translator.Assignable(L, 5)) - { - UnityEngine.Color _color0;translator.Get(L, 2, out _color0); - UnityEngine.Color _color1;translator.Get(L, 3, out _color1); - UnityEngine.Color _color2;translator.Get(L, 4, out _color2); - UnityEngine.Color _color3;translator.Get(L, 5, out _color3); - - var gen_ret = new TMPro.TMP_ColorGradient(_color0, _color1, _color2, _color3); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to TMPro.TMP_ColorGradient constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_colorMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_ColorGradient gen_to_be_invoked = (TMPro.TMP_ColorGradient)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.colorMode); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_topLeft(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_ColorGradient gen_to_be_invoked = (TMPro.TMP_ColorGradient)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineColor(L, gen_to_be_invoked.topLeft); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_topRight(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_ColorGradient gen_to_be_invoked = (TMPro.TMP_ColorGradient)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineColor(L, gen_to_be_invoked.topRight); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_bottomLeft(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_ColorGradient gen_to_be_invoked = (TMPro.TMP_ColorGradient)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineColor(L, gen_to_be_invoked.bottomLeft); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_bottomRight(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_ColorGradient gen_to_be_invoked = (TMPro.TMP_ColorGradient)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineColor(L, gen_to_be_invoked.bottomRight); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_colorMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_ColorGradient gen_to_be_invoked = (TMPro.TMP_ColorGradient)translator.FastGetCSObj(L, 1); - TMPro.ColorMode gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.colorMode = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_topLeft(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_ColorGradient gen_to_be_invoked = (TMPro.TMP_ColorGradient)translator.FastGetCSObj(L, 1); - UnityEngine.Color gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.topLeft = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_topRight(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_ColorGradient gen_to_be_invoked = (TMPro.TMP_ColorGradient)translator.FastGetCSObj(L, 1); - UnityEngine.Color gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.topRight = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_bottomLeft(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_ColorGradient gen_to_be_invoked = (TMPro.TMP_ColorGradient)translator.FastGetCSObj(L, 1); - UnityEngine.Color gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.bottomLeft = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_bottomRight(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_ColorGradient gen_to_be_invoked = (TMPro.TMP_ColorGradient)translator.FastGetCSObj(L, 1); - UnityEngine.Color gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.bottomRight = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/TMPro_TMP_CompatibilityWrap.cs b/Assets/XLua/Gen/TMPro_TMP_CompatibilityWrap.cs deleted file mode 100644 index b545d3493..000000000 --- a/Assets/XLua/Gen/TMPro_TMP_CompatibilityWrap.cs +++ /dev/null @@ -1,95 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class TMProTMP_CompatibilityWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(TMPro.TMP_Compatibility); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 2, 0, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "ConvertTextAlignmentEnumValues", _m_ConvertTextAlignmentEnumValues_xlua_st_); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "TMPro.TMP_Compatibility does not have a constructor!"); - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ConvertTextAlignmentEnumValues_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - TMPro.TextAlignmentOptions _oldValue;translator.Get(L, 1, out _oldValue); - - var gen_ret = TMPro.TMP_Compatibility.ConvertTextAlignmentEnumValues( _oldValue ); - translator.PushTMProTextAlignmentOptions(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/TMPro_TMP_DefaultControlsWrap.cs b/Assets/XLua/Gen/TMPro_TMP_DefaultControlsWrap.cs deleted file mode 100644 index dd6fba312..000000000 --- a/Assets/XLua/Gen/TMPro_TMP_DefaultControlsWrap.cs +++ /dev/null @@ -1,207 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class TMProTMP_DefaultControlsWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(TMPro.TMP_DefaultControls); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 6, 0, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "CreateScrollbar", _m_CreateScrollbar_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "CreateButton", _m_CreateButton_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "CreateText", _m_CreateText_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "CreateInputField", _m_CreateInputField_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "CreateDropdown", _m_CreateDropdown_xlua_st_); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "TMPro.TMP_DefaultControls does not have a constructor!"); - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CreateScrollbar_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - TMPro.TMP_DefaultControls.Resources _resources;translator.Get(L, 1, out _resources); - - var gen_ret = TMPro.TMP_DefaultControls.CreateScrollbar( _resources ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CreateButton_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - TMPro.TMP_DefaultControls.Resources _resources;translator.Get(L, 1, out _resources); - - var gen_ret = TMPro.TMP_DefaultControls.CreateButton( _resources ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CreateText_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - TMPro.TMP_DefaultControls.Resources _resources;translator.Get(L, 1, out _resources); - - var gen_ret = TMPro.TMP_DefaultControls.CreateText( _resources ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CreateInputField_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - TMPro.TMP_DefaultControls.Resources _resources;translator.Get(L, 1, out _resources); - - var gen_ret = TMPro.TMP_DefaultControls.CreateInputField( _resources ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CreateDropdown_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - TMPro.TMP_DefaultControls.Resources _resources;translator.Get(L, 1, out _resources); - - var gen_ret = TMPro.TMP_DefaultControls.CreateDropdown( _resources ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/TMPro_TMP_DefaultControls_ResourcesWrap.cs b/Assets/XLua/Gen/TMPro_TMP_DefaultControls_ResourcesWrap.cs deleted file mode 100644 index 996195775..000000000 --- a/Assets/XLua/Gen/TMPro_TMP_DefaultControls_ResourcesWrap.cs +++ /dev/null @@ -1,313 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class TMProTMP_DefaultControlsResourcesWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(TMPro.TMP_DefaultControls.Resources); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 7, 7); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "standard", _g_get_standard); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "background", _g_get_background); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "inputField", _g_get_inputField); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "knob", _g_get_knob); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "checkmark", _g_get_checkmark); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "dropdown", _g_get_dropdown); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "mask", _g_get_mask); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "standard", _s_set_standard); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "background", _s_set_background); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "inputField", _s_set_inputField); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "knob", _s_set_knob); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "checkmark", _s_set_checkmark); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "dropdown", _s_set_dropdown); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "mask", _s_set_mask); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(TMPro.TMP_DefaultControls.Resources)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to TMPro.TMP_DefaultControls.Resources constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_standard(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_DefaultControls.Resources gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.standard); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_background(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_DefaultControls.Resources gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.background); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_inputField(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_DefaultControls.Resources gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.inputField); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_knob(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_DefaultControls.Resources gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.knob); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_checkmark(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_DefaultControls.Resources gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.checkmark); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_dropdown(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_DefaultControls.Resources gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.dropdown); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_mask(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_DefaultControls.Resources gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.mask); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_standard(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_DefaultControls.Resources gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.standard = (UnityEngine.Sprite)translator.GetObject(L, 2, typeof(UnityEngine.Sprite)); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_background(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_DefaultControls.Resources gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.background = (UnityEngine.Sprite)translator.GetObject(L, 2, typeof(UnityEngine.Sprite)); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_inputField(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_DefaultControls.Resources gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.inputField = (UnityEngine.Sprite)translator.GetObject(L, 2, typeof(UnityEngine.Sprite)); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_knob(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_DefaultControls.Resources gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.knob = (UnityEngine.Sprite)translator.GetObject(L, 2, typeof(UnityEngine.Sprite)); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_checkmark(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_DefaultControls.Resources gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.checkmark = (UnityEngine.Sprite)translator.GetObject(L, 2, typeof(UnityEngine.Sprite)); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_dropdown(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_DefaultControls.Resources gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.dropdown = (UnityEngine.Sprite)translator.GetObject(L, 2, typeof(UnityEngine.Sprite)); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_mask(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_DefaultControls.Resources gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.mask = (UnityEngine.Sprite)translator.GetObject(L, 2, typeof(UnityEngine.Sprite)); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/TMPro_TMP_FontAssetUtilitiesWrap.cs b/Assets/XLua/Gen/TMPro_TMP_FontAssetUtilitiesWrap.cs deleted file mode 100644 index 528d2fb9a..000000000 --- a/Assets/XLua/Gen/TMPro_TMP_FontAssetUtilitiesWrap.cs +++ /dev/null @@ -1,198 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class TMProTMP_FontAssetUtilitiesWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(TMPro.TMP_FontAssetUtilities); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 4, 1, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetCharacterFromFontAsset", _m_GetCharacterFromFontAsset_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetCharacterFromFontAssets", _m_GetCharacterFromFontAssets_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetSpriteCharacterFromSpriteAsset", _m_GetSpriteCharacterFromSpriteAsset_xlua_st_); - - - - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "instance", _g_get_instance); - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new TMPro.TMP_FontAssetUtilities(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to TMPro.TMP_FontAssetUtilities constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetCharacterFromFontAsset_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - uint _unicode = LuaAPI.xlua_touint(L, 1); - TMPro.TMP_FontAsset _sourceFontAsset = (TMPro.TMP_FontAsset)translator.GetObject(L, 2, typeof(TMPro.TMP_FontAsset)); - bool _includeFallbacks = LuaAPI.lua_toboolean(L, 3); - TMPro.FontStyles _fontStyle;translator.Get(L, 4, out _fontStyle); - TMPro.FontWeight _fontWeight;translator.Get(L, 5, out _fontWeight); - bool _isAlternativeTypeface; - - var gen_ret = TMPro.TMP_FontAssetUtilities.GetCharacterFromFontAsset( _unicode, _sourceFontAsset, _includeFallbacks, _fontStyle, _fontWeight, out _isAlternativeTypeface ); - translator.Push(L, gen_ret); - LuaAPI.lua_pushboolean(L, _isAlternativeTypeface); - - - - - return 2; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetCharacterFromFontAssets_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - uint _unicode = LuaAPI.xlua_touint(L, 1); - TMPro.TMP_FontAsset _sourceFontAsset = (TMPro.TMP_FontAsset)translator.GetObject(L, 2, typeof(TMPro.TMP_FontAsset)); - System.Collections.Generic.List _fontAssets = (System.Collections.Generic.List)translator.GetObject(L, 3, typeof(System.Collections.Generic.List)); - bool _includeFallbacks = LuaAPI.lua_toboolean(L, 4); - TMPro.FontStyles _fontStyle;translator.Get(L, 5, out _fontStyle); - TMPro.FontWeight _fontWeight;translator.Get(L, 6, out _fontWeight); - bool _isAlternativeTypeface; - - var gen_ret = TMPro.TMP_FontAssetUtilities.GetCharacterFromFontAssets( _unicode, _sourceFontAsset, _fontAssets, _includeFallbacks, _fontStyle, _fontWeight, out _isAlternativeTypeface ); - translator.Push(L, gen_ret); - LuaAPI.lua_pushboolean(L, _isAlternativeTypeface); - - - - - return 2; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetSpriteCharacterFromSpriteAsset_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - uint _unicode = LuaAPI.xlua_touint(L, 1); - TMPro.TMP_SpriteAsset _spriteAsset = (TMPro.TMP_SpriteAsset)translator.GetObject(L, 2, typeof(TMPro.TMP_SpriteAsset)); - bool _includeFallbacks = LuaAPI.lua_toboolean(L, 3); - - var gen_ret = TMPro.TMP_FontAssetUtilities.GetSpriteCharacterFromSpriteAsset( _unicode, _spriteAsset, _includeFallbacks ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_instance(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, TMPro.TMP_FontAssetUtilities.instance); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - - - - - } -} diff --git a/Assets/XLua/Gen/TMPro_TMP_FontFeatureTableWrap.cs b/Assets/XLua/Gen/TMPro_TMP_FontFeatureTableWrap.cs deleted file mode 100644 index 72d5842bc..000000000 --- a/Assets/XLua/Gen/TMPro_TMP_FontFeatureTableWrap.cs +++ /dev/null @@ -1,143 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class TMProTMP_FontFeatureTableWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(TMPro.TMP_FontFeatureTable); - Utils.BeginObjectRegister(type, L, translator, 0, 1, 1, 1); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SortGlyphPairAdjustmentRecords", _m_SortGlyphPairAdjustmentRecords); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "glyphPairAdjustmentRecords", _g_get_glyphPairAdjustmentRecords); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "glyphPairAdjustmentRecords", _s_set_glyphPairAdjustmentRecords); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new TMPro.TMP_FontFeatureTable(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to TMPro.TMP_FontFeatureTable constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SortGlyphPairAdjustmentRecords(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - TMPro.TMP_FontFeatureTable gen_to_be_invoked = (TMPro.TMP_FontFeatureTable)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.SortGlyphPairAdjustmentRecords( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_glyphPairAdjustmentRecords(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_FontFeatureTable gen_to_be_invoked = (TMPro.TMP_FontFeatureTable)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.glyphPairAdjustmentRecords); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_glyphPairAdjustmentRecords(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_FontFeatureTable gen_to_be_invoked = (TMPro.TMP_FontFeatureTable)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.glyphPairAdjustmentRecords = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/TMPro_TMP_FontUtilitiesWrap.cs b/Assets/XLua/Gen/TMPro_TMP_FontUtilitiesWrap.cs deleted file mode 100644 index fefecc57a..000000000 --- a/Assets/XLua/Gen/TMPro_TMP_FontUtilitiesWrap.cs +++ /dev/null @@ -1,118 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class TMProTMP_FontUtilitiesWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(TMPro.TMP_FontUtilities); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 2, 0, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "SearchForCharacter", _m_SearchForCharacter_xlua_st_); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "TMPro.TMP_FontUtilities does not have a constructor!"); - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SearchForCharacter_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - TMPro.TMP_FontAsset _font = (TMPro.TMP_FontAsset)translator.GetObject(L, 1, typeof(TMPro.TMP_FontAsset)); - uint _unicode = LuaAPI.xlua_touint(L, 2); - TMPro.TMP_Character _character; - - var gen_ret = TMPro.TMP_FontUtilities.SearchForCharacter( _font, _unicode, out _character ); - translator.Push(L, gen_ret); - translator.Push(L, _character); - - - - - return 2; - } - if(gen_param_count == 2&& translator.Assignable>(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - System.Collections.Generic.List _fonts = (System.Collections.Generic.List)translator.GetObject(L, 1, typeof(System.Collections.Generic.List)); - uint _unicode = LuaAPI.xlua_touint(L, 2); - TMPro.TMP_Character _character; - - var gen_ret = TMPro.TMP_FontUtilities.SearchForCharacter( _fonts, _unicode, out _character ); - translator.Push(L, gen_ret); - translator.Push(L, _character); - - - - - return 2; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to TMPro.TMP_FontUtilities.SearchForCharacter!"); - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/TMPro_TMP_FontWeightPairWrap.cs b/Assets/XLua/Gen/TMPro_TMP_FontWeightPairWrap.cs deleted file mode 100644 index a8d68bd18..000000000 --- a/Assets/XLua/Gen/TMPro_TMP_FontWeightPairWrap.cs +++ /dev/null @@ -1,148 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class TMProTMP_FontWeightPairWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(TMPro.TMP_FontWeightPair); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 2, 2); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "regularTypeface", _g_get_regularTypeface); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "italicTypeface", _g_get_italicTypeface); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "regularTypeface", _s_set_regularTypeface); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "italicTypeface", _s_set_italicTypeface); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(TMPro.TMP_FontWeightPair)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to TMPro.TMP_FontWeightPair constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_regularTypeface(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_FontWeightPair gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.regularTypeface); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_italicTypeface(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_FontWeightPair gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.italicTypeface); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_regularTypeface(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_FontWeightPair gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.regularTypeface = (TMPro.TMP_FontAsset)translator.GetObject(L, 2, typeof(TMPro.TMP_FontAsset)); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_italicTypeface(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_FontWeightPair gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.italicTypeface = (TMPro.TMP_FontAsset)translator.GetObject(L, 2, typeof(TMPro.TMP_FontAsset)); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/TMPro_TMP_GlyphAdjustmentRecordWrap.cs b/Assets/XLua/Gen/TMPro_TMP_GlyphAdjustmentRecordWrap.cs deleted file mode 100644 index 93d6ee5df..000000000 --- a/Assets/XLua/Gen/TMPro_TMP_GlyphAdjustmentRecordWrap.cs +++ /dev/null @@ -1,159 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class TMProTMP_GlyphAdjustmentRecordWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(TMPro.TMP_GlyphAdjustmentRecord); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 2, 2); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "glyphIndex", _g_get_glyphIndex); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "glyphValueRecord", _g_get_glyphValueRecord); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "glyphIndex", _s_set_glyphIndex); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "glyphValueRecord", _s_set_glyphValueRecord); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 3 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && translator.Assignable(L, 3)) - { - uint _glyphIndex = LuaAPI.xlua_touint(L, 2); - TMPro.TMP_GlyphValueRecord _glyphValueRecord;translator.Get(L, 3, out _glyphValueRecord); - - var gen_ret = new TMPro.TMP_GlyphAdjustmentRecord(_glyphIndex, _glyphValueRecord); - translator.Push(L, gen_ret); - - return 1; - } - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(TMPro.TMP_GlyphAdjustmentRecord)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to TMPro.TMP_GlyphAdjustmentRecord constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_glyphIndex(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_GlyphAdjustmentRecord gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushuint(L, gen_to_be_invoked.glyphIndex); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_glyphValueRecord(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_GlyphAdjustmentRecord gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.glyphValueRecord); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_glyphIndex(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_GlyphAdjustmentRecord gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.glyphIndex = LuaAPI.xlua_touint(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_glyphValueRecord(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_GlyphAdjustmentRecord gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - TMPro.TMP_GlyphValueRecord gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.glyphValueRecord = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/TMPro_TMP_GlyphPairAdjustmentRecordWrap.cs b/Assets/XLua/Gen/TMPro_TMP_GlyphPairAdjustmentRecordWrap.cs deleted file mode 100644 index 811f9b2b2..000000000 --- a/Assets/XLua/Gen/TMPro_TMP_GlyphPairAdjustmentRecordWrap.cs +++ /dev/null @@ -1,182 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class TMProTMP_GlyphPairAdjustmentRecordWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(TMPro.TMP_GlyphPairAdjustmentRecord); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 3, 3); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "firstAdjustmentRecord", _g_get_firstAdjustmentRecord); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "secondAdjustmentRecord", _g_get_secondAdjustmentRecord); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "featureLookupFlags", _g_get_featureLookupFlags); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "firstAdjustmentRecord", _s_set_firstAdjustmentRecord); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "secondAdjustmentRecord", _s_set_secondAdjustmentRecord); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "featureLookupFlags", _s_set_featureLookupFlags); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 3 && translator.Assignable(L, 2) && translator.Assignable(L, 3)) - { - TMPro.TMP_GlyphAdjustmentRecord _firstAdjustmentRecord;translator.Get(L, 2, out _firstAdjustmentRecord); - TMPro.TMP_GlyphAdjustmentRecord _secondAdjustmentRecord;translator.Get(L, 3, out _secondAdjustmentRecord); - - var gen_ret = new TMPro.TMP_GlyphPairAdjustmentRecord(_firstAdjustmentRecord, _secondAdjustmentRecord); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to TMPro.TMP_GlyphPairAdjustmentRecord constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_firstAdjustmentRecord(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_GlyphPairAdjustmentRecord gen_to_be_invoked = (TMPro.TMP_GlyphPairAdjustmentRecord)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.firstAdjustmentRecord); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_secondAdjustmentRecord(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_GlyphPairAdjustmentRecord gen_to_be_invoked = (TMPro.TMP_GlyphPairAdjustmentRecord)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.secondAdjustmentRecord); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_featureLookupFlags(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_GlyphPairAdjustmentRecord gen_to_be_invoked = (TMPro.TMP_GlyphPairAdjustmentRecord)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.featureLookupFlags); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_firstAdjustmentRecord(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_GlyphPairAdjustmentRecord gen_to_be_invoked = (TMPro.TMP_GlyphPairAdjustmentRecord)translator.FastGetCSObj(L, 1); - TMPro.TMP_GlyphAdjustmentRecord gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.firstAdjustmentRecord = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_secondAdjustmentRecord(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_GlyphPairAdjustmentRecord gen_to_be_invoked = (TMPro.TMP_GlyphPairAdjustmentRecord)translator.FastGetCSObj(L, 1); - TMPro.TMP_GlyphAdjustmentRecord gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.secondAdjustmentRecord = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_featureLookupFlags(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_GlyphPairAdjustmentRecord gen_to_be_invoked = (TMPro.TMP_GlyphPairAdjustmentRecord)translator.FastGetCSObj(L, 1); - TMPro.FontFeatureLookupFlags gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.featureLookupFlags = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/TMPro_TMP_GlyphValueRecordWrap.cs b/Assets/XLua/Gen/TMPro_TMP_GlyphValueRecordWrap.cs deleted file mode 100644 index 3350c50d0..000000000 --- a/Assets/XLua/Gen/TMPro_TMP_GlyphValueRecordWrap.cs +++ /dev/null @@ -1,253 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class TMProTMP_GlyphValueRecordWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(TMPro.TMP_GlyphValueRecord); - Utils.BeginObjectRegister(type, L, translator, 1, 0, 4, 4); - Utils.RegisterFunc(L, Utils.OBJ_META_IDX, "__add", __AddMeta); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "xPlacement", _g_get_xPlacement); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "yPlacement", _g_get_yPlacement); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "xAdvance", _g_get_xAdvance); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "yAdvance", _g_get_yAdvance); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "xPlacement", _s_set_xPlacement); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "yPlacement", _s_set_yPlacement); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "xAdvance", _s_set_xAdvance); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "yAdvance", _s_set_yAdvance); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 5 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - float _xPlacement = (float)LuaAPI.lua_tonumber(L, 2); - float _yPlacement = (float)LuaAPI.lua_tonumber(L, 3); - float _xAdvance = (float)LuaAPI.lua_tonumber(L, 4); - float _yAdvance = (float)LuaAPI.lua_tonumber(L, 5); - - var gen_ret = new TMPro.TMP_GlyphValueRecord(_xPlacement, _yPlacement, _xAdvance, _yAdvance); - translator.Push(L, gen_ret); - - return 1; - } - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(TMPro.TMP_GlyphValueRecord)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to TMPro.TMP_GlyphValueRecord constructor!"); - - } - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __AddMeta(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - if (translator.Assignable(L, 1) && translator.Assignable(L, 2)) - { - TMPro.TMP_GlyphValueRecord leftside;translator.Get(L, 1, out leftside); - TMPro.TMP_GlyphValueRecord rightside;translator.Get(L, 2, out rightside); - - translator.Push(L, leftside + rightside); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to right hand of + operator, need TMPro.TMP_GlyphValueRecord!"); - - } - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_xPlacement(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_GlyphValueRecord gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.xPlacement); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_yPlacement(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_GlyphValueRecord gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.yPlacement); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_xAdvance(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_GlyphValueRecord gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.xAdvance); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_yAdvance(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_GlyphValueRecord gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.yAdvance); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_xPlacement(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_GlyphValueRecord gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.xPlacement = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_yPlacement(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_GlyphValueRecord gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.yPlacement = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_xAdvance(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_GlyphValueRecord gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.xAdvance = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_yAdvance(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_GlyphValueRecord gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.yAdvance = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/TMPro_TMP_GlyphWrap.cs b/Assets/XLua/Gen/TMPro_TMP_GlyphWrap.cs deleted file mode 100644 index ae5af8ba6..000000000 --- a/Assets/XLua/Gen/TMPro_TMP_GlyphWrap.cs +++ /dev/null @@ -1,112 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class TMProTMP_GlyphWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(TMPro.TMP_Glyph); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 2, 0, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Clone", _m_Clone_xlua_st_); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new TMPro.TMP_Glyph(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to TMPro.TMP_Glyph constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Clone_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - TMPro.TMP_Glyph _source = (TMPro.TMP_Glyph)translator.GetObject(L, 1, typeof(TMPro.TMP_Glyph)); - - var gen_ret = TMPro.TMP_Glyph.Clone( _source ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/TMPro_TMP_InputValidatorWrap.cs b/Assets/XLua/Gen/TMPro_TMP_InputValidatorWrap.cs deleted file mode 100644 index 207a478ad..000000000 --- a/Assets/XLua/Gen/TMPro_TMP_InputValidatorWrap.cs +++ /dev/null @@ -1,103 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class TMProTMP_InputValidatorWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(TMPro.TMP_InputValidator); - Utils.BeginObjectRegister(type, L, translator, 0, 1, 0, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Validate", _m_Validate); - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "TMPro.TMP_InputValidator does not have a constructor!"); - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Validate(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - TMPro.TMP_InputValidator gen_to_be_invoked = (TMPro.TMP_InputValidator)translator.FastGetCSObj(L, 1); - - - - { - string _text = LuaAPI.lua_tostring(L, 2); - int _pos = LuaAPI.xlua_tointeger(L, 3); - char _ch = (char)LuaAPI.xlua_tointeger(L, 4); - - var gen_ret = gen_to_be_invoked.Validate( ref _text, ref _pos, _ch ); - LuaAPI.xlua_pushinteger(L, gen_ret); - LuaAPI.lua_pushstring(L, _text); - - LuaAPI.xlua_pushinteger(L, _pos); - - - - - return 3; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/TMPro_TMP_LineInfoWrap.cs b/Assets/XLua/Gen/TMPro_TMP_LineInfoWrap.cs deleted file mode 100644 index 459daffba..000000000 --- a/Assets/XLua/Gen/TMPro_TMP_LineInfoWrap.cs +++ /dev/null @@ -1,711 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class TMProTMP_LineInfoWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(TMPro.TMP_LineInfo); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 19, 19); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "characterCount", _g_get_characterCount); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "visibleCharacterCount", _g_get_visibleCharacterCount); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "spaceCount", _g_get_spaceCount); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "wordCount", _g_get_wordCount); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "firstCharacterIndex", _g_get_firstCharacterIndex); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "firstVisibleCharacterIndex", _g_get_firstVisibleCharacterIndex); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "lastCharacterIndex", _g_get_lastCharacterIndex); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "lastVisibleCharacterIndex", _g_get_lastVisibleCharacterIndex); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "length", _g_get_length); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "lineHeight", _g_get_lineHeight); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "ascender", _g_get_ascender); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "baseline", _g_get_baseline); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "descender", _g_get_descender); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "maxAdvance", _g_get_maxAdvance); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "width", _g_get_width); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "marginLeft", _g_get_marginLeft); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "marginRight", _g_get_marginRight); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "alignment", _g_get_alignment); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "lineExtents", _g_get_lineExtents); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "characterCount", _s_set_characterCount); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "visibleCharacterCount", _s_set_visibleCharacterCount); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "spaceCount", _s_set_spaceCount); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "wordCount", _s_set_wordCount); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "firstCharacterIndex", _s_set_firstCharacterIndex); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "firstVisibleCharacterIndex", _s_set_firstVisibleCharacterIndex); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "lastCharacterIndex", _s_set_lastCharacterIndex); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "lastVisibleCharacterIndex", _s_set_lastVisibleCharacterIndex); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "length", _s_set_length); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "lineHeight", _s_set_lineHeight); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "ascender", _s_set_ascender); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "baseline", _s_set_baseline); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "descender", _s_set_descender); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "maxAdvance", _s_set_maxAdvance); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "width", _s_set_width); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "marginLeft", _s_set_marginLeft); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "marginRight", _s_set_marginRight); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "alignment", _s_set_alignment); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "lineExtents", _s_set_lineExtents); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(TMPro.TMP_LineInfo)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to TMPro.TMP_LineInfo constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_characterCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_LineInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.characterCount); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_visibleCharacterCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_LineInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.visibleCharacterCount); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_spaceCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_LineInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.spaceCount); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_wordCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_LineInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.wordCount); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_firstCharacterIndex(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_LineInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.firstCharacterIndex); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_firstVisibleCharacterIndex(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_LineInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.firstVisibleCharacterIndex); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_lastCharacterIndex(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_LineInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.lastCharacterIndex); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_lastVisibleCharacterIndex(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_LineInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.lastVisibleCharacterIndex); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_length(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_LineInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.length); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_lineHeight(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_LineInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.lineHeight); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_ascender(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_LineInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.ascender); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_baseline(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_LineInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.baseline); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_descender(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_LineInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.descender); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_maxAdvance(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_LineInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.maxAdvance); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_width(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_LineInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.width); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_marginLeft(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_LineInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.marginLeft); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_marginRight(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_LineInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.marginRight); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_alignment(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_LineInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.alignment); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_lineExtents(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_LineInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.lineExtents); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_characterCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_LineInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.characterCount = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_visibleCharacterCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_LineInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.visibleCharacterCount = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_spaceCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_LineInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.spaceCount = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_wordCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_LineInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.wordCount = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_firstCharacterIndex(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_LineInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.firstCharacterIndex = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_firstVisibleCharacterIndex(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_LineInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.firstVisibleCharacterIndex = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_lastCharacterIndex(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_LineInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.lastCharacterIndex = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_lastVisibleCharacterIndex(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_LineInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.lastVisibleCharacterIndex = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_length(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_LineInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.length = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_lineHeight(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_LineInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.lineHeight = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_ascender(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_LineInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.ascender = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_baseline(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_LineInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.baseline = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_descender(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_LineInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.descender = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_maxAdvance(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_LineInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.maxAdvance = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_width(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_LineInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.width = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_marginLeft(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_LineInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.marginLeft = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_marginRight(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_LineInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.marginRight = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_alignment(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_LineInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - TMPro.HorizontalAlignmentOptions gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.alignment = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_lineExtents(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_LineInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - TMPro.Extents gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.lineExtents = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/TMPro_TMP_LinkInfoWrap.cs b/Assets/XLua/Gen/TMPro_TMP_LinkInfoWrap.cs deleted file mode 100644 index 52928f3a0..000000000 --- a/Assets/XLua/Gen/TMPro_TMP_LinkInfoWrap.cs +++ /dev/null @@ -1,342 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class TMProTMP_LinkInfoWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(TMPro.TMP_LinkInfo); - Utils.BeginObjectRegister(type, L, translator, 0, 2, 6, 6); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetLinkText", _m_GetLinkText); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetLinkID", _m_GetLinkID); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "textComponent", _g_get_textComponent); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "hashCode", _g_get_hashCode); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "linkIdFirstCharacterIndex", _g_get_linkIdFirstCharacterIndex); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "linkIdLength", _g_get_linkIdLength); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "linkTextfirstCharacterIndex", _g_get_linkTextfirstCharacterIndex); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "linkTextLength", _g_get_linkTextLength); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "textComponent", _s_set_textComponent); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "hashCode", _s_set_hashCode); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "linkIdFirstCharacterIndex", _s_set_linkIdFirstCharacterIndex); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "linkIdLength", _s_set_linkIdLength); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "linkTextfirstCharacterIndex", _s_set_linkTextfirstCharacterIndex); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "linkTextLength", _s_set_linkTextLength); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(TMPro.TMP_LinkInfo)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to TMPro.TMP_LinkInfo constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetLinkText(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - TMPro.TMP_LinkInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - - var gen_ret = gen_to_be_invoked.GetLinkText( ); - LuaAPI.lua_pushstring(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetLinkID(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - TMPro.TMP_LinkInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - - var gen_ret = gen_to_be_invoked.GetLinkID( ); - LuaAPI.lua_pushstring(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_textComponent(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_LinkInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.textComponent); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_hashCode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_LinkInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.hashCode); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_linkIdFirstCharacterIndex(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_LinkInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.linkIdFirstCharacterIndex); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_linkIdLength(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_LinkInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.linkIdLength); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_linkTextfirstCharacterIndex(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_LinkInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.linkTextfirstCharacterIndex); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_linkTextLength(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_LinkInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.linkTextLength); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_textComponent(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_LinkInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.textComponent = (TMPro.TMP_Text)translator.GetObject(L, 2, typeof(TMPro.TMP_Text)); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_hashCode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_LinkInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.hashCode = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_linkIdFirstCharacterIndex(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_LinkInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.linkIdFirstCharacterIndex = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_linkIdLength(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_LinkInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.linkIdLength = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_linkTextfirstCharacterIndex(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_LinkInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.linkTextfirstCharacterIndex = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_linkTextLength(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_LinkInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.linkTextLength = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/TMPro_TMP_MaterialManagerWrap.cs b/Assets/XLua/Gen/TMPro_TMP_MaterialManagerWrap.cs deleted file mode 100644 index e6cb3ba6a..000000000 --- a/Assets/XLua/Gen/TMPro_TMP_MaterialManagerWrap.cs +++ /dev/null @@ -1,506 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class TMProTMP_MaterialManagerWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(TMPro.TMP_MaterialManager); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 17, 0, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetStencilMaterial", _m_GetStencilMaterial_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "ReleaseStencilMaterial", _m_ReleaseStencilMaterial_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetBaseMaterial", _m_GetBaseMaterial_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "SetStencil", _m_SetStencil_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "AddMaskingMaterial", _m_AddMaskingMaterial_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "RemoveStencilMaterial", _m_RemoveStencilMaterial_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "ReleaseBaseMaterial", _m_ReleaseBaseMaterial_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "ClearMaterials", _m_ClearMaterials_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetStencilID", _m_GetStencilID_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetMaterialForRendering", _m_GetMaterialForRendering_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetFallbackMaterial", _m_GetFallbackMaterial_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "AddFallbackMaterialReference", _m_AddFallbackMaterialReference_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "RemoveFallbackMaterialReference", _m_RemoveFallbackMaterialReference_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "CleanupFallbackMaterials", _m_CleanupFallbackMaterials_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "ReleaseFallbackMaterial", _m_ReleaseFallbackMaterial_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "CopyMaterialPresetProperties", _m_CopyMaterialPresetProperties_xlua_st_); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "TMPro.TMP_MaterialManager does not have a constructor!"); - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetStencilMaterial_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Material _baseMaterial = (UnityEngine.Material)translator.GetObject(L, 1, typeof(UnityEngine.Material)); - int _stencilID = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = TMPro.TMP_MaterialManager.GetStencilMaterial( _baseMaterial, _stencilID ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ReleaseStencilMaterial_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Material _stencilMaterial = (UnityEngine.Material)translator.GetObject(L, 1, typeof(UnityEngine.Material)); - - TMPro.TMP_MaterialManager.ReleaseStencilMaterial( _stencilMaterial ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetBaseMaterial_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Material _stencilMaterial = (UnityEngine.Material)translator.GetObject(L, 1, typeof(UnityEngine.Material)); - - var gen_ret = TMPro.TMP_MaterialManager.GetBaseMaterial( _stencilMaterial ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetStencil_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Material _material = (UnityEngine.Material)translator.GetObject(L, 1, typeof(UnityEngine.Material)); - int _stencilID = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = TMPro.TMP_MaterialManager.SetStencil( _material, _stencilID ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AddMaskingMaterial_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Material _baseMaterial = (UnityEngine.Material)translator.GetObject(L, 1, typeof(UnityEngine.Material)); - UnityEngine.Material _stencilMaterial = (UnityEngine.Material)translator.GetObject(L, 2, typeof(UnityEngine.Material)); - int _stencilID = LuaAPI.xlua_tointeger(L, 3); - - TMPro.TMP_MaterialManager.AddMaskingMaterial( _baseMaterial, _stencilMaterial, _stencilID ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RemoveStencilMaterial_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Material _stencilMaterial = (UnityEngine.Material)translator.GetObject(L, 1, typeof(UnityEngine.Material)); - - TMPro.TMP_MaterialManager.RemoveStencilMaterial( _stencilMaterial ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ReleaseBaseMaterial_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Material _baseMaterial = (UnityEngine.Material)translator.GetObject(L, 1, typeof(UnityEngine.Material)); - - TMPro.TMP_MaterialManager.ReleaseBaseMaterial( _baseMaterial ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ClearMaterials_xlua_st_(RealStatePtr L) - { - try { - - - - - { - - TMPro.TMP_MaterialManager.ClearMaterials( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetStencilID_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.GameObject _obj = (UnityEngine.GameObject)translator.GetObject(L, 1, typeof(UnityEngine.GameObject)); - - var gen_ret = TMPro.TMP_MaterialManager.GetStencilID( _obj ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetMaterialForRendering_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.UI.MaskableGraphic _graphic = (UnityEngine.UI.MaskableGraphic)translator.GetObject(L, 1, typeof(UnityEngine.UI.MaskableGraphic)); - UnityEngine.Material _baseMaterial = (UnityEngine.Material)translator.GetObject(L, 2, typeof(UnityEngine.Material)); - - var gen_ret = TMPro.TMP_MaterialManager.GetMaterialForRendering( _graphic, _baseMaterial ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetFallbackMaterial_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Material _sourceMaterial = (UnityEngine.Material)translator.GetObject(L, 1, typeof(UnityEngine.Material)); - UnityEngine.Material _targetMaterial = (UnityEngine.Material)translator.GetObject(L, 2, typeof(UnityEngine.Material)); - - var gen_ret = TMPro.TMP_MaterialManager.GetFallbackMaterial( _sourceMaterial, _targetMaterial ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AddFallbackMaterialReference_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Material _targetMaterial = (UnityEngine.Material)translator.GetObject(L, 1, typeof(UnityEngine.Material)); - - TMPro.TMP_MaterialManager.AddFallbackMaterialReference( _targetMaterial ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RemoveFallbackMaterialReference_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Material _targetMaterial = (UnityEngine.Material)translator.GetObject(L, 1, typeof(UnityEngine.Material)); - - TMPro.TMP_MaterialManager.RemoveFallbackMaterialReference( _targetMaterial ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CleanupFallbackMaterials_xlua_st_(RealStatePtr L) - { - try { - - - - - { - - TMPro.TMP_MaterialManager.CleanupFallbackMaterials( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ReleaseFallbackMaterial_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Material _fallbackMaterial = (UnityEngine.Material)translator.GetObject(L, 1, typeof(UnityEngine.Material)); - - TMPro.TMP_MaterialManager.ReleaseFallbackMaterial( _fallbackMaterial ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CopyMaterialPresetProperties_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Material _source = (UnityEngine.Material)translator.GetObject(L, 1, typeof(UnityEngine.Material)); - UnityEngine.Material _destination = (UnityEngine.Material)translator.GetObject(L, 2, typeof(UnityEngine.Material)); - - TMPro.TMP_MaterialManager.CopyMaterialPresetProperties( _source, _destination ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/TMPro_TMP_MaterialReferenceWrap.cs b/Assets/XLua/Gen/TMPro_TMP_MaterialReferenceWrap.cs deleted file mode 100644 index eb0a22682..000000000 --- a/Assets/XLua/Gen/TMPro_TMP_MaterialReferenceWrap.cs +++ /dev/null @@ -1,148 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class TMProTMP_MaterialReferenceWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(TMPro.TMP_MaterialReference); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 2, 2); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "material", _g_get_material); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "referenceCount", _g_get_referenceCount); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "material", _s_set_material); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "referenceCount", _s_set_referenceCount); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(TMPro.TMP_MaterialReference)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to TMPro.TMP_MaterialReference constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_material(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_MaterialReference gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.material); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_referenceCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_MaterialReference gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.referenceCount); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_material(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_MaterialReference gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.material = (UnityEngine.Material)translator.GetObject(L, 2, typeof(UnityEngine.Material)); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_referenceCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_MaterialReference gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.referenceCount = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/TMPro_TMP_MathWrap.cs b/Assets/XLua/Gen/TMPro_TMP_MathWrap.cs deleted file mode 100644 index 22765c8d6..000000000 --- a/Assets/XLua/Gen/TMPro_TMP_MathWrap.cs +++ /dev/null @@ -1,183 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class TMProTMP_MathWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(TMPro.TMP_Math); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 9, 2, 2); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Approximately", _m_Approximately_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Mod", _m_Mod_xlua_st_); - - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "FLOAT_MAX", TMPro.TMP_Math.FLOAT_MAX); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "FLOAT_MIN", TMPro.TMP_Math.FLOAT_MIN); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "INT_MAX", TMPro.TMP_Math.INT_MAX); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "INT_MIN", TMPro.TMP_Math.INT_MIN); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "FLOAT_UNSET", TMPro.TMP_Math.FLOAT_UNSET); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "INT_UNSET", TMPro.TMP_Math.INT_UNSET); - - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "MAX_16BIT", _g_get_MAX_16BIT); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "MIN_16BIT", _g_get_MIN_16BIT); - - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "MAX_16BIT", _s_set_MAX_16BIT); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "MIN_16BIT", _s_set_MIN_16BIT); - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "TMPro.TMP_Math does not have a constructor!"); - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Approximately_xlua_st_(RealStatePtr L) - { - try { - - - - - { - float _a = (float)LuaAPI.lua_tonumber(L, 1); - float _b = (float)LuaAPI.lua_tonumber(L, 2); - - var gen_ret = TMPro.TMP_Math.Approximately( _a, _b ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Mod_xlua_st_(RealStatePtr L) - { - try { - - - - - { - int _a = LuaAPI.xlua_tointeger(L, 1); - int _b = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = TMPro.TMP_Math.Mod( _a, _b ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_MAX_16BIT(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.PushUnityEngineVector2(L, TMPro.TMP_Math.MAX_16BIT); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_MIN_16BIT(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.PushUnityEngineVector2(L, TMPro.TMP_Math.MIN_16BIT); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_MAX_16BIT(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - UnityEngine.Vector2 gen_value;translator.Get(L, 1, out gen_value); - TMPro.TMP_Math.MAX_16BIT = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_MIN_16BIT(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - UnityEngine.Vector2 gen_value;translator.Get(L, 1, out gen_value); - TMPro.TMP_Math.MIN_16BIT = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/TMPro_TMP_MeshInfoWrap.cs b/Assets/XLua/Gen/TMPro_TMP_MeshInfoWrap.cs deleted file mode 100644 index 4dfce1876..000000000 --- a/Assets/XLua/Gen/TMPro_TMP_MeshInfoWrap.cs +++ /dev/null @@ -1,665 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class TMProTMP_MeshInfoWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(TMPro.TMP_MeshInfo); - Utils.BeginObjectRegister(type, L, translator, 0, 5, 10, 10); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ResizeMeshInfo", _m_ResizeMeshInfo); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Clear", _m_Clear); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ClearUnusedVertices", _m_ClearUnusedVertices); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SortGeometry", _m_SortGeometry); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SwapVertexData", _m_SwapVertexData); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "mesh", _g_get_mesh); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "vertexCount", _g_get_vertexCount); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "vertices", _g_get_vertices); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "normals", _g_get_normals); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "tangents", _g_get_tangents); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "uvs0", _g_get_uvs0); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "uvs2", _g_get_uvs2); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "colors32", _g_get_colors32); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "triangles", _g_get_triangles); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "material", _g_get_material); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "mesh", _s_set_mesh); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "vertexCount", _s_set_vertexCount); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "vertices", _s_set_vertices); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "normals", _s_set_normals); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "tangents", _s_set_tangents); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "uvs0", _s_set_uvs0); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "uvs2", _s_set_uvs2); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "colors32", _s_set_colors32); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "triangles", _s_set_triangles); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "material", _s_set_material); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 3 && translator.Assignable(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - UnityEngine.Mesh _mesh = (UnityEngine.Mesh)translator.GetObject(L, 2, typeof(UnityEngine.Mesh)); - int _size = LuaAPI.xlua_tointeger(L, 3); - - var gen_ret = new TMPro.TMP_MeshInfo(_mesh, _size); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 4 && translator.Assignable(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 4)) - { - UnityEngine.Mesh _mesh = (UnityEngine.Mesh)translator.GetObject(L, 2, typeof(UnityEngine.Mesh)); - int _size = LuaAPI.xlua_tointeger(L, 3); - bool _isVolumetric = LuaAPI.lua_toboolean(L, 4); - - var gen_ret = new TMPro.TMP_MeshInfo(_mesh, _size, _isVolumetric); - translator.Push(L, gen_ret); - - return 1; - } - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(TMPro.TMP_MeshInfo)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to TMPro.TMP_MeshInfo constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ResizeMeshInfo(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - TMPro.TMP_MeshInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - int _size = LuaAPI.xlua_tointeger(L, 2); - - gen_to_be_invoked.ResizeMeshInfo( _size ); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 0; - } - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) - { - int _size = LuaAPI.xlua_tointeger(L, 2); - bool _isVolumetric = LuaAPI.lua_toboolean(L, 3); - - gen_to_be_invoked.ResizeMeshInfo( _size, _isVolumetric ); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to TMPro.TMP_MeshInfo.ResizeMeshInfo!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Clear(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - TMPro.TMP_MeshInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - gen_to_be_invoked.Clear( ); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 0; - } - if(gen_param_count == 2&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)) - { - bool _uploadChanges = LuaAPI.lua_toboolean(L, 2); - - gen_to_be_invoked.Clear( _uploadChanges ); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to TMPro.TMP_MeshInfo.Clear!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ClearUnusedVertices(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - TMPro.TMP_MeshInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - gen_to_be_invoked.ClearUnusedVertices( ); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 0; - } - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - int _startIndex = LuaAPI.xlua_tointeger(L, 2); - - gen_to_be_invoked.ClearUnusedVertices( _startIndex ); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 0; - } - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) - { - int _startIndex = LuaAPI.xlua_tointeger(L, 2); - bool _updateMesh = LuaAPI.lua_toboolean(L, 3); - - gen_to_be_invoked.ClearUnusedVertices( _startIndex, _updateMesh ); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to TMPro.TMP_MeshInfo.ClearUnusedVertices!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SortGeometry(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - TMPro.TMP_MeshInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - TMPro.VertexSortingOrder _order;translator.Get(L, 2, out _order); - - gen_to_be_invoked.SortGeometry( _order ); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 0; - } - if(gen_param_count == 2&& translator.Assignable>(L, 2)) - { - System.Collections.Generic.IList _sortingOrder = (System.Collections.Generic.IList)translator.GetObject(L, 2, typeof(System.Collections.Generic.IList)); - - gen_to_be_invoked.SortGeometry( _sortingOrder ); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to TMPro.TMP_MeshInfo.SortGeometry!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SwapVertexData(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - TMPro.TMP_MeshInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - int _src = LuaAPI.xlua_tointeger(L, 2); - int _dst = LuaAPI.xlua_tointeger(L, 3); - - gen_to_be_invoked.SwapVertexData( _src, _dst ); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_mesh(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_MeshInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.mesh); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_vertexCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_MeshInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.vertexCount); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_vertices(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_MeshInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.vertices); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_normals(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_MeshInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.normals); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_tangents(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_MeshInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.tangents); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_uvs0(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_MeshInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.uvs0); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_uvs2(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_MeshInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.uvs2); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_colors32(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_MeshInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.colors32); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_triangles(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_MeshInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.triangles); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_material(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_MeshInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.material); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_mesh(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_MeshInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.mesh = (UnityEngine.Mesh)translator.GetObject(L, 2, typeof(UnityEngine.Mesh)); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_vertexCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_MeshInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.vertexCount = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_vertices(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_MeshInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.vertices = (UnityEngine.Vector3[])translator.GetObject(L, 2, typeof(UnityEngine.Vector3[])); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_normals(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_MeshInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.normals = (UnityEngine.Vector3[])translator.GetObject(L, 2, typeof(UnityEngine.Vector3[])); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_tangents(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_MeshInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.tangents = (UnityEngine.Vector4[])translator.GetObject(L, 2, typeof(UnityEngine.Vector4[])); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_uvs0(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_MeshInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.uvs0 = (UnityEngine.Vector2[])translator.GetObject(L, 2, typeof(UnityEngine.Vector2[])); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_uvs2(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_MeshInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.uvs2 = (UnityEngine.Vector2[])translator.GetObject(L, 2, typeof(UnityEngine.Vector2[])); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_colors32(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_MeshInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.colors32 = (UnityEngine.Color32[])translator.GetObject(L, 2, typeof(UnityEngine.Color32[])); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_triangles(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_MeshInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.triangles = (int[])translator.GetObject(L, 2, typeof(int[])); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_material(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_MeshInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.material = (UnityEngine.Material)translator.GetObject(L, 2, typeof(UnityEngine.Material)); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/TMPro_TMP_OffsetWrap.cs b/Assets/XLua/Gen/TMPro_TMP_OffsetWrap.cs deleted file mode 100644 index 1fbf2e378..000000000 --- a/Assets/XLua/Gen/TMPro_TMP_OffsetWrap.cs +++ /dev/null @@ -1,449 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class TMProTMP_OffsetWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(TMPro.TMP_Offset); - Utils.BeginObjectRegister(type, L, translator, 2, 2, 6, 6); - Utils.RegisterFunc(L, Utils.OBJ_META_IDX, "__eq", __EqMeta); - Utils.RegisterFunc(L, Utils.OBJ_META_IDX, "__mul", __MulMeta); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetHashCode", _m_GetHashCode); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Equals", _m_Equals); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "left", _g_get_left); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "right", _g_get_right); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "top", _g_get_top); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "bottom", _g_get_bottom); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "horizontal", _g_get_horizontal); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "vertical", _g_get_vertical); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "left", _s_set_left); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "right", _s_set_right); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "top", _s_set_top); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "bottom", _s_set_bottom); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "horizontal", _s_set_horizontal); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "vertical", _s_set_vertical); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 1, 0); - - - - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "zero", _g_get_zero); - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 5 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - float _left = (float)LuaAPI.lua_tonumber(L, 2); - float _right = (float)LuaAPI.lua_tonumber(L, 3); - float _top = (float)LuaAPI.lua_tonumber(L, 4); - float _bottom = (float)LuaAPI.lua_tonumber(L, 5); - - var gen_ret = new TMPro.TMP_Offset(_left, _right, _top, _bottom); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 3 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - float _horizontal = (float)LuaAPI.lua_tonumber(L, 2); - float _vertical = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = new TMPro.TMP_Offset(_horizontal, _vertical); - translator.Push(L, gen_ret); - - return 1; - } - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(TMPro.TMP_Offset)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to TMPro.TMP_Offset constructor!"); - - } - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __EqMeta(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - if (translator.Assignable(L, 1) && translator.Assignable(L, 2)) - { - TMPro.TMP_Offset leftside;translator.Get(L, 1, out leftside); - TMPro.TMP_Offset rightside;translator.Get(L, 2, out rightside); - - LuaAPI.lua_pushboolean(L, leftside == rightside); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to right hand of == operator, need TMPro.TMP_Offset!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __MulMeta(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - if (translator.Assignable(L, 1) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - TMPro.TMP_Offset leftside;translator.Get(L, 1, out leftside); - float rightside = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Push(L, leftside * rightside); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to right hand of * operator, need TMPro.TMP_Offset!"); - - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetHashCode(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - TMPro.TMP_Offset gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - - var gen_ret = gen_to_be_invoked.GetHashCode( ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Equals(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - TMPro.TMP_Offset gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - object _obj = translator.GetObject(L, 2, typeof(object)); - - var gen_ret = gen_to_be_invoked.Equals( _obj ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - TMPro.TMP_Offset _other;translator.Get(L, 2, out _other); - - var gen_ret = gen_to_be_invoked.Equals( _other ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to TMPro.TMP_Offset.Equals!"); - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_left(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Offset gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.left); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_right(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Offset gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.right); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_top(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Offset gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.top); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_bottom(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Offset gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.bottom); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_horizontal(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Offset gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.horizontal); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_vertical(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Offset gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.vertical); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_zero(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, TMPro.TMP_Offset.zero); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_left(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Offset gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.left = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_right(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Offset gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.right = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_top(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Offset gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.top = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_bottom(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Offset gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.bottom = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_horizontal(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Offset gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.horizontal = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_vertical(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Offset gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.vertical = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/TMPro_TMP_PageInfoWrap.cs b/Assets/XLua/Gen/TMPro_TMP_PageInfoWrap.cs deleted file mode 100644 index 3570aca0f..000000000 --- a/Assets/XLua/Gen/TMPro_TMP_PageInfoWrap.cs +++ /dev/null @@ -1,247 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class TMProTMP_PageInfoWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(TMPro.TMP_PageInfo); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 5, 5); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "firstCharacterIndex", _g_get_firstCharacterIndex); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "lastCharacterIndex", _g_get_lastCharacterIndex); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "ascender", _g_get_ascender); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "baseLine", _g_get_baseLine); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "descender", _g_get_descender); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "firstCharacterIndex", _s_set_firstCharacterIndex); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "lastCharacterIndex", _s_set_lastCharacterIndex); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "ascender", _s_set_ascender); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "baseLine", _s_set_baseLine); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "descender", _s_set_descender); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(TMPro.TMP_PageInfo)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to TMPro.TMP_PageInfo constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_firstCharacterIndex(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_PageInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.firstCharacterIndex); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_lastCharacterIndex(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_PageInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.lastCharacterIndex); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_ascender(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_PageInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.ascender); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_baseLine(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_PageInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.baseLine); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_descender(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_PageInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.descender); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_firstCharacterIndex(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_PageInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.firstCharacterIndex = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_lastCharacterIndex(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_PageInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.lastCharacterIndex = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_ascender(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_PageInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.ascender = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_baseLine(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_PageInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.baseLine = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_descender(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_PageInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.descender = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/TMPro_TMP_ResourceManagerWrap.cs b/Assets/XLua/Gen/TMPro_TMP_ResourceManagerWrap.cs deleted file mode 100644 index e218880c6..000000000 --- a/Assets/XLua/Gen/TMPro_TMP_ResourceManagerWrap.cs +++ /dev/null @@ -1,142 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class TMProTMP_ResourceManagerWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(TMPro.TMP_ResourceManager); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 3, 0, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "AddFontAsset", _m_AddFontAsset_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "TryGetFontAsset", _m_TryGetFontAsset_xlua_st_); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new TMPro.TMP_ResourceManager(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to TMPro.TMP_ResourceManager constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AddFontAsset_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - TMPro.TMP_FontAsset _fontAsset = (TMPro.TMP_FontAsset)translator.GetObject(L, 1, typeof(TMPro.TMP_FontAsset)); - - TMPro.TMP_ResourceManager.AddFontAsset( _fontAsset ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_TryGetFontAsset_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - int _hashcode = LuaAPI.xlua_tointeger(L, 1); - TMPro.TMP_FontAsset _fontAsset; - - var gen_ret = TMPro.TMP_ResourceManager.TryGetFontAsset( _hashcode, out _fontAsset ); - LuaAPI.lua_pushboolean(L, gen_ret); - translator.Push(L, _fontAsset); - - - - - return 2; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/TMPro_TMP_ScrollbarEventHandlerWrap.cs b/Assets/XLua/Gen/TMPro_TMP_ScrollbarEventHandlerWrap.cs deleted file mode 100644 index 43f8cef32..000000000 --- a/Assets/XLua/Gen/TMPro_TMP_ScrollbarEventHandlerWrap.cs +++ /dev/null @@ -1,202 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class TMProTMP_ScrollbarEventHandlerWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(TMPro.TMP_ScrollbarEventHandler); - Utils.BeginObjectRegister(type, L, translator, 0, 3, 1, 1); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnPointerClick", _m_OnPointerClick); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnSelect", _m_OnSelect); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnDeselect", _m_OnDeselect); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "isSelected", _g_get_isSelected); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "isSelected", _s_set_isSelected); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new TMPro.TMP_ScrollbarEventHandler(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to TMPro.TMP_ScrollbarEventHandler constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnPointerClick(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - TMPro.TMP_ScrollbarEventHandler gen_to_be_invoked = (TMPro.TMP_ScrollbarEventHandler)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.EventSystems.PointerEventData _eventData = (UnityEngine.EventSystems.PointerEventData)translator.GetObject(L, 2, typeof(UnityEngine.EventSystems.PointerEventData)); - - gen_to_be_invoked.OnPointerClick( _eventData ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnSelect(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - TMPro.TMP_ScrollbarEventHandler gen_to_be_invoked = (TMPro.TMP_ScrollbarEventHandler)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.EventSystems.BaseEventData _eventData = (UnityEngine.EventSystems.BaseEventData)translator.GetObject(L, 2, typeof(UnityEngine.EventSystems.BaseEventData)); - - gen_to_be_invoked.OnSelect( _eventData ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnDeselect(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - TMPro.TMP_ScrollbarEventHandler gen_to_be_invoked = (TMPro.TMP_ScrollbarEventHandler)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.EventSystems.BaseEventData _eventData = (UnityEngine.EventSystems.BaseEventData)translator.GetObject(L, 2, typeof(UnityEngine.EventSystems.BaseEventData)); - - gen_to_be_invoked.OnDeselect( _eventData ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_isSelected(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_ScrollbarEventHandler gen_to_be_invoked = (TMPro.TMP_ScrollbarEventHandler)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.isSelected); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_isSelected(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_ScrollbarEventHandler gen_to_be_invoked = (TMPro.TMP_ScrollbarEventHandler)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.isSelected = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/TMPro_TMP_SelectionCaretWrap.cs b/Assets/XLua/Gen/TMPro_TMP_SelectionCaretWrap.cs deleted file mode 100644 index 818f07c84..000000000 --- a/Assets/XLua/Gen/TMPro_TMP_SelectionCaretWrap.cs +++ /dev/null @@ -1,114 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class TMProTMP_SelectionCaretWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(TMPro.TMP_SelectionCaret); - Utils.BeginObjectRegister(type, L, translator, 0, 1, 0, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Cull", _m_Cull); - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new TMPro.TMP_SelectionCaret(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to TMPro.TMP_SelectionCaret constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Cull(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - TMPro.TMP_SelectionCaret gen_to_be_invoked = (TMPro.TMP_SelectionCaret)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Rect _clipRect;translator.Get(L, 2, out _clipRect); - bool _validRect = LuaAPI.lua_toboolean(L, 3); - - gen_to_be_invoked.Cull( _clipRect, _validRect ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/TMPro_TMP_SettingsWrap.cs b/Assets/XLua/Gen/TMPro_TMP_SettingsWrap.cs deleted file mode 100644 index 7dc1e1d68..000000000 --- a/Assets/XLua/Gen/TMPro_TMP_SettingsWrap.cs +++ /dev/null @@ -1,742 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class TMProTMP_SettingsWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(TMPro.TMP_Settings); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 7, 33, 5); - Utils.RegisterFunc(L, Utils.CLS_IDX, "LoadDefaultSettings", _m_LoadDefaultSettings_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetSettings", _m_GetSettings_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetFontAsset", _m_GetFontAsset_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetSpriteAsset", _m_GetSpriteAsset_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetStyleSheet", _m_GetStyleSheet_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "LoadLinebreakingRules", _m_LoadLinebreakingRules_xlua_st_); - - - - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "version", _g_get_version); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "enableWordWrapping", _g_get_enableWordWrapping); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "enableKerning", _g_get_enableKerning); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "enableExtraPadding", _g_get_enableExtraPadding); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "enableTintAllSprites", _g_get_enableTintAllSprites); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "enableParseEscapeCharacters", _g_get_enableParseEscapeCharacters); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "enableRaycastTarget", _g_get_enableRaycastTarget); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "getFontFeaturesAtRuntime", _g_get_getFontFeaturesAtRuntime); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "missingGlyphCharacter", _g_get_missingGlyphCharacter); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "warningsDisabled", _g_get_warningsDisabled); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "defaultFontAsset", _g_get_defaultFontAsset); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "defaultFontAssetPath", _g_get_defaultFontAssetPath); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "defaultFontSize", _g_get_defaultFontSize); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "defaultTextAutoSizingMinRatio", _g_get_defaultTextAutoSizingMinRatio); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "defaultTextAutoSizingMaxRatio", _g_get_defaultTextAutoSizingMaxRatio); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "defaultTextMeshProTextContainerSize", _g_get_defaultTextMeshProTextContainerSize); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "defaultTextMeshProUITextContainerSize", _g_get_defaultTextMeshProUITextContainerSize); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "autoSizeTextContainer", _g_get_autoSizeTextContainer); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "isTextObjectScaleStatic", _g_get_isTextObjectScaleStatic); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "fallbackFontAssets", _g_get_fallbackFontAssets); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "matchMaterialPreset", _g_get_matchMaterialPreset); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "defaultSpriteAsset", _g_get_defaultSpriteAsset); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "defaultSpriteAssetPath", _g_get_defaultSpriteAssetPath); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "enableEmojiSupport", _g_get_enableEmojiSupport); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "missingCharacterSpriteUnicode", _g_get_missingCharacterSpriteUnicode); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "defaultColorGradientPresetsPath", _g_get_defaultColorGradientPresetsPath); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "defaultStyleSheet", _g_get_defaultStyleSheet); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "styleSheetsResourcePath", _g_get_styleSheetsResourcePath); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "leadingCharacters", _g_get_leadingCharacters); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "followingCharacters", _g_get_followingCharacters); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "linebreakingRules", _g_get_linebreakingRules); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "useModernHangulLineBreakingRules", _g_get_useModernHangulLineBreakingRules); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "instance", _g_get_instance); - - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "missingGlyphCharacter", _s_set_missingGlyphCharacter); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "isTextObjectScaleStatic", _s_set_isTextObjectScaleStatic); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "enableEmojiSupport", _s_set_enableEmojiSupport); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "missingCharacterSpriteUnicode", _s_set_missingCharacterSpriteUnicode); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "useModernHangulLineBreakingRules", _s_set_useModernHangulLineBreakingRules); - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new TMPro.TMP_Settings(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to TMPro.TMP_Settings constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_LoadDefaultSettings_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - - var gen_ret = TMPro.TMP_Settings.LoadDefaultSettings( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetSettings_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - - var gen_ret = TMPro.TMP_Settings.GetSettings( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetFontAsset_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - - var gen_ret = TMPro.TMP_Settings.GetFontAsset( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetSpriteAsset_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - - var gen_ret = TMPro.TMP_Settings.GetSpriteAsset( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetStyleSheet_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - - var gen_ret = TMPro.TMP_Settings.GetStyleSheet( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_LoadLinebreakingRules_xlua_st_(RealStatePtr L) - { - try { - - - - - { - - TMPro.TMP_Settings.LoadLinebreakingRules( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_version(RealStatePtr L) - { - try { - - LuaAPI.lua_pushstring(L, TMPro.TMP_Settings.version); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_enableWordWrapping(RealStatePtr L) - { - try { - - LuaAPI.lua_pushboolean(L, TMPro.TMP_Settings.enableWordWrapping); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_enableKerning(RealStatePtr L) - { - try { - - LuaAPI.lua_pushboolean(L, TMPro.TMP_Settings.enableKerning); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_enableExtraPadding(RealStatePtr L) - { - try { - - LuaAPI.lua_pushboolean(L, TMPro.TMP_Settings.enableExtraPadding); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_enableTintAllSprites(RealStatePtr L) - { - try { - - LuaAPI.lua_pushboolean(L, TMPro.TMP_Settings.enableTintAllSprites); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_enableParseEscapeCharacters(RealStatePtr L) - { - try { - - LuaAPI.lua_pushboolean(L, TMPro.TMP_Settings.enableParseEscapeCharacters); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_enableRaycastTarget(RealStatePtr L) - { - try { - - LuaAPI.lua_pushboolean(L, TMPro.TMP_Settings.enableRaycastTarget); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_getFontFeaturesAtRuntime(RealStatePtr L) - { - try { - - LuaAPI.lua_pushboolean(L, TMPro.TMP_Settings.getFontFeaturesAtRuntime); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_missingGlyphCharacter(RealStatePtr L) - { - try { - - LuaAPI.xlua_pushinteger(L, TMPro.TMP_Settings.missingGlyphCharacter); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_warningsDisabled(RealStatePtr L) - { - try { - - LuaAPI.lua_pushboolean(L, TMPro.TMP_Settings.warningsDisabled); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_defaultFontAsset(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, TMPro.TMP_Settings.defaultFontAsset); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_defaultFontAssetPath(RealStatePtr L) - { - try { - - LuaAPI.lua_pushstring(L, TMPro.TMP_Settings.defaultFontAssetPath); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_defaultFontSize(RealStatePtr L) - { - try { - - LuaAPI.lua_pushnumber(L, TMPro.TMP_Settings.defaultFontSize); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_defaultTextAutoSizingMinRatio(RealStatePtr L) - { - try { - - LuaAPI.lua_pushnumber(L, TMPro.TMP_Settings.defaultTextAutoSizingMinRatio); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_defaultTextAutoSizingMaxRatio(RealStatePtr L) - { - try { - - LuaAPI.lua_pushnumber(L, TMPro.TMP_Settings.defaultTextAutoSizingMaxRatio); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_defaultTextMeshProTextContainerSize(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.PushUnityEngineVector2(L, TMPro.TMP_Settings.defaultTextMeshProTextContainerSize); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_defaultTextMeshProUITextContainerSize(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.PushUnityEngineVector2(L, TMPro.TMP_Settings.defaultTextMeshProUITextContainerSize); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_autoSizeTextContainer(RealStatePtr L) - { - try { - - LuaAPI.lua_pushboolean(L, TMPro.TMP_Settings.autoSizeTextContainer); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_isTextObjectScaleStatic(RealStatePtr L) - { - try { - - LuaAPI.lua_pushboolean(L, TMPro.TMP_Settings.isTextObjectScaleStatic); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_fallbackFontAssets(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, TMPro.TMP_Settings.fallbackFontAssets); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_matchMaterialPreset(RealStatePtr L) - { - try { - - LuaAPI.lua_pushboolean(L, TMPro.TMP_Settings.matchMaterialPreset); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_defaultSpriteAsset(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, TMPro.TMP_Settings.defaultSpriteAsset); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_defaultSpriteAssetPath(RealStatePtr L) - { - try { - - LuaAPI.lua_pushstring(L, TMPro.TMP_Settings.defaultSpriteAssetPath); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_enableEmojiSupport(RealStatePtr L) - { - try { - - LuaAPI.lua_pushboolean(L, TMPro.TMP_Settings.enableEmojiSupport); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_missingCharacterSpriteUnicode(RealStatePtr L) - { - try { - - LuaAPI.xlua_pushuint(L, TMPro.TMP_Settings.missingCharacterSpriteUnicode); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_defaultColorGradientPresetsPath(RealStatePtr L) - { - try { - - LuaAPI.lua_pushstring(L, TMPro.TMP_Settings.defaultColorGradientPresetsPath); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_defaultStyleSheet(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, TMPro.TMP_Settings.defaultStyleSheet); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_styleSheetsResourcePath(RealStatePtr L) - { - try { - - LuaAPI.lua_pushstring(L, TMPro.TMP_Settings.styleSheetsResourcePath); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_leadingCharacters(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, TMPro.TMP_Settings.leadingCharacters); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_followingCharacters(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, TMPro.TMP_Settings.followingCharacters); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_linebreakingRules(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, TMPro.TMP_Settings.linebreakingRules); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_useModernHangulLineBreakingRules(RealStatePtr L) - { - try { - - LuaAPI.lua_pushboolean(L, TMPro.TMP_Settings.useModernHangulLineBreakingRules); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_instance(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, TMPro.TMP_Settings.instance); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_missingGlyphCharacter(RealStatePtr L) - { - try { - - TMPro.TMP_Settings.missingGlyphCharacter = LuaAPI.xlua_tointeger(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_isTextObjectScaleStatic(RealStatePtr L) - { - try { - - TMPro.TMP_Settings.isTextObjectScaleStatic = LuaAPI.lua_toboolean(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_enableEmojiSupport(RealStatePtr L) - { - try { - - TMPro.TMP_Settings.enableEmojiSupport = LuaAPI.lua_toboolean(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_missingCharacterSpriteUnicode(RealStatePtr L) - { - try { - - TMPro.TMP_Settings.missingCharacterSpriteUnicode = LuaAPI.xlua_touint(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_useModernHangulLineBreakingRules(RealStatePtr L) - { - try { - - TMPro.TMP_Settings.useModernHangulLineBreakingRules = LuaAPI.lua_toboolean(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/TMPro_TMP_Settings_LineBreakingTableWrap.cs b/Assets/XLua/Gen/TMPro_TMP_Settings_LineBreakingTableWrap.cs deleted file mode 100644 index 0dc8829bb..000000000 --- a/Assets/XLua/Gen/TMPro_TMP_Settings_LineBreakingTableWrap.cs +++ /dev/null @@ -1,146 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class TMProTMP_SettingsLineBreakingTableWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(TMPro.TMP_Settings.LineBreakingTable); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 2, 2); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "leadingCharacters", _g_get_leadingCharacters); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "followingCharacters", _g_get_followingCharacters); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "leadingCharacters", _s_set_leadingCharacters); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "followingCharacters", _s_set_followingCharacters); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new TMPro.TMP_Settings.LineBreakingTable(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to TMPro.TMP_Settings.LineBreakingTable constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_leadingCharacters(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Settings.LineBreakingTable gen_to_be_invoked = (TMPro.TMP_Settings.LineBreakingTable)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.leadingCharacters); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_followingCharacters(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Settings.LineBreakingTable gen_to_be_invoked = (TMPro.TMP_Settings.LineBreakingTable)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.followingCharacters); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_leadingCharacters(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Settings.LineBreakingTable gen_to_be_invoked = (TMPro.TMP_Settings.LineBreakingTable)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.leadingCharacters = (System.Collections.Generic.Dictionary)translator.GetObject(L, 2, typeof(System.Collections.Generic.Dictionary)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_followingCharacters(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Settings.LineBreakingTable gen_to_be_invoked = (TMPro.TMP_Settings.LineBreakingTable)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.followingCharacters = (System.Collections.Generic.Dictionary)translator.GetObject(L, 2, typeof(System.Collections.Generic.Dictionary)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/TMPro_TMP_SpriteAnimatorWrap.cs b/Assets/XLua/Gen/TMPro_TMP_SpriteAnimatorWrap.cs deleted file mode 100644 index c435fbc79..000000000 --- a/Assets/XLua/Gen/TMPro_TMP_SpriteAnimatorWrap.cs +++ /dev/null @@ -1,145 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class TMProTMP_SpriteAnimatorWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(TMPro.TMP_SpriteAnimator); - Utils.BeginObjectRegister(type, L, translator, 0, 2, 0, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "StopAllAnimations", _m_StopAllAnimations); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "DoSpriteAnimation", _m_DoSpriteAnimation); - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new TMPro.TMP_SpriteAnimator(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to TMPro.TMP_SpriteAnimator constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_StopAllAnimations(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - TMPro.TMP_SpriteAnimator gen_to_be_invoked = (TMPro.TMP_SpriteAnimator)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.StopAllAnimations( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DoSpriteAnimation(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - TMPro.TMP_SpriteAnimator gen_to_be_invoked = (TMPro.TMP_SpriteAnimator)translator.FastGetCSObj(L, 1); - - - - { - int _currentCharacter = LuaAPI.xlua_tointeger(L, 2); - TMPro.TMP_SpriteAsset _spriteAsset = (TMPro.TMP_SpriteAsset)translator.GetObject(L, 3, typeof(TMPro.TMP_SpriteAsset)); - int _start = LuaAPI.xlua_tointeger(L, 4); - int _end = LuaAPI.xlua_tointeger(L, 5); - int _framerate = LuaAPI.xlua_tointeger(L, 6); - - gen_to_be_invoked.DoSpriteAnimation( _currentCharacter, _spriteAsset, _start, _end, _framerate ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/TMPro_TMP_SpriteAssetWrap.cs b/Assets/XLua/Gen/TMPro_TMP_SpriteAssetWrap.cs deleted file mode 100644 index 090f4d8da..000000000 --- a/Assets/XLua/Gen/TMPro_TMP_SpriteAssetWrap.cs +++ /dev/null @@ -1,464 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class TMProTMP_SpriteAssetWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(TMPro.TMP_SpriteAsset); - Utils.BeginObjectRegister(type, L, translator, 0, 5, 8, 3); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "UpdateLookupTables", _m_UpdateLookupTables); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetSpriteIndexFromHashcode", _m_GetSpriteIndexFromHashcode); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetSpriteIndexFromUnicode", _m_GetSpriteIndexFromUnicode); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetSpriteIndexFromName", _m_GetSpriteIndexFromName); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SortGlyphTable", _m_SortGlyphTable); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "version", _g_get_version); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "faceInfo", _g_get_faceInfo); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "spriteCharacterTable", _g_get_spriteCharacterTable); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "spriteCharacterLookupTable", _g_get_spriteCharacterLookupTable); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "spriteGlyphTable", _g_get_spriteGlyphTable); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "spriteSheet", _g_get_spriteSheet); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "spriteInfoList", _g_get_spriteInfoList); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "fallbackSpriteAssets", _g_get_fallbackSpriteAssets); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "spriteSheet", _s_set_spriteSheet); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "spriteInfoList", _s_set_spriteInfoList); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "fallbackSpriteAssets", _s_set_fallbackSpriteAssets); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 3, 0, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "SearchForSpriteByUnicode", _m_SearchForSpriteByUnicode_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "SearchForSpriteByHashCode", _m_SearchForSpriteByHashCode_xlua_st_); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new TMPro.TMP_SpriteAsset(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to TMPro.TMP_SpriteAsset constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_UpdateLookupTables(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - TMPro.TMP_SpriteAsset gen_to_be_invoked = (TMPro.TMP_SpriteAsset)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.UpdateLookupTables( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetSpriteIndexFromHashcode(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - TMPro.TMP_SpriteAsset gen_to_be_invoked = (TMPro.TMP_SpriteAsset)translator.FastGetCSObj(L, 1); - - - - { - int _hashCode = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.GetSpriteIndexFromHashcode( _hashCode ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetSpriteIndexFromUnicode(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - TMPro.TMP_SpriteAsset gen_to_be_invoked = (TMPro.TMP_SpriteAsset)translator.FastGetCSObj(L, 1); - - - - { - uint _unicode = LuaAPI.xlua_touint(L, 2); - - var gen_ret = gen_to_be_invoked.GetSpriteIndexFromUnicode( _unicode ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetSpriteIndexFromName(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - TMPro.TMP_SpriteAsset gen_to_be_invoked = (TMPro.TMP_SpriteAsset)translator.FastGetCSObj(L, 1); - - - - { - string _name = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.GetSpriteIndexFromName( _name ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SearchForSpriteByUnicode_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - TMPro.TMP_SpriteAsset _spriteAsset = (TMPro.TMP_SpriteAsset)translator.GetObject(L, 1, typeof(TMPro.TMP_SpriteAsset)); - uint _unicode = LuaAPI.xlua_touint(L, 2); - bool _includeFallbacks = LuaAPI.lua_toboolean(L, 3); - int _spriteIndex; - - var gen_ret = TMPro.TMP_SpriteAsset.SearchForSpriteByUnicode( _spriteAsset, _unicode, _includeFallbacks, out _spriteIndex ); - translator.Push(L, gen_ret); - LuaAPI.xlua_pushinteger(L, _spriteIndex); - - - - - return 2; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SearchForSpriteByHashCode_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - TMPro.TMP_SpriteAsset _spriteAsset = (TMPro.TMP_SpriteAsset)translator.GetObject(L, 1, typeof(TMPro.TMP_SpriteAsset)); - int _hashCode = LuaAPI.xlua_tointeger(L, 2); - bool _includeFallbacks = LuaAPI.lua_toboolean(L, 3); - int _spriteIndex; - - var gen_ret = TMPro.TMP_SpriteAsset.SearchForSpriteByHashCode( _spriteAsset, _hashCode, _includeFallbacks, out _spriteIndex ); - translator.Push(L, gen_ret); - LuaAPI.xlua_pushinteger(L, _spriteIndex); - - - - - return 2; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SortGlyphTable(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - TMPro.TMP_SpriteAsset gen_to_be_invoked = (TMPro.TMP_SpriteAsset)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.SortGlyphTable( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_version(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_SpriteAsset gen_to_be_invoked = (TMPro.TMP_SpriteAsset)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.version); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_faceInfo(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_SpriteAsset gen_to_be_invoked = (TMPro.TMP_SpriteAsset)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.faceInfo); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_spriteCharacterTable(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_SpriteAsset gen_to_be_invoked = (TMPro.TMP_SpriteAsset)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.spriteCharacterTable); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_spriteCharacterLookupTable(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_SpriteAsset gen_to_be_invoked = (TMPro.TMP_SpriteAsset)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.spriteCharacterLookupTable); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_spriteGlyphTable(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_SpriteAsset gen_to_be_invoked = (TMPro.TMP_SpriteAsset)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.spriteGlyphTable); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_spriteSheet(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_SpriteAsset gen_to_be_invoked = (TMPro.TMP_SpriteAsset)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.spriteSheet); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_spriteInfoList(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_SpriteAsset gen_to_be_invoked = (TMPro.TMP_SpriteAsset)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.spriteInfoList); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_fallbackSpriteAssets(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_SpriteAsset gen_to_be_invoked = (TMPro.TMP_SpriteAsset)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.fallbackSpriteAssets); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_spriteSheet(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_SpriteAsset gen_to_be_invoked = (TMPro.TMP_SpriteAsset)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.spriteSheet = (UnityEngine.Texture)translator.GetObject(L, 2, typeof(UnityEngine.Texture)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_spriteInfoList(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_SpriteAsset gen_to_be_invoked = (TMPro.TMP_SpriteAsset)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.spriteInfoList = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_fallbackSpriteAssets(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_SpriteAsset gen_to_be_invoked = (TMPro.TMP_SpriteAsset)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.fallbackSpriteAssets = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/TMPro_TMP_SpriteCharacterWrap.cs b/Assets/XLua/Gen/TMPro_TMP_SpriteCharacterWrap.cs deleted file mode 100644 index 9d64c4610..000000000 --- a/Assets/XLua/Gen/TMPro_TMP_SpriteCharacterWrap.cs +++ /dev/null @@ -1,151 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class TMProTMP_SpriteCharacterWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(TMPro.TMP_SpriteCharacter); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 2, 1); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "name", _g_get_name); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "hashCode", _g_get_hashCode); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "name", _s_set_name); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new TMPro.TMP_SpriteCharacter(); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 3 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && translator.Assignable(L, 3)) - { - uint _unicode = LuaAPI.xlua_touint(L, 2); - TMPro.TMP_SpriteGlyph _glyph = (TMPro.TMP_SpriteGlyph)translator.GetObject(L, 3, typeof(TMPro.TMP_SpriteGlyph)); - - var gen_ret = new TMPro.TMP_SpriteCharacter(_unicode, _glyph); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 4 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && translator.Assignable(L, 3) && translator.Assignable(L, 4)) - { - uint _unicode = LuaAPI.xlua_touint(L, 2); - TMPro.TMP_SpriteAsset _spriteAsset = (TMPro.TMP_SpriteAsset)translator.GetObject(L, 3, typeof(TMPro.TMP_SpriteAsset)); - TMPro.TMP_SpriteGlyph _glyph = (TMPro.TMP_SpriteGlyph)translator.GetObject(L, 4, typeof(TMPro.TMP_SpriteGlyph)); - - var gen_ret = new TMPro.TMP_SpriteCharacter(_unicode, _spriteAsset, _glyph); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to TMPro.TMP_SpriteCharacter constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_name(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_SpriteCharacter gen_to_be_invoked = (TMPro.TMP_SpriteCharacter)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.name); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_hashCode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_SpriteCharacter gen_to_be_invoked = (TMPro.TMP_SpriteCharacter)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.hashCode); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_name(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_SpriteCharacter gen_to_be_invoked = (TMPro.TMP_SpriteCharacter)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.name = LuaAPI.lua_tostring(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/TMPro_TMP_SpriteGlyphWrap.cs b/Assets/XLua/Gen/TMPro_TMP_SpriteGlyphWrap.cs deleted file mode 100644 index f40bf91eb..000000000 --- a/Assets/XLua/Gen/TMPro_TMP_SpriteGlyphWrap.cs +++ /dev/null @@ -1,142 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class TMProTMP_SpriteGlyphWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(TMPro.TMP_SpriteGlyph); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 1, 1); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "sprite", _g_get_sprite); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "sprite", _s_set_sprite); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new TMPro.TMP_SpriteGlyph(); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 6 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && translator.Assignable(L, 3) && translator.Assignable(L, 4) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)) - { - uint _index = LuaAPI.xlua_touint(L, 2); - UnityEngine.TextCore.GlyphMetrics _metrics;translator.Get(L, 3, out _metrics); - UnityEngine.TextCore.GlyphRect _glyphRect;translator.Get(L, 4, out _glyphRect); - float _scale = (float)LuaAPI.lua_tonumber(L, 5); - int _atlasIndex = LuaAPI.xlua_tointeger(L, 6); - - var gen_ret = new TMPro.TMP_SpriteGlyph(_index, _metrics, _glyphRect, _scale, _atlasIndex); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 7 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && translator.Assignable(L, 3) && translator.Assignable(L, 4) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6) && translator.Assignable(L, 7)) - { - uint _index = LuaAPI.xlua_touint(L, 2); - UnityEngine.TextCore.GlyphMetrics _metrics;translator.Get(L, 3, out _metrics); - UnityEngine.TextCore.GlyphRect _glyphRect;translator.Get(L, 4, out _glyphRect); - float _scale = (float)LuaAPI.lua_tonumber(L, 5); - int _atlasIndex = LuaAPI.xlua_tointeger(L, 6); - UnityEngine.Sprite _sprite = (UnityEngine.Sprite)translator.GetObject(L, 7, typeof(UnityEngine.Sprite)); - - var gen_ret = new TMPro.TMP_SpriteGlyph(_index, _metrics, _glyphRect, _scale, _atlasIndex, _sprite); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to TMPro.TMP_SpriteGlyph constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_sprite(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_SpriteGlyph gen_to_be_invoked = (TMPro.TMP_SpriteGlyph)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.sprite); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_sprite(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_SpriteGlyph gen_to_be_invoked = (TMPro.TMP_SpriteGlyph)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.sprite = (UnityEngine.Sprite)translator.GetObject(L, 2, typeof(UnityEngine.Sprite)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/TMPro_TMP_SpriteInfoWrap.cs b/Assets/XLua/Gen/TMPro_TMP_SpriteInfoWrap.cs deleted file mode 100644 index af6b8d8c9..000000000 --- a/Assets/XLua/Gen/TMPro_TMP_SpriteInfoWrap.cs +++ /dev/null @@ -1,181 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class TMProTMP_SpriteInfoWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(TMPro.TMP_SpriteInfo); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 3, 3); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "spriteIndex", _g_get_spriteIndex); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "characterIndex", _g_get_characterIndex); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "vertexIndex", _g_get_vertexIndex); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "spriteIndex", _s_set_spriteIndex); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "characterIndex", _s_set_characterIndex); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "vertexIndex", _s_set_vertexIndex); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(TMPro.TMP_SpriteInfo)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to TMPro.TMP_SpriteInfo constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_spriteIndex(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_SpriteInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.spriteIndex); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_characterIndex(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_SpriteInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.characterIndex); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_vertexIndex(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_SpriteInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.vertexIndex); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_spriteIndex(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_SpriteInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.spriteIndex = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_characterIndex(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_SpriteInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.characterIndex = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_vertexIndex(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_SpriteInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.vertexIndex = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/TMPro_TMP_SpriteWrap.cs b/Assets/XLua/Gen/TMPro_TMP_SpriteWrap.cs deleted file mode 100644 index 5011d0d41..000000000 --- a/Assets/XLua/Gen/TMPro_TMP_SpriteWrap.cs +++ /dev/null @@ -1,240 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class TMProTMP_SpriteWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(TMPro.TMP_Sprite); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 5, 5); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "name", _g_get_name); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "hashCode", _g_get_hashCode); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "unicode", _g_get_unicode); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "pivot", _g_get_pivot); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "sprite", _g_get_sprite); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "name", _s_set_name); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "hashCode", _s_set_hashCode); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "unicode", _s_set_unicode); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "pivot", _s_set_pivot); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "sprite", _s_set_sprite); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new TMPro.TMP_Sprite(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to TMPro.TMP_Sprite constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_name(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Sprite gen_to_be_invoked = (TMPro.TMP_Sprite)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.name); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_hashCode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Sprite gen_to_be_invoked = (TMPro.TMP_Sprite)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.hashCode); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_unicode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Sprite gen_to_be_invoked = (TMPro.TMP_Sprite)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.unicode); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_pivot(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Sprite gen_to_be_invoked = (TMPro.TMP_Sprite)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector2(L, gen_to_be_invoked.pivot); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_sprite(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Sprite gen_to_be_invoked = (TMPro.TMP_Sprite)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.sprite); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_name(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Sprite gen_to_be_invoked = (TMPro.TMP_Sprite)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.name = LuaAPI.lua_tostring(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_hashCode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Sprite gen_to_be_invoked = (TMPro.TMP_Sprite)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.hashCode = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_unicode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Sprite gen_to_be_invoked = (TMPro.TMP_Sprite)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.unicode = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_pivot(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Sprite gen_to_be_invoked = (TMPro.TMP_Sprite)translator.FastGetCSObj(L, 1); - UnityEngine.Vector2 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.pivot = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_sprite(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Sprite gen_to_be_invoked = (TMPro.TMP_Sprite)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.sprite = (UnityEngine.Sprite)translator.GetObject(L, 2, typeof(UnityEngine.Sprite)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/TMPro_TMP_StyleSheetWrap.cs b/Assets/XLua/Gen/TMPro_TMP_StyleSheetWrap.cs deleted file mode 100644 index 75e82dd32..000000000 --- a/Assets/XLua/Gen/TMPro_TMP_StyleSheetWrap.cs +++ /dev/null @@ -1,157 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class TMProTMP_StyleSheetWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(TMPro.TMP_StyleSheet); - Utils.BeginObjectRegister(type, L, translator, 0, 2, 0, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetStyle", _m_GetStyle); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "RefreshStyles", _m_RefreshStyles); - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new TMPro.TMP_StyleSheet(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to TMPro.TMP_StyleSheet constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetStyle(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - TMPro.TMP_StyleSheet gen_to_be_invoked = (TMPro.TMP_StyleSheet)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - int _hashCode = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.GetStyle( _hashCode ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _name = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.GetStyle( _name ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to TMPro.TMP_StyleSheet.GetStyle!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RefreshStyles(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - TMPro.TMP_StyleSheet gen_to_be_invoked = (TMPro.TMP_StyleSheet)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.RefreshStyles( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/TMPro_TMP_StyleWrap.cs b/Assets/XLua/Gen/TMPro_TMP_StyleWrap.cs deleted file mode 100644 index 99c772a41..000000000 --- a/Assets/XLua/Gen/TMPro_TMP_StyleWrap.cs +++ /dev/null @@ -1,230 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class TMProTMP_StyleWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(TMPro.TMP_Style); - Utils.BeginObjectRegister(type, L, translator, 0, 1, 6, 2); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "RefreshStyle", _m_RefreshStyle); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "name", _g_get_name); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "hashCode", _g_get_hashCode); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "styleOpeningDefinition", _g_get_styleOpeningDefinition); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "styleClosingDefinition", _g_get_styleClosingDefinition); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "styleOpeningTagArray", _g_get_styleOpeningTagArray); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "styleClosingTagArray", _g_get_styleClosingTagArray); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "name", _s_set_name); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "hashCode", _s_set_hashCode); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 1, 0); - - - - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "NormalStyle", _g_get_NormalStyle); - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "TMPro.TMP_Style does not have a constructor!"); - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RefreshStyle(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - TMPro.TMP_Style gen_to_be_invoked = (TMPro.TMP_Style)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.RefreshStyle( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_NormalStyle(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, TMPro.TMP_Style.NormalStyle); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_name(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Style gen_to_be_invoked = (TMPro.TMP_Style)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.name); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_hashCode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Style gen_to_be_invoked = (TMPro.TMP_Style)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.hashCode); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_styleOpeningDefinition(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Style gen_to_be_invoked = (TMPro.TMP_Style)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.styleOpeningDefinition); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_styleClosingDefinition(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Style gen_to_be_invoked = (TMPro.TMP_Style)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.styleClosingDefinition); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_styleOpeningTagArray(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Style gen_to_be_invoked = (TMPro.TMP_Style)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.styleOpeningTagArray); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_styleClosingTagArray(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Style gen_to_be_invoked = (TMPro.TMP_Style)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.styleClosingTagArray); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_name(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Style gen_to_be_invoked = (TMPro.TMP_Style)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.name = LuaAPI.lua_tostring(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_hashCode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Style gen_to_be_invoked = (TMPro.TMP_Style)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.hashCode = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/TMPro_TMP_SubMeshUIWrap.cs b/Assets/XLua/Gen/TMPro_TMP_SubMeshUIWrap.cs deleted file mode 100644 index e1dae8f21..000000000 --- a/Assets/XLua/Gen/TMPro_TMP_SubMeshUIWrap.cs +++ /dev/null @@ -1,796 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class TMProTMP_SubMeshUIWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(TMPro.TMP_SubMeshUI); - Utils.BeginObjectRegister(type, L, translator, 0, 12, 12, 9); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetModifiedMaterial", _m_GetModifiedMaterial); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetPaddingForMaterial", _m_GetPaddingForMaterial); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "UpdateMeshPadding", _m_UpdateMeshPadding); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetAllDirty", _m_SetAllDirty); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetVerticesDirty", _m_SetVerticesDirty); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetLayoutDirty", _m_SetLayoutDirty); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetMaterialDirty", _m_SetMaterialDirty); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetPivotDirty", _m_SetPivotDirty); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Cull", _m_Cull); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Rebuild", _m_Rebuild); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "RefreshMaterial", _m_RefreshMaterial); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "RecalculateClipping", _m_RecalculateClipping); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "fontAsset", _g_get_fontAsset); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "spriteAsset", _g_get_spriteAsset); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "mainTexture", _g_get_mainTexture); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "material", _g_get_material); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "sharedMaterial", _g_get_sharedMaterial); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "fallbackMaterial", _g_get_fallbackMaterial); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "fallbackSourceMaterial", _g_get_fallbackSourceMaterial); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "materialForRendering", _g_get_materialForRendering); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "isDefaultMaterial", _g_get_isDefaultMaterial); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "padding", _g_get_padding); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "mesh", _g_get_mesh); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "textComponent", _g_get_textComponent); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "fontAsset", _s_set_fontAsset); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "spriteAsset", _s_set_spriteAsset); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "material", _s_set_material); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "sharedMaterial", _s_set_sharedMaterial); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "fallbackMaterial", _s_set_fallbackMaterial); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "fallbackSourceMaterial", _s_set_fallbackSourceMaterial); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "isDefaultMaterial", _s_set_isDefaultMaterial); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "padding", _s_set_padding); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "mesh", _s_set_mesh); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 2, 0, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "AddSubTextObject", _m_AddSubTextObject_xlua_st_); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new TMPro.TMP_SubMeshUI(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to TMPro.TMP_SubMeshUI constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AddSubTextObject_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - TMPro.TextMeshProUGUI _textComponent = (TMPro.TextMeshProUGUI)translator.GetObject(L, 1, typeof(TMPro.TextMeshProUGUI)); - TMPro.MaterialReference _materialReference;translator.Get(L, 2, out _materialReference); - - var gen_ret = TMPro.TMP_SubMeshUI.AddSubTextObject( _textComponent, _materialReference ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetModifiedMaterial(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - TMPro.TMP_SubMeshUI gen_to_be_invoked = (TMPro.TMP_SubMeshUI)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Material _baseMaterial = (UnityEngine.Material)translator.GetObject(L, 2, typeof(UnityEngine.Material)); - - var gen_ret = gen_to_be_invoked.GetModifiedMaterial( _baseMaterial ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetPaddingForMaterial(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - TMPro.TMP_SubMeshUI gen_to_be_invoked = (TMPro.TMP_SubMeshUI)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - var gen_ret = gen_to_be_invoked.GetPaddingForMaterial( ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.Material _mat = (UnityEngine.Material)translator.GetObject(L, 2, typeof(UnityEngine.Material)); - - var gen_ret = gen_to_be_invoked.GetPaddingForMaterial( _mat ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to TMPro.TMP_SubMeshUI.GetPaddingForMaterial!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_UpdateMeshPadding(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - TMPro.TMP_SubMeshUI gen_to_be_invoked = (TMPro.TMP_SubMeshUI)translator.FastGetCSObj(L, 1); - - - - { - bool _isExtraPadding = LuaAPI.lua_toboolean(L, 2); - bool _isUsingBold = LuaAPI.lua_toboolean(L, 3); - - gen_to_be_invoked.UpdateMeshPadding( _isExtraPadding, _isUsingBold ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetAllDirty(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - TMPro.TMP_SubMeshUI gen_to_be_invoked = (TMPro.TMP_SubMeshUI)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.SetAllDirty( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetVerticesDirty(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - TMPro.TMP_SubMeshUI gen_to_be_invoked = (TMPro.TMP_SubMeshUI)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.SetVerticesDirty( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetLayoutDirty(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - TMPro.TMP_SubMeshUI gen_to_be_invoked = (TMPro.TMP_SubMeshUI)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.SetLayoutDirty( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetMaterialDirty(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - TMPro.TMP_SubMeshUI gen_to_be_invoked = (TMPro.TMP_SubMeshUI)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.SetMaterialDirty( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetPivotDirty(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - TMPro.TMP_SubMeshUI gen_to_be_invoked = (TMPro.TMP_SubMeshUI)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.SetPivotDirty( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Cull(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - TMPro.TMP_SubMeshUI gen_to_be_invoked = (TMPro.TMP_SubMeshUI)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Rect _clipRect;translator.Get(L, 2, out _clipRect); - bool _validRect = LuaAPI.lua_toboolean(L, 3); - - gen_to_be_invoked.Cull( _clipRect, _validRect ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Rebuild(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - TMPro.TMP_SubMeshUI gen_to_be_invoked = (TMPro.TMP_SubMeshUI)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.UI.CanvasUpdate _update;translator.Get(L, 2, out _update); - - gen_to_be_invoked.Rebuild( _update ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RefreshMaterial(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - TMPro.TMP_SubMeshUI gen_to_be_invoked = (TMPro.TMP_SubMeshUI)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.RefreshMaterial( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RecalculateClipping(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - TMPro.TMP_SubMeshUI gen_to_be_invoked = (TMPro.TMP_SubMeshUI)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.RecalculateClipping( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_fontAsset(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_SubMeshUI gen_to_be_invoked = (TMPro.TMP_SubMeshUI)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.fontAsset); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_spriteAsset(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_SubMeshUI gen_to_be_invoked = (TMPro.TMP_SubMeshUI)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.spriteAsset); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_mainTexture(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_SubMeshUI gen_to_be_invoked = (TMPro.TMP_SubMeshUI)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.mainTexture); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_material(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_SubMeshUI gen_to_be_invoked = (TMPro.TMP_SubMeshUI)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.material); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_sharedMaterial(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_SubMeshUI gen_to_be_invoked = (TMPro.TMP_SubMeshUI)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.sharedMaterial); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_fallbackMaterial(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_SubMeshUI gen_to_be_invoked = (TMPro.TMP_SubMeshUI)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.fallbackMaterial); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_fallbackSourceMaterial(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_SubMeshUI gen_to_be_invoked = (TMPro.TMP_SubMeshUI)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.fallbackSourceMaterial); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_materialForRendering(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_SubMeshUI gen_to_be_invoked = (TMPro.TMP_SubMeshUI)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.materialForRendering); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_isDefaultMaterial(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_SubMeshUI gen_to_be_invoked = (TMPro.TMP_SubMeshUI)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.isDefaultMaterial); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_padding(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_SubMeshUI gen_to_be_invoked = (TMPro.TMP_SubMeshUI)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.padding); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_mesh(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_SubMeshUI gen_to_be_invoked = (TMPro.TMP_SubMeshUI)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.mesh); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_textComponent(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_SubMeshUI gen_to_be_invoked = (TMPro.TMP_SubMeshUI)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.textComponent); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_fontAsset(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_SubMeshUI gen_to_be_invoked = (TMPro.TMP_SubMeshUI)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.fontAsset = (TMPro.TMP_FontAsset)translator.GetObject(L, 2, typeof(TMPro.TMP_FontAsset)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_spriteAsset(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_SubMeshUI gen_to_be_invoked = (TMPro.TMP_SubMeshUI)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.spriteAsset = (TMPro.TMP_SpriteAsset)translator.GetObject(L, 2, typeof(TMPro.TMP_SpriteAsset)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_material(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_SubMeshUI gen_to_be_invoked = (TMPro.TMP_SubMeshUI)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.material = (UnityEngine.Material)translator.GetObject(L, 2, typeof(UnityEngine.Material)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_sharedMaterial(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_SubMeshUI gen_to_be_invoked = (TMPro.TMP_SubMeshUI)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.sharedMaterial = (UnityEngine.Material)translator.GetObject(L, 2, typeof(UnityEngine.Material)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_fallbackMaterial(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_SubMeshUI gen_to_be_invoked = (TMPro.TMP_SubMeshUI)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.fallbackMaterial = (UnityEngine.Material)translator.GetObject(L, 2, typeof(UnityEngine.Material)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_fallbackSourceMaterial(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_SubMeshUI gen_to_be_invoked = (TMPro.TMP_SubMeshUI)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.fallbackSourceMaterial = (UnityEngine.Material)translator.GetObject(L, 2, typeof(UnityEngine.Material)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_isDefaultMaterial(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_SubMeshUI gen_to_be_invoked = (TMPro.TMP_SubMeshUI)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.isDefaultMaterial = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_padding(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_SubMeshUI gen_to_be_invoked = (TMPro.TMP_SubMeshUI)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.padding = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_mesh(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_SubMeshUI gen_to_be_invoked = (TMPro.TMP_SubMeshUI)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.mesh = (UnityEngine.Mesh)translator.GetObject(L, 2, typeof(UnityEngine.Mesh)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/TMPro_TMP_SubMeshWrap.cs b/Assets/XLua/Gen/TMPro_TMP_SubMeshWrap.cs deleted file mode 100644 index 01125ba86..000000000 --- a/Assets/XLua/Gen/TMPro_TMP_SubMeshWrap.cs +++ /dev/null @@ -1,580 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class TMProTMP_SubMeshWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(TMPro.TMP_SubMesh); - Utils.BeginObjectRegister(type, L, translator, 0, 5, 12, 9); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "DestroySelf", _m_DestroySelf); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetPaddingForMaterial", _m_GetPaddingForMaterial); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "UpdateMeshPadding", _m_UpdateMeshPadding); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetVerticesDirty", _m_SetVerticesDirty); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetMaterialDirty", _m_SetMaterialDirty); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "fontAsset", _g_get_fontAsset); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "spriteAsset", _g_get_spriteAsset); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "material", _g_get_material); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "sharedMaterial", _g_get_sharedMaterial); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "fallbackMaterial", _g_get_fallbackMaterial); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "fallbackSourceMaterial", _g_get_fallbackSourceMaterial); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "isDefaultMaterial", _g_get_isDefaultMaterial); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "padding", _g_get_padding); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "renderer", _g_get_renderer); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "meshFilter", _g_get_meshFilter); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "mesh", _g_get_mesh); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "textComponent", _g_get_textComponent); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "fontAsset", _s_set_fontAsset); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "spriteAsset", _s_set_spriteAsset); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "material", _s_set_material); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "sharedMaterial", _s_set_sharedMaterial); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "fallbackMaterial", _s_set_fallbackMaterial); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "fallbackSourceMaterial", _s_set_fallbackSourceMaterial); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "isDefaultMaterial", _s_set_isDefaultMaterial); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "padding", _s_set_padding); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "mesh", _s_set_mesh); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 2, 0, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "AddSubTextObject", _m_AddSubTextObject_xlua_st_); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new TMPro.TMP_SubMesh(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to TMPro.TMP_SubMesh constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AddSubTextObject_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - TMPro.TextMeshPro _textComponent = (TMPro.TextMeshPro)translator.GetObject(L, 1, typeof(TMPro.TextMeshPro)); - TMPro.MaterialReference _materialReference;translator.Get(L, 2, out _materialReference); - - var gen_ret = TMPro.TMP_SubMesh.AddSubTextObject( _textComponent, _materialReference ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DestroySelf(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - TMPro.TMP_SubMesh gen_to_be_invoked = (TMPro.TMP_SubMesh)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.DestroySelf( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetPaddingForMaterial(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - TMPro.TMP_SubMesh gen_to_be_invoked = (TMPro.TMP_SubMesh)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.GetPaddingForMaterial( ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_UpdateMeshPadding(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - TMPro.TMP_SubMesh gen_to_be_invoked = (TMPro.TMP_SubMesh)translator.FastGetCSObj(L, 1); - - - - { - bool _isExtraPadding = LuaAPI.lua_toboolean(L, 2); - bool _isUsingBold = LuaAPI.lua_toboolean(L, 3); - - gen_to_be_invoked.UpdateMeshPadding( _isExtraPadding, _isUsingBold ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetVerticesDirty(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - TMPro.TMP_SubMesh gen_to_be_invoked = (TMPro.TMP_SubMesh)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.SetVerticesDirty( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetMaterialDirty(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - TMPro.TMP_SubMesh gen_to_be_invoked = (TMPro.TMP_SubMesh)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.SetMaterialDirty( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_fontAsset(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_SubMesh gen_to_be_invoked = (TMPro.TMP_SubMesh)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.fontAsset); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_spriteAsset(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_SubMesh gen_to_be_invoked = (TMPro.TMP_SubMesh)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.spriteAsset); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_material(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_SubMesh gen_to_be_invoked = (TMPro.TMP_SubMesh)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.material); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_sharedMaterial(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_SubMesh gen_to_be_invoked = (TMPro.TMP_SubMesh)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.sharedMaterial); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_fallbackMaterial(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_SubMesh gen_to_be_invoked = (TMPro.TMP_SubMesh)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.fallbackMaterial); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_fallbackSourceMaterial(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_SubMesh gen_to_be_invoked = (TMPro.TMP_SubMesh)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.fallbackSourceMaterial); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_isDefaultMaterial(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_SubMesh gen_to_be_invoked = (TMPro.TMP_SubMesh)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.isDefaultMaterial); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_padding(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_SubMesh gen_to_be_invoked = (TMPro.TMP_SubMesh)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.padding); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_renderer(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_SubMesh gen_to_be_invoked = (TMPro.TMP_SubMesh)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.renderer); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_meshFilter(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_SubMesh gen_to_be_invoked = (TMPro.TMP_SubMesh)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.meshFilter); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_mesh(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_SubMesh gen_to_be_invoked = (TMPro.TMP_SubMesh)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.mesh); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_textComponent(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_SubMesh gen_to_be_invoked = (TMPro.TMP_SubMesh)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.textComponent); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_fontAsset(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_SubMesh gen_to_be_invoked = (TMPro.TMP_SubMesh)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.fontAsset = (TMPro.TMP_FontAsset)translator.GetObject(L, 2, typeof(TMPro.TMP_FontAsset)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_spriteAsset(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_SubMesh gen_to_be_invoked = (TMPro.TMP_SubMesh)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.spriteAsset = (TMPro.TMP_SpriteAsset)translator.GetObject(L, 2, typeof(TMPro.TMP_SpriteAsset)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_material(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_SubMesh gen_to_be_invoked = (TMPro.TMP_SubMesh)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.material = (UnityEngine.Material)translator.GetObject(L, 2, typeof(UnityEngine.Material)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_sharedMaterial(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_SubMesh gen_to_be_invoked = (TMPro.TMP_SubMesh)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.sharedMaterial = (UnityEngine.Material)translator.GetObject(L, 2, typeof(UnityEngine.Material)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_fallbackMaterial(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_SubMesh gen_to_be_invoked = (TMPro.TMP_SubMesh)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.fallbackMaterial = (UnityEngine.Material)translator.GetObject(L, 2, typeof(UnityEngine.Material)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_fallbackSourceMaterial(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_SubMesh gen_to_be_invoked = (TMPro.TMP_SubMesh)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.fallbackSourceMaterial = (UnityEngine.Material)translator.GetObject(L, 2, typeof(UnityEngine.Material)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_isDefaultMaterial(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_SubMesh gen_to_be_invoked = (TMPro.TMP_SubMesh)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.isDefaultMaterial = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_padding(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_SubMesh gen_to_be_invoked = (TMPro.TMP_SubMesh)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.padding = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_mesh(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_SubMesh gen_to_be_invoked = (TMPro.TMP_SubMesh)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.mesh = (UnityEngine.Mesh)translator.GetObject(L, 2, typeof(UnityEngine.Mesh)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/TMPro_TMP_TextElementWrap.cs b/Assets/XLua/Gen/TMPro_TMP_TextElementWrap.cs deleted file mode 100644 index b54c703d2..000000000 --- a/Assets/XLua/Gen/TMPro_TMP_TextElementWrap.cs +++ /dev/null @@ -1,254 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class TMProTMP_TextElementWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(TMPro.TMP_TextElement); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 6, 5); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "elementType", _g_get_elementType); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "unicode", _g_get_unicode); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "textAsset", _g_get_textAsset); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "glyph", _g_get_glyph); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "glyphIndex", _g_get_glyphIndex); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "scale", _g_get_scale); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "unicode", _s_set_unicode); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "textAsset", _s_set_textAsset); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "glyph", _s_set_glyph); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "glyphIndex", _s_set_glyphIndex); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "scale", _s_set_scale); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new TMPro.TMP_TextElement(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to TMPro.TMP_TextElement constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_elementType(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_TextElement gen_to_be_invoked = (TMPro.TMP_TextElement)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.elementType); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_unicode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_TextElement gen_to_be_invoked = (TMPro.TMP_TextElement)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushuint(L, gen_to_be_invoked.unicode); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_textAsset(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_TextElement gen_to_be_invoked = (TMPro.TMP_TextElement)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.textAsset); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_glyph(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_TextElement gen_to_be_invoked = (TMPro.TMP_TextElement)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.glyph); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_glyphIndex(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_TextElement gen_to_be_invoked = (TMPro.TMP_TextElement)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushuint(L, gen_to_be_invoked.glyphIndex); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_scale(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_TextElement gen_to_be_invoked = (TMPro.TMP_TextElement)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.scale); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_unicode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_TextElement gen_to_be_invoked = (TMPro.TMP_TextElement)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.unicode = LuaAPI.xlua_touint(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_textAsset(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_TextElement gen_to_be_invoked = (TMPro.TMP_TextElement)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.textAsset = (TMPro.TMP_Asset)translator.GetObject(L, 2, typeof(TMPro.TMP_Asset)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_glyph(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_TextElement gen_to_be_invoked = (TMPro.TMP_TextElement)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.glyph = (UnityEngine.TextCore.Glyph)translator.GetObject(L, 2, typeof(UnityEngine.TextCore.Glyph)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_glyphIndex(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_TextElement gen_to_be_invoked = (TMPro.TMP_TextElement)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.glyphIndex = LuaAPI.xlua_touint(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_scale(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_TextElement gen_to_be_invoked = (TMPro.TMP_TextElement)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.scale = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/TMPro_TMP_TextElement_LegacyWrap.cs b/Assets/XLua/Gen/TMPro_TMP_TextElement_LegacyWrap.cs deleted file mode 100644 index ba48dabcd..000000000 --- a/Assets/XLua/Gen/TMPro_TMP_TextElement_LegacyWrap.cs +++ /dev/null @@ -1,363 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class TMProTMP_TextElement_LegacyWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(TMPro.TMP_TextElement_Legacy); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 9, 9); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "id", _g_get_id); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "x", _g_get_x); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "y", _g_get_y); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "width", _g_get_width); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "height", _g_get_height); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "xOffset", _g_get_xOffset); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "yOffset", _g_get_yOffset); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "xAdvance", _g_get_xAdvance); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "scale", _g_get_scale); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "id", _s_set_id); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "x", _s_set_x); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "y", _s_set_y); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "width", _s_set_width); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "height", _s_set_height); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "xOffset", _s_set_xOffset); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "yOffset", _s_set_yOffset); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "xAdvance", _s_set_xAdvance); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "scale", _s_set_scale); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new TMPro.TMP_TextElement_Legacy(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to TMPro.TMP_TextElement_Legacy constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_id(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_TextElement_Legacy gen_to_be_invoked = (TMPro.TMP_TextElement_Legacy)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.id); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_x(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_TextElement_Legacy gen_to_be_invoked = (TMPro.TMP_TextElement_Legacy)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.x); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_y(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_TextElement_Legacy gen_to_be_invoked = (TMPro.TMP_TextElement_Legacy)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.y); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_width(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_TextElement_Legacy gen_to_be_invoked = (TMPro.TMP_TextElement_Legacy)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.width); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_height(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_TextElement_Legacy gen_to_be_invoked = (TMPro.TMP_TextElement_Legacy)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.height); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_xOffset(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_TextElement_Legacy gen_to_be_invoked = (TMPro.TMP_TextElement_Legacy)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.xOffset); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_yOffset(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_TextElement_Legacy gen_to_be_invoked = (TMPro.TMP_TextElement_Legacy)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.yOffset); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_xAdvance(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_TextElement_Legacy gen_to_be_invoked = (TMPro.TMP_TextElement_Legacy)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.xAdvance); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_scale(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_TextElement_Legacy gen_to_be_invoked = (TMPro.TMP_TextElement_Legacy)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.scale); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_id(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_TextElement_Legacy gen_to_be_invoked = (TMPro.TMP_TextElement_Legacy)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.id = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_x(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_TextElement_Legacy gen_to_be_invoked = (TMPro.TMP_TextElement_Legacy)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.x = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_y(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_TextElement_Legacy gen_to_be_invoked = (TMPro.TMP_TextElement_Legacy)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.y = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_width(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_TextElement_Legacy gen_to_be_invoked = (TMPro.TMP_TextElement_Legacy)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.width = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_height(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_TextElement_Legacy gen_to_be_invoked = (TMPro.TMP_TextElement_Legacy)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.height = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_xOffset(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_TextElement_Legacy gen_to_be_invoked = (TMPro.TMP_TextElement_Legacy)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.xOffset = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_yOffset(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_TextElement_Legacy gen_to_be_invoked = (TMPro.TMP_TextElement_Legacy)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.yOffset = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_xAdvance(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_TextElement_Legacy gen_to_be_invoked = (TMPro.TMP_TextElement_Legacy)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.xAdvance = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_scale(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_TextElement_Legacy gen_to_be_invoked = (TMPro.TMP_TextElement_Legacy)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.scale = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/TMPro_TMP_TextInfoWrap.cs b/Assets/XLua/Gen/TMPro_TMP_TextInfoWrap.cs deleted file mode 100644 index 28b2ffcb1..000000000 --- a/Assets/XLua/Gen/TMPro_TMP_TextInfoWrap.cs +++ /dev/null @@ -1,758 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class TMProTMP_TextInfoWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(TMPro.TMP_TextInfo); - Utils.BeginObjectRegister(type, L, translator, 0, 7, 15, 15); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Clear", _m_Clear); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ClearMeshInfo", _m_ClearMeshInfo); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ClearAllMeshInfo", _m_ClearAllMeshInfo); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ResetVertexLayout", _m_ResetVertexLayout); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ClearUnusedVertices", _m_ClearUnusedVertices); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ClearLineInfo", _m_ClearLineInfo); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "CopyMeshInfoVertexData", _m_CopyMeshInfoVertexData); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "textComponent", _g_get_textComponent); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "characterCount", _g_get_characterCount); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "spriteCount", _g_get_spriteCount); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "spaceCount", _g_get_spaceCount); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "wordCount", _g_get_wordCount); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "linkCount", _g_get_linkCount); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "lineCount", _g_get_lineCount); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "pageCount", _g_get_pageCount); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "materialCount", _g_get_materialCount); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "characterInfo", _g_get_characterInfo); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "wordInfo", _g_get_wordInfo); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "linkInfo", _g_get_linkInfo); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "lineInfo", _g_get_lineInfo); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "pageInfo", _g_get_pageInfo); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "meshInfo", _g_get_meshInfo); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "textComponent", _s_set_textComponent); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "characterCount", _s_set_characterCount); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "spriteCount", _s_set_spriteCount); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "spaceCount", _s_set_spaceCount); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "wordCount", _s_set_wordCount); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "linkCount", _s_set_linkCount); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "lineCount", _s_set_lineCount); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "pageCount", _s_set_pageCount); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "materialCount", _s_set_materialCount); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "characterInfo", _s_set_characterInfo); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "wordInfo", _s_set_wordInfo); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "linkInfo", _s_set_linkInfo); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "lineInfo", _s_set_lineInfo); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "pageInfo", _s_set_pageInfo); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "meshInfo", _s_set_meshInfo); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new TMPro.TMP_TextInfo(); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 2 && translator.Assignable(L, 2)) - { - TMPro.TMP_Text _textComponent = (TMPro.TMP_Text)translator.GetObject(L, 2, typeof(TMPro.TMP_Text)); - - var gen_ret = new TMPro.TMP_TextInfo(_textComponent); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to TMPro.TMP_TextInfo constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Clear(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - TMPro.TMP_TextInfo gen_to_be_invoked = (TMPro.TMP_TextInfo)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Clear( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ClearMeshInfo(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - TMPro.TMP_TextInfo gen_to_be_invoked = (TMPro.TMP_TextInfo)translator.FastGetCSObj(L, 1); - - - - { - bool _updateMesh = LuaAPI.lua_toboolean(L, 2); - - gen_to_be_invoked.ClearMeshInfo( _updateMesh ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ClearAllMeshInfo(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - TMPro.TMP_TextInfo gen_to_be_invoked = (TMPro.TMP_TextInfo)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.ClearAllMeshInfo( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ResetVertexLayout(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - TMPro.TMP_TextInfo gen_to_be_invoked = (TMPro.TMP_TextInfo)translator.FastGetCSObj(L, 1); - - - - { - bool _isVolumetric = LuaAPI.lua_toboolean(L, 2); - - gen_to_be_invoked.ResetVertexLayout( _isVolumetric ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ClearUnusedVertices(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - TMPro.TMP_TextInfo gen_to_be_invoked = (TMPro.TMP_TextInfo)translator.FastGetCSObj(L, 1); - - - - { - TMPro.MaterialReference[] _materials = (TMPro.MaterialReference[])translator.GetObject(L, 2, typeof(TMPro.MaterialReference[])); - - gen_to_be_invoked.ClearUnusedVertices( _materials ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ClearLineInfo(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - TMPro.TMP_TextInfo gen_to_be_invoked = (TMPro.TMP_TextInfo)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.ClearLineInfo( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CopyMeshInfoVertexData(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - TMPro.TMP_TextInfo gen_to_be_invoked = (TMPro.TMP_TextInfo)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.CopyMeshInfoVertexData( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_textComponent(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_TextInfo gen_to_be_invoked = (TMPro.TMP_TextInfo)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.textComponent); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_characterCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_TextInfo gen_to_be_invoked = (TMPro.TMP_TextInfo)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.characterCount); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_spriteCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_TextInfo gen_to_be_invoked = (TMPro.TMP_TextInfo)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.spriteCount); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_spaceCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_TextInfo gen_to_be_invoked = (TMPro.TMP_TextInfo)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.spaceCount); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_wordCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_TextInfo gen_to_be_invoked = (TMPro.TMP_TextInfo)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.wordCount); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_linkCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_TextInfo gen_to_be_invoked = (TMPro.TMP_TextInfo)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.linkCount); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_lineCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_TextInfo gen_to_be_invoked = (TMPro.TMP_TextInfo)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.lineCount); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_pageCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_TextInfo gen_to_be_invoked = (TMPro.TMP_TextInfo)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.pageCount); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_materialCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_TextInfo gen_to_be_invoked = (TMPro.TMP_TextInfo)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.materialCount); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_characterInfo(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_TextInfo gen_to_be_invoked = (TMPro.TMP_TextInfo)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.characterInfo); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_wordInfo(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_TextInfo gen_to_be_invoked = (TMPro.TMP_TextInfo)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.wordInfo); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_linkInfo(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_TextInfo gen_to_be_invoked = (TMPro.TMP_TextInfo)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.linkInfo); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_lineInfo(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_TextInfo gen_to_be_invoked = (TMPro.TMP_TextInfo)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.lineInfo); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_pageInfo(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_TextInfo gen_to_be_invoked = (TMPro.TMP_TextInfo)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.pageInfo); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_meshInfo(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_TextInfo gen_to_be_invoked = (TMPro.TMP_TextInfo)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.meshInfo); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_textComponent(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_TextInfo gen_to_be_invoked = (TMPro.TMP_TextInfo)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.textComponent = (TMPro.TMP_Text)translator.GetObject(L, 2, typeof(TMPro.TMP_Text)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_characterCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_TextInfo gen_to_be_invoked = (TMPro.TMP_TextInfo)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.characterCount = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_spriteCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_TextInfo gen_to_be_invoked = (TMPro.TMP_TextInfo)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.spriteCount = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_spaceCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_TextInfo gen_to_be_invoked = (TMPro.TMP_TextInfo)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.spaceCount = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_wordCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_TextInfo gen_to_be_invoked = (TMPro.TMP_TextInfo)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.wordCount = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_linkCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_TextInfo gen_to_be_invoked = (TMPro.TMP_TextInfo)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.linkCount = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_lineCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_TextInfo gen_to_be_invoked = (TMPro.TMP_TextInfo)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.lineCount = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_pageCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_TextInfo gen_to_be_invoked = (TMPro.TMP_TextInfo)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.pageCount = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_materialCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_TextInfo gen_to_be_invoked = (TMPro.TMP_TextInfo)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.materialCount = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_characterInfo(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_TextInfo gen_to_be_invoked = (TMPro.TMP_TextInfo)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.characterInfo = (TMPro.TMP_CharacterInfo[])translator.GetObject(L, 2, typeof(TMPro.TMP_CharacterInfo[])); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_wordInfo(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_TextInfo gen_to_be_invoked = (TMPro.TMP_TextInfo)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.wordInfo = (TMPro.TMP_WordInfo[])translator.GetObject(L, 2, typeof(TMPro.TMP_WordInfo[])); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_linkInfo(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_TextInfo gen_to_be_invoked = (TMPro.TMP_TextInfo)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.linkInfo = (TMPro.TMP_LinkInfo[])translator.GetObject(L, 2, typeof(TMPro.TMP_LinkInfo[])); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_lineInfo(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_TextInfo gen_to_be_invoked = (TMPro.TMP_TextInfo)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.lineInfo = (TMPro.TMP_LineInfo[])translator.GetObject(L, 2, typeof(TMPro.TMP_LineInfo[])); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_pageInfo(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_TextInfo gen_to_be_invoked = (TMPro.TMP_TextInfo)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.pageInfo = (TMPro.TMP_PageInfo[])translator.GetObject(L, 2, typeof(TMPro.TMP_PageInfo[])); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_meshInfo(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_TextInfo gen_to_be_invoked = (TMPro.TMP_TextInfo)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.meshInfo = (TMPro.TMP_MeshInfo[])translator.GetObject(L, 2, typeof(TMPro.TMP_MeshInfo[])); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/TMPro_TMP_TextParsingUtilitiesWrap.cs b/Assets/XLua/Gen/TMPro_TMP_TextParsingUtilitiesWrap.cs deleted file mode 100644 index 99af2ee42..000000000 --- a/Assets/XLua/Gen/TMPro_TMP_TextParsingUtilitiesWrap.cs +++ /dev/null @@ -1,283 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class TMProTMP_TextParsingUtilitiesWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(TMPro.TMP_TextParsingUtilities); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 7, 1, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetHashCode", _m_GetHashCode_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetHashCodeCaseSensitive", _m_GetHashCodeCaseSensitive_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "ToLowerASCIIFast", _m_ToLowerASCIIFast_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "ToUpperASCIIFast", _m_ToUpperASCIIFast_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "IsHighSurrogate", _m_IsHighSurrogate_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "IsLowSurrogate", _m_IsLowSurrogate_xlua_st_); - - - - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "instance", _g_get_instance); - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new TMPro.TMP_TextParsingUtilities(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to TMPro.TMP_TextParsingUtilities constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetHashCode_xlua_st_(RealStatePtr L) - { - try { - - - - - { - string _s = LuaAPI.lua_tostring(L, 1); - - var gen_ret = TMPro.TMP_TextParsingUtilities.GetHashCode( _s ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetHashCodeCaseSensitive_xlua_st_(RealStatePtr L) - { - try { - - - - - { - string _s = LuaAPI.lua_tostring(L, 1); - - var gen_ret = TMPro.TMP_TextParsingUtilities.GetHashCodeCaseSensitive( _s ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ToLowerASCIIFast_xlua_st_(RealStatePtr L) - { - try { - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - char _c = (char)LuaAPI.xlua_tointeger(L, 1); - - var gen_ret = TMPro.TMP_TextParsingUtilities.ToLowerASCIIFast( _c ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - uint _c = LuaAPI.xlua_touint(L, 1); - - var gen_ret = TMPro.TMP_TextParsingUtilities.ToLowerASCIIFast( _c ); - LuaAPI.xlua_pushuint(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to TMPro.TMP_TextParsingUtilities.ToLowerASCIIFast!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ToUpperASCIIFast_xlua_st_(RealStatePtr L) - { - try { - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - char _c = (char)LuaAPI.xlua_tointeger(L, 1); - - var gen_ret = TMPro.TMP_TextParsingUtilities.ToUpperASCIIFast( _c ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - uint _c = LuaAPI.xlua_touint(L, 1); - - var gen_ret = TMPro.TMP_TextParsingUtilities.ToUpperASCIIFast( _c ); - LuaAPI.xlua_pushuint(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to TMPro.TMP_TextParsingUtilities.ToUpperASCIIFast!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_IsHighSurrogate_xlua_st_(RealStatePtr L) - { - try { - - - - - { - uint _c = LuaAPI.xlua_touint(L, 1); - - var gen_ret = TMPro.TMP_TextParsingUtilities.IsHighSurrogate( _c ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_IsLowSurrogate_xlua_st_(RealStatePtr L) - { - try { - - - - - { - uint _c = LuaAPI.xlua_touint(L, 1); - - var gen_ret = TMPro.TMP_TextParsingUtilities.IsLowSurrogate( _c ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_instance(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, TMPro.TMP_TextParsingUtilities.instance); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - - - - - } -} diff --git a/Assets/XLua/Gen/TMPro_TMP_TextUtilitiesWrap.cs b/Assets/XLua/Gen/TMPro_TMP_TextUtilitiesWrap.cs deleted file mode 100644 index d9935b3c8..000000000 --- a/Assets/XLua/Gen/TMPro_TMP_TextUtilitiesWrap.cs +++ /dev/null @@ -1,666 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class TMProTMP_TextUtilitiesWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(TMPro.TMP_TextUtilities); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 21, 0, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetCursorIndexFromPosition", _m_GetCursorIndexFromPosition_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "FindNearestLine", _m_FindNearestLine_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "FindNearestCharacterOnLine", _m_FindNearestCharacterOnLine_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "IsIntersectingRectTransform", _m_IsIntersectingRectTransform_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "FindIntersectingCharacter", _m_FindIntersectingCharacter_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "FindNearestCharacter", _m_FindNearestCharacter_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "FindIntersectingWord", _m_FindIntersectingWord_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "FindNearestWord", _m_FindNearestWord_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "FindIntersectingLine", _m_FindIntersectingLine_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "FindIntersectingLink", _m_FindIntersectingLink_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "FindNearestLink", _m_FindNearestLink_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "ScreenPointToWorldPointInRectangle", _m_ScreenPointToWorldPointInRectangle_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "DistanceToLine", _m_DistanceToLine_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "ToLowerFast", _m_ToLowerFast_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "ToUpperFast", _m_ToUpperFast_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetHashCode", _m_GetHashCode_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetSimpleHashCode", _m_GetSimpleHashCode_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetSimpleHashCodeLowercase", _m_GetSimpleHashCodeLowercase_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "HexToInt", _m_HexToInt_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "StringHexToInt", _m_StringHexToInt_xlua_st_); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "TMPro.TMP_TextUtilities does not have a constructor!"); - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetCursorIndexFromPosition_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)) - { - TMPro.TMP_Text _textComponent = (TMPro.TMP_Text)translator.GetObject(L, 1, typeof(TMPro.TMP_Text)); - UnityEngine.Vector3 _position;translator.Get(L, 2, out _position); - UnityEngine.Camera _camera = (UnityEngine.Camera)translator.GetObject(L, 3, typeof(UnityEngine.Camera)); - - var gen_ret = TMPro.TMP_TextUtilities.GetCursorIndexFromPosition( _textComponent, _position, _camera ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)) - { - TMPro.TMP_Text _textComponent = (TMPro.TMP_Text)translator.GetObject(L, 1, typeof(TMPro.TMP_Text)); - UnityEngine.Vector3 _position;translator.Get(L, 2, out _position); - UnityEngine.Camera _camera = (UnityEngine.Camera)translator.GetObject(L, 3, typeof(UnityEngine.Camera)); - TMPro.CaretPosition _cursor; - - var gen_ret = TMPro.TMP_TextUtilities.GetCursorIndexFromPosition( _textComponent, _position, _camera, out _cursor ); - LuaAPI.xlua_pushinteger(L, gen_ret); - translator.Push(L, _cursor); - - - - - return 2; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to TMPro.TMP_TextUtilities.GetCursorIndexFromPosition!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_FindNearestLine_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - TMPro.TMP_Text _text = (TMPro.TMP_Text)translator.GetObject(L, 1, typeof(TMPro.TMP_Text)); - UnityEngine.Vector3 _position;translator.Get(L, 2, out _position); - UnityEngine.Camera _camera = (UnityEngine.Camera)translator.GetObject(L, 3, typeof(UnityEngine.Camera)); - - var gen_ret = TMPro.TMP_TextUtilities.FindNearestLine( _text, _position, _camera ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_FindNearestCharacterOnLine_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - TMPro.TMP_Text _text = (TMPro.TMP_Text)translator.GetObject(L, 1, typeof(TMPro.TMP_Text)); - UnityEngine.Vector3 _position;translator.Get(L, 2, out _position); - int _line = LuaAPI.xlua_tointeger(L, 3); - UnityEngine.Camera _camera = (UnityEngine.Camera)translator.GetObject(L, 4, typeof(UnityEngine.Camera)); - bool _visibleOnly = LuaAPI.lua_toboolean(L, 5); - - var gen_ret = TMPro.TMP_TextUtilities.FindNearestCharacterOnLine( _text, _position, _line, _camera, _visibleOnly ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_IsIntersectingRectTransform_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.RectTransform _rectTransform = (UnityEngine.RectTransform)translator.GetObject(L, 1, typeof(UnityEngine.RectTransform)); - UnityEngine.Vector3 _position;translator.Get(L, 2, out _position); - UnityEngine.Camera _camera = (UnityEngine.Camera)translator.GetObject(L, 3, typeof(UnityEngine.Camera)); - - var gen_ret = TMPro.TMP_TextUtilities.IsIntersectingRectTransform( _rectTransform, _position, _camera ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_FindIntersectingCharacter_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - TMPro.TMP_Text _text = (TMPro.TMP_Text)translator.GetObject(L, 1, typeof(TMPro.TMP_Text)); - UnityEngine.Vector3 _position;translator.Get(L, 2, out _position); - UnityEngine.Camera _camera = (UnityEngine.Camera)translator.GetObject(L, 3, typeof(UnityEngine.Camera)); - bool _visibleOnly = LuaAPI.lua_toboolean(L, 4); - - var gen_ret = TMPro.TMP_TextUtilities.FindIntersectingCharacter( _text, _position, _camera, _visibleOnly ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_FindNearestCharacter_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - TMPro.TMP_Text _text = (TMPro.TMP_Text)translator.GetObject(L, 1, typeof(TMPro.TMP_Text)); - UnityEngine.Vector3 _position;translator.Get(L, 2, out _position); - UnityEngine.Camera _camera = (UnityEngine.Camera)translator.GetObject(L, 3, typeof(UnityEngine.Camera)); - bool _visibleOnly = LuaAPI.lua_toboolean(L, 4); - - var gen_ret = TMPro.TMP_TextUtilities.FindNearestCharacter( _text, _position, _camera, _visibleOnly ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_FindIntersectingWord_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - TMPro.TMP_Text _text = (TMPro.TMP_Text)translator.GetObject(L, 1, typeof(TMPro.TMP_Text)); - UnityEngine.Vector3 _position;translator.Get(L, 2, out _position); - UnityEngine.Camera _camera = (UnityEngine.Camera)translator.GetObject(L, 3, typeof(UnityEngine.Camera)); - - var gen_ret = TMPro.TMP_TextUtilities.FindIntersectingWord( _text, _position, _camera ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_FindNearestWord_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - TMPro.TMP_Text _text = (TMPro.TMP_Text)translator.GetObject(L, 1, typeof(TMPro.TMP_Text)); - UnityEngine.Vector3 _position;translator.Get(L, 2, out _position); - UnityEngine.Camera _camera = (UnityEngine.Camera)translator.GetObject(L, 3, typeof(UnityEngine.Camera)); - - var gen_ret = TMPro.TMP_TextUtilities.FindNearestWord( _text, _position, _camera ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_FindIntersectingLine_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - TMPro.TMP_Text _text = (TMPro.TMP_Text)translator.GetObject(L, 1, typeof(TMPro.TMP_Text)); - UnityEngine.Vector3 _position;translator.Get(L, 2, out _position); - UnityEngine.Camera _camera = (UnityEngine.Camera)translator.GetObject(L, 3, typeof(UnityEngine.Camera)); - - var gen_ret = TMPro.TMP_TextUtilities.FindIntersectingLine( _text, _position, _camera ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_FindIntersectingLink_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - TMPro.TMP_Text _text = (TMPro.TMP_Text)translator.GetObject(L, 1, typeof(TMPro.TMP_Text)); - UnityEngine.Vector3 _position;translator.Get(L, 2, out _position); - UnityEngine.Camera _camera = (UnityEngine.Camera)translator.GetObject(L, 3, typeof(UnityEngine.Camera)); - - var gen_ret = TMPro.TMP_TextUtilities.FindIntersectingLink( _text, _position, _camera ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_FindNearestLink_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - TMPro.TMP_Text _text = (TMPro.TMP_Text)translator.GetObject(L, 1, typeof(TMPro.TMP_Text)); - UnityEngine.Vector3 _position;translator.Get(L, 2, out _position); - UnityEngine.Camera _camera = (UnityEngine.Camera)translator.GetObject(L, 3, typeof(UnityEngine.Camera)); - - var gen_ret = TMPro.TMP_TextUtilities.FindNearestLink( _text, _position, _camera ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ScreenPointToWorldPointInRectangle_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Transform _transform = (UnityEngine.Transform)translator.GetObject(L, 1, typeof(UnityEngine.Transform)); - UnityEngine.Vector2 _screenPoint;translator.Get(L, 2, out _screenPoint); - UnityEngine.Camera _cam = (UnityEngine.Camera)translator.GetObject(L, 3, typeof(UnityEngine.Camera)); - UnityEngine.Vector3 _worldPoint; - - var gen_ret = TMPro.TMP_TextUtilities.ScreenPointToWorldPointInRectangle( _transform, _screenPoint, _cam, out _worldPoint ); - LuaAPI.lua_pushboolean(L, gen_ret); - translator.PushUnityEngineVector3(L, _worldPoint); - - - - - return 2; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DistanceToLine_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Vector3 _a;translator.Get(L, 1, out _a); - UnityEngine.Vector3 _b;translator.Get(L, 2, out _b); - UnityEngine.Vector3 _point;translator.Get(L, 3, out _point); - - var gen_ret = TMPro.TMP_TextUtilities.DistanceToLine( _a, _b, _point ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ToLowerFast_xlua_st_(RealStatePtr L) - { - try { - - - - - { - char _c = (char)LuaAPI.xlua_tointeger(L, 1); - - var gen_ret = TMPro.TMP_TextUtilities.ToLowerFast( _c ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ToUpperFast_xlua_st_(RealStatePtr L) - { - try { - - - - - { - char _c = (char)LuaAPI.xlua_tointeger(L, 1); - - var gen_ret = TMPro.TMP_TextUtilities.ToUpperFast( _c ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetHashCode_xlua_st_(RealStatePtr L) - { - try { - - - - - { - string _s = LuaAPI.lua_tostring(L, 1); - - var gen_ret = TMPro.TMP_TextUtilities.GetHashCode( _s ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetSimpleHashCode_xlua_st_(RealStatePtr L) - { - try { - - - - - { - string _s = LuaAPI.lua_tostring(L, 1); - - var gen_ret = TMPro.TMP_TextUtilities.GetSimpleHashCode( _s ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetSimpleHashCodeLowercase_xlua_st_(RealStatePtr L) - { - try { - - - - - { - string _s = LuaAPI.lua_tostring(L, 1); - - var gen_ret = TMPro.TMP_TextUtilities.GetSimpleHashCodeLowercase( _s ); - LuaAPI.xlua_pushuint(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_HexToInt_xlua_st_(RealStatePtr L) - { - try { - - - - - { - char _hex = (char)LuaAPI.xlua_tointeger(L, 1); - - var gen_ret = TMPro.TMP_TextUtilities.HexToInt( _hex ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_StringHexToInt_xlua_st_(RealStatePtr L) - { - try { - - - - - { - string _s = LuaAPI.lua_tostring(L, 1); - - var gen_ret = TMPro.TMP_TextUtilities.StringHexToInt( _s ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/TMPro_TMP_UpdateManagerWrap.cs b/Assets/XLua/Gen/TMPro_TMP_UpdateManagerWrap.cs deleted file mode 100644 index 14c87b6a4..000000000 --- a/Assets/XLua/Gen/TMPro_TMP_UpdateManagerWrap.cs +++ /dev/null @@ -1,175 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class TMProTMP_UpdateManagerWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(TMPro.TMP_UpdateManager); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 5, 0, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "RegisterTextElementForLayoutRebuild", _m_RegisterTextElementForLayoutRebuild_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "RegisterTextElementForGraphicRebuild", _m_RegisterTextElementForGraphicRebuild_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "RegisterTextElementForCullingUpdate", _m_RegisterTextElementForCullingUpdate_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "UnRegisterTextElementForRebuild", _m_UnRegisterTextElementForRebuild_xlua_st_); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "TMPro.TMP_UpdateManager does not have a constructor!"); - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RegisterTextElementForLayoutRebuild_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - TMPro.TMP_Text _element = (TMPro.TMP_Text)translator.GetObject(L, 1, typeof(TMPro.TMP_Text)); - - TMPro.TMP_UpdateManager.RegisterTextElementForLayoutRebuild( _element ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RegisterTextElementForGraphicRebuild_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - TMPro.TMP_Text _element = (TMPro.TMP_Text)translator.GetObject(L, 1, typeof(TMPro.TMP_Text)); - - TMPro.TMP_UpdateManager.RegisterTextElementForGraphicRebuild( _element ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RegisterTextElementForCullingUpdate_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - TMPro.TMP_Text _element = (TMPro.TMP_Text)translator.GetObject(L, 1, typeof(TMPro.TMP_Text)); - - TMPro.TMP_UpdateManager.RegisterTextElementForCullingUpdate( _element ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_UnRegisterTextElementForRebuild_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - TMPro.TMP_Text _element = (TMPro.TMP_Text)translator.GetObject(L, 1, typeof(TMPro.TMP_Text)); - - TMPro.TMP_UpdateManager.UnRegisterTextElementForRebuild( _element ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/TMPro_TMP_UpdateRegistryWrap.cs b/Assets/XLua/Gen/TMPro_TMP_UpdateRegistryWrap.cs deleted file mode 100644 index cf8d5b9cf..000000000 --- a/Assets/XLua/Gen/TMPro_TMP_UpdateRegistryWrap.cs +++ /dev/null @@ -1,161 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class TMProTMP_UpdateRegistryWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(TMPro.TMP_UpdateRegistry); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 4, 1, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "RegisterCanvasElementForLayoutRebuild", _m_RegisterCanvasElementForLayoutRebuild_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "RegisterCanvasElementForGraphicRebuild", _m_RegisterCanvasElementForGraphicRebuild_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "UnRegisterCanvasElementForRebuild", _m_UnRegisterCanvasElementForRebuild_xlua_st_); - - - - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "instance", _g_get_instance); - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "TMPro.TMP_UpdateRegistry does not have a constructor!"); - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RegisterCanvasElementForLayoutRebuild_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.UI.ICanvasElement _element = (UnityEngine.UI.ICanvasElement)translator.GetObject(L, 1, typeof(UnityEngine.UI.ICanvasElement)); - - TMPro.TMP_UpdateRegistry.RegisterCanvasElementForLayoutRebuild( _element ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RegisterCanvasElementForGraphicRebuild_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.UI.ICanvasElement _element = (UnityEngine.UI.ICanvasElement)translator.GetObject(L, 1, typeof(UnityEngine.UI.ICanvasElement)); - - TMPro.TMP_UpdateRegistry.RegisterCanvasElementForGraphicRebuild( _element ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_UnRegisterCanvasElementForRebuild_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.UI.ICanvasElement _element = (UnityEngine.UI.ICanvasElement)translator.GetObject(L, 1, typeof(UnityEngine.UI.ICanvasElement)); - - TMPro.TMP_UpdateRegistry.UnRegisterCanvasElementForRebuild( _element ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_instance(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, TMPro.TMP_UpdateRegistry.instance); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - - - - - } -} diff --git a/Assets/XLua/Gen/TMPro_TMP_VertexWrap.cs b/Assets/XLua/Gen/TMPro_TMP_VertexWrap.cs deleted file mode 100644 index d5eaffa60..000000000 --- a/Assets/XLua/Gen/TMPro_TMP_VertexWrap.cs +++ /dev/null @@ -1,265 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class TMProTMP_VertexWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(TMPro.TMP_Vertex); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 5, 5); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "position", _g_get_position); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "uv", _g_get_uv); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "uv2", _g_get_uv2); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "uv4", _g_get_uv4); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "color", _g_get_color); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "position", _s_set_position); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "uv", _s_set_uv); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "uv2", _s_set_uv2); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "uv4", _s_set_uv4); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "color", _s_set_color); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 1, 0); - - - - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "zero", _g_get_zero); - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(TMPro.TMP_Vertex)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to TMPro.TMP_Vertex constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_zero(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, TMPro.TMP_Vertex.zero); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_position(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Vertex gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.position); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_uv(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Vertex gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineVector2(L, gen_to_be_invoked.uv); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_uv2(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Vertex gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineVector2(L, gen_to_be_invoked.uv2); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_uv4(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Vertex gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineVector2(L, gen_to_be_invoked.uv4); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_color(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Vertex gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.color); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_position(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Vertex gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Vector3 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.position = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_uv(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Vertex gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Vector2 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.uv = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_uv2(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Vertex gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Vector2 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.uv2 = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_uv4(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Vertex gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Vector2 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.uv4 = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_color(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Vertex gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Color32 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.color = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/TMPro_TMP_WordInfoWrap.cs b/Assets/XLua/Gen/TMPro_TMP_WordInfoWrap.cs deleted file mode 100644 index aa08f82c2..000000000 --- a/Assets/XLua/Gen/TMPro_TMP_WordInfoWrap.cs +++ /dev/null @@ -1,245 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class TMProTMP_WordInfoWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(TMPro.TMP_WordInfo); - Utils.BeginObjectRegister(type, L, translator, 0, 1, 4, 4); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetWord", _m_GetWord); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "textComponent", _g_get_textComponent); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "firstCharacterIndex", _g_get_firstCharacterIndex); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "lastCharacterIndex", _g_get_lastCharacterIndex); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "characterCount", _g_get_characterCount); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "textComponent", _s_set_textComponent); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "firstCharacterIndex", _s_set_firstCharacterIndex); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "lastCharacterIndex", _s_set_lastCharacterIndex); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "characterCount", _s_set_characterCount); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(TMPro.TMP_WordInfo)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to TMPro.TMP_WordInfo constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetWord(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - TMPro.TMP_WordInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - - var gen_ret = gen_to_be_invoked.GetWord( ); - LuaAPI.lua_pushstring(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_textComponent(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_WordInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.textComponent); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_firstCharacterIndex(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_WordInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.firstCharacterIndex); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_lastCharacterIndex(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_WordInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.lastCharacterIndex); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_characterCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_WordInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.characterCount); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_textComponent(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_WordInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.textComponent = (TMPro.TMP_Text)translator.GetObject(L, 2, typeof(TMPro.TMP_Text)); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_firstCharacterIndex(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_WordInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.firstCharacterIndex = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_lastCharacterIndex(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_WordInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.lastCharacterIndex = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_characterCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_WordInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.characterCount = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/TMPro_TMPro_EventManagerWrap.cs b/Assets/XLua/Gen/TMPro_TMPro_EventManagerWrap.cs deleted file mode 100644 index 1e7d4f64a..000000000 --- a/Assets/XLua/Gen/TMPro_TMPro_EventManagerWrap.cs +++ /dev/null @@ -1,403 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class TMProTMPro_EventManagerWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(TMPro.TMPro_EventManager); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 25, 0, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "ON_MATERIAL_PROPERTY_CHANGED", _m_ON_MATERIAL_PROPERTY_CHANGED_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "ON_FONT_PROPERTY_CHANGED", _m_ON_FONT_PROPERTY_CHANGED_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "ON_SPRITE_ASSET_PROPERTY_CHANGED", _m_ON_SPRITE_ASSET_PROPERTY_CHANGED_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "ON_TEXTMESHPRO_PROPERTY_CHANGED", _m_ON_TEXTMESHPRO_PROPERTY_CHANGED_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "ON_DRAG_AND_DROP_MATERIAL_CHANGED", _m_ON_DRAG_AND_DROP_MATERIAL_CHANGED_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "ON_TEXT_STYLE_PROPERTY_CHANGED", _m_ON_TEXT_STYLE_PROPERTY_CHANGED_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "ON_COLOR_GRADIENT_PROPERTY_CHANGED", _m_ON_COLOR_GRADIENT_PROPERTY_CHANGED_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "ON_TEXT_CHANGED", _m_ON_TEXT_CHANGED_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "ON_TMP_SETTINGS_CHANGED", _m_ON_TMP_SETTINGS_CHANGED_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "ON_RESOURCES_LOADED", _m_ON_RESOURCES_LOADED_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "ON_TEXTMESHPRO_UGUI_PROPERTY_CHANGED", _m_ON_TEXTMESHPRO_UGUI_PROPERTY_CHANGED_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "ON_COMPUTE_DT_EVENT", _m_ON_COMPUTE_DT_EVENT_xlua_st_); - - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "COMPUTE_DT_EVENT", TMPro.TMPro_EventManager.COMPUTE_DT_EVENT); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "MATERIAL_PROPERTY_EVENT", TMPro.TMPro_EventManager.MATERIAL_PROPERTY_EVENT); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "FONT_PROPERTY_EVENT", TMPro.TMPro_EventManager.FONT_PROPERTY_EVENT); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "SPRITE_ASSET_PROPERTY_EVENT", TMPro.TMPro_EventManager.SPRITE_ASSET_PROPERTY_EVENT); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "TEXTMESHPRO_PROPERTY_EVENT", TMPro.TMPro_EventManager.TEXTMESHPRO_PROPERTY_EVENT); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "DRAG_AND_DROP_MATERIAL_EVENT", TMPro.TMPro_EventManager.DRAG_AND_DROP_MATERIAL_EVENT); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "TEXT_STYLE_PROPERTY_EVENT", TMPro.TMPro_EventManager.TEXT_STYLE_PROPERTY_EVENT); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "COLOR_GRADIENT_PROPERTY_EVENT", TMPro.TMPro_EventManager.COLOR_GRADIENT_PROPERTY_EVENT); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "TMP_SETTINGS_PROPERTY_EVENT", TMPro.TMPro_EventManager.TMP_SETTINGS_PROPERTY_EVENT); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "RESOURCE_LOAD_EVENT", TMPro.TMPro_EventManager.RESOURCE_LOAD_EVENT); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "TEXTMESHPRO_UGUI_PROPERTY_EVENT", TMPro.TMPro_EventManager.TEXTMESHPRO_UGUI_PROPERTY_EVENT); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "TEXT_CHANGED_EVENT", TMPro.TMPro_EventManager.TEXT_CHANGED_EVENT); - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "TMPro.TMPro_EventManager does not have a constructor!"); - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ON_MATERIAL_PROPERTY_CHANGED_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - bool _isChanged = LuaAPI.lua_toboolean(L, 1); - UnityEngine.Material _mat = (UnityEngine.Material)translator.GetObject(L, 2, typeof(UnityEngine.Material)); - - TMPro.TMPro_EventManager.ON_MATERIAL_PROPERTY_CHANGED( _isChanged, _mat ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ON_FONT_PROPERTY_CHANGED_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - bool _isChanged = LuaAPI.lua_toboolean(L, 1); - UnityEngine.Object _obj = (UnityEngine.Object)translator.GetObject(L, 2, typeof(UnityEngine.Object)); - - TMPro.TMPro_EventManager.ON_FONT_PROPERTY_CHANGED( _isChanged, _obj ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ON_SPRITE_ASSET_PROPERTY_CHANGED_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - bool _isChanged = LuaAPI.lua_toboolean(L, 1); - UnityEngine.Object _obj = (UnityEngine.Object)translator.GetObject(L, 2, typeof(UnityEngine.Object)); - - TMPro.TMPro_EventManager.ON_SPRITE_ASSET_PROPERTY_CHANGED( _isChanged, _obj ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ON_TEXTMESHPRO_PROPERTY_CHANGED_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - bool _isChanged = LuaAPI.lua_toboolean(L, 1); - UnityEngine.Object _obj = (UnityEngine.Object)translator.GetObject(L, 2, typeof(UnityEngine.Object)); - - TMPro.TMPro_EventManager.ON_TEXTMESHPRO_PROPERTY_CHANGED( _isChanged, _obj ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ON_DRAG_AND_DROP_MATERIAL_CHANGED_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.GameObject _sender = (UnityEngine.GameObject)translator.GetObject(L, 1, typeof(UnityEngine.GameObject)); - UnityEngine.Material _currentMaterial = (UnityEngine.Material)translator.GetObject(L, 2, typeof(UnityEngine.Material)); - UnityEngine.Material _newMaterial = (UnityEngine.Material)translator.GetObject(L, 3, typeof(UnityEngine.Material)); - - TMPro.TMPro_EventManager.ON_DRAG_AND_DROP_MATERIAL_CHANGED( _sender, _currentMaterial, _newMaterial ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ON_TEXT_STYLE_PROPERTY_CHANGED_xlua_st_(RealStatePtr L) - { - try { - - - - - { - bool _isChanged = LuaAPI.lua_toboolean(L, 1); - - TMPro.TMPro_EventManager.ON_TEXT_STYLE_PROPERTY_CHANGED( _isChanged ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ON_COLOR_GRADIENT_PROPERTY_CHANGED_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Object _obj = (UnityEngine.Object)translator.GetObject(L, 1, typeof(UnityEngine.Object)); - - TMPro.TMPro_EventManager.ON_COLOR_GRADIENT_PROPERTY_CHANGED( _obj ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ON_TEXT_CHANGED_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Object _obj = (UnityEngine.Object)translator.GetObject(L, 1, typeof(UnityEngine.Object)); - - TMPro.TMPro_EventManager.ON_TEXT_CHANGED( _obj ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ON_TMP_SETTINGS_CHANGED_xlua_st_(RealStatePtr L) - { - try { - - - - - { - - TMPro.TMPro_EventManager.ON_TMP_SETTINGS_CHANGED( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ON_RESOURCES_LOADED_xlua_st_(RealStatePtr L) - { - try { - - - - - { - - TMPro.TMPro_EventManager.ON_RESOURCES_LOADED( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ON_TEXTMESHPRO_UGUI_PROPERTY_CHANGED_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - bool _isChanged = LuaAPI.lua_toboolean(L, 1); - UnityEngine.Object _obj = (UnityEngine.Object)translator.GetObject(L, 2, typeof(UnityEngine.Object)); - - TMPro.TMPro_EventManager.ON_TEXTMESHPRO_UGUI_PROPERTY_CHANGED( _isChanged, _obj ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ON_COMPUTE_DT_EVENT_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - object _Sender = translator.GetObject(L, 1, typeof(object)); - TMPro.Compute_DT_EventArgs _e = (TMPro.Compute_DT_EventArgs)translator.GetObject(L, 2, typeof(TMPro.Compute_DT_EventArgs)); - - TMPro.TMPro_EventManager.ON_COMPUTE_DT_EVENT( _Sender, _e ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/TMPro_TMPro_ExtensionMethodsWrap.cs b/Assets/XLua/Gen/TMPro_TMPro_ExtensionMethodsWrap.cs deleted file mode 100644 index b5b17d1b9..000000000 --- a/Assets/XLua/Gen/TMPro_TMPro_ExtensionMethodsWrap.cs +++ /dev/null @@ -1,67 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class TMProTMPro_ExtensionMethodsWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(TMPro.TMPro_ExtensionMethods); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "TMPro.TMPro_ExtensionMethods does not have a constructor!"); - } - - - - - - - - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/TMPro_TextContainerWrap.cs b/Assets/XLua/Gen/TMPro_TextContainerWrap.cs deleted file mode 100644 index 6e6c36d41..000000000 --- a/Assets/XLua/Gen/TMPro_TextContainerWrap.cs +++ /dev/null @@ -1,458 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class TMProTextContainerWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(TMPro.TextContainer); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 15, 9); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "hasChanged", _g_get_hasChanged); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "pivot", _g_get_pivot); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "anchorPosition", _g_get_anchorPosition); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "rect", _g_get_rect); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "size", _g_get_size); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "width", _g_get_width); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "height", _g_get_height); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "isDefaultWidth", _g_get_isDefaultWidth); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "isDefaultHeight", _g_get_isDefaultHeight); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "isAutoFitting", _g_get_isAutoFitting); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "corners", _g_get_corners); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "worldCorners", _g_get_worldCorners); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "margins", _g_get_margins); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "rectTransform", _g_get_rectTransform); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "textMeshPro", _g_get_textMeshPro); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "hasChanged", _s_set_hasChanged); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "pivot", _s_set_pivot); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "anchorPosition", _s_set_anchorPosition); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "rect", _s_set_rect); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "size", _s_set_size); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "width", _s_set_width); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "height", _s_set_height); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "isAutoFitting", _s_set_isAutoFitting); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "margins", _s_set_margins); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new TMPro.TextContainer(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to TMPro.TextContainer constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_hasChanged(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TextContainer gen_to_be_invoked = (TMPro.TextContainer)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.hasChanged); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_pivot(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TextContainer gen_to_be_invoked = (TMPro.TextContainer)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector2(L, gen_to_be_invoked.pivot); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_anchorPosition(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TextContainer gen_to_be_invoked = (TMPro.TextContainer)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.anchorPosition); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_rect(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TextContainer gen_to_be_invoked = (TMPro.TextContainer)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.rect); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_size(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TextContainer gen_to_be_invoked = (TMPro.TextContainer)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector2(L, gen_to_be_invoked.size); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_width(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TextContainer gen_to_be_invoked = (TMPro.TextContainer)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.width); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_height(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TextContainer gen_to_be_invoked = (TMPro.TextContainer)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.height); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_isDefaultWidth(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TextContainer gen_to_be_invoked = (TMPro.TextContainer)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.isDefaultWidth); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_isDefaultHeight(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TextContainer gen_to_be_invoked = (TMPro.TextContainer)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.isDefaultHeight); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_isAutoFitting(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TextContainer gen_to_be_invoked = (TMPro.TextContainer)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.isAutoFitting); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_corners(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TextContainer gen_to_be_invoked = (TMPro.TextContainer)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.corners); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_worldCorners(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TextContainer gen_to_be_invoked = (TMPro.TextContainer)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.worldCorners); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_margins(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TextContainer gen_to_be_invoked = (TMPro.TextContainer)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector4(L, gen_to_be_invoked.margins); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_rectTransform(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TextContainer gen_to_be_invoked = (TMPro.TextContainer)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.rectTransform); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_textMeshPro(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TextContainer gen_to_be_invoked = (TMPro.TextContainer)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.textMeshPro); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_hasChanged(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TextContainer gen_to_be_invoked = (TMPro.TextContainer)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.hasChanged = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_pivot(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TextContainer gen_to_be_invoked = (TMPro.TextContainer)translator.FastGetCSObj(L, 1); - UnityEngine.Vector2 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.pivot = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_anchorPosition(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TextContainer gen_to_be_invoked = (TMPro.TextContainer)translator.FastGetCSObj(L, 1); - TMPro.TextContainerAnchors gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.anchorPosition = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_rect(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TextContainer gen_to_be_invoked = (TMPro.TextContainer)translator.FastGetCSObj(L, 1); - UnityEngine.Rect gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.rect = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_size(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TextContainer gen_to_be_invoked = (TMPro.TextContainer)translator.FastGetCSObj(L, 1); - UnityEngine.Vector2 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.size = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_width(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TextContainer gen_to_be_invoked = (TMPro.TextContainer)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.width = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_height(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TextContainer gen_to_be_invoked = (TMPro.TextContainer)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.height = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_isAutoFitting(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TextContainer gen_to_be_invoked = (TMPro.TextContainer)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.isAutoFitting = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_margins(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TextContainer gen_to_be_invoked = (TMPro.TextContainer)translator.FastGetCSObj(L, 1); - UnityEngine.Vector4 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.margins = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/TMPro_VertexGradientWrap.cs b/Assets/XLua/Gen/TMPro_VertexGradientWrap.cs deleted file mode 100644 index 76d180e99..000000000 --- a/Assets/XLua/Gen/TMPro_VertexGradientWrap.cs +++ /dev/null @@ -1,239 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class TMProVertexGradientWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(TMPro.VertexGradient); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 4, 4); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "topLeft", _g_get_topLeft); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "topRight", _g_get_topRight); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "bottomLeft", _g_get_bottomLeft); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "bottomRight", _g_get_bottomRight); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "topLeft", _s_set_topLeft); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "topRight", _s_set_topRight); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "bottomLeft", _s_set_bottomLeft); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "bottomRight", _s_set_bottomRight); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 2 && translator.Assignable(L, 2)) - { - UnityEngine.Color _color;translator.Get(L, 2, out _color); - - var gen_ret = new TMPro.VertexGradient(_color); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 5 && translator.Assignable(L, 2) && translator.Assignable(L, 3) && translator.Assignable(L, 4) && translator.Assignable(L, 5)) - { - UnityEngine.Color _color0;translator.Get(L, 2, out _color0); - UnityEngine.Color _color1;translator.Get(L, 3, out _color1); - UnityEngine.Color _color2;translator.Get(L, 4, out _color2); - UnityEngine.Color _color3;translator.Get(L, 5, out _color3); - - var gen_ret = new TMPro.VertexGradient(_color0, _color1, _color2, _color3); - translator.Push(L, gen_ret); - - return 1; - } - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(TMPro.VertexGradient)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to TMPro.VertexGradient constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_topLeft(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.VertexGradient gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineColor(L, gen_to_be_invoked.topLeft); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_topRight(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.VertexGradient gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineColor(L, gen_to_be_invoked.topRight); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_bottomLeft(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.VertexGradient gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineColor(L, gen_to_be_invoked.bottomLeft); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_bottomRight(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.VertexGradient gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineColor(L, gen_to_be_invoked.bottomRight); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_topLeft(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.VertexGradient gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Color gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.topLeft = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_topRight(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.VertexGradient gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Color gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.topRight = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_bottomLeft(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.VertexGradient gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Color gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.bottomLeft = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_bottomRight(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.VertexGradient gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Color gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.bottomRight = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/TMPro_WordWrapStateWrap.cs b/Assets/XLua/Gen/TMPro_WordWrapStateWrap.cs deleted file mode 100644 index dcb0f4432..000000000 --- a/Assets/XLua/Gen/TMPro_WordWrapStateWrap.cs +++ /dev/null @@ -1,2251 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class TMProWordWrapStateWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(TMPro.WordWrapState); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 65, 65); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "previous_WordBreak", _g_get_previous_WordBreak); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "total_CharacterCount", _g_get_total_CharacterCount); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "visible_CharacterCount", _g_get_visible_CharacterCount); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "visible_SpriteCount", _g_get_visible_SpriteCount); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "visible_LinkCount", _g_get_visible_LinkCount); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "firstCharacterIndex", _g_get_firstCharacterIndex); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "firstVisibleCharacterIndex", _g_get_firstVisibleCharacterIndex); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "lastCharacterIndex", _g_get_lastCharacterIndex); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "lastVisibleCharIndex", _g_get_lastVisibleCharIndex); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "lineNumber", _g_get_lineNumber); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "maxCapHeight", _g_get_maxCapHeight); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "maxAscender", _g_get_maxAscender); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "maxDescender", _g_get_maxDescender); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "startOfLineAscender", _g_get_startOfLineAscender); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "maxLineAscender", _g_get_maxLineAscender); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "maxLineDescender", _g_get_maxLineDescender); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "pageAscender", _g_get_pageAscender); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "horizontalAlignment", _g_get_horizontalAlignment); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "marginLeft", _g_get_marginLeft); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "marginRight", _g_get_marginRight); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "xAdvance", _g_get_xAdvance); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "preferredWidth", _g_get_preferredWidth); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "preferredHeight", _g_get_preferredHeight); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "previousLineScale", _g_get_previousLineScale); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "wordCount", _g_get_wordCount); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "fontStyle", _g_get_fontStyle); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "italicAngle", _g_get_italicAngle); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "fontScaleMultiplier", _g_get_fontScaleMultiplier); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "currentFontSize", _g_get_currentFontSize); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "baselineOffset", _g_get_baselineOffset); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "lineOffset", _g_get_lineOffset); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "isDrivenLineSpacing", _g_get_isDrivenLineSpacing); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "glyphHorizontalAdvanceAdjustment", _g_get_glyphHorizontalAdvanceAdjustment); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "cSpace", _g_get_cSpace); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "mSpace", _g_get_mSpace); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "textInfo", _g_get_textInfo); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "lineInfo", _g_get_lineInfo); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "vertexColor", _g_get_vertexColor); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "underlineColor", _g_get_underlineColor); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "strikethroughColor", _g_get_strikethroughColor); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "highlightColor", _g_get_highlightColor); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "basicStyleStack", _g_get_basicStyleStack); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "italicAngleStack", _g_get_italicAngleStack); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "colorStack", _g_get_colorStack); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "underlineColorStack", _g_get_underlineColorStack); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "strikethroughColorStack", _g_get_strikethroughColorStack); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "highlightColorStack", _g_get_highlightColorStack); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "highlightStateStack", _g_get_highlightStateStack); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "colorGradientStack", _g_get_colorGradientStack); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "sizeStack", _g_get_sizeStack); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "indentStack", _g_get_indentStack); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "fontWeightStack", _g_get_fontWeightStack); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "styleStack", _g_get_styleStack); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "baselineStack", _g_get_baselineStack); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "actionStack", _g_get_actionStack); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "materialReferenceStack", _g_get_materialReferenceStack); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "lineJustificationStack", _g_get_lineJustificationStack); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "spriteAnimationID", _g_get_spriteAnimationID); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "currentFontAsset", _g_get_currentFontAsset); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "currentSpriteAsset", _g_get_currentSpriteAsset); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "currentMaterial", _g_get_currentMaterial); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "currentMaterialIndex", _g_get_currentMaterialIndex); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "meshExtents", _g_get_meshExtents); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "tagNoParsing", _g_get_tagNoParsing); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "isNonBreakingSpace", _g_get_isNonBreakingSpace); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "previous_WordBreak", _s_set_previous_WordBreak); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "total_CharacterCount", _s_set_total_CharacterCount); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "visible_CharacterCount", _s_set_visible_CharacterCount); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "visible_SpriteCount", _s_set_visible_SpriteCount); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "visible_LinkCount", _s_set_visible_LinkCount); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "firstCharacterIndex", _s_set_firstCharacterIndex); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "firstVisibleCharacterIndex", _s_set_firstVisibleCharacterIndex); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "lastCharacterIndex", _s_set_lastCharacterIndex); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "lastVisibleCharIndex", _s_set_lastVisibleCharIndex); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "lineNumber", _s_set_lineNumber); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "maxCapHeight", _s_set_maxCapHeight); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "maxAscender", _s_set_maxAscender); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "maxDescender", _s_set_maxDescender); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "startOfLineAscender", _s_set_startOfLineAscender); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "maxLineAscender", _s_set_maxLineAscender); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "maxLineDescender", _s_set_maxLineDescender); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "pageAscender", _s_set_pageAscender); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "horizontalAlignment", _s_set_horizontalAlignment); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "marginLeft", _s_set_marginLeft); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "marginRight", _s_set_marginRight); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "xAdvance", _s_set_xAdvance); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "preferredWidth", _s_set_preferredWidth); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "preferredHeight", _s_set_preferredHeight); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "previousLineScale", _s_set_previousLineScale); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "wordCount", _s_set_wordCount); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "fontStyle", _s_set_fontStyle); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "italicAngle", _s_set_italicAngle); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "fontScaleMultiplier", _s_set_fontScaleMultiplier); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "currentFontSize", _s_set_currentFontSize); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "baselineOffset", _s_set_baselineOffset); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "lineOffset", _s_set_lineOffset); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "isDrivenLineSpacing", _s_set_isDrivenLineSpacing); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "glyphHorizontalAdvanceAdjustment", _s_set_glyphHorizontalAdvanceAdjustment); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "cSpace", _s_set_cSpace); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "mSpace", _s_set_mSpace); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "textInfo", _s_set_textInfo); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "lineInfo", _s_set_lineInfo); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "vertexColor", _s_set_vertexColor); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "underlineColor", _s_set_underlineColor); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "strikethroughColor", _s_set_strikethroughColor); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "highlightColor", _s_set_highlightColor); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "basicStyleStack", _s_set_basicStyleStack); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "italicAngleStack", _s_set_italicAngleStack); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "colorStack", _s_set_colorStack); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "underlineColorStack", _s_set_underlineColorStack); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "strikethroughColorStack", _s_set_strikethroughColorStack); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "highlightColorStack", _s_set_highlightColorStack); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "highlightStateStack", _s_set_highlightStateStack); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "colorGradientStack", _s_set_colorGradientStack); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "sizeStack", _s_set_sizeStack); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "indentStack", _s_set_indentStack); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "fontWeightStack", _s_set_fontWeightStack); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "styleStack", _s_set_styleStack); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "baselineStack", _s_set_baselineStack); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "actionStack", _s_set_actionStack); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "materialReferenceStack", _s_set_materialReferenceStack); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "lineJustificationStack", _s_set_lineJustificationStack); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "spriteAnimationID", _s_set_spriteAnimationID); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "currentFontAsset", _s_set_currentFontAsset); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "currentSpriteAsset", _s_set_currentSpriteAsset); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "currentMaterial", _s_set_currentMaterial); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "currentMaterialIndex", _s_set_currentMaterialIndex); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "meshExtents", _s_set_meshExtents); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "tagNoParsing", _s_set_tagNoParsing); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "isNonBreakingSpace", _s_set_isNonBreakingSpace); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(TMPro.WordWrapState)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to TMPro.WordWrapState constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_previous_WordBreak(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.WordWrapState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.previous_WordBreak); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_total_CharacterCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.WordWrapState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.total_CharacterCount); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_visible_CharacterCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.WordWrapState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.visible_CharacterCount); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_visible_SpriteCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.WordWrapState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.visible_SpriteCount); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_visible_LinkCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.WordWrapState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.visible_LinkCount); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_firstCharacterIndex(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.WordWrapState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.firstCharacterIndex); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_firstVisibleCharacterIndex(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.WordWrapState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.firstVisibleCharacterIndex); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_lastCharacterIndex(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.WordWrapState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.lastCharacterIndex); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_lastVisibleCharIndex(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.WordWrapState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.lastVisibleCharIndex); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_lineNumber(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.WordWrapState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.lineNumber); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_maxCapHeight(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.WordWrapState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.maxCapHeight); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_maxAscender(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.WordWrapState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.maxAscender); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_maxDescender(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.WordWrapState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.maxDescender); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_startOfLineAscender(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.WordWrapState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.startOfLineAscender); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_maxLineAscender(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.WordWrapState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.maxLineAscender); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_maxLineDescender(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.WordWrapState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.maxLineDescender); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_pageAscender(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.WordWrapState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.pageAscender); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_horizontalAlignment(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.WordWrapState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.horizontalAlignment); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_marginLeft(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.WordWrapState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.marginLeft); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_marginRight(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.WordWrapState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.marginRight); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_xAdvance(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.WordWrapState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.xAdvance); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_preferredWidth(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.WordWrapState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.preferredWidth); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_preferredHeight(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.WordWrapState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.preferredHeight); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_previousLineScale(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.WordWrapState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.previousLineScale); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_wordCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.WordWrapState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.wordCount); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_fontStyle(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.WordWrapState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.fontStyle); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_italicAngle(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.WordWrapState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.italicAngle); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_fontScaleMultiplier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.WordWrapState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.fontScaleMultiplier); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_currentFontSize(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.WordWrapState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.currentFontSize); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_baselineOffset(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.WordWrapState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.baselineOffset); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_lineOffset(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.WordWrapState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.lineOffset); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_isDrivenLineSpacing(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.WordWrapState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.isDrivenLineSpacing); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_glyphHorizontalAdvanceAdjustment(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.WordWrapState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.glyphHorizontalAdvanceAdjustment); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_cSpace(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.WordWrapState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.cSpace); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_mSpace(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.WordWrapState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.mSpace); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_textInfo(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.WordWrapState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.textInfo); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_lineInfo(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.WordWrapState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.lineInfo); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_vertexColor(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.WordWrapState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.vertexColor); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_underlineColor(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.WordWrapState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.underlineColor); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_strikethroughColor(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.WordWrapState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.strikethroughColor); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_highlightColor(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.WordWrapState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.highlightColor); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_basicStyleStack(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.WordWrapState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.basicStyleStack); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_italicAngleStack(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.WordWrapState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.italicAngleStack); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_colorStack(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.WordWrapState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.colorStack); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_underlineColorStack(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.WordWrapState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.underlineColorStack); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_strikethroughColorStack(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.WordWrapState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.strikethroughColorStack); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_highlightColorStack(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.WordWrapState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.highlightColorStack); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_highlightStateStack(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.WordWrapState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.highlightStateStack); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_colorGradientStack(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.WordWrapState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.colorGradientStack); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_sizeStack(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.WordWrapState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.sizeStack); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_indentStack(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.WordWrapState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.indentStack); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_fontWeightStack(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.WordWrapState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.fontWeightStack); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_styleStack(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.WordWrapState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.styleStack); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_baselineStack(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.WordWrapState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.baselineStack); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_actionStack(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.WordWrapState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.actionStack); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_materialReferenceStack(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.WordWrapState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.materialReferenceStack); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_lineJustificationStack(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.WordWrapState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.lineJustificationStack); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_spriteAnimationID(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.WordWrapState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.spriteAnimationID); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_currentFontAsset(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.WordWrapState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.currentFontAsset); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_currentSpriteAsset(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.WordWrapState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.currentSpriteAsset); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_currentMaterial(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.WordWrapState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.currentMaterial); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_currentMaterialIndex(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.WordWrapState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.currentMaterialIndex); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_meshExtents(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.WordWrapState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.meshExtents); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_tagNoParsing(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.WordWrapState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.tagNoParsing); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_isNonBreakingSpace(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.WordWrapState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.isNonBreakingSpace); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_previous_WordBreak(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.WordWrapState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.previous_WordBreak = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_total_CharacterCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.WordWrapState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.total_CharacterCount = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_visible_CharacterCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.WordWrapState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.visible_CharacterCount = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_visible_SpriteCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.WordWrapState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.visible_SpriteCount = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_visible_LinkCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.WordWrapState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.visible_LinkCount = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_firstCharacterIndex(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.WordWrapState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.firstCharacterIndex = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_firstVisibleCharacterIndex(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.WordWrapState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.firstVisibleCharacterIndex = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_lastCharacterIndex(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.WordWrapState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.lastCharacterIndex = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_lastVisibleCharIndex(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.WordWrapState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.lastVisibleCharIndex = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_lineNumber(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.WordWrapState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.lineNumber = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_maxCapHeight(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.WordWrapState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.maxCapHeight = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_maxAscender(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.WordWrapState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.maxAscender = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_maxDescender(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.WordWrapState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.maxDescender = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_startOfLineAscender(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.WordWrapState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.startOfLineAscender = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_maxLineAscender(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.WordWrapState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.maxLineAscender = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_maxLineDescender(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.WordWrapState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.maxLineDescender = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_pageAscender(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.WordWrapState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.pageAscender = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_horizontalAlignment(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.WordWrapState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - TMPro.HorizontalAlignmentOptions gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.horizontalAlignment = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_marginLeft(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.WordWrapState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.marginLeft = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_marginRight(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.WordWrapState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.marginRight = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_xAdvance(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.WordWrapState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.xAdvance = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_preferredWidth(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.WordWrapState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.preferredWidth = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_preferredHeight(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.WordWrapState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.preferredHeight = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_previousLineScale(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.WordWrapState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.previousLineScale = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_wordCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.WordWrapState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.wordCount = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_fontStyle(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.WordWrapState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - TMPro.FontStyles gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.fontStyle = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_italicAngle(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.WordWrapState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.italicAngle = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_fontScaleMultiplier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.WordWrapState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.fontScaleMultiplier = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_currentFontSize(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.WordWrapState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.currentFontSize = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_baselineOffset(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.WordWrapState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.baselineOffset = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_lineOffset(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.WordWrapState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.lineOffset = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_isDrivenLineSpacing(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.WordWrapState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.isDrivenLineSpacing = LuaAPI.lua_toboolean(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_glyphHorizontalAdvanceAdjustment(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.WordWrapState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.glyphHorizontalAdvanceAdjustment = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_cSpace(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.WordWrapState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.cSpace = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_mSpace(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.WordWrapState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.mSpace = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_textInfo(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.WordWrapState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.textInfo = (TMPro.TMP_TextInfo)translator.GetObject(L, 2, typeof(TMPro.TMP_TextInfo)); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_lineInfo(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.WordWrapState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - TMPro.TMP_LineInfo gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.lineInfo = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_vertexColor(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.WordWrapState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Color32 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.vertexColor = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_underlineColor(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.WordWrapState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Color32 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.underlineColor = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_strikethroughColor(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.WordWrapState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Color32 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.strikethroughColor = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_highlightColor(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.WordWrapState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Color32 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.highlightColor = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_basicStyleStack(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.WordWrapState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - TMPro.TMP_FontStyleStack gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.basicStyleStack = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_italicAngleStack(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.WordWrapState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - TMPro.TMP_TextProcessingStack gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.italicAngleStack = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_colorStack(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.WordWrapState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - TMPro.TMP_TextProcessingStack gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.colorStack = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_underlineColorStack(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.WordWrapState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - TMPro.TMP_TextProcessingStack gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.underlineColorStack = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_strikethroughColorStack(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.WordWrapState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - TMPro.TMP_TextProcessingStack gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.strikethroughColorStack = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_highlightColorStack(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.WordWrapState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - TMPro.TMP_TextProcessingStack gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.highlightColorStack = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_highlightStateStack(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.WordWrapState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - TMPro.TMP_TextProcessingStack gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.highlightStateStack = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_colorGradientStack(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.WordWrapState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - TMPro.TMP_TextProcessingStack gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.colorGradientStack = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_sizeStack(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.WordWrapState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - TMPro.TMP_TextProcessingStack gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.sizeStack = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_indentStack(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.WordWrapState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - TMPro.TMP_TextProcessingStack gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.indentStack = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_fontWeightStack(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.WordWrapState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - TMPro.TMP_TextProcessingStack gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.fontWeightStack = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_styleStack(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.WordWrapState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - TMPro.TMP_TextProcessingStack gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.styleStack = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_baselineStack(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.WordWrapState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - TMPro.TMP_TextProcessingStack gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.baselineStack = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_actionStack(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.WordWrapState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - TMPro.TMP_TextProcessingStack gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.actionStack = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_materialReferenceStack(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.WordWrapState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - TMPro.TMP_TextProcessingStack gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.materialReferenceStack = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_lineJustificationStack(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.WordWrapState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - TMPro.TMP_TextProcessingStack gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.lineJustificationStack = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_spriteAnimationID(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.WordWrapState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.spriteAnimationID = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_currentFontAsset(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.WordWrapState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.currentFontAsset = (TMPro.TMP_FontAsset)translator.GetObject(L, 2, typeof(TMPro.TMP_FontAsset)); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_currentSpriteAsset(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.WordWrapState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.currentSpriteAsset = (TMPro.TMP_SpriteAsset)translator.GetObject(L, 2, typeof(TMPro.TMP_SpriteAsset)); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_currentMaterial(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.WordWrapState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.currentMaterial = (UnityEngine.Material)translator.GetObject(L, 2, typeof(UnityEngine.Material)); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_currentMaterialIndex(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.WordWrapState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.currentMaterialIndex = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_meshExtents(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.WordWrapState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - TMPro.Extents gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.meshExtents = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_tagNoParsing(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.WordWrapState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.tagNoParsing = LuaAPI.lua_toboolean(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_isNonBreakingSpace(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.WordWrapState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.isNonBreakingSpace = LuaAPI.lua_toboolean(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_AccelerationEventWrap.cs b/Assets/XLua/Gen/UnityEngine_AccelerationEventWrap.cs deleted file mode 100644 index 86e2f6e9a..000000000 --- a/Assets/XLua/Gen/UnityEngine_AccelerationEventWrap.cs +++ /dev/null @@ -1,112 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineAccelerationEventWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.AccelerationEvent); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 2, 0); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "acceleration", _g_get_acceleration); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "deltaTime", _g_get_deltaTime); - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(UnityEngine.AccelerationEvent)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.AccelerationEvent constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_acceleration(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AccelerationEvent gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.acceleration); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_deltaTime(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AccelerationEvent gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.deltaTime); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_AnchoredJoint2DWrap.cs b/Assets/XLua/Gen/UnityEngine_AnchoredJoint2DWrap.cs deleted file mode 100644 index 673becdaf..000000000 --- a/Assets/XLua/Gen/UnityEngine_AnchoredJoint2DWrap.cs +++ /dev/null @@ -1,179 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineAnchoredJoint2DWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.AnchoredJoint2D); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 3, 3); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "anchor", _g_get_anchor); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "connectedAnchor", _g_get_connectedAnchor); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "autoConfigureConnectedAnchor", _g_get_autoConfigureConnectedAnchor); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "anchor", _s_set_anchor); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "connectedAnchor", _s_set_connectedAnchor); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "autoConfigureConnectedAnchor", _s_set_autoConfigureConnectedAnchor); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.AnchoredJoint2D(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.AnchoredJoint2D constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_anchor(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AnchoredJoint2D gen_to_be_invoked = (UnityEngine.AnchoredJoint2D)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector2(L, gen_to_be_invoked.anchor); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_connectedAnchor(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AnchoredJoint2D gen_to_be_invoked = (UnityEngine.AnchoredJoint2D)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector2(L, gen_to_be_invoked.connectedAnchor); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_autoConfigureConnectedAnchor(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AnchoredJoint2D gen_to_be_invoked = (UnityEngine.AnchoredJoint2D)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.autoConfigureConnectedAnchor); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_anchor(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AnchoredJoint2D gen_to_be_invoked = (UnityEngine.AnchoredJoint2D)translator.FastGetCSObj(L, 1); - UnityEngine.Vector2 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.anchor = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_connectedAnchor(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AnchoredJoint2D gen_to_be_invoked = (UnityEngine.AnchoredJoint2D)translator.FastGetCSObj(L, 1); - UnityEngine.Vector2 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.connectedAnchor = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_autoConfigureConnectedAnchor(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AnchoredJoint2D gen_to_be_invoked = (UnityEngine.AnchoredJoint2D)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.autoConfigureConnectedAnchor = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_AnimationEventWrap.cs b/Assets/XLua/Gen/UnityEngine_AnimationEventWrap.cs deleted file mode 100644 index 87fcd3d28..000000000 --- a/Assets/XLua/Gen/UnityEngine_AnimationEventWrap.cs +++ /dev/null @@ -1,377 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineAnimationEventWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.AnimationEvent); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 12, 7); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "stringParameter", _g_get_stringParameter); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "floatParameter", _g_get_floatParameter); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "intParameter", _g_get_intParameter); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "objectReferenceParameter", _g_get_objectReferenceParameter); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "functionName", _g_get_functionName); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "time", _g_get_time); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "messageOptions", _g_get_messageOptions); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "isFiredByLegacy", _g_get_isFiredByLegacy); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "isFiredByAnimator", _g_get_isFiredByAnimator); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "animationState", _g_get_animationState); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "animatorStateInfo", _g_get_animatorStateInfo); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "animatorClipInfo", _g_get_animatorClipInfo); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "stringParameter", _s_set_stringParameter); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "floatParameter", _s_set_floatParameter); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "intParameter", _s_set_intParameter); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "objectReferenceParameter", _s_set_objectReferenceParameter); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "functionName", _s_set_functionName); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "time", _s_set_time); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "messageOptions", _s_set_messageOptions); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.AnimationEvent(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.AnimationEvent constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_stringParameter(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AnimationEvent gen_to_be_invoked = (UnityEngine.AnimationEvent)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.stringParameter); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_floatParameter(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AnimationEvent gen_to_be_invoked = (UnityEngine.AnimationEvent)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.floatParameter); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_intParameter(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AnimationEvent gen_to_be_invoked = (UnityEngine.AnimationEvent)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.intParameter); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_objectReferenceParameter(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AnimationEvent gen_to_be_invoked = (UnityEngine.AnimationEvent)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.objectReferenceParameter); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_functionName(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AnimationEvent gen_to_be_invoked = (UnityEngine.AnimationEvent)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.functionName); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_time(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AnimationEvent gen_to_be_invoked = (UnityEngine.AnimationEvent)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.time); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_messageOptions(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AnimationEvent gen_to_be_invoked = (UnityEngine.AnimationEvent)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.messageOptions); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_isFiredByLegacy(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AnimationEvent gen_to_be_invoked = (UnityEngine.AnimationEvent)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.isFiredByLegacy); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_isFiredByAnimator(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AnimationEvent gen_to_be_invoked = (UnityEngine.AnimationEvent)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.isFiredByAnimator); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_animationState(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AnimationEvent gen_to_be_invoked = (UnityEngine.AnimationEvent)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.animationState); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_animatorStateInfo(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AnimationEvent gen_to_be_invoked = (UnityEngine.AnimationEvent)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.animatorStateInfo); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_animatorClipInfo(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AnimationEvent gen_to_be_invoked = (UnityEngine.AnimationEvent)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.animatorClipInfo); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_stringParameter(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AnimationEvent gen_to_be_invoked = (UnityEngine.AnimationEvent)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.stringParameter = LuaAPI.lua_tostring(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_floatParameter(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AnimationEvent gen_to_be_invoked = (UnityEngine.AnimationEvent)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.floatParameter = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_intParameter(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AnimationEvent gen_to_be_invoked = (UnityEngine.AnimationEvent)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.intParameter = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_objectReferenceParameter(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AnimationEvent gen_to_be_invoked = (UnityEngine.AnimationEvent)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.objectReferenceParameter = (UnityEngine.Object)translator.GetObject(L, 2, typeof(UnityEngine.Object)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_functionName(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AnimationEvent gen_to_be_invoked = (UnityEngine.AnimationEvent)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.functionName = LuaAPI.lua_tostring(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_time(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AnimationEvent gen_to_be_invoked = (UnityEngine.AnimationEvent)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.time = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_messageOptions(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AnimationEvent gen_to_be_invoked = (UnityEngine.AnimationEvent)translator.FastGetCSObj(L, 1); - UnityEngine.SendMessageOptions gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.messageOptions = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_AnimationStateWrap.cs b/Assets/XLua/Gen/UnityEngine_AnimationStateWrap.cs deleted file mode 100644 index ed5118e36..000000000 --- a/Assets/XLua/Gen/UnityEngine_AnimationStateWrap.cs +++ /dev/null @@ -1,499 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineAnimationStateWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.AnimationState); - Utils.BeginObjectRegister(type, L, translator, 0, 2, 12, 10); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddMixingTransform", _m_AddMixingTransform); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "RemoveMixingTransform", _m_RemoveMixingTransform); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "enabled", _g_get_enabled); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "weight", _g_get_weight); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "wrapMode", _g_get_wrapMode); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "time", _g_get_time); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "normalizedTime", _g_get_normalizedTime); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "speed", _g_get_speed); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "normalizedSpeed", _g_get_normalizedSpeed); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "length", _g_get_length); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "layer", _g_get_layer); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "clip", _g_get_clip); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "name", _g_get_name); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "blendMode", _g_get_blendMode); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "enabled", _s_set_enabled); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "weight", _s_set_weight); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "wrapMode", _s_set_wrapMode); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "time", _s_set_time); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "normalizedTime", _s_set_normalizedTime); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "speed", _s_set_speed); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "normalizedSpeed", _s_set_normalizedSpeed); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "layer", _s_set_layer); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "name", _s_set_name); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "blendMode", _s_set_blendMode); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.AnimationState(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.AnimationState constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AddMixingTransform(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.AnimationState gen_to_be_invoked = (UnityEngine.AnimationState)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.Transform _mix = (UnityEngine.Transform)translator.GetObject(L, 2, typeof(UnityEngine.Transform)); - - gen_to_be_invoked.AddMixingTransform( _mix ); - - - - return 0; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) - { - UnityEngine.Transform _mix = (UnityEngine.Transform)translator.GetObject(L, 2, typeof(UnityEngine.Transform)); - bool _recursive = LuaAPI.lua_toboolean(L, 3); - - gen_to_be_invoked.AddMixingTransform( _mix, _recursive ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.AnimationState.AddMixingTransform!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RemoveMixingTransform(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.AnimationState gen_to_be_invoked = (UnityEngine.AnimationState)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Transform _mix = (UnityEngine.Transform)translator.GetObject(L, 2, typeof(UnityEngine.Transform)); - - gen_to_be_invoked.RemoveMixingTransform( _mix ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_enabled(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AnimationState gen_to_be_invoked = (UnityEngine.AnimationState)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.enabled); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_weight(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AnimationState gen_to_be_invoked = (UnityEngine.AnimationState)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.weight); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_wrapMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AnimationState gen_to_be_invoked = (UnityEngine.AnimationState)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.wrapMode); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_time(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AnimationState gen_to_be_invoked = (UnityEngine.AnimationState)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.time); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_normalizedTime(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AnimationState gen_to_be_invoked = (UnityEngine.AnimationState)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.normalizedTime); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_speed(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AnimationState gen_to_be_invoked = (UnityEngine.AnimationState)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.speed); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_normalizedSpeed(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AnimationState gen_to_be_invoked = (UnityEngine.AnimationState)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.normalizedSpeed); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_length(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AnimationState gen_to_be_invoked = (UnityEngine.AnimationState)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.length); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_layer(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AnimationState gen_to_be_invoked = (UnityEngine.AnimationState)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.layer); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_clip(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AnimationState gen_to_be_invoked = (UnityEngine.AnimationState)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.clip); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_name(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AnimationState gen_to_be_invoked = (UnityEngine.AnimationState)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.name); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_blendMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AnimationState gen_to_be_invoked = (UnityEngine.AnimationState)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.blendMode); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_enabled(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AnimationState gen_to_be_invoked = (UnityEngine.AnimationState)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.enabled = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_weight(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AnimationState gen_to_be_invoked = (UnityEngine.AnimationState)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.weight = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_wrapMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AnimationState gen_to_be_invoked = (UnityEngine.AnimationState)translator.FastGetCSObj(L, 1); - UnityEngine.WrapMode gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.wrapMode = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_time(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AnimationState gen_to_be_invoked = (UnityEngine.AnimationState)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.time = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_normalizedTime(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AnimationState gen_to_be_invoked = (UnityEngine.AnimationState)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.normalizedTime = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_speed(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AnimationState gen_to_be_invoked = (UnityEngine.AnimationState)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.speed = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_normalizedSpeed(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AnimationState gen_to_be_invoked = (UnityEngine.AnimationState)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.normalizedSpeed = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_layer(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AnimationState gen_to_be_invoked = (UnityEngine.AnimationState)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.layer = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_name(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AnimationState gen_to_be_invoked = (UnityEngine.AnimationState)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.name = LuaAPI.lua_tostring(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_blendMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AnimationState gen_to_be_invoked = (UnityEngine.AnimationState)translator.FastGetCSObj(L, 1); - UnityEngine.AnimationBlendMode gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.blendMode = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_AnimatorClipInfoWrap.cs b/Assets/XLua/Gen/UnityEngine_AnimatorClipInfoWrap.cs deleted file mode 100644 index 67cd1ae63..000000000 --- a/Assets/XLua/Gen/UnityEngine_AnimatorClipInfoWrap.cs +++ /dev/null @@ -1,112 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineAnimatorClipInfoWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.AnimatorClipInfo); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 2, 0); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "clip", _g_get_clip); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "weight", _g_get_weight); - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(UnityEngine.AnimatorClipInfo)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.AnimatorClipInfo constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_clip(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AnimatorClipInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.clip); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_weight(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AnimatorClipInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.weight); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_AnimatorOverrideControllerWrap.cs b/Assets/XLua/Gen/UnityEngine_AnimatorOverrideControllerWrap.cs deleted file mode 100644 index 7f49d3ec2..000000000 --- a/Assets/XLua/Gen/UnityEngine_AnimatorOverrideControllerWrap.cs +++ /dev/null @@ -1,307 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineAnimatorOverrideControllerWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.AnimatorOverrideController); - Utils.BeginObjectRegister(type, L, translator, 0, 4, 2, 1); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "get_Item", _m_get_Item); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "set_Item", _m_set_Item); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetOverrides", _m_GetOverrides); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ApplyOverrides", _m_ApplyOverrides); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "runtimeAnimatorController", _g_get_runtimeAnimatorController); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "overridesCount", _g_get_overridesCount); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "runtimeAnimatorController", _s_set_runtimeAnimatorController); - - - Utils.EndObjectRegister(type, L, translator, __CSIndexer, __NewIndexer, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.AnimatorOverrideController(); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 2 && translator.Assignable(L, 2)) - { - UnityEngine.RuntimeAnimatorController _controller = (UnityEngine.RuntimeAnimatorController)translator.GetObject(L, 2, typeof(UnityEngine.RuntimeAnimatorController)); - - var gen_ret = new UnityEngine.AnimatorOverrideController(_controller); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.AnimatorOverrideController constructor!"); - - } - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - public static int __CSIndexer(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - if (translator.Assignable(L, 1) && translator.Assignable(L, 2)) - { - - UnityEngine.AnimatorOverrideController gen_to_be_invoked = (UnityEngine.AnimatorOverrideController)translator.FastGetCSObj(L, 1); - UnityEngine.AnimationClip index = (UnityEngine.AnimationClip)translator.GetObject(L, 2, typeof(UnityEngine.AnimationClip)); - LuaAPI.lua_pushboolean(L, true); - translator.Push(L, gen_to_be_invoked[index]); - return 2; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - LuaAPI.lua_pushboolean(L, false); - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - public static int __NewIndexer(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - try { - - if (translator.Assignable(L, 1) && translator.Assignable(L, 2) && translator.Assignable(L, 3)) - { - - UnityEngine.AnimatorOverrideController gen_to_be_invoked = (UnityEngine.AnimatorOverrideController)translator.FastGetCSObj(L, 1); - UnityEngine.AnimationClip key = (UnityEngine.AnimationClip)translator.GetObject(L, 2, typeof(UnityEngine.AnimationClip)); - gen_to_be_invoked[key] = (UnityEngine.AnimationClip)translator.GetObject(L, 3, typeof(UnityEngine.AnimationClip)); - LuaAPI.lua_pushboolean(L, true); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - LuaAPI.lua_pushboolean(L, false); - return 1; - } - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_get_Item(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.AnimatorOverrideController gen_to_be_invoked = (UnityEngine.AnimatorOverrideController)translator.FastGetCSObj(L, 1); - - - - { - - string key = LuaAPI.lua_tostring(L, 2); - translator.Push(L, gen_to_be_invoked[key]); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_set_Item(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.AnimatorOverrideController gen_to_be_invoked = (UnityEngine.AnimatorOverrideController)translator.FastGetCSObj(L, 1); - - - - { - - string key = LuaAPI.lua_tostring(L, 2); - UnityEngine.AnimationClip gen_value = (UnityEngine.AnimationClip)translator.GetObject(L, 3, typeof(UnityEngine.AnimationClip)); - gen_to_be_invoked[key] = gen_value; - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetOverrides(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.AnimatorOverrideController gen_to_be_invoked = (UnityEngine.AnimatorOverrideController)translator.FastGetCSObj(L, 1); - - - - { - System.Collections.Generic.List> _overrides = (System.Collections.Generic.List>)translator.GetObject(L, 2, typeof(System.Collections.Generic.List>)); - - gen_to_be_invoked.GetOverrides( _overrides ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ApplyOverrides(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.AnimatorOverrideController gen_to_be_invoked = (UnityEngine.AnimatorOverrideController)translator.FastGetCSObj(L, 1); - - - - { - System.Collections.Generic.IList> _overrides = (System.Collections.Generic.IList>)translator.GetObject(L, 2, typeof(System.Collections.Generic.IList>)); - - gen_to_be_invoked.ApplyOverrides( _overrides ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_runtimeAnimatorController(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AnimatorOverrideController gen_to_be_invoked = (UnityEngine.AnimatorOverrideController)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.runtimeAnimatorController); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_overridesCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AnimatorOverrideController gen_to_be_invoked = (UnityEngine.AnimatorOverrideController)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.overridesCount); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_runtimeAnimatorController(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AnimatorOverrideController gen_to_be_invoked = (UnityEngine.AnimatorOverrideController)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.runtimeAnimatorController = (UnityEngine.RuntimeAnimatorController)translator.GetObject(L, 2, typeof(UnityEngine.RuntimeAnimatorController)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_AnimatorTransitionInfoWrap.cs b/Assets/XLua/Gen/UnityEngine_AnimatorTransitionInfoWrap.cs deleted file mode 100644 index a6867ad42..000000000 --- a/Assets/XLua/Gen/UnityEngine_AnimatorTransitionInfoWrap.cs +++ /dev/null @@ -1,251 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineAnimatorTransitionInfoWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.AnimatorTransitionInfo); - Utils.BeginObjectRegister(type, L, translator, 0, 2, 7, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsName", _m_IsName); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsUserName", _m_IsUserName); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "fullPathHash", _g_get_fullPathHash); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "nameHash", _g_get_nameHash); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "userNameHash", _g_get_userNameHash); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "durationUnit", _g_get_durationUnit); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "duration", _g_get_duration); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "normalizedTime", _g_get_normalizedTime); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "anyState", _g_get_anyState); - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(UnityEngine.AnimatorTransitionInfo)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.AnimatorTransitionInfo constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_IsName(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.AnimatorTransitionInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - string _name = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.IsName( _name ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_IsUserName(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.AnimatorTransitionInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - string _name = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.IsUserName( _name ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_fullPathHash(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AnimatorTransitionInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.fullPathHash); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_nameHash(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AnimatorTransitionInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.nameHash); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_userNameHash(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AnimatorTransitionInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.userNameHash); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_durationUnit(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AnimatorTransitionInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.durationUnit); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_duration(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AnimatorTransitionInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.duration); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_normalizedTime(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AnimatorTransitionInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.normalizedTime); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_anyState(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AnimatorTransitionInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.anyState); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_AnimatorUtilityWrap.cs b/Assets/XLua/Gen/UnityEngine_AnimatorUtilityWrap.cs deleted file mode 100644 index b8396ef7f..000000000 --- a/Assets/XLua/Gen/UnityEngine_AnimatorUtilityWrap.cs +++ /dev/null @@ -1,139 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineAnimatorUtilityWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.AnimatorUtility); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 3, 0, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "OptimizeTransformHierarchy", _m_OptimizeTransformHierarchy_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "DeoptimizeTransformHierarchy", _m_DeoptimizeTransformHierarchy_xlua_st_); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.AnimatorUtility(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.AnimatorUtility constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OptimizeTransformHierarchy_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.GameObject _go = (UnityEngine.GameObject)translator.GetObject(L, 1, typeof(UnityEngine.GameObject)); - string[] _exposedTransforms = (string[])translator.GetObject(L, 2, typeof(string[])); - - UnityEngine.AnimatorUtility.OptimizeTransformHierarchy( _go, _exposedTransforms ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DeoptimizeTransformHierarchy_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.GameObject _go = (UnityEngine.GameObject)translator.GetObject(L, 1, typeof(UnityEngine.GameObject)); - - UnityEngine.AnimatorUtility.DeoptimizeTransformHierarchy( _go ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_AreaEffector2DWrap.cs b/Assets/XLua/Gen/UnityEngine_AreaEffector2DWrap.cs deleted file mode 100644 index 18d3def67..000000000 --- a/Assets/XLua/Gen/UnityEngine_AreaEffector2DWrap.cs +++ /dev/null @@ -1,302 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineAreaEffector2DWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.AreaEffector2D); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 7, 7); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "forceAngle", _g_get_forceAngle); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "useGlobalAngle", _g_get_useGlobalAngle); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "forceMagnitude", _g_get_forceMagnitude); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "forceVariation", _g_get_forceVariation); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "drag", _g_get_drag); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "angularDrag", _g_get_angularDrag); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "forceTarget", _g_get_forceTarget); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "forceAngle", _s_set_forceAngle); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "useGlobalAngle", _s_set_useGlobalAngle); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "forceMagnitude", _s_set_forceMagnitude); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "forceVariation", _s_set_forceVariation); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "drag", _s_set_drag); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "angularDrag", _s_set_angularDrag); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "forceTarget", _s_set_forceTarget); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.AreaEffector2D(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.AreaEffector2D constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_forceAngle(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AreaEffector2D gen_to_be_invoked = (UnityEngine.AreaEffector2D)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.forceAngle); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_useGlobalAngle(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AreaEffector2D gen_to_be_invoked = (UnityEngine.AreaEffector2D)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.useGlobalAngle); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_forceMagnitude(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AreaEffector2D gen_to_be_invoked = (UnityEngine.AreaEffector2D)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.forceMagnitude); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_forceVariation(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AreaEffector2D gen_to_be_invoked = (UnityEngine.AreaEffector2D)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.forceVariation); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_drag(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AreaEffector2D gen_to_be_invoked = (UnityEngine.AreaEffector2D)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.drag); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_angularDrag(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AreaEffector2D gen_to_be_invoked = (UnityEngine.AreaEffector2D)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.angularDrag); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_forceTarget(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AreaEffector2D gen_to_be_invoked = (UnityEngine.AreaEffector2D)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.forceTarget); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_forceAngle(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AreaEffector2D gen_to_be_invoked = (UnityEngine.AreaEffector2D)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.forceAngle = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_useGlobalAngle(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AreaEffector2D gen_to_be_invoked = (UnityEngine.AreaEffector2D)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.useGlobalAngle = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_forceMagnitude(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AreaEffector2D gen_to_be_invoked = (UnityEngine.AreaEffector2D)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.forceMagnitude = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_forceVariation(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AreaEffector2D gen_to_be_invoked = (UnityEngine.AreaEffector2D)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.forceVariation = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_drag(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AreaEffector2D gen_to_be_invoked = (UnityEngine.AreaEffector2D)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.drag = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_angularDrag(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AreaEffector2D gen_to_be_invoked = (UnityEngine.AreaEffector2D)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.angularDrag = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_forceTarget(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AreaEffector2D gen_to_be_invoked = (UnityEngine.AreaEffector2D)translator.FastGetCSObj(L, 1); - UnityEngine.EffectorSelection2D gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.forceTarget = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_ArticulationBodyWrap.cs b/Assets/XLua/Gen/UnityEngine_ArticulationBodyWrap.cs deleted file mode 100644 index 2c6cf4416..000000000 --- a/Assets/XLua/Gen/UnityEngine_ArticulationBodyWrap.cs +++ /dev/null @@ -1,2139 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineArticulationBodyWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.ArticulationBody); - Utils.BeginObjectRegister(type, L, translator, 0, 28, 41, 37); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddForce", _m_AddForce); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddRelativeForce", _m_AddRelativeForce); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddTorque", _m_AddTorque); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddRelativeTorque", _m_AddRelativeTorque); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddForceAtPosition", _m_AddForceAtPosition); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ResetCenterOfMass", _m_ResetCenterOfMass); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ResetInertiaTensor", _m_ResetInertiaTensor); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Sleep", _m_Sleep); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsSleeping", _m_IsSleeping); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "WakeUp", _m_WakeUp); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "TeleportRoot", _m_TeleportRoot); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetClosestPoint", _m_GetClosestPoint); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetRelativePointVelocity", _m_GetRelativePointVelocity); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetPointVelocity", _m_GetPointVelocity); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetDenseJacobian", _m_GetDenseJacobian); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetJointPositions", _m_GetJointPositions); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetJointPositions", _m_SetJointPositions); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetJointVelocities", _m_GetJointVelocities); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetJointVelocities", _m_SetJointVelocities); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetJointAccelerations", _m_GetJointAccelerations); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetJointAccelerations", _m_SetJointAccelerations); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetJointForces", _m_GetJointForces); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetJointForces", _m_SetJointForces); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetDriveTargets", _m_GetDriveTargets); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetDriveTargets", _m_SetDriveTargets); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetDriveTargetVelocities", _m_GetDriveTargetVelocities); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetDriveTargetVelocities", _m_SetDriveTargetVelocities); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetDofStartIndices", _m_GetDofStartIndices); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "jointType", _g_get_jointType); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "anchorPosition", _g_get_anchorPosition); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "parentAnchorPosition", _g_get_parentAnchorPosition); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "anchorRotation", _g_get_anchorRotation); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "parentAnchorRotation", _g_get_parentAnchorRotation); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "isRoot", _g_get_isRoot); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "linearLockX", _g_get_linearLockX); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "linearLockY", _g_get_linearLockY); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "linearLockZ", _g_get_linearLockZ); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "swingYLock", _g_get_swingYLock); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "swingZLock", _g_get_swingZLock); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "twistLock", _g_get_twistLock); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "xDrive", _g_get_xDrive); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "yDrive", _g_get_yDrive); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "zDrive", _g_get_zDrive); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "immovable", _g_get_immovable); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "useGravity", _g_get_useGravity); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "linearDamping", _g_get_linearDamping); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "angularDamping", _g_get_angularDamping); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "jointFriction", _g_get_jointFriction); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "velocity", _g_get_velocity); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "angularVelocity", _g_get_angularVelocity); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "mass", _g_get_mass); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "centerOfMass", _g_get_centerOfMass); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "worldCenterOfMass", _g_get_worldCenterOfMass); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "inertiaTensor", _g_get_inertiaTensor); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "inertiaTensorRotation", _g_get_inertiaTensorRotation); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "sleepThreshold", _g_get_sleepThreshold); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "solverIterations", _g_get_solverIterations); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "solverVelocityIterations", _g_get_solverVelocityIterations); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "maxAngularVelocity", _g_get_maxAngularVelocity); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "maxLinearVelocity", _g_get_maxLinearVelocity); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "maxJointVelocity", _g_get_maxJointVelocity); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "maxDepenetrationVelocity", _g_get_maxDepenetrationVelocity); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "jointPosition", _g_get_jointPosition); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "jointVelocity", _g_get_jointVelocity); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "jointAcceleration", _g_get_jointAcceleration); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "jointForce", _g_get_jointForce); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "dofCount", _g_get_dofCount); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "index", _g_get_index); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "collisionDetectionMode", _g_get_collisionDetectionMode); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "jointType", _s_set_jointType); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "anchorPosition", _s_set_anchorPosition); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "parentAnchorPosition", _s_set_parentAnchorPosition); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "anchorRotation", _s_set_anchorRotation); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "parentAnchorRotation", _s_set_parentAnchorRotation); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "linearLockX", _s_set_linearLockX); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "linearLockY", _s_set_linearLockY); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "linearLockZ", _s_set_linearLockZ); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "swingYLock", _s_set_swingYLock); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "swingZLock", _s_set_swingZLock); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "twistLock", _s_set_twistLock); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "xDrive", _s_set_xDrive); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "yDrive", _s_set_yDrive); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "zDrive", _s_set_zDrive); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "immovable", _s_set_immovable); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "useGravity", _s_set_useGravity); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "linearDamping", _s_set_linearDamping); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "angularDamping", _s_set_angularDamping); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "jointFriction", _s_set_jointFriction); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "velocity", _s_set_velocity); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "angularVelocity", _s_set_angularVelocity); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "mass", _s_set_mass); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "centerOfMass", _s_set_centerOfMass); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "inertiaTensor", _s_set_inertiaTensor); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "inertiaTensorRotation", _s_set_inertiaTensorRotation); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "sleepThreshold", _s_set_sleepThreshold); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "solverIterations", _s_set_solverIterations); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "solverVelocityIterations", _s_set_solverVelocityIterations); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "maxAngularVelocity", _s_set_maxAngularVelocity); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "maxLinearVelocity", _s_set_maxLinearVelocity); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "maxJointVelocity", _s_set_maxJointVelocity); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "maxDepenetrationVelocity", _s_set_maxDepenetrationVelocity); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "jointPosition", _s_set_jointPosition); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "jointVelocity", _s_set_jointVelocity); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "jointAcceleration", _s_set_jointAcceleration); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "jointForce", _s_set_jointForce); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "collisionDetectionMode", _s_set_collisionDetectionMode); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.ArticulationBody(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.ArticulationBody constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AddForce(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ArticulationBody gen_to_be_invoked = (UnityEngine.ArticulationBody)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Vector3 _force;translator.Get(L, 2, out _force); - - gen_to_be_invoked.AddForce( _force ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AddRelativeForce(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ArticulationBody gen_to_be_invoked = (UnityEngine.ArticulationBody)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Vector3 _force;translator.Get(L, 2, out _force); - - gen_to_be_invoked.AddRelativeForce( _force ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AddTorque(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ArticulationBody gen_to_be_invoked = (UnityEngine.ArticulationBody)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Vector3 _torque;translator.Get(L, 2, out _torque); - - gen_to_be_invoked.AddTorque( _torque ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AddRelativeTorque(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ArticulationBody gen_to_be_invoked = (UnityEngine.ArticulationBody)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Vector3 _torque;translator.Get(L, 2, out _torque); - - gen_to_be_invoked.AddRelativeTorque( _torque ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AddForceAtPosition(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ArticulationBody gen_to_be_invoked = (UnityEngine.ArticulationBody)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Vector3 _force;translator.Get(L, 2, out _force); - UnityEngine.Vector3 _position;translator.Get(L, 3, out _position); - - gen_to_be_invoked.AddForceAtPosition( _force, _position ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ResetCenterOfMass(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ArticulationBody gen_to_be_invoked = (UnityEngine.ArticulationBody)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.ResetCenterOfMass( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ResetInertiaTensor(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ArticulationBody gen_to_be_invoked = (UnityEngine.ArticulationBody)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.ResetInertiaTensor( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Sleep(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ArticulationBody gen_to_be_invoked = (UnityEngine.ArticulationBody)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Sleep( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_IsSleeping(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ArticulationBody gen_to_be_invoked = (UnityEngine.ArticulationBody)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.IsSleeping( ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_WakeUp(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ArticulationBody gen_to_be_invoked = (UnityEngine.ArticulationBody)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.WakeUp( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_TeleportRoot(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ArticulationBody gen_to_be_invoked = (UnityEngine.ArticulationBody)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Vector3 _position;translator.Get(L, 2, out _position); - UnityEngine.Quaternion _rotation;translator.Get(L, 3, out _rotation); - - gen_to_be_invoked.TeleportRoot( _position, _rotation ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetClosestPoint(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ArticulationBody gen_to_be_invoked = (UnityEngine.ArticulationBody)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Vector3 _point;translator.Get(L, 2, out _point); - - var gen_ret = gen_to_be_invoked.GetClosestPoint( _point ); - translator.PushUnityEngineVector3(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetRelativePointVelocity(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ArticulationBody gen_to_be_invoked = (UnityEngine.ArticulationBody)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Vector3 _relativePoint;translator.Get(L, 2, out _relativePoint); - - var gen_ret = gen_to_be_invoked.GetRelativePointVelocity( _relativePoint ); - translator.PushUnityEngineVector3(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetPointVelocity(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ArticulationBody gen_to_be_invoked = (UnityEngine.ArticulationBody)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Vector3 _worldPoint;translator.Get(L, 2, out _worldPoint); - - var gen_ret = gen_to_be_invoked.GetPointVelocity( _worldPoint ); - translator.PushUnityEngineVector3(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetDenseJacobian(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ArticulationBody gen_to_be_invoked = (UnityEngine.ArticulationBody)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.ArticulationJacobian _jacobian;translator.Get(L, 2, out _jacobian); - - var gen_ret = gen_to_be_invoked.GetDenseJacobian( ref _jacobian ); - LuaAPI.xlua_pushinteger(L, gen_ret); - translator.Push(L, _jacobian); - translator.Update(L, 2, _jacobian); - - - - - return 2; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetJointPositions(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ArticulationBody gen_to_be_invoked = (UnityEngine.ArticulationBody)translator.FastGetCSObj(L, 1); - - - - { - System.Collections.Generic.List _positions = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - - var gen_ret = gen_to_be_invoked.GetJointPositions( _positions ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetJointPositions(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ArticulationBody gen_to_be_invoked = (UnityEngine.ArticulationBody)translator.FastGetCSObj(L, 1); - - - - { - System.Collections.Generic.List _positions = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - - gen_to_be_invoked.SetJointPositions( _positions ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetJointVelocities(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ArticulationBody gen_to_be_invoked = (UnityEngine.ArticulationBody)translator.FastGetCSObj(L, 1); - - - - { - System.Collections.Generic.List _velocities = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - - var gen_ret = gen_to_be_invoked.GetJointVelocities( _velocities ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetJointVelocities(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ArticulationBody gen_to_be_invoked = (UnityEngine.ArticulationBody)translator.FastGetCSObj(L, 1); - - - - { - System.Collections.Generic.List _velocities = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - - gen_to_be_invoked.SetJointVelocities( _velocities ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetJointAccelerations(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ArticulationBody gen_to_be_invoked = (UnityEngine.ArticulationBody)translator.FastGetCSObj(L, 1); - - - - { - System.Collections.Generic.List _accelerations = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - - var gen_ret = gen_to_be_invoked.GetJointAccelerations( _accelerations ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetJointAccelerations(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ArticulationBody gen_to_be_invoked = (UnityEngine.ArticulationBody)translator.FastGetCSObj(L, 1); - - - - { - System.Collections.Generic.List _accelerations = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - - gen_to_be_invoked.SetJointAccelerations( _accelerations ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetJointForces(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ArticulationBody gen_to_be_invoked = (UnityEngine.ArticulationBody)translator.FastGetCSObj(L, 1); - - - - { - System.Collections.Generic.List _forces = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - - var gen_ret = gen_to_be_invoked.GetJointForces( _forces ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetJointForces(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ArticulationBody gen_to_be_invoked = (UnityEngine.ArticulationBody)translator.FastGetCSObj(L, 1); - - - - { - System.Collections.Generic.List _forces = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - - gen_to_be_invoked.SetJointForces( _forces ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetDriveTargets(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ArticulationBody gen_to_be_invoked = (UnityEngine.ArticulationBody)translator.FastGetCSObj(L, 1); - - - - { - System.Collections.Generic.List _targets = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - - var gen_ret = gen_to_be_invoked.GetDriveTargets( _targets ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetDriveTargets(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ArticulationBody gen_to_be_invoked = (UnityEngine.ArticulationBody)translator.FastGetCSObj(L, 1); - - - - { - System.Collections.Generic.List _targets = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - - gen_to_be_invoked.SetDriveTargets( _targets ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetDriveTargetVelocities(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ArticulationBody gen_to_be_invoked = (UnityEngine.ArticulationBody)translator.FastGetCSObj(L, 1); - - - - { - System.Collections.Generic.List _targetVelocities = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - - var gen_ret = gen_to_be_invoked.GetDriveTargetVelocities( _targetVelocities ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetDriveTargetVelocities(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ArticulationBody gen_to_be_invoked = (UnityEngine.ArticulationBody)translator.FastGetCSObj(L, 1); - - - - { - System.Collections.Generic.List _targetVelocities = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - - gen_to_be_invoked.SetDriveTargetVelocities( _targetVelocities ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetDofStartIndices(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ArticulationBody gen_to_be_invoked = (UnityEngine.ArticulationBody)translator.FastGetCSObj(L, 1); - - - - { - System.Collections.Generic.List _dofStartIndices = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - - var gen_ret = gen_to_be_invoked.GetDofStartIndices( _dofStartIndices ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_jointType(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ArticulationBody gen_to_be_invoked = (UnityEngine.ArticulationBody)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.jointType); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_anchorPosition(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ArticulationBody gen_to_be_invoked = (UnityEngine.ArticulationBody)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.anchorPosition); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_parentAnchorPosition(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ArticulationBody gen_to_be_invoked = (UnityEngine.ArticulationBody)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.parentAnchorPosition); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_anchorRotation(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ArticulationBody gen_to_be_invoked = (UnityEngine.ArticulationBody)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineQuaternion(L, gen_to_be_invoked.anchorRotation); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_parentAnchorRotation(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ArticulationBody gen_to_be_invoked = (UnityEngine.ArticulationBody)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineQuaternion(L, gen_to_be_invoked.parentAnchorRotation); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_isRoot(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ArticulationBody gen_to_be_invoked = (UnityEngine.ArticulationBody)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.isRoot); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_linearLockX(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ArticulationBody gen_to_be_invoked = (UnityEngine.ArticulationBody)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.linearLockX); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_linearLockY(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ArticulationBody gen_to_be_invoked = (UnityEngine.ArticulationBody)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.linearLockY); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_linearLockZ(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ArticulationBody gen_to_be_invoked = (UnityEngine.ArticulationBody)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.linearLockZ); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_swingYLock(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ArticulationBody gen_to_be_invoked = (UnityEngine.ArticulationBody)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.swingYLock); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_swingZLock(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ArticulationBody gen_to_be_invoked = (UnityEngine.ArticulationBody)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.swingZLock); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_twistLock(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ArticulationBody gen_to_be_invoked = (UnityEngine.ArticulationBody)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.twistLock); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_xDrive(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ArticulationBody gen_to_be_invoked = (UnityEngine.ArticulationBody)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.xDrive); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_yDrive(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ArticulationBody gen_to_be_invoked = (UnityEngine.ArticulationBody)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.yDrive); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_zDrive(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ArticulationBody gen_to_be_invoked = (UnityEngine.ArticulationBody)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.zDrive); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_immovable(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ArticulationBody gen_to_be_invoked = (UnityEngine.ArticulationBody)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.immovable); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_useGravity(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ArticulationBody gen_to_be_invoked = (UnityEngine.ArticulationBody)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.useGravity); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_linearDamping(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ArticulationBody gen_to_be_invoked = (UnityEngine.ArticulationBody)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.linearDamping); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_angularDamping(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ArticulationBody gen_to_be_invoked = (UnityEngine.ArticulationBody)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.angularDamping); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_jointFriction(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ArticulationBody gen_to_be_invoked = (UnityEngine.ArticulationBody)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.jointFriction); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_velocity(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ArticulationBody gen_to_be_invoked = (UnityEngine.ArticulationBody)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.velocity); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_angularVelocity(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ArticulationBody gen_to_be_invoked = (UnityEngine.ArticulationBody)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.angularVelocity); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_mass(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ArticulationBody gen_to_be_invoked = (UnityEngine.ArticulationBody)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.mass); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_centerOfMass(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ArticulationBody gen_to_be_invoked = (UnityEngine.ArticulationBody)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.centerOfMass); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_worldCenterOfMass(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ArticulationBody gen_to_be_invoked = (UnityEngine.ArticulationBody)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.worldCenterOfMass); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_inertiaTensor(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ArticulationBody gen_to_be_invoked = (UnityEngine.ArticulationBody)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.inertiaTensor); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_inertiaTensorRotation(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ArticulationBody gen_to_be_invoked = (UnityEngine.ArticulationBody)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineQuaternion(L, gen_to_be_invoked.inertiaTensorRotation); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_sleepThreshold(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ArticulationBody gen_to_be_invoked = (UnityEngine.ArticulationBody)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.sleepThreshold); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_solverIterations(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ArticulationBody gen_to_be_invoked = (UnityEngine.ArticulationBody)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.solverIterations); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_solverVelocityIterations(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ArticulationBody gen_to_be_invoked = (UnityEngine.ArticulationBody)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.solverVelocityIterations); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_maxAngularVelocity(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ArticulationBody gen_to_be_invoked = (UnityEngine.ArticulationBody)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.maxAngularVelocity); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_maxLinearVelocity(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ArticulationBody gen_to_be_invoked = (UnityEngine.ArticulationBody)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.maxLinearVelocity); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_maxJointVelocity(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ArticulationBody gen_to_be_invoked = (UnityEngine.ArticulationBody)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.maxJointVelocity); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_maxDepenetrationVelocity(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ArticulationBody gen_to_be_invoked = (UnityEngine.ArticulationBody)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.maxDepenetrationVelocity); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_jointPosition(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ArticulationBody gen_to_be_invoked = (UnityEngine.ArticulationBody)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.jointPosition); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_jointVelocity(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ArticulationBody gen_to_be_invoked = (UnityEngine.ArticulationBody)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.jointVelocity); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_jointAcceleration(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ArticulationBody gen_to_be_invoked = (UnityEngine.ArticulationBody)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.jointAcceleration); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_jointForce(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ArticulationBody gen_to_be_invoked = (UnityEngine.ArticulationBody)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.jointForce); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_dofCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ArticulationBody gen_to_be_invoked = (UnityEngine.ArticulationBody)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.dofCount); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_index(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ArticulationBody gen_to_be_invoked = (UnityEngine.ArticulationBody)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.index); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_collisionDetectionMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ArticulationBody gen_to_be_invoked = (UnityEngine.ArticulationBody)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.collisionDetectionMode); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_jointType(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ArticulationBody gen_to_be_invoked = (UnityEngine.ArticulationBody)translator.FastGetCSObj(L, 1); - UnityEngine.ArticulationJointType gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.jointType = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_anchorPosition(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ArticulationBody gen_to_be_invoked = (UnityEngine.ArticulationBody)translator.FastGetCSObj(L, 1); - UnityEngine.Vector3 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.anchorPosition = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_parentAnchorPosition(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ArticulationBody gen_to_be_invoked = (UnityEngine.ArticulationBody)translator.FastGetCSObj(L, 1); - UnityEngine.Vector3 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.parentAnchorPosition = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_anchorRotation(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ArticulationBody gen_to_be_invoked = (UnityEngine.ArticulationBody)translator.FastGetCSObj(L, 1); - UnityEngine.Quaternion gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.anchorRotation = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_parentAnchorRotation(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ArticulationBody gen_to_be_invoked = (UnityEngine.ArticulationBody)translator.FastGetCSObj(L, 1); - UnityEngine.Quaternion gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.parentAnchorRotation = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_linearLockX(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ArticulationBody gen_to_be_invoked = (UnityEngine.ArticulationBody)translator.FastGetCSObj(L, 1); - UnityEngine.ArticulationDofLock gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.linearLockX = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_linearLockY(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ArticulationBody gen_to_be_invoked = (UnityEngine.ArticulationBody)translator.FastGetCSObj(L, 1); - UnityEngine.ArticulationDofLock gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.linearLockY = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_linearLockZ(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ArticulationBody gen_to_be_invoked = (UnityEngine.ArticulationBody)translator.FastGetCSObj(L, 1); - UnityEngine.ArticulationDofLock gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.linearLockZ = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_swingYLock(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ArticulationBody gen_to_be_invoked = (UnityEngine.ArticulationBody)translator.FastGetCSObj(L, 1); - UnityEngine.ArticulationDofLock gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.swingYLock = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_swingZLock(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ArticulationBody gen_to_be_invoked = (UnityEngine.ArticulationBody)translator.FastGetCSObj(L, 1); - UnityEngine.ArticulationDofLock gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.swingZLock = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_twistLock(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ArticulationBody gen_to_be_invoked = (UnityEngine.ArticulationBody)translator.FastGetCSObj(L, 1); - UnityEngine.ArticulationDofLock gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.twistLock = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_xDrive(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ArticulationBody gen_to_be_invoked = (UnityEngine.ArticulationBody)translator.FastGetCSObj(L, 1); - UnityEngine.ArticulationDrive gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.xDrive = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_yDrive(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ArticulationBody gen_to_be_invoked = (UnityEngine.ArticulationBody)translator.FastGetCSObj(L, 1); - UnityEngine.ArticulationDrive gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.yDrive = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_zDrive(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ArticulationBody gen_to_be_invoked = (UnityEngine.ArticulationBody)translator.FastGetCSObj(L, 1); - UnityEngine.ArticulationDrive gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.zDrive = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_immovable(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ArticulationBody gen_to_be_invoked = (UnityEngine.ArticulationBody)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.immovable = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_useGravity(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ArticulationBody gen_to_be_invoked = (UnityEngine.ArticulationBody)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.useGravity = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_linearDamping(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ArticulationBody gen_to_be_invoked = (UnityEngine.ArticulationBody)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.linearDamping = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_angularDamping(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ArticulationBody gen_to_be_invoked = (UnityEngine.ArticulationBody)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.angularDamping = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_jointFriction(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ArticulationBody gen_to_be_invoked = (UnityEngine.ArticulationBody)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.jointFriction = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_velocity(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ArticulationBody gen_to_be_invoked = (UnityEngine.ArticulationBody)translator.FastGetCSObj(L, 1); - UnityEngine.Vector3 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.velocity = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_angularVelocity(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ArticulationBody gen_to_be_invoked = (UnityEngine.ArticulationBody)translator.FastGetCSObj(L, 1); - UnityEngine.Vector3 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.angularVelocity = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_mass(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ArticulationBody gen_to_be_invoked = (UnityEngine.ArticulationBody)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.mass = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_centerOfMass(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ArticulationBody gen_to_be_invoked = (UnityEngine.ArticulationBody)translator.FastGetCSObj(L, 1); - UnityEngine.Vector3 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.centerOfMass = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_inertiaTensor(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ArticulationBody gen_to_be_invoked = (UnityEngine.ArticulationBody)translator.FastGetCSObj(L, 1); - UnityEngine.Vector3 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.inertiaTensor = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_inertiaTensorRotation(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ArticulationBody gen_to_be_invoked = (UnityEngine.ArticulationBody)translator.FastGetCSObj(L, 1); - UnityEngine.Quaternion gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.inertiaTensorRotation = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_sleepThreshold(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ArticulationBody gen_to_be_invoked = (UnityEngine.ArticulationBody)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.sleepThreshold = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_solverIterations(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ArticulationBody gen_to_be_invoked = (UnityEngine.ArticulationBody)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.solverIterations = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_solverVelocityIterations(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ArticulationBody gen_to_be_invoked = (UnityEngine.ArticulationBody)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.solverVelocityIterations = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_maxAngularVelocity(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ArticulationBody gen_to_be_invoked = (UnityEngine.ArticulationBody)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.maxAngularVelocity = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_maxLinearVelocity(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ArticulationBody gen_to_be_invoked = (UnityEngine.ArticulationBody)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.maxLinearVelocity = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_maxJointVelocity(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ArticulationBody gen_to_be_invoked = (UnityEngine.ArticulationBody)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.maxJointVelocity = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_maxDepenetrationVelocity(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ArticulationBody gen_to_be_invoked = (UnityEngine.ArticulationBody)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.maxDepenetrationVelocity = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_jointPosition(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ArticulationBody gen_to_be_invoked = (UnityEngine.ArticulationBody)translator.FastGetCSObj(L, 1); - UnityEngine.ArticulationReducedSpace gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.jointPosition = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_jointVelocity(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ArticulationBody gen_to_be_invoked = (UnityEngine.ArticulationBody)translator.FastGetCSObj(L, 1); - UnityEngine.ArticulationReducedSpace gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.jointVelocity = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_jointAcceleration(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ArticulationBody gen_to_be_invoked = (UnityEngine.ArticulationBody)translator.FastGetCSObj(L, 1); - UnityEngine.ArticulationReducedSpace gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.jointAcceleration = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_jointForce(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ArticulationBody gen_to_be_invoked = (UnityEngine.ArticulationBody)translator.FastGetCSObj(L, 1); - UnityEngine.ArticulationReducedSpace gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.jointForce = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_collisionDetectionMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ArticulationBody gen_to_be_invoked = (UnityEngine.ArticulationBody)translator.FastGetCSObj(L, 1); - UnityEngine.CollisionDetectionMode gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.collisionDetectionMode = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_ArticulationDriveWrap.cs b/Assets/XLua/Gen/UnityEngine_ArticulationDriveWrap.cs deleted file mode 100644 index 985e55bcc..000000000 --- a/Assets/XLua/Gen/UnityEngine_ArticulationDriveWrap.cs +++ /dev/null @@ -1,313 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineArticulationDriveWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.ArticulationDrive); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 7, 7); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "lowerLimit", _g_get_lowerLimit); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "upperLimit", _g_get_upperLimit); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "stiffness", _g_get_stiffness); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "damping", _g_get_damping); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "forceLimit", _g_get_forceLimit); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "target", _g_get_target); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "targetVelocity", _g_get_targetVelocity); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "lowerLimit", _s_set_lowerLimit); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "upperLimit", _s_set_upperLimit); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "stiffness", _s_set_stiffness); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "damping", _s_set_damping); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "forceLimit", _s_set_forceLimit); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "target", _s_set_target); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "targetVelocity", _s_set_targetVelocity); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(UnityEngine.ArticulationDrive)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.ArticulationDrive constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_lowerLimit(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ArticulationDrive gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.lowerLimit); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_upperLimit(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ArticulationDrive gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.upperLimit); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_stiffness(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ArticulationDrive gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.stiffness); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_damping(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ArticulationDrive gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.damping); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_forceLimit(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ArticulationDrive gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.forceLimit); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_target(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ArticulationDrive gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.target); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_targetVelocity(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ArticulationDrive gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.targetVelocity); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_lowerLimit(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ArticulationDrive gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.lowerLimit = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_upperLimit(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ArticulationDrive gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.upperLimit = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_stiffness(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ArticulationDrive gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.stiffness = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_damping(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ArticulationDrive gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.damping = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_forceLimit(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ArticulationDrive gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.forceLimit = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_target(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ArticulationDrive gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.target = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_targetVelocity(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ArticulationDrive gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.targetVelocity = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_ArticulationJacobianWrap.cs b/Assets/XLua/Gen/UnityEngine_ArticulationJacobianWrap.cs deleted file mode 100644 index 3ef007f91..000000000 --- a/Assets/XLua/Gen/UnityEngine_ArticulationJacobianWrap.cs +++ /dev/null @@ -1,191 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineArticulationJacobianWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.ArticulationJacobian); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 3, 3); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "rows", _g_get_rows); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "columns", _g_get_columns); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "elements", _g_get_elements); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "rows", _s_set_rows); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "columns", _s_set_columns); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "elements", _s_set_elements); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 3 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - int _rows = LuaAPI.xlua_tointeger(L, 2); - int _cols = LuaAPI.xlua_tointeger(L, 3); - - var gen_ret = new UnityEngine.ArticulationJacobian(_rows, _cols); - translator.Push(L, gen_ret); - - return 1; - } - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(UnityEngine.ArticulationJacobian)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.ArticulationJacobian constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_rows(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ArticulationJacobian gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.rows); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_columns(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ArticulationJacobian gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.columns); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_elements(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ArticulationJacobian gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.elements); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_rows(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ArticulationJacobian gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.rows = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_columns(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ArticulationJacobian gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.columns = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_elements(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ArticulationJacobian gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.elements = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_ArticulationReducedSpaceWrap.cs b/Assets/XLua/Gen/UnityEngine_ArticulationReducedSpaceWrap.cs deleted file mode 100644 index 607b8d8a6..000000000 --- a/Assets/XLua/Gen/UnityEngine_ArticulationReducedSpaceWrap.cs +++ /dev/null @@ -1,196 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineArticulationReducedSpaceWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.ArticulationReducedSpace); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 1, 1); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "dofCount", _g_get_dofCount); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "dofCount", _s_set_dofCount); - - - Utils.EndObjectRegister(type, L, translator, __CSIndexer, __NewIndexer, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 2 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - float _a = (float)LuaAPI.lua_tonumber(L, 2); - - var gen_ret = new UnityEngine.ArticulationReducedSpace(_a); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 3 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - float _a = (float)LuaAPI.lua_tonumber(L, 2); - float _b = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = new UnityEngine.ArticulationReducedSpace(_a, _b); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 4 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - float _a = (float)LuaAPI.lua_tonumber(L, 2); - float _b = (float)LuaAPI.lua_tonumber(L, 3); - float _c = (float)LuaAPI.lua_tonumber(L, 4); - - var gen_ret = new UnityEngine.ArticulationReducedSpace(_a, _b, _c); - translator.Push(L, gen_ret); - - return 1; - } - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(UnityEngine.ArticulationReducedSpace)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.ArticulationReducedSpace constructor!"); - - } - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - public static int __CSIndexer(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - if (translator.Assignable(L, 1) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - - UnityEngine.ArticulationReducedSpace gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - int index = LuaAPI.xlua_tointeger(L, 2); - LuaAPI.lua_pushboolean(L, true); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked[index]); - return 2; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - LuaAPI.lua_pushboolean(L, false); - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - public static int __NewIndexer(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - try { - - if (translator.Assignable(L, 1) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - - UnityEngine.ArticulationReducedSpace gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - int key = LuaAPI.xlua_tointeger(L, 2); - gen_to_be_invoked[key] = (float)LuaAPI.lua_tonumber(L, 3); - LuaAPI.lua_pushboolean(L, true); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - LuaAPI.lua_pushboolean(L, false); - return 1; - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_dofCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ArticulationReducedSpace gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.dofCount); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_dofCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ArticulationReducedSpace gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.dofCount = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_AssetBundleCreateRequestWrap.cs b/Assets/XLua/Gen/UnityEngine_AssetBundleCreateRequestWrap.cs deleted file mode 100644 index d3d5c5d9a..000000000 --- a/Assets/XLua/Gen/UnityEngine_AssetBundleCreateRequestWrap.cs +++ /dev/null @@ -1,99 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineAssetBundleCreateRequestWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.AssetBundleCreateRequest); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 1, 0); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "assetBundle", _g_get_assetBundle); - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.AssetBundleCreateRequest(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.AssetBundleCreateRequest constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_assetBundle(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AssetBundleCreateRequest gen_to_be_invoked = (UnityEngine.AssetBundleCreateRequest)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.assetBundle); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_AssetBundleManifestWrap.cs b/Assets/XLua/Gen/UnityEngine_AssetBundleManifestWrap.cs deleted file mode 100644 index 92ef38294..000000000 --- a/Assets/XLua/Gen/UnityEngine_AssetBundleManifestWrap.cs +++ /dev/null @@ -1,215 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineAssetBundleManifestWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.AssetBundleManifest); - Utils.BeginObjectRegister(type, L, translator, 0, 5, 0, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetAllAssetBundles", _m_GetAllAssetBundles); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetAllAssetBundlesWithVariant", _m_GetAllAssetBundlesWithVariant); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetAssetBundleHash", _m_GetAssetBundleHash); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetDirectDependencies", _m_GetDirectDependencies); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetAllDependencies", _m_GetAllDependencies); - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "UnityEngine.AssetBundleManifest does not have a constructor!"); - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetAllAssetBundles(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.AssetBundleManifest gen_to_be_invoked = (UnityEngine.AssetBundleManifest)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.GetAllAssetBundles( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetAllAssetBundlesWithVariant(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.AssetBundleManifest gen_to_be_invoked = (UnityEngine.AssetBundleManifest)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.GetAllAssetBundlesWithVariant( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetAssetBundleHash(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.AssetBundleManifest gen_to_be_invoked = (UnityEngine.AssetBundleManifest)translator.FastGetCSObj(L, 1); - - - - { - string _assetBundleName = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.GetAssetBundleHash( _assetBundleName ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetDirectDependencies(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.AssetBundleManifest gen_to_be_invoked = (UnityEngine.AssetBundleManifest)translator.FastGetCSObj(L, 1); - - - - { - string _assetBundleName = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.GetDirectDependencies( _assetBundleName ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetAllDependencies(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.AssetBundleManifest gen_to_be_invoked = (UnityEngine.AssetBundleManifest)translator.FastGetCSObj(L, 1); - - - - { - string _assetBundleName = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.GetAllDependencies( _assetBundleName ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_AssetBundleRecompressOperationWrap.cs b/Assets/XLua/Gen/UnityEngine_AssetBundleRecompressOperationWrap.cs deleted file mode 100644 index 1304df6ce..000000000 --- a/Assets/XLua/Gen/UnityEngine_AssetBundleRecompressOperationWrap.cs +++ /dev/null @@ -1,159 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineAssetBundleRecompressOperationWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.AssetBundleRecompressOperation); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 5, 0); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "humanReadableResult", _g_get_humanReadableResult); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "inputPath", _g_get_inputPath); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "outputPath", _g_get_outputPath); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "result", _g_get_result); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "success", _g_get_success); - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.AssetBundleRecompressOperation(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.AssetBundleRecompressOperation constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_humanReadableResult(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AssetBundleRecompressOperation gen_to_be_invoked = (UnityEngine.AssetBundleRecompressOperation)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.humanReadableResult); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_inputPath(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AssetBundleRecompressOperation gen_to_be_invoked = (UnityEngine.AssetBundleRecompressOperation)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.inputPath); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_outputPath(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AssetBundleRecompressOperation gen_to_be_invoked = (UnityEngine.AssetBundleRecompressOperation)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.outputPath); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_result(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AssetBundleRecompressOperation gen_to_be_invoked = (UnityEngine.AssetBundleRecompressOperation)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.result); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_success(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AssetBundleRecompressOperation gen_to_be_invoked = (UnityEngine.AssetBundleRecompressOperation)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.success); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_AudioBehaviourWrap.cs b/Assets/XLua/Gen/UnityEngine_AudioBehaviourWrap.cs deleted file mode 100644 index ae1ca7ab1..000000000 --- a/Assets/XLua/Gen/UnityEngine_AudioBehaviourWrap.cs +++ /dev/null @@ -1,84 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineAudioBehaviourWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.AudioBehaviour); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.AudioBehaviour(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.AudioBehaviour constructor!"); - - } - - - - - - - - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_AudioChorusFilterWrap.cs b/Assets/XLua/Gen/UnityEngine_AudioChorusFilterWrap.cs deleted file mode 100644 index a824fe70f..000000000 --- a/Assets/XLua/Gen/UnityEngine_AudioChorusFilterWrap.cs +++ /dev/null @@ -1,301 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineAudioChorusFilterWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.AudioChorusFilter); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 7, 7); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "dryMix", _g_get_dryMix); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "wetMix1", _g_get_wetMix1); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "wetMix2", _g_get_wetMix2); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "wetMix3", _g_get_wetMix3); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "delay", _g_get_delay); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "rate", _g_get_rate); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "depth", _g_get_depth); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "dryMix", _s_set_dryMix); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "wetMix1", _s_set_wetMix1); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "wetMix2", _s_set_wetMix2); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "wetMix3", _s_set_wetMix3); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "delay", _s_set_delay); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "rate", _s_set_rate); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "depth", _s_set_depth); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.AudioChorusFilter(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.AudioChorusFilter constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_dryMix(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioChorusFilter gen_to_be_invoked = (UnityEngine.AudioChorusFilter)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.dryMix); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_wetMix1(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioChorusFilter gen_to_be_invoked = (UnityEngine.AudioChorusFilter)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.wetMix1); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_wetMix2(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioChorusFilter gen_to_be_invoked = (UnityEngine.AudioChorusFilter)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.wetMix2); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_wetMix3(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioChorusFilter gen_to_be_invoked = (UnityEngine.AudioChorusFilter)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.wetMix3); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_delay(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioChorusFilter gen_to_be_invoked = (UnityEngine.AudioChorusFilter)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.delay); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_rate(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioChorusFilter gen_to_be_invoked = (UnityEngine.AudioChorusFilter)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.rate); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_depth(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioChorusFilter gen_to_be_invoked = (UnityEngine.AudioChorusFilter)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.depth); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_dryMix(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioChorusFilter gen_to_be_invoked = (UnityEngine.AudioChorusFilter)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.dryMix = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_wetMix1(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioChorusFilter gen_to_be_invoked = (UnityEngine.AudioChorusFilter)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.wetMix1 = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_wetMix2(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioChorusFilter gen_to_be_invoked = (UnityEngine.AudioChorusFilter)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.wetMix2 = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_wetMix3(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioChorusFilter gen_to_be_invoked = (UnityEngine.AudioChorusFilter)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.wetMix3 = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_delay(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioChorusFilter gen_to_be_invoked = (UnityEngine.AudioChorusFilter)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.delay = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_rate(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioChorusFilter gen_to_be_invoked = (UnityEngine.AudioChorusFilter)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.rate = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_depth(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioChorusFilter gen_to_be_invoked = (UnityEngine.AudioChorusFilter)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.depth = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_AudioConfigurationWrap.cs b/Assets/XLua/Gen/UnityEngine_AudioConfigurationWrap.cs deleted file mode 100644 index ce9637e87..000000000 --- a/Assets/XLua/Gen/UnityEngine_AudioConfigurationWrap.cs +++ /dev/null @@ -1,248 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineAudioConfigurationWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.AudioConfiguration); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 5, 5); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "speakerMode", _g_get_speakerMode); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "dspBufferSize", _g_get_dspBufferSize); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "sampleRate", _g_get_sampleRate); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "numRealVoices", _g_get_numRealVoices); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "numVirtualVoices", _g_get_numVirtualVoices); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "speakerMode", _s_set_speakerMode); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "dspBufferSize", _s_set_dspBufferSize); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "sampleRate", _s_set_sampleRate); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "numRealVoices", _s_set_numRealVoices); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "numVirtualVoices", _s_set_numVirtualVoices); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(UnityEngine.AudioConfiguration)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.AudioConfiguration constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_speakerMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioConfiguration gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.speakerMode); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_dspBufferSize(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioConfiguration gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.dspBufferSize); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_sampleRate(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioConfiguration gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.sampleRate); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_numRealVoices(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioConfiguration gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.numRealVoices); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_numVirtualVoices(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioConfiguration gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.numVirtualVoices); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_speakerMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioConfiguration gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.AudioSpeakerMode gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.speakerMode = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_dspBufferSize(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioConfiguration gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.dspBufferSize = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_sampleRate(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioConfiguration gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.sampleRate = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_numRealVoices(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioConfiguration gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.numRealVoices = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_numVirtualVoices(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioConfiguration gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.numVirtualVoices = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_AudioDistortionFilterWrap.cs b/Assets/XLua/Gen/UnityEngine_AudioDistortionFilterWrap.cs deleted file mode 100644 index e10fb5747..000000000 --- a/Assets/XLua/Gen/UnityEngine_AudioDistortionFilterWrap.cs +++ /dev/null @@ -1,115 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineAudioDistortionFilterWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.AudioDistortionFilter); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 1, 1); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "distortionLevel", _g_get_distortionLevel); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "distortionLevel", _s_set_distortionLevel); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.AudioDistortionFilter(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.AudioDistortionFilter constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_distortionLevel(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioDistortionFilter gen_to_be_invoked = (UnityEngine.AudioDistortionFilter)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.distortionLevel); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_distortionLevel(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioDistortionFilter gen_to_be_invoked = (UnityEngine.AudioDistortionFilter)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.distortionLevel = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_AudioEchoFilterWrap.cs b/Assets/XLua/Gen/UnityEngine_AudioEchoFilterWrap.cs deleted file mode 100644 index 2e8ead870..000000000 --- a/Assets/XLua/Gen/UnityEngine_AudioEchoFilterWrap.cs +++ /dev/null @@ -1,208 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineAudioEchoFilterWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.AudioEchoFilter); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 4, 4); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "delay", _g_get_delay); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "decayRatio", _g_get_decayRatio); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "dryMix", _g_get_dryMix); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "wetMix", _g_get_wetMix); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "delay", _s_set_delay); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "decayRatio", _s_set_decayRatio); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "dryMix", _s_set_dryMix); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "wetMix", _s_set_wetMix); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.AudioEchoFilter(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.AudioEchoFilter constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_delay(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioEchoFilter gen_to_be_invoked = (UnityEngine.AudioEchoFilter)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.delay); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_decayRatio(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioEchoFilter gen_to_be_invoked = (UnityEngine.AudioEchoFilter)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.decayRatio); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_dryMix(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioEchoFilter gen_to_be_invoked = (UnityEngine.AudioEchoFilter)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.dryMix); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_wetMix(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioEchoFilter gen_to_be_invoked = (UnityEngine.AudioEchoFilter)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.wetMix); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_delay(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioEchoFilter gen_to_be_invoked = (UnityEngine.AudioEchoFilter)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.delay = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_decayRatio(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioEchoFilter gen_to_be_invoked = (UnityEngine.AudioEchoFilter)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.decayRatio = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_dryMix(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioEchoFilter gen_to_be_invoked = (UnityEngine.AudioEchoFilter)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.dryMix = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_wetMix(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioEchoFilter gen_to_be_invoked = (UnityEngine.AudioEchoFilter)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.wetMix = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_AudioHighPassFilterWrap.cs b/Assets/XLua/Gen/UnityEngine_AudioHighPassFilterWrap.cs deleted file mode 100644 index 784ddca31..000000000 --- a/Assets/XLua/Gen/UnityEngine_AudioHighPassFilterWrap.cs +++ /dev/null @@ -1,146 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineAudioHighPassFilterWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.AudioHighPassFilter); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 2, 2); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "cutoffFrequency", _g_get_cutoffFrequency); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "highpassResonanceQ", _g_get_highpassResonanceQ); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "cutoffFrequency", _s_set_cutoffFrequency); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "highpassResonanceQ", _s_set_highpassResonanceQ); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.AudioHighPassFilter(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.AudioHighPassFilter constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_cutoffFrequency(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioHighPassFilter gen_to_be_invoked = (UnityEngine.AudioHighPassFilter)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.cutoffFrequency); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_highpassResonanceQ(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioHighPassFilter gen_to_be_invoked = (UnityEngine.AudioHighPassFilter)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.highpassResonanceQ); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_cutoffFrequency(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioHighPassFilter gen_to_be_invoked = (UnityEngine.AudioHighPassFilter)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.cutoffFrequency = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_highpassResonanceQ(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioHighPassFilter gen_to_be_invoked = (UnityEngine.AudioHighPassFilter)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.highpassResonanceQ = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_AudioListenerWrap.cs b/Assets/XLua/Gen/UnityEngine_AudioListenerWrap.cs deleted file mode 100644 index 512f260fa..000000000 --- a/Assets/XLua/Gen/UnityEngine_AudioListenerWrap.cs +++ /dev/null @@ -1,227 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineAudioListenerWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.AudioListener); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 1, 1); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "velocityUpdateMode", _g_get_velocityUpdateMode); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "velocityUpdateMode", _s_set_velocityUpdateMode); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 3, 2, 2); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetOutputData", _m_GetOutputData_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetSpectrumData", _m_GetSpectrumData_xlua_st_); - - - - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "volume", _g_get_volume); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "pause", _g_get_pause); - - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "volume", _s_set_volume); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "pause", _s_set_pause); - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.AudioListener(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.AudioListener constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetOutputData_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - float[] _samples = (float[])translator.GetObject(L, 1, typeof(float[])); - int _channel = LuaAPI.xlua_tointeger(L, 2); - - UnityEngine.AudioListener.GetOutputData( _samples, _channel ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetSpectrumData_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - float[] _samples = (float[])translator.GetObject(L, 1, typeof(float[])); - int _channel = LuaAPI.xlua_tointeger(L, 2); - UnityEngine.FFTWindow _window;translator.Get(L, 3, out _window); - - UnityEngine.AudioListener.GetSpectrumData( _samples, _channel, _window ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_volume(RealStatePtr L) - { - try { - - LuaAPI.lua_pushnumber(L, UnityEngine.AudioListener.volume); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_pause(RealStatePtr L) - { - try { - - LuaAPI.lua_pushboolean(L, UnityEngine.AudioListener.pause); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_velocityUpdateMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioListener gen_to_be_invoked = (UnityEngine.AudioListener)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.velocityUpdateMode); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_volume(RealStatePtr L) - { - try { - - UnityEngine.AudioListener.volume = (float)LuaAPI.lua_tonumber(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_pause(RealStatePtr L) - { - try { - - UnityEngine.AudioListener.pause = LuaAPI.lua_toboolean(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_velocityUpdateMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioListener gen_to_be_invoked = (UnityEngine.AudioListener)translator.FastGetCSObj(L, 1); - UnityEngine.AudioVelocityUpdateMode gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.velocityUpdateMode = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_AudioLowPassFilterWrap.cs b/Assets/XLua/Gen/UnityEngine_AudioLowPassFilterWrap.cs deleted file mode 100644 index d3e6d68df..000000000 --- a/Assets/XLua/Gen/UnityEngine_AudioLowPassFilterWrap.cs +++ /dev/null @@ -1,177 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineAudioLowPassFilterWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.AudioLowPassFilter); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 3, 3); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "customCutoffCurve", _g_get_customCutoffCurve); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "cutoffFrequency", _g_get_cutoffFrequency); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "lowpassResonanceQ", _g_get_lowpassResonanceQ); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "customCutoffCurve", _s_set_customCutoffCurve); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "cutoffFrequency", _s_set_cutoffFrequency); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "lowpassResonanceQ", _s_set_lowpassResonanceQ); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.AudioLowPassFilter(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.AudioLowPassFilter constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_customCutoffCurve(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioLowPassFilter gen_to_be_invoked = (UnityEngine.AudioLowPassFilter)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.customCutoffCurve); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_cutoffFrequency(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioLowPassFilter gen_to_be_invoked = (UnityEngine.AudioLowPassFilter)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.cutoffFrequency); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_lowpassResonanceQ(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioLowPassFilter gen_to_be_invoked = (UnityEngine.AudioLowPassFilter)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.lowpassResonanceQ); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_customCutoffCurve(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioLowPassFilter gen_to_be_invoked = (UnityEngine.AudioLowPassFilter)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.customCutoffCurve = (UnityEngine.AnimationCurve)translator.GetObject(L, 2, typeof(UnityEngine.AnimationCurve)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_cutoffFrequency(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioLowPassFilter gen_to_be_invoked = (UnityEngine.AudioLowPassFilter)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.cutoffFrequency = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_lowpassResonanceQ(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioLowPassFilter gen_to_be_invoked = (UnityEngine.AudioLowPassFilter)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.lowpassResonanceQ = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_AudioRendererWrap.cs b/Assets/XLua/Gen/UnityEngine_AudioRendererWrap.cs deleted file mode 100644 index ff4dd63f1..000000000 --- a/Assets/XLua/Gen/UnityEngine_AudioRendererWrap.cs +++ /dev/null @@ -1,187 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineAudioRendererWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.AudioRenderer); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 5, 0, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Start", _m_Start_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Stop", _m_Stop_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetSampleCountForCaptureFrame", _m_GetSampleCountForCaptureFrame_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Render", _m_Render_xlua_st_); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.AudioRenderer(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.AudioRenderer constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Start_xlua_st_(RealStatePtr L) - { - try { - - - - - { - - var gen_ret = UnityEngine.AudioRenderer.Start( ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Stop_xlua_st_(RealStatePtr L) - { - try { - - - - - { - - var gen_ret = UnityEngine.AudioRenderer.Stop( ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetSampleCountForCaptureFrame_xlua_st_(RealStatePtr L) - { - try { - - - - - { - - var gen_ret = UnityEngine.AudioRenderer.GetSampleCountForCaptureFrame( ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Render_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - Unity.Collections.NativeArray _buffer;translator.Get(L, 1, out _buffer); - - var gen_ret = UnityEngine.AudioRenderer.Render( _buffer ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_AudioReverbFilterWrap.cs b/Assets/XLua/Gen/UnityEngine_AudioReverbFilterWrap.cs deleted file mode 100644 index 13822d829..000000000 --- a/Assets/XLua/Gen/UnityEngine_AudioReverbFilterWrap.cs +++ /dev/null @@ -1,550 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineAudioReverbFilterWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.AudioReverbFilter); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 15, 15); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "reverbPreset", _g_get_reverbPreset); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "dryLevel", _g_get_dryLevel); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "room", _g_get_room); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "roomHF", _g_get_roomHF); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "decayTime", _g_get_decayTime); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "decayHFRatio", _g_get_decayHFRatio); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "reflectionsLevel", _g_get_reflectionsLevel); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "reflectionsDelay", _g_get_reflectionsDelay); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "reverbLevel", _g_get_reverbLevel); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "reverbDelay", _g_get_reverbDelay); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "diffusion", _g_get_diffusion); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "density", _g_get_density); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "hfReference", _g_get_hfReference); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "roomLF", _g_get_roomLF); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "lfReference", _g_get_lfReference); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "reverbPreset", _s_set_reverbPreset); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "dryLevel", _s_set_dryLevel); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "room", _s_set_room); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "roomHF", _s_set_roomHF); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "decayTime", _s_set_decayTime); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "decayHFRatio", _s_set_decayHFRatio); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "reflectionsLevel", _s_set_reflectionsLevel); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "reflectionsDelay", _s_set_reflectionsDelay); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "reverbLevel", _s_set_reverbLevel); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "reverbDelay", _s_set_reverbDelay); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "diffusion", _s_set_diffusion); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "density", _s_set_density); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "hfReference", _s_set_hfReference); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "roomLF", _s_set_roomLF); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "lfReference", _s_set_lfReference); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.AudioReverbFilter(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.AudioReverbFilter constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_reverbPreset(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioReverbFilter gen_to_be_invoked = (UnityEngine.AudioReverbFilter)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.reverbPreset); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_dryLevel(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioReverbFilter gen_to_be_invoked = (UnityEngine.AudioReverbFilter)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.dryLevel); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_room(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioReverbFilter gen_to_be_invoked = (UnityEngine.AudioReverbFilter)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.room); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_roomHF(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioReverbFilter gen_to_be_invoked = (UnityEngine.AudioReverbFilter)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.roomHF); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_decayTime(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioReverbFilter gen_to_be_invoked = (UnityEngine.AudioReverbFilter)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.decayTime); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_decayHFRatio(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioReverbFilter gen_to_be_invoked = (UnityEngine.AudioReverbFilter)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.decayHFRatio); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_reflectionsLevel(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioReverbFilter gen_to_be_invoked = (UnityEngine.AudioReverbFilter)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.reflectionsLevel); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_reflectionsDelay(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioReverbFilter gen_to_be_invoked = (UnityEngine.AudioReverbFilter)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.reflectionsDelay); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_reverbLevel(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioReverbFilter gen_to_be_invoked = (UnityEngine.AudioReverbFilter)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.reverbLevel); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_reverbDelay(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioReverbFilter gen_to_be_invoked = (UnityEngine.AudioReverbFilter)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.reverbDelay); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_diffusion(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioReverbFilter gen_to_be_invoked = (UnityEngine.AudioReverbFilter)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.diffusion); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_density(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioReverbFilter gen_to_be_invoked = (UnityEngine.AudioReverbFilter)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.density); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_hfReference(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioReverbFilter gen_to_be_invoked = (UnityEngine.AudioReverbFilter)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.hfReference); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_roomLF(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioReverbFilter gen_to_be_invoked = (UnityEngine.AudioReverbFilter)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.roomLF); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_lfReference(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioReverbFilter gen_to_be_invoked = (UnityEngine.AudioReverbFilter)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.lfReference); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_reverbPreset(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioReverbFilter gen_to_be_invoked = (UnityEngine.AudioReverbFilter)translator.FastGetCSObj(L, 1); - UnityEngine.AudioReverbPreset gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.reverbPreset = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_dryLevel(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioReverbFilter gen_to_be_invoked = (UnityEngine.AudioReverbFilter)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.dryLevel = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_room(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioReverbFilter gen_to_be_invoked = (UnityEngine.AudioReverbFilter)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.room = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_roomHF(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioReverbFilter gen_to_be_invoked = (UnityEngine.AudioReverbFilter)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.roomHF = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_decayTime(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioReverbFilter gen_to_be_invoked = (UnityEngine.AudioReverbFilter)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.decayTime = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_decayHFRatio(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioReverbFilter gen_to_be_invoked = (UnityEngine.AudioReverbFilter)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.decayHFRatio = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_reflectionsLevel(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioReverbFilter gen_to_be_invoked = (UnityEngine.AudioReverbFilter)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.reflectionsLevel = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_reflectionsDelay(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioReverbFilter gen_to_be_invoked = (UnityEngine.AudioReverbFilter)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.reflectionsDelay = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_reverbLevel(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioReverbFilter gen_to_be_invoked = (UnityEngine.AudioReverbFilter)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.reverbLevel = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_reverbDelay(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioReverbFilter gen_to_be_invoked = (UnityEngine.AudioReverbFilter)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.reverbDelay = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_diffusion(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioReverbFilter gen_to_be_invoked = (UnityEngine.AudioReverbFilter)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.diffusion = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_density(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioReverbFilter gen_to_be_invoked = (UnityEngine.AudioReverbFilter)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.density = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_hfReference(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioReverbFilter gen_to_be_invoked = (UnityEngine.AudioReverbFilter)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.hfReference = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_roomLF(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioReverbFilter gen_to_be_invoked = (UnityEngine.AudioReverbFilter)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.roomLF = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_lfReference(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioReverbFilter gen_to_be_invoked = (UnityEngine.AudioReverbFilter)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.lfReference = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_AudioReverbZoneWrap.cs b/Assets/XLua/Gen/UnityEngine_AudioReverbZoneWrap.cs deleted file mode 100644 index 21aa07b92..000000000 --- a/Assets/XLua/Gen/UnityEngine_AudioReverbZoneWrap.cs +++ /dev/null @@ -1,581 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineAudioReverbZoneWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.AudioReverbZone); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 16, 16); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "minDistance", _g_get_minDistance); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "maxDistance", _g_get_maxDistance); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "reverbPreset", _g_get_reverbPreset); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "room", _g_get_room); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "roomHF", _g_get_roomHF); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "roomLF", _g_get_roomLF); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "decayTime", _g_get_decayTime); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "decayHFRatio", _g_get_decayHFRatio); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "reflections", _g_get_reflections); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "reflectionsDelay", _g_get_reflectionsDelay); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "reverb", _g_get_reverb); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "reverbDelay", _g_get_reverbDelay); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "HFReference", _g_get_HFReference); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "LFReference", _g_get_LFReference); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "diffusion", _g_get_diffusion); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "density", _g_get_density); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "minDistance", _s_set_minDistance); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "maxDistance", _s_set_maxDistance); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "reverbPreset", _s_set_reverbPreset); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "room", _s_set_room); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "roomHF", _s_set_roomHF); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "roomLF", _s_set_roomLF); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "decayTime", _s_set_decayTime); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "decayHFRatio", _s_set_decayHFRatio); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "reflections", _s_set_reflections); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "reflectionsDelay", _s_set_reflectionsDelay); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "reverb", _s_set_reverb); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "reverbDelay", _s_set_reverbDelay); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "HFReference", _s_set_HFReference); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "LFReference", _s_set_LFReference); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "diffusion", _s_set_diffusion); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "density", _s_set_density); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.AudioReverbZone(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.AudioReverbZone constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_minDistance(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioReverbZone gen_to_be_invoked = (UnityEngine.AudioReverbZone)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.minDistance); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_maxDistance(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioReverbZone gen_to_be_invoked = (UnityEngine.AudioReverbZone)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.maxDistance); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_reverbPreset(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioReverbZone gen_to_be_invoked = (UnityEngine.AudioReverbZone)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.reverbPreset); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_room(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioReverbZone gen_to_be_invoked = (UnityEngine.AudioReverbZone)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.room); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_roomHF(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioReverbZone gen_to_be_invoked = (UnityEngine.AudioReverbZone)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.roomHF); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_roomLF(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioReverbZone gen_to_be_invoked = (UnityEngine.AudioReverbZone)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.roomLF); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_decayTime(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioReverbZone gen_to_be_invoked = (UnityEngine.AudioReverbZone)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.decayTime); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_decayHFRatio(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioReverbZone gen_to_be_invoked = (UnityEngine.AudioReverbZone)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.decayHFRatio); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_reflections(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioReverbZone gen_to_be_invoked = (UnityEngine.AudioReverbZone)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.reflections); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_reflectionsDelay(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioReverbZone gen_to_be_invoked = (UnityEngine.AudioReverbZone)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.reflectionsDelay); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_reverb(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioReverbZone gen_to_be_invoked = (UnityEngine.AudioReverbZone)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.reverb); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_reverbDelay(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioReverbZone gen_to_be_invoked = (UnityEngine.AudioReverbZone)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.reverbDelay); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_HFReference(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioReverbZone gen_to_be_invoked = (UnityEngine.AudioReverbZone)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.HFReference); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_LFReference(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioReverbZone gen_to_be_invoked = (UnityEngine.AudioReverbZone)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.LFReference); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_diffusion(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioReverbZone gen_to_be_invoked = (UnityEngine.AudioReverbZone)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.diffusion); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_density(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioReverbZone gen_to_be_invoked = (UnityEngine.AudioReverbZone)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.density); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_minDistance(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioReverbZone gen_to_be_invoked = (UnityEngine.AudioReverbZone)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.minDistance = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_maxDistance(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioReverbZone gen_to_be_invoked = (UnityEngine.AudioReverbZone)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.maxDistance = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_reverbPreset(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioReverbZone gen_to_be_invoked = (UnityEngine.AudioReverbZone)translator.FastGetCSObj(L, 1); - UnityEngine.AudioReverbPreset gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.reverbPreset = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_room(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioReverbZone gen_to_be_invoked = (UnityEngine.AudioReverbZone)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.room = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_roomHF(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioReverbZone gen_to_be_invoked = (UnityEngine.AudioReverbZone)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.roomHF = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_roomLF(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioReverbZone gen_to_be_invoked = (UnityEngine.AudioReverbZone)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.roomLF = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_decayTime(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioReverbZone gen_to_be_invoked = (UnityEngine.AudioReverbZone)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.decayTime = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_decayHFRatio(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioReverbZone gen_to_be_invoked = (UnityEngine.AudioReverbZone)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.decayHFRatio = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_reflections(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioReverbZone gen_to_be_invoked = (UnityEngine.AudioReverbZone)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.reflections = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_reflectionsDelay(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioReverbZone gen_to_be_invoked = (UnityEngine.AudioReverbZone)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.reflectionsDelay = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_reverb(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioReverbZone gen_to_be_invoked = (UnityEngine.AudioReverbZone)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.reverb = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_reverbDelay(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioReverbZone gen_to_be_invoked = (UnityEngine.AudioReverbZone)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.reverbDelay = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_HFReference(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioReverbZone gen_to_be_invoked = (UnityEngine.AudioReverbZone)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.HFReference = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_LFReference(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioReverbZone gen_to_be_invoked = (UnityEngine.AudioReverbZone)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.LFReference = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_diffusion(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioReverbZone gen_to_be_invoked = (UnityEngine.AudioReverbZone)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.diffusion = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_density(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioReverbZone gen_to_be_invoked = (UnityEngine.AudioReverbZone)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.density = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_AvatarBuilderWrap.cs b/Assets/XLua/Gen/UnityEngine_AvatarBuilderWrap.cs deleted file mode 100644 index 544ddfdb1..000000000 --- a/Assets/XLua/Gen/UnityEngine_AvatarBuilderWrap.cs +++ /dev/null @@ -1,142 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineAvatarBuilderWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.AvatarBuilder); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 3, 0, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "BuildHumanAvatar", _m_BuildHumanAvatar_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "BuildGenericAvatar", _m_BuildGenericAvatar_xlua_st_); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.AvatarBuilder(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.AvatarBuilder constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_BuildHumanAvatar_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.GameObject _go = (UnityEngine.GameObject)translator.GetObject(L, 1, typeof(UnityEngine.GameObject)); - UnityEngine.HumanDescription _humanDescription;translator.Get(L, 2, out _humanDescription); - - var gen_ret = UnityEngine.AvatarBuilder.BuildHumanAvatar( _go, _humanDescription ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_BuildGenericAvatar_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.GameObject _go = (UnityEngine.GameObject)translator.GetObject(L, 1, typeof(UnityEngine.GameObject)); - string _rootMotionTransformName = LuaAPI.lua_tostring(L, 2); - - var gen_ret = UnityEngine.AvatarBuilder.BuildGenericAvatar( _go, _rootMotionTransformName ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_AvatarMaskWrap.cs b/Assets/XLua/Gen/UnityEngine_AvatarMaskWrap.cs deleted file mode 100644 index 4e45ddaf4..000000000 --- a/Assets/XLua/Gen/UnityEngine_AvatarMaskWrap.cs +++ /dev/null @@ -1,383 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineAvatarMaskWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.AvatarMask); - Utils.BeginObjectRegister(type, L, translator, 0, 8, 1, 1); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetHumanoidBodyPartActive", _m_GetHumanoidBodyPartActive); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetHumanoidBodyPartActive", _m_SetHumanoidBodyPartActive); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddTransformPath", _m_AddTransformPath); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "RemoveTransformPath", _m_RemoveTransformPath); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetTransformPath", _m_GetTransformPath); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetTransformPath", _m_SetTransformPath); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetTransformActive", _m_GetTransformActive); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetTransformActive", _m_SetTransformActive); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "transformCount", _g_get_transformCount); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "transformCount", _s_set_transformCount); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.AvatarMask(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.AvatarMask constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetHumanoidBodyPartActive(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.AvatarMask gen_to_be_invoked = (UnityEngine.AvatarMask)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.AvatarMaskBodyPart _index;translator.Get(L, 2, out _index); - - var gen_ret = gen_to_be_invoked.GetHumanoidBodyPartActive( _index ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetHumanoidBodyPartActive(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.AvatarMask gen_to_be_invoked = (UnityEngine.AvatarMask)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.AvatarMaskBodyPart _index;translator.Get(L, 2, out _index); - bool _value = LuaAPI.lua_toboolean(L, 3); - - gen_to_be_invoked.SetHumanoidBodyPartActive( _index, _value ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AddTransformPath(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.AvatarMask gen_to_be_invoked = (UnityEngine.AvatarMask)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.Transform _transform = (UnityEngine.Transform)translator.GetObject(L, 2, typeof(UnityEngine.Transform)); - - gen_to_be_invoked.AddTransformPath( _transform ); - - - - return 0; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) - { - UnityEngine.Transform _transform = (UnityEngine.Transform)translator.GetObject(L, 2, typeof(UnityEngine.Transform)); - bool _recursive = LuaAPI.lua_toboolean(L, 3); - - gen_to_be_invoked.AddTransformPath( _transform, _recursive ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.AvatarMask.AddTransformPath!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RemoveTransformPath(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.AvatarMask gen_to_be_invoked = (UnityEngine.AvatarMask)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.Transform _transform = (UnityEngine.Transform)translator.GetObject(L, 2, typeof(UnityEngine.Transform)); - - gen_to_be_invoked.RemoveTransformPath( _transform ); - - - - return 0; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) - { - UnityEngine.Transform _transform = (UnityEngine.Transform)translator.GetObject(L, 2, typeof(UnityEngine.Transform)); - bool _recursive = LuaAPI.lua_toboolean(L, 3); - - gen_to_be_invoked.RemoveTransformPath( _transform, _recursive ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.AvatarMask.RemoveTransformPath!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetTransformPath(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.AvatarMask gen_to_be_invoked = (UnityEngine.AvatarMask)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.GetTransformPath( _index ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetTransformPath(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.AvatarMask gen_to_be_invoked = (UnityEngine.AvatarMask)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - string _path = LuaAPI.lua_tostring(L, 3); - - gen_to_be_invoked.SetTransformPath( _index, _path ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetTransformActive(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.AvatarMask gen_to_be_invoked = (UnityEngine.AvatarMask)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.GetTransformActive( _index ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetTransformActive(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.AvatarMask gen_to_be_invoked = (UnityEngine.AvatarMask)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - bool _value = LuaAPI.lua_toboolean(L, 3); - - gen_to_be_invoked.SetTransformActive( _index, _value ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_transformCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AvatarMask gen_to_be_invoked = (UnityEngine.AvatarMask)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.transformCount); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_transformCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AvatarMask gen_to_be_invoked = (UnityEngine.AvatarMask)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.transformCount = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_BillboardAssetWrap.cs b/Assets/XLua/Gen/UnityEngine_BillboardAssetWrap.cs deleted file mode 100644 index 94e65523e..000000000 --- a/Assets/XLua/Gen/UnityEngine_BillboardAssetWrap.cs +++ /dev/null @@ -1,511 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineBillboardAssetWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.BillboardAsset); - Utils.BeginObjectRegister(type, L, translator, 0, 6, 7, 4); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetImageTexCoords", _m_GetImageTexCoords); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetImageTexCoords", _m_SetImageTexCoords); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetVertices", _m_GetVertices); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetVertices", _m_SetVertices); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetIndices", _m_GetIndices); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetIndices", _m_SetIndices); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "width", _g_get_width); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "height", _g_get_height); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "bottom", _g_get_bottom); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "imageCount", _g_get_imageCount); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "vertexCount", _g_get_vertexCount); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "indexCount", _g_get_indexCount); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "material", _g_get_material); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "width", _s_set_width); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "height", _s_set_height); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "bottom", _s_set_bottom); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "material", _s_set_material); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.BillboardAsset(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.BillboardAsset constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetImageTexCoords(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.BillboardAsset gen_to_be_invoked = (UnityEngine.BillboardAsset)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - var gen_ret = gen_to_be_invoked.GetImageTexCoords( ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable>(L, 2)) - { - System.Collections.Generic.List _imageTexCoords = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - - gen_to_be_invoked.GetImageTexCoords( _imageTexCoords ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.BillboardAsset.GetImageTexCoords!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetImageTexCoords(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.BillboardAsset gen_to_be_invoked = (UnityEngine.BillboardAsset)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable>(L, 2)) - { - System.Collections.Generic.List _imageTexCoords = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - - gen_to_be_invoked.SetImageTexCoords( _imageTexCoords ); - - - - return 0; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.Vector4[] _imageTexCoords = (UnityEngine.Vector4[])translator.GetObject(L, 2, typeof(UnityEngine.Vector4[])); - - gen_to_be_invoked.SetImageTexCoords( _imageTexCoords ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.BillboardAsset.SetImageTexCoords!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetVertices(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.BillboardAsset gen_to_be_invoked = (UnityEngine.BillboardAsset)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - var gen_ret = gen_to_be_invoked.GetVertices( ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable>(L, 2)) - { - System.Collections.Generic.List _vertices = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - - gen_to_be_invoked.GetVertices( _vertices ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.BillboardAsset.GetVertices!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetVertices(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.BillboardAsset gen_to_be_invoked = (UnityEngine.BillboardAsset)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable>(L, 2)) - { - System.Collections.Generic.List _vertices = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - - gen_to_be_invoked.SetVertices( _vertices ); - - - - return 0; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.Vector2[] _vertices = (UnityEngine.Vector2[])translator.GetObject(L, 2, typeof(UnityEngine.Vector2[])); - - gen_to_be_invoked.SetVertices( _vertices ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.BillboardAsset.SetVertices!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetIndices(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.BillboardAsset gen_to_be_invoked = (UnityEngine.BillboardAsset)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - var gen_ret = gen_to_be_invoked.GetIndices( ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable>(L, 2)) - { - System.Collections.Generic.List _indices = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - - gen_to_be_invoked.GetIndices( _indices ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.BillboardAsset.GetIndices!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetIndices(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.BillboardAsset gen_to_be_invoked = (UnityEngine.BillboardAsset)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable>(L, 2)) - { - System.Collections.Generic.List _indices = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - - gen_to_be_invoked.SetIndices( _indices ); - - - - return 0; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - ushort[] _indices = (ushort[])translator.GetObject(L, 2, typeof(ushort[])); - - gen_to_be_invoked.SetIndices( _indices ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.BillboardAsset.SetIndices!"); - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_width(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.BillboardAsset gen_to_be_invoked = (UnityEngine.BillboardAsset)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.width); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_height(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.BillboardAsset gen_to_be_invoked = (UnityEngine.BillboardAsset)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.height); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_bottom(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.BillboardAsset gen_to_be_invoked = (UnityEngine.BillboardAsset)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.bottom); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_imageCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.BillboardAsset gen_to_be_invoked = (UnityEngine.BillboardAsset)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.imageCount); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_vertexCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.BillboardAsset gen_to_be_invoked = (UnityEngine.BillboardAsset)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.vertexCount); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_indexCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.BillboardAsset gen_to_be_invoked = (UnityEngine.BillboardAsset)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.indexCount); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_material(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.BillboardAsset gen_to_be_invoked = (UnityEngine.BillboardAsset)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.material); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_width(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.BillboardAsset gen_to_be_invoked = (UnityEngine.BillboardAsset)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.width = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_height(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.BillboardAsset gen_to_be_invoked = (UnityEngine.BillboardAsset)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.height = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_bottom(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.BillboardAsset gen_to_be_invoked = (UnityEngine.BillboardAsset)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.bottom = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_material(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.BillboardAsset gen_to_be_invoked = (UnityEngine.BillboardAsset)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.material = (UnityEngine.Material)translator.GetObject(L, 2, typeof(UnityEngine.Material)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_BillboardRendererWrap.cs b/Assets/XLua/Gen/UnityEngine_BillboardRendererWrap.cs deleted file mode 100644 index 286040b35..000000000 --- a/Assets/XLua/Gen/UnityEngine_BillboardRendererWrap.cs +++ /dev/null @@ -1,115 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineBillboardRendererWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.BillboardRenderer); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 1, 1); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "billboard", _g_get_billboard); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "billboard", _s_set_billboard); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.BillboardRenderer(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.BillboardRenderer constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_billboard(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.BillboardRenderer gen_to_be_invoked = (UnityEngine.BillboardRenderer)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.billboard); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_billboard(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.BillboardRenderer gen_to_be_invoked = (UnityEngine.BillboardRenderer)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.billboard = (UnityEngine.BillboardAsset)translator.GetObject(L, 2, typeof(UnityEngine.BillboardAsset)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_BoneWeight1Wrap.cs b/Assets/XLua/Gen/UnityEngine_BoneWeight1Wrap.cs deleted file mode 100644 index e5560dcf8..000000000 --- a/Assets/XLua/Gen/UnityEngine_BoneWeight1Wrap.cs +++ /dev/null @@ -1,255 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineBoneWeight1Wrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.BoneWeight1); - Utils.BeginObjectRegister(type, L, translator, 1, 2, 2, 2); - Utils.RegisterFunc(L, Utils.OBJ_META_IDX, "__eq", __EqMeta); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Equals", _m_Equals); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetHashCode", _m_GetHashCode); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "weight", _g_get_weight); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "boneIndex", _g_get_boneIndex); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "weight", _s_set_weight); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "boneIndex", _s_set_boneIndex); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(UnityEngine.BoneWeight1)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.BoneWeight1 constructor!"); - - } - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __EqMeta(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - if (translator.Assignable(L, 1) && translator.Assignable(L, 2)) - { - UnityEngine.BoneWeight1 leftside;translator.Get(L, 1, out leftside); - UnityEngine.BoneWeight1 rightside;translator.Get(L, 2, out rightside); - - LuaAPI.lua_pushboolean(L, leftside == rightside); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to right hand of == operator, need UnityEngine.BoneWeight1!"); - - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Equals(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.BoneWeight1 gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - object _other = translator.GetObject(L, 2, typeof(object)); - - var gen_ret = gen_to_be_invoked.Equals( _other ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.BoneWeight1 _other;translator.Get(L, 2, out _other); - - var gen_ret = gen_to_be_invoked.Equals( _other ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.BoneWeight1.Equals!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetHashCode(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.BoneWeight1 gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - - var gen_ret = gen_to_be_invoked.GetHashCode( ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_weight(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.BoneWeight1 gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.weight); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_boneIndex(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.BoneWeight1 gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.boneIndex); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_weight(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.BoneWeight1 gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.weight = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_boneIndex(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.BoneWeight1 gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.boneIndex = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_BoneWeightWrap.cs b/Assets/XLua/Gen/UnityEngine_BoneWeightWrap.cs deleted file mode 100644 index ff7334f92..000000000 --- a/Assets/XLua/Gen/UnityEngine_BoneWeightWrap.cs +++ /dev/null @@ -1,453 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineBoneWeightWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.BoneWeight); - Utils.BeginObjectRegister(type, L, translator, 1, 2, 8, 8); - Utils.RegisterFunc(L, Utils.OBJ_META_IDX, "__eq", __EqMeta); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetHashCode", _m_GetHashCode); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Equals", _m_Equals); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "weight0", _g_get_weight0); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "weight1", _g_get_weight1); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "weight2", _g_get_weight2); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "weight3", _g_get_weight3); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "boneIndex0", _g_get_boneIndex0); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "boneIndex1", _g_get_boneIndex1); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "boneIndex2", _g_get_boneIndex2); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "boneIndex3", _g_get_boneIndex3); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "weight0", _s_set_weight0); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "weight1", _s_set_weight1); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "weight2", _s_set_weight2); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "weight3", _s_set_weight3); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "boneIndex0", _s_set_boneIndex0); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "boneIndex1", _s_set_boneIndex1); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "boneIndex2", _s_set_boneIndex2); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "boneIndex3", _s_set_boneIndex3); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(UnityEngine.BoneWeight)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.BoneWeight constructor!"); - - } - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __EqMeta(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - if (translator.Assignable(L, 1) && translator.Assignable(L, 2)) - { - UnityEngine.BoneWeight leftside;translator.Get(L, 1, out leftside); - UnityEngine.BoneWeight rightside;translator.Get(L, 2, out rightside); - - LuaAPI.lua_pushboolean(L, leftside == rightside); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to right hand of == operator, need UnityEngine.BoneWeight!"); - - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetHashCode(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.BoneWeight gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - - var gen_ret = gen_to_be_invoked.GetHashCode( ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Equals(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.BoneWeight gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - object _other = translator.GetObject(L, 2, typeof(object)); - - var gen_ret = gen_to_be_invoked.Equals( _other ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.BoneWeight _other;translator.Get(L, 2, out _other); - - var gen_ret = gen_to_be_invoked.Equals( _other ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.BoneWeight.Equals!"); - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_weight0(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.BoneWeight gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.weight0); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_weight1(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.BoneWeight gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.weight1); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_weight2(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.BoneWeight gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.weight2); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_weight3(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.BoneWeight gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.weight3); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_boneIndex0(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.BoneWeight gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.boneIndex0); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_boneIndex1(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.BoneWeight gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.boneIndex1); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_boneIndex2(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.BoneWeight gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.boneIndex2); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_boneIndex3(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.BoneWeight gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.boneIndex3); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_weight0(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.BoneWeight gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.weight0 = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_weight1(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.BoneWeight gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.weight1 = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_weight2(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.BoneWeight gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.weight2 = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_weight3(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.BoneWeight gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.weight3 = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_boneIndex0(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.BoneWeight gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.boneIndex0 = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_boneIndex1(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.BoneWeight gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.boneIndex1 = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_boneIndex2(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.BoneWeight gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.boneIndex2 = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_boneIndex3(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.BoneWeight gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.boneIndex3 = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_BoundingSphereWrap.cs b/Assets/XLua/Gen/UnityEngine_BoundingSphereWrap.cs deleted file mode 100644 index 5649ad65d..000000000 --- a/Assets/XLua/Gen/UnityEngine_BoundingSphereWrap.cs +++ /dev/null @@ -1,168 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineBoundingSphereWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.BoundingSphere); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 2, 2); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "position", _g_get_position); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "radius", _g_get_radius); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "position", _s_set_position); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "radius", _s_set_radius); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 3 && translator.Assignable(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - UnityEngine.Vector3 _pos;translator.Get(L, 2, out _pos); - float _rad = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = new UnityEngine.BoundingSphere(_pos, _rad); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 2 && translator.Assignable(L, 2)) - { - UnityEngine.Vector4 _packedSphere;translator.Get(L, 2, out _packedSphere); - - var gen_ret = new UnityEngine.BoundingSphere(_packedSphere); - translator.Push(L, gen_ret); - - return 1; - } - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(UnityEngine.BoundingSphere)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.BoundingSphere constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_position(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.BoundingSphere gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.position); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_radius(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.BoundingSphere gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.radius); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_position(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.BoundingSphere gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Vector3 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.position = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_radius(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.BoundingSphere gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.radius = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_BoundsIntWrap.cs b/Assets/XLua/Gen/UnityEngine_BoundsIntWrap.cs deleted file mode 100644 index 7cf9ac721..000000000 --- a/Assets/XLua/Gen/UnityEngine_BoundsIntWrap.cs +++ /dev/null @@ -1,833 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineBoundsIntWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.BoundsInt); - Utils.BeginObjectRegister(type, L, translator, 1, 6, 15, 13); - Utils.RegisterFunc(L, Utils.OBJ_META_IDX, "__eq", __EqMeta); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetMinMax", _m_SetMinMax); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ClampToBounds", _m_ClampToBounds); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Contains", _m_Contains); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ToString", _m_ToString); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Equals", _m_Equals); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetHashCode", _m_GetHashCode); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "x", _g_get_x); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "y", _g_get_y); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "z", _g_get_z); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "center", _g_get_center); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "min", _g_get_min); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "max", _g_get_max); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "xMin", _g_get_xMin); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "yMin", _g_get_yMin); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "zMin", _g_get_zMin); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "xMax", _g_get_xMax); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "yMax", _g_get_yMax); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "zMax", _g_get_zMax); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "position", _g_get_position); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "size", _g_get_size); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "allPositionsWithin", _g_get_allPositionsWithin); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "x", _s_set_x); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "y", _s_set_y); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "z", _s_set_z); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "min", _s_set_min); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "max", _s_set_max); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "xMin", _s_set_xMin); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "yMin", _s_set_yMin); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "zMin", _s_set_zMin); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "xMax", _s_set_xMax); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "yMax", _s_set_yMax); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "zMax", _s_set_zMax); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "position", _s_set_position); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "size", _s_set_size); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 7 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 7)) - { - int _xMin = LuaAPI.xlua_tointeger(L, 2); - int _yMin = LuaAPI.xlua_tointeger(L, 3); - int _zMin = LuaAPI.xlua_tointeger(L, 4); - int _sizeX = LuaAPI.xlua_tointeger(L, 5); - int _sizeY = LuaAPI.xlua_tointeger(L, 6); - int _sizeZ = LuaAPI.xlua_tointeger(L, 7); - - var gen_ret = new UnityEngine.BoundsInt(_xMin, _yMin, _zMin, _sizeX, _sizeY, _sizeZ); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 3 && translator.Assignable(L, 2) && translator.Assignable(L, 3)) - { - UnityEngine.Vector3Int _position;translator.Get(L, 2, out _position); - UnityEngine.Vector3Int _size;translator.Get(L, 3, out _size); - - var gen_ret = new UnityEngine.BoundsInt(_position, _size); - translator.Push(L, gen_ret); - - return 1; - } - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(UnityEngine.BoundsInt)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.BoundsInt constructor!"); - - } - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __EqMeta(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - if (translator.Assignable(L, 1) && translator.Assignable(L, 2)) - { - UnityEngine.BoundsInt leftside;translator.Get(L, 1, out leftside); - UnityEngine.BoundsInt rightside;translator.Get(L, 2, out rightside); - - LuaAPI.lua_pushboolean(L, leftside == rightside); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to right hand of == operator, need UnityEngine.BoundsInt!"); - - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetMinMax(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.BoundsInt gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - UnityEngine.Vector3Int _minPosition;translator.Get(L, 2, out _minPosition); - UnityEngine.Vector3Int _maxPosition;translator.Get(L, 3, out _maxPosition); - - gen_to_be_invoked.SetMinMax( _minPosition, _maxPosition ); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ClampToBounds(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.BoundsInt gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - UnityEngine.BoundsInt _bounds;translator.Get(L, 2, out _bounds); - - gen_to_be_invoked.ClampToBounds( _bounds ); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Contains(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.BoundsInt gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - UnityEngine.Vector3Int _position;translator.Get(L, 2, out _position); - - var gen_ret = gen_to_be_invoked.Contains( _position ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ToString(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.BoundsInt gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - var gen_ret = gen_to_be_invoked.ToString( ); - LuaAPI.lua_pushstring(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _format = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.ToString( _format ); - LuaAPI.lua_pushstring(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 3)) - { - string _format = LuaAPI.lua_tostring(L, 2); - System.IFormatProvider _formatProvider = (System.IFormatProvider)translator.GetObject(L, 3, typeof(System.IFormatProvider)); - - var gen_ret = gen_to_be_invoked.ToString( _format, _formatProvider ); - LuaAPI.lua_pushstring(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.BoundsInt.ToString!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Equals(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.BoundsInt gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - object _other = translator.GetObject(L, 2, typeof(object)); - - var gen_ret = gen_to_be_invoked.Equals( _other ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.BoundsInt _other;translator.Get(L, 2, out _other); - - var gen_ret = gen_to_be_invoked.Equals( _other ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.BoundsInt.Equals!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetHashCode(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.BoundsInt gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - - var gen_ret = gen_to_be_invoked.GetHashCode( ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_x(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.BoundsInt gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.x); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_y(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.BoundsInt gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.y); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_z(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.BoundsInt gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.z); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_center(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.BoundsInt gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.center); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_min(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.BoundsInt gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.min); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_max(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.BoundsInt gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.max); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_xMin(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.BoundsInt gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.xMin); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_yMin(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.BoundsInt gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.yMin); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_zMin(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.BoundsInt gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.zMin); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_xMax(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.BoundsInt gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.xMax); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_yMax(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.BoundsInt gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.yMax); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_zMax(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.BoundsInt gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.zMax); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_position(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.BoundsInt gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.position); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_size(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.BoundsInt gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.size); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_allPositionsWithin(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.BoundsInt gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.allPositionsWithin); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_x(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.BoundsInt gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.x = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_y(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.BoundsInt gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.y = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_z(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.BoundsInt gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.z = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_min(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.BoundsInt gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Vector3Int gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.min = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_max(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.BoundsInt gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Vector3Int gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.max = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_xMin(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.BoundsInt gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.xMin = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_yMin(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.BoundsInt gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.yMin = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_zMin(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.BoundsInt gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.zMin = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_xMax(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.BoundsInt gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.xMax = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_yMax(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.BoundsInt gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.yMax = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_zMax(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.BoundsInt gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.zMax = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_position(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.BoundsInt gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Vector3Int gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.position = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_size(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.BoundsInt gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Vector3Int gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.size = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_BoxCollider2DWrap.cs b/Assets/XLua/Gen/UnityEngine_BoxCollider2DWrap.cs deleted file mode 100644 index 9093d23e6..000000000 --- a/Assets/XLua/Gen/UnityEngine_BoxCollider2DWrap.cs +++ /dev/null @@ -1,178 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineBoxCollider2DWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.BoxCollider2D); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 3, 3); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "size", _g_get_size); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "edgeRadius", _g_get_edgeRadius); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "autoTiling", _g_get_autoTiling); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "size", _s_set_size); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "edgeRadius", _s_set_edgeRadius); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "autoTiling", _s_set_autoTiling); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.BoxCollider2D(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.BoxCollider2D constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_size(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.BoxCollider2D gen_to_be_invoked = (UnityEngine.BoxCollider2D)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector2(L, gen_to_be_invoked.size); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_edgeRadius(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.BoxCollider2D gen_to_be_invoked = (UnityEngine.BoxCollider2D)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.edgeRadius); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_autoTiling(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.BoxCollider2D gen_to_be_invoked = (UnityEngine.BoxCollider2D)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.autoTiling); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_size(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.BoxCollider2D gen_to_be_invoked = (UnityEngine.BoxCollider2D)translator.FastGetCSObj(L, 1); - UnityEngine.Vector2 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.size = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_edgeRadius(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.BoxCollider2D gen_to_be_invoked = (UnityEngine.BoxCollider2D)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.edgeRadius = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_autoTiling(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.BoxCollider2D gen_to_be_invoked = (UnityEngine.BoxCollider2D)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.autoTiling = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_BoxcastCommandWrap.cs b/Assets/XLua/Gen/UnityEngine_BoxcastCommandWrap.cs deleted file mode 100644 index 4b42e6b7c..000000000 --- a/Assets/XLua/Gen/UnityEngine_BoxcastCommandWrap.cs +++ /dev/null @@ -1,371 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineBoxcastCommandWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.BoxcastCommand); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 6, 6); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "center", _g_get_center); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "halfExtents", _g_get_halfExtents); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "orientation", _g_get_orientation); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "direction", _g_get_direction); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "distance", _g_get_distance); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "layerMask", _g_get_layerMask); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "center", _s_set_center); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "halfExtents", _s_set_halfExtents); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "orientation", _s_set_orientation); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "direction", _s_set_direction); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "distance", _s_set_distance); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "layerMask", _s_set_layerMask); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 2, 0, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "ScheduleBatch", _m_ScheduleBatch_xlua_st_); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 7 && translator.Assignable(L, 2) && translator.Assignable(L, 3) && translator.Assignable(L, 4) && translator.Assignable(L, 5) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 7)) - { - UnityEngine.Vector3 _center;translator.Get(L, 2, out _center); - UnityEngine.Vector3 _halfExtents;translator.Get(L, 3, out _halfExtents); - UnityEngine.Quaternion _orientation;translator.Get(L, 4, out _orientation); - UnityEngine.Vector3 _direction;translator.Get(L, 5, out _direction); - float _distance = (float)LuaAPI.lua_tonumber(L, 6); - int _layerMask = LuaAPI.xlua_tointeger(L, 7); - - var gen_ret = new UnityEngine.BoxcastCommand(_center, _halfExtents, _orientation, _direction, _distance, _layerMask); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 6 && translator.Assignable(L, 2) && translator.Assignable(L, 3) && translator.Assignable(L, 4) && translator.Assignable(L, 5) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)) - { - UnityEngine.Vector3 _center;translator.Get(L, 2, out _center); - UnityEngine.Vector3 _halfExtents;translator.Get(L, 3, out _halfExtents); - UnityEngine.Quaternion _orientation;translator.Get(L, 4, out _orientation); - UnityEngine.Vector3 _direction;translator.Get(L, 5, out _direction); - float _distance = (float)LuaAPI.lua_tonumber(L, 6); - - var gen_ret = new UnityEngine.BoxcastCommand(_center, _halfExtents, _orientation, _direction, _distance); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 5 && translator.Assignable(L, 2) && translator.Assignable(L, 3) && translator.Assignable(L, 4) && translator.Assignable(L, 5)) - { - UnityEngine.Vector3 _center;translator.Get(L, 2, out _center); - UnityEngine.Vector3 _halfExtents;translator.Get(L, 3, out _halfExtents); - UnityEngine.Quaternion _orientation;translator.Get(L, 4, out _orientation); - UnityEngine.Vector3 _direction;translator.Get(L, 5, out _direction); - - var gen_ret = new UnityEngine.BoxcastCommand(_center, _halfExtents, _orientation, _direction); - translator.Push(L, gen_ret); - - return 1; - } - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(UnityEngine.BoxcastCommand)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.BoxcastCommand constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ScheduleBatch_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 4&& translator.Assignable>(L, 1)&& translator.Assignable>(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable(L, 4)) - { - Unity.Collections.NativeArray _commands;translator.Get(L, 1, out _commands); - Unity.Collections.NativeArray _results;translator.Get(L, 2, out _results); - int _minCommandsPerJob = LuaAPI.xlua_tointeger(L, 3); - Unity.Jobs.JobHandle _dependsOn;translator.Get(L, 4, out _dependsOn); - - var gen_ret = UnityEngine.BoxcastCommand.ScheduleBatch( _commands, _results, _minCommandsPerJob, _dependsOn ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable>(L, 1)&& translator.Assignable>(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - Unity.Collections.NativeArray _commands;translator.Get(L, 1, out _commands); - Unity.Collections.NativeArray _results;translator.Get(L, 2, out _results); - int _minCommandsPerJob = LuaAPI.xlua_tointeger(L, 3); - - var gen_ret = UnityEngine.BoxcastCommand.ScheduleBatch( _commands, _results, _minCommandsPerJob ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.BoxcastCommand.ScheduleBatch!"); - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_center(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.BoxcastCommand gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.center); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_halfExtents(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.BoxcastCommand gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.halfExtents); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_orientation(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.BoxcastCommand gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineQuaternion(L, gen_to_be_invoked.orientation); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_direction(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.BoxcastCommand gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.direction); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_distance(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.BoxcastCommand gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.distance); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_layerMask(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.BoxcastCommand gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.layerMask); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_center(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.BoxcastCommand gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Vector3 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.center = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_halfExtents(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.BoxcastCommand gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Vector3 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.halfExtents = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_orientation(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.BoxcastCommand gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Quaternion gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.orientation = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_direction(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.BoxcastCommand gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Vector3 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.direction = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_distance(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.BoxcastCommand gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.distance = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_layerMask(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.BoxcastCommand gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.layerMask = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_BuildCompressionWrap.cs b/Assets/XLua/Gen/UnityEngine_BuildCompressionWrap.cs deleted file mode 100644 index 4f2be2d97..000000000 --- a/Assets/XLua/Gen/UnityEngine_BuildCompressionWrap.cs +++ /dev/null @@ -1,132 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineBuildCompressionWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.BuildCompression); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 3, 0); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "compression", _g_get_compression); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "level", _g_get_level); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "blockSize", _g_get_blockSize); - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 6, 0, 0); - - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Uncompressed", UnityEngine.BuildCompression.Uncompressed); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "LZ4", UnityEngine.BuildCompression.LZ4); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "LZMA", UnityEngine.BuildCompression.LZMA); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "UncompressedRuntime", UnityEngine.BuildCompression.UncompressedRuntime); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "LZ4Runtime", UnityEngine.BuildCompression.LZ4Runtime); - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(UnityEngine.BuildCompression)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.BuildCompression constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_compression(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.BuildCompression gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.compression); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_level(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.BuildCompression gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.level); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_blockSize(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.BuildCompression gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushuint(L, gen_to_be_invoked.blockSize); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_BuoyancyEffector2DWrap.cs b/Assets/XLua/Gen/UnityEngine_BuoyancyEffector2DWrap.cs deleted file mode 100644 index 7a7afeace..000000000 --- a/Assets/XLua/Gen/UnityEngine_BuoyancyEffector2DWrap.cs +++ /dev/null @@ -1,301 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineBuoyancyEffector2DWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.BuoyancyEffector2D); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 7, 7); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "surfaceLevel", _g_get_surfaceLevel); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "density", _g_get_density); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "linearDrag", _g_get_linearDrag); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "angularDrag", _g_get_angularDrag); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "flowAngle", _g_get_flowAngle); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "flowMagnitude", _g_get_flowMagnitude); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "flowVariation", _g_get_flowVariation); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "surfaceLevel", _s_set_surfaceLevel); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "density", _s_set_density); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "linearDrag", _s_set_linearDrag); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "angularDrag", _s_set_angularDrag); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "flowAngle", _s_set_flowAngle); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "flowMagnitude", _s_set_flowMagnitude); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "flowVariation", _s_set_flowVariation); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.BuoyancyEffector2D(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.BuoyancyEffector2D constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_surfaceLevel(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.BuoyancyEffector2D gen_to_be_invoked = (UnityEngine.BuoyancyEffector2D)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.surfaceLevel); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_density(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.BuoyancyEffector2D gen_to_be_invoked = (UnityEngine.BuoyancyEffector2D)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.density); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_linearDrag(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.BuoyancyEffector2D gen_to_be_invoked = (UnityEngine.BuoyancyEffector2D)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.linearDrag); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_angularDrag(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.BuoyancyEffector2D gen_to_be_invoked = (UnityEngine.BuoyancyEffector2D)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.angularDrag); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_flowAngle(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.BuoyancyEffector2D gen_to_be_invoked = (UnityEngine.BuoyancyEffector2D)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.flowAngle); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_flowMagnitude(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.BuoyancyEffector2D gen_to_be_invoked = (UnityEngine.BuoyancyEffector2D)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.flowMagnitude); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_flowVariation(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.BuoyancyEffector2D gen_to_be_invoked = (UnityEngine.BuoyancyEffector2D)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.flowVariation); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_surfaceLevel(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.BuoyancyEffector2D gen_to_be_invoked = (UnityEngine.BuoyancyEffector2D)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.surfaceLevel = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_density(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.BuoyancyEffector2D gen_to_be_invoked = (UnityEngine.BuoyancyEffector2D)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.density = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_linearDrag(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.BuoyancyEffector2D gen_to_be_invoked = (UnityEngine.BuoyancyEffector2D)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.linearDrag = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_angularDrag(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.BuoyancyEffector2D gen_to_be_invoked = (UnityEngine.BuoyancyEffector2D)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.angularDrag = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_flowAngle(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.BuoyancyEffector2D gen_to_be_invoked = (UnityEngine.BuoyancyEffector2D)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.flowAngle = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_flowMagnitude(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.BuoyancyEffector2D gen_to_be_invoked = (UnityEngine.BuoyancyEffector2D)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.flowMagnitude = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_flowVariation(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.BuoyancyEffector2D gen_to_be_invoked = (UnityEngine.BuoyancyEffector2D)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.flowVariation = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_CacheWrap.cs b/Assets/XLua/Gen/UnityEngine_CacheWrap.cs deleted file mode 100644 index 1c804a198..000000000 --- a/Assets/XLua/Gen/UnityEngine_CacheWrap.cs +++ /dev/null @@ -1,408 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineCacheWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.Cache); - Utils.BeginObjectRegister(type, L, translator, 1, 3, 9, 2); - Utils.RegisterFunc(L, Utils.OBJ_META_IDX, "__eq", __EqMeta); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetHashCode", _m_GetHashCode); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Equals", _m_Equals); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ClearCache", _m_ClearCache); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "valid", _g_get_valid); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "ready", _g_get_ready); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "readOnly", _g_get_readOnly); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "path", _g_get_path); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "index", _g_get_index); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "spaceFree", _g_get_spaceFree); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "maximumAvailableStorageSpace", _g_get_maximumAvailableStorageSpace); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "spaceOccupied", _g_get_spaceOccupied); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "expirationDelay", _g_get_expirationDelay); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "maximumAvailableStorageSpace", _s_set_maximumAvailableStorageSpace); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "expirationDelay", _s_set_expirationDelay); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(UnityEngine.Cache)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Cache constructor!"); - - } - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __EqMeta(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - if (translator.Assignable(L, 1) && translator.Assignable(L, 2)) - { - UnityEngine.Cache leftside;translator.Get(L, 1, out leftside); - UnityEngine.Cache rightside;translator.Get(L, 2, out rightside); - - LuaAPI.lua_pushboolean(L, leftside == rightside); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to right hand of == operator, need UnityEngine.Cache!"); - - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetHashCode(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Cache gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - - var gen_ret = gen_to_be_invoked.GetHashCode( ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Equals(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Cache gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - object _other = translator.GetObject(L, 2, typeof(object)); - - var gen_ret = gen_to_be_invoked.Equals( _other ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.Cache _other;translator.Get(L, 2, out _other); - - var gen_ret = gen_to_be_invoked.Equals( _other ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Cache.Equals!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ClearCache(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Cache gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - var gen_ret = gen_to_be_invoked.ClearCache( ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - int _expiration = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.ClearCache( _expiration ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Cache.ClearCache!"); - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_valid(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Cache gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.valid); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_ready(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Cache gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.ready); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_readOnly(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Cache gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.readOnly); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_path(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Cache gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.path); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_index(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Cache gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.index); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_spaceFree(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Cache gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushint64(L, gen_to_be_invoked.spaceFree); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_maximumAvailableStorageSpace(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Cache gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushint64(L, gen_to_be_invoked.maximumAvailableStorageSpace); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_spaceOccupied(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Cache gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushint64(L, gen_to_be_invoked.spaceOccupied); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_expirationDelay(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Cache gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.expirationDelay); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_maximumAvailableStorageSpace(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Cache gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.maximumAvailableStorageSpace = LuaAPI.lua_toint64(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_expirationDelay(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Cache gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.expirationDelay = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_CachedAssetBundleWrap.cs b/Assets/XLua/Gen/UnityEngine_CachedAssetBundleWrap.cs deleted file mode 100644 index 3e603aadb..000000000 --- a/Assets/XLua/Gen/UnityEngine_CachedAssetBundleWrap.cs +++ /dev/null @@ -1,159 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineCachedAssetBundleWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.CachedAssetBundle); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 2, 2); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "name", _g_get_name); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "hash", _g_get_hash); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "name", _s_set_name); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "hash", _s_set_hash); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 3 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING) && translator.Assignable(L, 3)) - { - string _name = LuaAPI.lua_tostring(L, 2); - UnityEngine.Hash128 _hash;translator.Get(L, 3, out _hash); - - var gen_ret = new UnityEngine.CachedAssetBundle(_name, _hash); - translator.Push(L, gen_ret); - - return 1; - } - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(UnityEngine.CachedAssetBundle)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.CachedAssetBundle constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_name(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CachedAssetBundle gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.name); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_hash(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CachedAssetBundle gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.hash); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_name(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CachedAssetBundle gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.name = LuaAPI.lua_tostring(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_hash(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CachedAssetBundle gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Hash128 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.hash = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_CapsuleCollider2DWrap.cs b/Assets/XLua/Gen/UnityEngine_CapsuleCollider2DWrap.cs deleted file mode 100644 index 02d9bfdd5..000000000 --- a/Assets/XLua/Gen/UnityEngine_CapsuleCollider2DWrap.cs +++ /dev/null @@ -1,148 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineCapsuleCollider2DWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.CapsuleCollider2D); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 2, 2); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "size", _g_get_size); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "direction", _g_get_direction); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "size", _s_set_size); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "direction", _s_set_direction); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.CapsuleCollider2D(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.CapsuleCollider2D constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_size(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CapsuleCollider2D gen_to_be_invoked = (UnityEngine.CapsuleCollider2D)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector2(L, gen_to_be_invoked.size); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_direction(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CapsuleCollider2D gen_to_be_invoked = (UnityEngine.CapsuleCollider2D)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.direction); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_size(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CapsuleCollider2D gen_to_be_invoked = (UnityEngine.CapsuleCollider2D)translator.FastGetCSObj(L, 1); - UnityEngine.Vector2 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.size = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_direction(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CapsuleCollider2D gen_to_be_invoked = (UnityEngine.CapsuleCollider2D)translator.FastGetCSObj(L, 1); - UnityEngine.CapsuleDirection2D gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.direction = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_CapsuleColliderWrap.cs b/Assets/XLua/Gen/UnityEngine_CapsuleColliderWrap.cs deleted file mode 100644 index 0a79205a9..000000000 --- a/Assets/XLua/Gen/UnityEngine_CapsuleColliderWrap.cs +++ /dev/null @@ -1,209 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineCapsuleColliderWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.CapsuleCollider); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 4, 4); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "center", _g_get_center); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "radius", _g_get_radius); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "height", _g_get_height); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "direction", _g_get_direction); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "center", _s_set_center); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "radius", _s_set_radius); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "height", _s_set_height); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "direction", _s_set_direction); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.CapsuleCollider(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.CapsuleCollider constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_center(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CapsuleCollider gen_to_be_invoked = (UnityEngine.CapsuleCollider)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.center); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_radius(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CapsuleCollider gen_to_be_invoked = (UnityEngine.CapsuleCollider)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.radius); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_height(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CapsuleCollider gen_to_be_invoked = (UnityEngine.CapsuleCollider)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.height); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_direction(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CapsuleCollider gen_to_be_invoked = (UnityEngine.CapsuleCollider)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.direction); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_center(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CapsuleCollider gen_to_be_invoked = (UnityEngine.CapsuleCollider)translator.FastGetCSObj(L, 1); - UnityEngine.Vector3 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.center = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_radius(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CapsuleCollider gen_to_be_invoked = (UnityEngine.CapsuleCollider)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.radius = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_height(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CapsuleCollider gen_to_be_invoked = (UnityEngine.CapsuleCollider)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.height = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_direction(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CapsuleCollider gen_to_be_invoked = (UnityEngine.CapsuleCollider)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.direction = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_CapsulecastCommandWrap.cs b/Assets/XLua/Gen/UnityEngine_CapsulecastCommandWrap.cs deleted file mode 100644 index 2d3933f91..000000000 --- a/Assets/XLua/Gen/UnityEngine_CapsulecastCommandWrap.cs +++ /dev/null @@ -1,370 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineCapsulecastCommandWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.CapsulecastCommand); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 6, 6); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "point1", _g_get_point1); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "point2", _g_get_point2); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "radius", _g_get_radius); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "direction", _g_get_direction); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "distance", _g_get_distance); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "layerMask", _g_get_layerMask); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "point1", _s_set_point1); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "point2", _s_set_point2); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "radius", _s_set_radius); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "direction", _s_set_direction); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "distance", _s_set_distance); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "layerMask", _s_set_layerMask); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 2, 0, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "ScheduleBatch", _m_ScheduleBatch_xlua_st_); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 7 && translator.Assignable(L, 2) && translator.Assignable(L, 3) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4) && translator.Assignable(L, 5) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 7)) - { - UnityEngine.Vector3 _p1;translator.Get(L, 2, out _p1); - UnityEngine.Vector3 _p2;translator.Get(L, 3, out _p2); - float _radius = (float)LuaAPI.lua_tonumber(L, 4); - UnityEngine.Vector3 _direction;translator.Get(L, 5, out _direction); - float _distance = (float)LuaAPI.lua_tonumber(L, 6); - int _layerMask = LuaAPI.xlua_tointeger(L, 7); - - var gen_ret = new UnityEngine.CapsulecastCommand(_p1, _p2, _radius, _direction, _distance, _layerMask); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 6 && translator.Assignable(L, 2) && translator.Assignable(L, 3) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4) && translator.Assignable(L, 5) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)) - { - UnityEngine.Vector3 _p1;translator.Get(L, 2, out _p1); - UnityEngine.Vector3 _p2;translator.Get(L, 3, out _p2); - float _radius = (float)LuaAPI.lua_tonumber(L, 4); - UnityEngine.Vector3 _direction;translator.Get(L, 5, out _direction); - float _distance = (float)LuaAPI.lua_tonumber(L, 6); - - var gen_ret = new UnityEngine.CapsulecastCommand(_p1, _p2, _radius, _direction, _distance); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 5 && translator.Assignable(L, 2) && translator.Assignable(L, 3) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4) && translator.Assignable(L, 5)) - { - UnityEngine.Vector3 _p1;translator.Get(L, 2, out _p1); - UnityEngine.Vector3 _p2;translator.Get(L, 3, out _p2); - float _radius = (float)LuaAPI.lua_tonumber(L, 4); - UnityEngine.Vector3 _direction;translator.Get(L, 5, out _direction); - - var gen_ret = new UnityEngine.CapsulecastCommand(_p1, _p2, _radius, _direction); - translator.Push(L, gen_ret); - - return 1; - } - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(UnityEngine.CapsulecastCommand)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.CapsulecastCommand constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ScheduleBatch_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 4&& translator.Assignable>(L, 1)&& translator.Assignable>(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable(L, 4)) - { - Unity.Collections.NativeArray _commands;translator.Get(L, 1, out _commands); - Unity.Collections.NativeArray _results;translator.Get(L, 2, out _results); - int _minCommandsPerJob = LuaAPI.xlua_tointeger(L, 3); - Unity.Jobs.JobHandle _dependsOn;translator.Get(L, 4, out _dependsOn); - - var gen_ret = UnityEngine.CapsulecastCommand.ScheduleBatch( _commands, _results, _minCommandsPerJob, _dependsOn ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable>(L, 1)&& translator.Assignable>(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - Unity.Collections.NativeArray _commands;translator.Get(L, 1, out _commands); - Unity.Collections.NativeArray _results;translator.Get(L, 2, out _results); - int _minCommandsPerJob = LuaAPI.xlua_tointeger(L, 3); - - var gen_ret = UnityEngine.CapsulecastCommand.ScheduleBatch( _commands, _results, _minCommandsPerJob ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.CapsulecastCommand.ScheduleBatch!"); - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_point1(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CapsulecastCommand gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.point1); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_point2(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CapsulecastCommand gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.point2); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_radius(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CapsulecastCommand gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.radius); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_direction(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CapsulecastCommand gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.direction); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_distance(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CapsulecastCommand gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.distance); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_layerMask(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CapsulecastCommand gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.layerMask); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_point1(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CapsulecastCommand gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Vector3 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.point1 = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_point2(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CapsulecastCommand gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Vector3 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.point2 = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_radius(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CapsulecastCommand gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.radius = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_direction(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CapsulecastCommand gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Vector3 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.direction = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_distance(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CapsulecastCommand gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.distance = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_layerMask(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CapsulecastCommand gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.layerMask = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_CharacterControllerWrap.cs b/Assets/XLua/Gen/UnityEngine_CharacterControllerWrap.cs deleted file mode 100644 index 1289bd78f..000000000 --- a/Assets/XLua/Gen/UnityEngine_CharacterControllerWrap.cs +++ /dev/null @@ -1,469 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineCharacterControllerWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.CharacterController); - Utils.BeginObjectRegister(type, L, translator, 0, 2, 12, 9); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SimpleMove", _m_SimpleMove); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Move", _m_Move); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "velocity", _g_get_velocity); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "isGrounded", _g_get_isGrounded); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "collisionFlags", _g_get_collisionFlags); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "radius", _g_get_radius); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "height", _g_get_height); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "center", _g_get_center); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "slopeLimit", _g_get_slopeLimit); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "stepOffset", _g_get_stepOffset); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "skinWidth", _g_get_skinWidth); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "minMoveDistance", _g_get_minMoveDistance); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "detectCollisions", _g_get_detectCollisions); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "enableOverlapRecovery", _g_get_enableOverlapRecovery); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "radius", _s_set_radius); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "height", _s_set_height); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "center", _s_set_center); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "slopeLimit", _s_set_slopeLimit); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "stepOffset", _s_set_stepOffset); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "skinWidth", _s_set_skinWidth); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "minMoveDistance", _s_set_minMoveDistance); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "detectCollisions", _s_set_detectCollisions); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "enableOverlapRecovery", _s_set_enableOverlapRecovery); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.CharacterController(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.CharacterController constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SimpleMove(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.CharacterController gen_to_be_invoked = (UnityEngine.CharacterController)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Vector3 _speed;translator.Get(L, 2, out _speed); - - var gen_ret = gen_to_be_invoked.SimpleMove( _speed ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Move(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.CharacterController gen_to_be_invoked = (UnityEngine.CharacterController)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Vector3 _motion;translator.Get(L, 2, out _motion); - - var gen_ret = gen_to_be_invoked.Move( _motion ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_velocity(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CharacterController gen_to_be_invoked = (UnityEngine.CharacterController)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.velocity); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_isGrounded(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CharacterController gen_to_be_invoked = (UnityEngine.CharacterController)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.isGrounded); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_collisionFlags(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CharacterController gen_to_be_invoked = (UnityEngine.CharacterController)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.collisionFlags); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_radius(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CharacterController gen_to_be_invoked = (UnityEngine.CharacterController)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.radius); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_height(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CharacterController gen_to_be_invoked = (UnityEngine.CharacterController)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.height); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_center(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CharacterController gen_to_be_invoked = (UnityEngine.CharacterController)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.center); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_slopeLimit(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CharacterController gen_to_be_invoked = (UnityEngine.CharacterController)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.slopeLimit); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_stepOffset(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CharacterController gen_to_be_invoked = (UnityEngine.CharacterController)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.stepOffset); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_skinWidth(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CharacterController gen_to_be_invoked = (UnityEngine.CharacterController)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.skinWidth); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_minMoveDistance(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CharacterController gen_to_be_invoked = (UnityEngine.CharacterController)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.minMoveDistance); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_detectCollisions(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CharacterController gen_to_be_invoked = (UnityEngine.CharacterController)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.detectCollisions); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_enableOverlapRecovery(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CharacterController gen_to_be_invoked = (UnityEngine.CharacterController)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.enableOverlapRecovery); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_radius(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CharacterController gen_to_be_invoked = (UnityEngine.CharacterController)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.radius = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_height(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CharacterController gen_to_be_invoked = (UnityEngine.CharacterController)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.height = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_center(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CharacterController gen_to_be_invoked = (UnityEngine.CharacterController)translator.FastGetCSObj(L, 1); - UnityEngine.Vector3 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.center = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_slopeLimit(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CharacterController gen_to_be_invoked = (UnityEngine.CharacterController)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.slopeLimit = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_stepOffset(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CharacterController gen_to_be_invoked = (UnityEngine.CharacterController)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.stepOffset = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_skinWidth(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CharacterController gen_to_be_invoked = (UnityEngine.CharacterController)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.skinWidth = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_minMoveDistance(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CharacterController gen_to_be_invoked = (UnityEngine.CharacterController)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.minMoveDistance = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_detectCollisions(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CharacterController gen_to_be_invoked = (UnityEngine.CharacterController)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.detectCollisions = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_enableOverlapRecovery(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CharacterController gen_to_be_invoked = (UnityEngine.CharacterController)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.enableOverlapRecovery = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_CharacterInfoWrap.cs b/Assets/XLua/Gen/UnityEngine_CharacterInfoWrap.cs deleted file mode 100644 index 79975243d..000000000 --- a/Assets/XLua/Gen/UnityEngine_CharacterInfoWrap.cs +++ /dev/null @@ -1,582 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineCharacterInfoWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.CharacterInfo); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 15, 15); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "advance", _g_get_advance); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "glyphWidth", _g_get_glyphWidth); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "glyphHeight", _g_get_glyphHeight); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "bearing", _g_get_bearing); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "minY", _g_get_minY); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "maxY", _g_get_maxY); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "minX", _g_get_minX); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "maxX", _g_get_maxX); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "uvBottomLeft", _g_get_uvBottomLeft); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "uvBottomRight", _g_get_uvBottomRight); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "uvTopRight", _g_get_uvTopRight); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "uvTopLeft", _g_get_uvTopLeft); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "index", _g_get_index); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "size", _g_get_size); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "style", _g_get_style); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "advance", _s_set_advance); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "glyphWidth", _s_set_glyphWidth); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "glyphHeight", _s_set_glyphHeight); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "bearing", _s_set_bearing); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "minY", _s_set_minY); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "maxY", _s_set_maxY); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "minX", _s_set_minX); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "maxX", _s_set_maxX); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "uvBottomLeft", _s_set_uvBottomLeft); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "uvBottomRight", _s_set_uvBottomRight); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "uvTopRight", _s_set_uvTopRight); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "uvTopLeft", _s_set_uvTopLeft); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "index", _s_set_index); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "size", _s_set_size); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "style", _s_set_style); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(UnityEngine.CharacterInfo)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.CharacterInfo constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_advance(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CharacterInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.advance); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_glyphWidth(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CharacterInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.glyphWidth); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_glyphHeight(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CharacterInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.glyphHeight); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_bearing(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CharacterInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.bearing); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_minY(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CharacterInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.minY); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_maxY(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CharacterInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.maxY); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_minX(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CharacterInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.minX); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_maxX(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CharacterInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.maxX); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_uvBottomLeft(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CharacterInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineVector2(L, gen_to_be_invoked.uvBottomLeft); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_uvBottomRight(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CharacterInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineVector2(L, gen_to_be_invoked.uvBottomRight); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_uvTopRight(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CharacterInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineVector2(L, gen_to_be_invoked.uvTopRight); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_uvTopLeft(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CharacterInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineVector2(L, gen_to_be_invoked.uvTopLeft); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_index(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CharacterInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.index); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_size(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CharacterInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.size); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_style(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CharacterInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.style); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_advance(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CharacterInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.advance = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_glyphWidth(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CharacterInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.glyphWidth = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_glyphHeight(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CharacterInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.glyphHeight = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_bearing(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CharacterInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.bearing = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_minY(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CharacterInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.minY = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_maxY(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CharacterInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.maxY = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_minX(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CharacterInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.minX = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_maxX(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CharacterInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.maxX = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_uvBottomLeft(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CharacterInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Vector2 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.uvBottomLeft = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_uvBottomRight(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CharacterInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Vector2 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.uvBottomRight = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_uvTopRight(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CharacterInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Vector2 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.uvTopRight = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_uvTopLeft(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CharacterInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Vector2 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.uvTopLeft = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_index(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CharacterInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.index = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_size(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CharacterInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.size = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_style(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CharacterInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.FontStyle gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.style = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_CharacterJointWrap.cs b/Assets/XLua/Gen/UnityEngine_CharacterJointWrap.cs deleted file mode 100644 index 0e27b8e29..000000000 --- a/Assets/XLua/Gen/UnityEngine_CharacterJointWrap.cs +++ /dev/null @@ -1,401 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineCharacterJointWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.CharacterJoint); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 10, 10); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "swingAxis", _g_get_swingAxis); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "twistLimitSpring", _g_get_twistLimitSpring); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "swingLimitSpring", _g_get_swingLimitSpring); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "lowTwistLimit", _g_get_lowTwistLimit); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "highTwistLimit", _g_get_highTwistLimit); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "swing1Limit", _g_get_swing1Limit); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "swing2Limit", _g_get_swing2Limit); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "enableProjection", _g_get_enableProjection); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "projectionDistance", _g_get_projectionDistance); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "projectionAngle", _g_get_projectionAngle); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "swingAxis", _s_set_swingAxis); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "twistLimitSpring", _s_set_twistLimitSpring); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "swingLimitSpring", _s_set_swingLimitSpring); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "lowTwistLimit", _s_set_lowTwistLimit); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "highTwistLimit", _s_set_highTwistLimit); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "swing1Limit", _s_set_swing1Limit); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "swing2Limit", _s_set_swing2Limit); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "enableProjection", _s_set_enableProjection); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "projectionDistance", _s_set_projectionDistance); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "projectionAngle", _s_set_projectionAngle); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.CharacterJoint(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.CharacterJoint constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_swingAxis(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CharacterJoint gen_to_be_invoked = (UnityEngine.CharacterJoint)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.swingAxis); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_twistLimitSpring(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CharacterJoint gen_to_be_invoked = (UnityEngine.CharacterJoint)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.twistLimitSpring); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_swingLimitSpring(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CharacterJoint gen_to_be_invoked = (UnityEngine.CharacterJoint)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.swingLimitSpring); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_lowTwistLimit(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CharacterJoint gen_to_be_invoked = (UnityEngine.CharacterJoint)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.lowTwistLimit); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_highTwistLimit(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CharacterJoint gen_to_be_invoked = (UnityEngine.CharacterJoint)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.highTwistLimit); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_swing1Limit(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CharacterJoint gen_to_be_invoked = (UnityEngine.CharacterJoint)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.swing1Limit); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_swing2Limit(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CharacterJoint gen_to_be_invoked = (UnityEngine.CharacterJoint)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.swing2Limit); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_enableProjection(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CharacterJoint gen_to_be_invoked = (UnityEngine.CharacterJoint)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.enableProjection); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_projectionDistance(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CharacterJoint gen_to_be_invoked = (UnityEngine.CharacterJoint)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.projectionDistance); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_projectionAngle(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CharacterJoint gen_to_be_invoked = (UnityEngine.CharacterJoint)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.projectionAngle); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_swingAxis(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CharacterJoint gen_to_be_invoked = (UnityEngine.CharacterJoint)translator.FastGetCSObj(L, 1); - UnityEngine.Vector3 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.swingAxis = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_twistLimitSpring(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CharacterJoint gen_to_be_invoked = (UnityEngine.CharacterJoint)translator.FastGetCSObj(L, 1); - UnityEngine.SoftJointLimitSpring gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.twistLimitSpring = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_swingLimitSpring(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CharacterJoint gen_to_be_invoked = (UnityEngine.CharacterJoint)translator.FastGetCSObj(L, 1); - UnityEngine.SoftJointLimitSpring gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.swingLimitSpring = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_lowTwistLimit(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CharacterJoint gen_to_be_invoked = (UnityEngine.CharacterJoint)translator.FastGetCSObj(L, 1); - UnityEngine.SoftJointLimit gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.lowTwistLimit = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_highTwistLimit(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CharacterJoint gen_to_be_invoked = (UnityEngine.CharacterJoint)translator.FastGetCSObj(L, 1); - UnityEngine.SoftJointLimit gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.highTwistLimit = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_swing1Limit(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CharacterJoint gen_to_be_invoked = (UnityEngine.CharacterJoint)translator.FastGetCSObj(L, 1); - UnityEngine.SoftJointLimit gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.swing1Limit = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_swing2Limit(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CharacterJoint gen_to_be_invoked = (UnityEngine.CharacterJoint)translator.FastGetCSObj(L, 1); - UnityEngine.SoftJointLimit gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.swing2Limit = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_enableProjection(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CharacterJoint gen_to_be_invoked = (UnityEngine.CharacterJoint)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.enableProjection = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_projectionDistance(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CharacterJoint gen_to_be_invoked = (UnityEngine.CharacterJoint)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.projectionDistance = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_projectionAngle(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CharacterJoint gen_to_be_invoked = (UnityEngine.CharacterJoint)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.projectionAngle = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_CircleCollider2DWrap.cs b/Assets/XLua/Gen/UnityEngine_CircleCollider2DWrap.cs deleted file mode 100644 index 4cfd2fc5d..000000000 --- a/Assets/XLua/Gen/UnityEngine_CircleCollider2DWrap.cs +++ /dev/null @@ -1,115 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineCircleCollider2DWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.CircleCollider2D); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 1, 1); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "radius", _g_get_radius); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "radius", _s_set_radius); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.CircleCollider2D(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.CircleCollider2D constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_radius(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CircleCollider2D gen_to_be_invoked = (UnityEngine.CircleCollider2D)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.radius); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_radius(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CircleCollider2D gen_to_be_invoked = (UnityEngine.CircleCollider2D)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.radius = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_ClothSkinningCoefficientWrap.cs b/Assets/XLua/Gen/UnityEngine_ClothSkinningCoefficientWrap.cs deleted file mode 100644 index 2621cd2c6..000000000 --- a/Assets/XLua/Gen/UnityEngine_ClothSkinningCoefficientWrap.cs +++ /dev/null @@ -1,148 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineClothSkinningCoefficientWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.ClothSkinningCoefficient); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 2, 2); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "maxDistance", _g_get_maxDistance); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "collisionSphereDistance", _g_get_collisionSphereDistance); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "maxDistance", _s_set_maxDistance); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "collisionSphereDistance", _s_set_collisionSphereDistance); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(UnityEngine.ClothSkinningCoefficient)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.ClothSkinningCoefficient constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_maxDistance(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ClothSkinningCoefficient gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.maxDistance); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_collisionSphereDistance(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ClothSkinningCoefficient gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.collisionSphereDistance); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_maxDistance(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ClothSkinningCoefficient gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.maxDistance = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_collisionSphereDistance(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ClothSkinningCoefficient gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.collisionSphereDistance = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_ClothSphereColliderPairWrap.cs b/Assets/XLua/Gen/UnityEngine_ClothSphereColliderPairWrap.cs deleted file mode 100644 index 3bd1f9b2c..000000000 --- a/Assets/XLua/Gen/UnityEngine_ClothSphereColliderPairWrap.cs +++ /dev/null @@ -1,167 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineClothSphereColliderPairWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.ClothSphereColliderPair); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 2, 2); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "first", _g_get_first); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "second", _g_get_second); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "first", _s_set_first); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "second", _s_set_second); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 2 && translator.Assignable(L, 2)) - { - UnityEngine.SphereCollider _a = (UnityEngine.SphereCollider)translator.GetObject(L, 2, typeof(UnityEngine.SphereCollider)); - - var gen_ret = new UnityEngine.ClothSphereColliderPair(_a); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 3 && translator.Assignable(L, 2) && translator.Assignable(L, 3)) - { - UnityEngine.SphereCollider _a = (UnityEngine.SphereCollider)translator.GetObject(L, 2, typeof(UnityEngine.SphereCollider)); - UnityEngine.SphereCollider _b = (UnityEngine.SphereCollider)translator.GetObject(L, 3, typeof(UnityEngine.SphereCollider)); - - var gen_ret = new UnityEngine.ClothSphereColliderPair(_a, _b); - translator.Push(L, gen_ret); - - return 1; - } - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(UnityEngine.ClothSphereColliderPair)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.ClothSphereColliderPair constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_first(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ClothSphereColliderPair gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.first); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_second(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ClothSphereColliderPair gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.second); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_first(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ClothSphereColliderPair gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.first = (UnityEngine.SphereCollider)translator.GetObject(L, 2, typeof(UnityEngine.SphereCollider)); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_second(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ClothSphereColliderPair gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.second = (UnityEngine.SphereCollider)translator.GetObject(L, 2, typeof(UnityEngine.SphereCollider)); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_ClothWrap.cs b/Assets/XLua/Gen/UnityEngine_ClothWrap.cs deleted file mode 100644 index 8cf1710b4..000000000 --- a/Assets/XLua/Gen/UnityEngine_ClothWrap.cs +++ /dev/null @@ -1,1044 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineClothWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.Cloth); - Utils.BeginObjectRegister(type, L, translator, 0, 8, 24, 22); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ClearTransformMotion", _m_ClearTransformMotion); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetSelfAndInterCollisionIndices", _m_GetSelfAndInterCollisionIndices); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetSelfAndInterCollisionIndices", _m_SetSelfAndInterCollisionIndices); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetVirtualParticleIndices", _m_GetVirtualParticleIndices); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetVirtualParticleIndices", _m_SetVirtualParticleIndices); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetVirtualParticleWeights", _m_GetVirtualParticleWeights); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetVirtualParticleWeights", _m_SetVirtualParticleWeights); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetEnabledFading", _m_SetEnabledFading); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "vertices", _g_get_vertices); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "normals", _g_get_normals); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "coefficients", _g_get_coefficients); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "capsuleColliders", _g_get_capsuleColliders); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "sphereColliders", _g_get_sphereColliders); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "sleepThreshold", _g_get_sleepThreshold); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "bendingStiffness", _g_get_bendingStiffness); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "stretchingStiffness", _g_get_stretchingStiffness); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "damping", _g_get_damping); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "externalAcceleration", _g_get_externalAcceleration); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "randomAcceleration", _g_get_randomAcceleration); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "useGravity", _g_get_useGravity); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "enabled", _g_get_enabled); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "friction", _g_get_friction); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "collisionMassScale", _g_get_collisionMassScale); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "enableContinuousCollision", _g_get_enableContinuousCollision); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "useVirtualParticles", _g_get_useVirtualParticles); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "worldVelocityScale", _g_get_worldVelocityScale); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "worldAccelerationScale", _g_get_worldAccelerationScale); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "clothSolverFrequency", _g_get_clothSolverFrequency); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "useTethers", _g_get_useTethers); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "stiffnessFrequency", _g_get_stiffnessFrequency); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "selfCollisionDistance", _g_get_selfCollisionDistance); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "selfCollisionStiffness", _g_get_selfCollisionStiffness); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "coefficients", _s_set_coefficients); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "capsuleColliders", _s_set_capsuleColliders); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "sphereColliders", _s_set_sphereColliders); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "sleepThreshold", _s_set_sleepThreshold); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "bendingStiffness", _s_set_bendingStiffness); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "stretchingStiffness", _s_set_stretchingStiffness); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "damping", _s_set_damping); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "externalAcceleration", _s_set_externalAcceleration); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "randomAcceleration", _s_set_randomAcceleration); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "useGravity", _s_set_useGravity); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "enabled", _s_set_enabled); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "friction", _s_set_friction); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "collisionMassScale", _s_set_collisionMassScale); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "enableContinuousCollision", _s_set_enableContinuousCollision); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "useVirtualParticles", _s_set_useVirtualParticles); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "worldVelocityScale", _s_set_worldVelocityScale); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "worldAccelerationScale", _s_set_worldAccelerationScale); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "clothSolverFrequency", _s_set_clothSolverFrequency); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "useTethers", _s_set_useTethers); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "stiffnessFrequency", _s_set_stiffnessFrequency); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "selfCollisionDistance", _s_set_selfCollisionDistance); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "selfCollisionStiffness", _s_set_selfCollisionStiffness); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.Cloth(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Cloth constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ClearTransformMotion(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Cloth gen_to_be_invoked = (UnityEngine.Cloth)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.ClearTransformMotion( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetSelfAndInterCollisionIndices(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Cloth gen_to_be_invoked = (UnityEngine.Cloth)translator.FastGetCSObj(L, 1); - - - - { - System.Collections.Generic.List _indices = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - - gen_to_be_invoked.GetSelfAndInterCollisionIndices( _indices ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetSelfAndInterCollisionIndices(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Cloth gen_to_be_invoked = (UnityEngine.Cloth)translator.FastGetCSObj(L, 1); - - - - { - System.Collections.Generic.List _indices = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - - gen_to_be_invoked.SetSelfAndInterCollisionIndices( _indices ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetVirtualParticleIndices(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Cloth gen_to_be_invoked = (UnityEngine.Cloth)translator.FastGetCSObj(L, 1); - - - - { - System.Collections.Generic.List _indicesOutList = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - - gen_to_be_invoked.GetVirtualParticleIndices( _indicesOutList ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetVirtualParticleIndices(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Cloth gen_to_be_invoked = (UnityEngine.Cloth)translator.FastGetCSObj(L, 1); - - - - { - System.Collections.Generic.List _indicesIn = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - - gen_to_be_invoked.SetVirtualParticleIndices( _indicesIn ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetVirtualParticleWeights(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Cloth gen_to_be_invoked = (UnityEngine.Cloth)translator.FastGetCSObj(L, 1); - - - - { - System.Collections.Generic.List _weightsOutList = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - - gen_to_be_invoked.GetVirtualParticleWeights( _weightsOutList ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetVirtualParticleWeights(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Cloth gen_to_be_invoked = (UnityEngine.Cloth)translator.FastGetCSObj(L, 1); - - - - { - System.Collections.Generic.List _weights = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - - gen_to_be_invoked.SetVirtualParticleWeights( _weights ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetEnabledFading(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Cloth gen_to_be_invoked = (UnityEngine.Cloth)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)) - { - bool _enabled = LuaAPI.lua_toboolean(L, 2); - - gen_to_be_invoked.SetEnabledFading( _enabled ); - - - - return 0; - } - if(gen_param_count == 3&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - bool _enabled = LuaAPI.lua_toboolean(L, 2); - float _interpolationTime = (float)LuaAPI.lua_tonumber(L, 3); - - gen_to_be_invoked.SetEnabledFading( _enabled, _interpolationTime ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Cloth.SetEnabledFading!"); - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_vertices(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Cloth gen_to_be_invoked = (UnityEngine.Cloth)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.vertices); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_normals(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Cloth gen_to_be_invoked = (UnityEngine.Cloth)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.normals); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_coefficients(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Cloth gen_to_be_invoked = (UnityEngine.Cloth)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.coefficients); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_capsuleColliders(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Cloth gen_to_be_invoked = (UnityEngine.Cloth)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.capsuleColliders); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_sphereColliders(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Cloth gen_to_be_invoked = (UnityEngine.Cloth)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.sphereColliders); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_sleepThreshold(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Cloth gen_to_be_invoked = (UnityEngine.Cloth)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.sleepThreshold); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_bendingStiffness(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Cloth gen_to_be_invoked = (UnityEngine.Cloth)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.bendingStiffness); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_stretchingStiffness(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Cloth gen_to_be_invoked = (UnityEngine.Cloth)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.stretchingStiffness); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_damping(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Cloth gen_to_be_invoked = (UnityEngine.Cloth)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.damping); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_externalAcceleration(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Cloth gen_to_be_invoked = (UnityEngine.Cloth)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.externalAcceleration); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_randomAcceleration(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Cloth gen_to_be_invoked = (UnityEngine.Cloth)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.randomAcceleration); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_useGravity(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Cloth gen_to_be_invoked = (UnityEngine.Cloth)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.useGravity); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_enabled(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Cloth gen_to_be_invoked = (UnityEngine.Cloth)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.enabled); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_friction(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Cloth gen_to_be_invoked = (UnityEngine.Cloth)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.friction); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_collisionMassScale(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Cloth gen_to_be_invoked = (UnityEngine.Cloth)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.collisionMassScale); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_enableContinuousCollision(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Cloth gen_to_be_invoked = (UnityEngine.Cloth)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.enableContinuousCollision); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_useVirtualParticles(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Cloth gen_to_be_invoked = (UnityEngine.Cloth)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.useVirtualParticles); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_worldVelocityScale(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Cloth gen_to_be_invoked = (UnityEngine.Cloth)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.worldVelocityScale); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_worldAccelerationScale(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Cloth gen_to_be_invoked = (UnityEngine.Cloth)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.worldAccelerationScale); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_clothSolverFrequency(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Cloth gen_to_be_invoked = (UnityEngine.Cloth)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.clothSolverFrequency); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_useTethers(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Cloth gen_to_be_invoked = (UnityEngine.Cloth)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.useTethers); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_stiffnessFrequency(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Cloth gen_to_be_invoked = (UnityEngine.Cloth)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.stiffnessFrequency); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_selfCollisionDistance(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Cloth gen_to_be_invoked = (UnityEngine.Cloth)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.selfCollisionDistance); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_selfCollisionStiffness(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Cloth gen_to_be_invoked = (UnityEngine.Cloth)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.selfCollisionStiffness); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_coefficients(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Cloth gen_to_be_invoked = (UnityEngine.Cloth)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.coefficients = (UnityEngine.ClothSkinningCoefficient[])translator.GetObject(L, 2, typeof(UnityEngine.ClothSkinningCoefficient[])); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_capsuleColliders(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Cloth gen_to_be_invoked = (UnityEngine.Cloth)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.capsuleColliders = (UnityEngine.CapsuleCollider[])translator.GetObject(L, 2, typeof(UnityEngine.CapsuleCollider[])); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_sphereColliders(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Cloth gen_to_be_invoked = (UnityEngine.Cloth)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.sphereColliders = (UnityEngine.ClothSphereColliderPair[])translator.GetObject(L, 2, typeof(UnityEngine.ClothSphereColliderPair[])); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_sleepThreshold(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Cloth gen_to_be_invoked = (UnityEngine.Cloth)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.sleepThreshold = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_bendingStiffness(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Cloth gen_to_be_invoked = (UnityEngine.Cloth)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.bendingStiffness = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_stretchingStiffness(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Cloth gen_to_be_invoked = (UnityEngine.Cloth)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.stretchingStiffness = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_damping(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Cloth gen_to_be_invoked = (UnityEngine.Cloth)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.damping = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_externalAcceleration(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Cloth gen_to_be_invoked = (UnityEngine.Cloth)translator.FastGetCSObj(L, 1); - UnityEngine.Vector3 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.externalAcceleration = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_randomAcceleration(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Cloth gen_to_be_invoked = (UnityEngine.Cloth)translator.FastGetCSObj(L, 1); - UnityEngine.Vector3 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.randomAcceleration = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_useGravity(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Cloth gen_to_be_invoked = (UnityEngine.Cloth)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.useGravity = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_enabled(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Cloth gen_to_be_invoked = (UnityEngine.Cloth)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.enabled = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_friction(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Cloth gen_to_be_invoked = (UnityEngine.Cloth)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.friction = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_collisionMassScale(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Cloth gen_to_be_invoked = (UnityEngine.Cloth)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.collisionMassScale = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_enableContinuousCollision(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Cloth gen_to_be_invoked = (UnityEngine.Cloth)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.enableContinuousCollision = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_useVirtualParticles(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Cloth gen_to_be_invoked = (UnityEngine.Cloth)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.useVirtualParticles = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_worldVelocityScale(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Cloth gen_to_be_invoked = (UnityEngine.Cloth)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.worldVelocityScale = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_worldAccelerationScale(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Cloth gen_to_be_invoked = (UnityEngine.Cloth)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.worldAccelerationScale = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_clothSolverFrequency(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Cloth gen_to_be_invoked = (UnityEngine.Cloth)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.clothSolverFrequency = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_useTethers(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Cloth gen_to_be_invoked = (UnityEngine.Cloth)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.useTethers = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_stiffnessFrequency(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Cloth gen_to_be_invoked = (UnityEngine.Cloth)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.stiffnessFrequency = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_selfCollisionDistance(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Cloth gen_to_be_invoked = (UnityEngine.Cloth)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.selfCollisionDistance = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_selfCollisionStiffness(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Cloth gen_to_be_invoked = (UnityEngine.Cloth)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.selfCollisionStiffness = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_Collider2DWrap.cs b/Assets/XLua/Gen/UnityEngine_Collider2DWrap.cs deleted file mode 100644 index ab5a8867b..000000000 --- a/Assets/XLua/Gen/UnityEngine_Collider2DWrap.cs +++ /dev/null @@ -1,1067 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineCollider2DWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.Collider2D); - Utils.BeginObjectRegister(type, L, translator, 0, 11, 12, 6); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "CreateMesh", _m_CreateMesh); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetShapeHash", _m_GetShapeHash); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsTouching", _m_IsTouching); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsTouchingLayers", _m_IsTouchingLayers); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OverlapPoint", _m_OverlapPoint); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Distance", _m_Distance); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OverlapCollider", _m_OverlapCollider); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetContacts", _m_GetContacts); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Cast", _m_Cast); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Raycast", _m_Raycast); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ClosestPoint", _m_ClosestPoint); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "density", _g_get_density); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "isTrigger", _g_get_isTrigger); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "usedByEffector", _g_get_usedByEffector); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "usedByComposite", _g_get_usedByComposite); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "composite", _g_get_composite); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "offset", _g_get_offset); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "attachedRigidbody", _g_get_attachedRigidbody); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "shapeCount", _g_get_shapeCount); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "bounds", _g_get_bounds); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "sharedMaterial", _g_get_sharedMaterial); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "friction", _g_get_friction); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "bounciness", _g_get_bounciness); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "density", _s_set_density); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "isTrigger", _s_set_isTrigger); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "usedByEffector", _s_set_usedByEffector); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "usedByComposite", _s_set_usedByComposite); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "offset", _s_set_offset); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "sharedMaterial", _s_set_sharedMaterial); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.Collider2D(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Collider2D constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CreateMesh(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Collider2D gen_to_be_invoked = (UnityEngine.Collider2D)translator.FastGetCSObj(L, 1); - - - - { - bool _useBodyPosition = LuaAPI.lua_toboolean(L, 2); - bool _useBodyRotation = LuaAPI.lua_toboolean(L, 3); - - var gen_ret = gen_to_be_invoked.CreateMesh( _useBodyPosition, _useBodyRotation ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetShapeHash(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Collider2D gen_to_be_invoked = (UnityEngine.Collider2D)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.GetShapeHash( ); - LuaAPI.xlua_pushuint(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_IsTouching(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Collider2D gen_to_be_invoked = (UnityEngine.Collider2D)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.Collider2D _collider = (UnityEngine.Collider2D)translator.GetObject(L, 2, typeof(UnityEngine.Collider2D)); - - var gen_ret = gen_to_be_invoked.IsTouching( _collider ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.ContactFilter2D _contactFilter;translator.Get(L, 2, out _contactFilter); - - var gen_ret = gen_to_be_invoked.IsTouching( _contactFilter ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)) - { - UnityEngine.Collider2D _collider = (UnityEngine.Collider2D)translator.GetObject(L, 2, typeof(UnityEngine.Collider2D)); - UnityEngine.ContactFilter2D _contactFilter;translator.Get(L, 3, out _contactFilter); - - var gen_ret = gen_to_be_invoked.IsTouching( _collider, _contactFilter ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Collider2D.IsTouching!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_IsTouchingLayers(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Collider2D gen_to_be_invoked = (UnityEngine.Collider2D)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - var gen_ret = gen_to_be_invoked.IsTouchingLayers( ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - int _layerMask = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.IsTouchingLayers( _layerMask ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Collider2D.IsTouchingLayers!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OverlapPoint(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Collider2D gen_to_be_invoked = (UnityEngine.Collider2D)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Vector2 _point;translator.Get(L, 2, out _point); - - var gen_ret = gen_to_be_invoked.OverlapPoint( _point ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Distance(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Collider2D gen_to_be_invoked = (UnityEngine.Collider2D)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Collider2D _collider = (UnityEngine.Collider2D)translator.GetObject(L, 2, typeof(UnityEngine.Collider2D)); - - var gen_ret = gen_to_be_invoked.Distance( _collider ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OverlapCollider(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Collider2D gen_to_be_invoked = (UnityEngine.Collider2D)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)) - { - UnityEngine.ContactFilter2D _contactFilter;translator.Get(L, 2, out _contactFilter); - UnityEngine.Collider2D[] _results = (UnityEngine.Collider2D[])translator.GetObject(L, 3, typeof(UnityEngine.Collider2D[])); - - var gen_ret = gen_to_be_invoked.OverlapCollider( _contactFilter, _results ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& translator.Assignable>(L, 3)) - { - UnityEngine.ContactFilter2D _contactFilter;translator.Get(L, 2, out _contactFilter); - System.Collections.Generic.List _results = (System.Collections.Generic.List)translator.GetObject(L, 3, typeof(System.Collections.Generic.List)); - - var gen_ret = gen_to_be_invoked.OverlapCollider( _contactFilter, _results ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Collider2D.OverlapCollider!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetContacts(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Collider2D gen_to_be_invoked = (UnityEngine.Collider2D)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.ContactPoint2D[] _contacts = (UnityEngine.ContactPoint2D[])translator.GetObject(L, 2, typeof(UnityEngine.ContactPoint2D[])); - - var gen_ret = gen_to_be_invoked.GetContacts( _contacts ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable>(L, 2)) - { - System.Collections.Generic.List _contacts = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - - var gen_ret = gen_to_be_invoked.GetContacts( _contacts ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.Collider2D[] _colliders = (UnityEngine.Collider2D[])translator.GetObject(L, 2, typeof(UnityEngine.Collider2D[])); - - var gen_ret = gen_to_be_invoked.GetContacts( _colliders ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable>(L, 2)) - { - System.Collections.Generic.List _colliders = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - - var gen_ret = gen_to_be_invoked.GetContacts( _colliders ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)) - { - UnityEngine.ContactFilter2D _contactFilter;translator.Get(L, 2, out _contactFilter); - UnityEngine.ContactPoint2D[] _contacts = (UnityEngine.ContactPoint2D[])translator.GetObject(L, 3, typeof(UnityEngine.ContactPoint2D[])); - - var gen_ret = gen_to_be_invoked.GetContacts( _contactFilter, _contacts ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& translator.Assignable>(L, 3)) - { - UnityEngine.ContactFilter2D _contactFilter;translator.Get(L, 2, out _contactFilter); - System.Collections.Generic.List _contacts = (System.Collections.Generic.List)translator.GetObject(L, 3, typeof(System.Collections.Generic.List)); - - var gen_ret = gen_to_be_invoked.GetContacts( _contactFilter, _contacts ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)) - { - UnityEngine.ContactFilter2D _contactFilter;translator.Get(L, 2, out _contactFilter); - UnityEngine.Collider2D[] _colliders = (UnityEngine.Collider2D[])translator.GetObject(L, 3, typeof(UnityEngine.Collider2D[])); - - var gen_ret = gen_to_be_invoked.GetContacts( _contactFilter, _colliders ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& translator.Assignable>(L, 3)) - { - UnityEngine.ContactFilter2D _contactFilter;translator.Get(L, 2, out _contactFilter); - System.Collections.Generic.List _colliders = (System.Collections.Generic.List)translator.GetObject(L, 3, typeof(System.Collections.Generic.List)); - - var gen_ret = gen_to_be_invoked.GetContacts( _contactFilter, _colliders ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Collider2D.GetContacts!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Cast(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Collider2D gen_to_be_invoked = (UnityEngine.Collider2D)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)) - { - UnityEngine.Vector2 _direction;translator.Get(L, 2, out _direction); - UnityEngine.RaycastHit2D[] _results = (UnityEngine.RaycastHit2D[])translator.GetObject(L, 3, typeof(UnityEngine.RaycastHit2D[])); - - var gen_ret = gen_to_be_invoked.Cast( _direction, _results ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - UnityEngine.Vector2 _direction;translator.Get(L, 2, out _direction); - UnityEngine.RaycastHit2D[] _results = (UnityEngine.RaycastHit2D[])translator.GetObject(L, 3, typeof(UnityEngine.RaycastHit2D[])); - float _distance = (float)LuaAPI.lua_tonumber(L, 4); - - var gen_ret = gen_to_be_invoked.Cast( _direction, _results, _distance ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 5&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 5)) - { - UnityEngine.Vector2 _direction;translator.Get(L, 2, out _direction); - UnityEngine.RaycastHit2D[] _results = (UnityEngine.RaycastHit2D[])translator.GetObject(L, 3, typeof(UnityEngine.RaycastHit2D[])); - float _distance = (float)LuaAPI.lua_tonumber(L, 4); - bool _ignoreSiblingColliders = LuaAPI.lua_toboolean(L, 5); - - var gen_ret = gen_to_be_invoked.Cast( _direction, _results, _distance, _ignoreSiblingColliders ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)) - { - UnityEngine.Vector2 _direction;translator.Get(L, 2, out _direction); - UnityEngine.ContactFilter2D _contactFilter;translator.Get(L, 3, out _contactFilter); - UnityEngine.RaycastHit2D[] _results = (UnityEngine.RaycastHit2D[])translator.GetObject(L, 4, typeof(UnityEngine.RaycastHit2D[])); - - var gen_ret = gen_to_be_invoked.Cast( _direction, _contactFilter, _results ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 5&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - UnityEngine.Vector2 _direction;translator.Get(L, 2, out _direction); - UnityEngine.ContactFilter2D _contactFilter;translator.Get(L, 3, out _contactFilter); - UnityEngine.RaycastHit2D[] _results = (UnityEngine.RaycastHit2D[])translator.GetObject(L, 4, typeof(UnityEngine.RaycastHit2D[])); - float _distance = (float)LuaAPI.lua_tonumber(L, 5); - - var gen_ret = gen_to_be_invoked.Cast( _direction, _contactFilter, _results, _distance ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 6&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 6)) - { - UnityEngine.Vector2 _direction;translator.Get(L, 2, out _direction); - UnityEngine.ContactFilter2D _contactFilter;translator.Get(L, 3, out _contactFilter); - UnityEngine.RaycastHit2D[] _results = (UnityEngine.RaycastHit2D[])translator.GetObject(L, 4, typeof(UnityEngine.RaycastHit2D[])); - float _distance = (float)LuaAPI.lua_tonumber(L, 5); - bool _ignoreSiblingColliders = LuaAPI.lua_toboolean(L, 6); - - var gen_ret = gen_to_be_invoked.Cast( _direction, _contactFilter, _results, _distance, _ignoreSiblingColliders ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 6&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable>(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 6)) - { - UnityEngine.Vector2 _direction;translator.Get(L, 2, out _direction); - UnityEngine.ContactFilter2D _contactFilter;translator.Get(L, 3, out _contactFilter); - System.Collections.Generic.List _results = (System.Collections.Generic.List)translator.GetObject(L, 4, typeof(System.Collections.Generic.List)); - float _distance = (float)LuaAPI.lua_tonumber(L, 5); - bool _ignoreSiblingColliders = LuaAPI.lua_toboolean(L, 6); - - var gen_ret = gen_to_be_invoked.Cast( _direction, _contactFilter, _results, _distance, _ignoreSiblingColliders ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 5&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable>(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - UnityEngine.Vector2 _direction;translator.Get(L, 2, out _direction); - UnityEngine.ContactFilter2D _contactFilter;translator.Get(L, 3, out _contactFilter); - System.Collections.Generic.List _results = (System.Collections.Generic.List)translator.GetObject(L, 4, typeof(System.Collections.Generic.List)); - float _distance = (float)LuaAPI.lua_tonumber(L, 5); - - var gen_ret = gen_to_be_invoked.Cast( _direction, _contactFilter, _results, _distance ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable>(L, 4)) - { - UnityEngine.Vector2 _direction;translator.Get(L, 2, out _direction); - UnityEngine.ContactFilter2D _contactFilter;translator.Get(L, 3, out _contactFilter); - System.Collections.Generic.List _results = (System.Collections.Generic.List)translator.GetObject(L, 4, typeof(System.Collections.Generic.List)); - - var gen_ret = gen_to_be_invoked.Cast( _direction, _contactFilter, _results ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Collider2D.Cast!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Raycast(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Collider2D gen_to_be_invoked = (UnityEngine.Collider2D)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)) - { - UnityEngine.Vector2 _direction;translator.Get(L, 2, out _direction); - UnityEngine.RaycastHit2D[] _results = (UnityEngine.RaycastHit2D[])translator.GetObject(L, 3, typeof(UnityEngine.RaycastHit2D[])); - - var gen_ret = gen_to_be_invoked.Raycast( _direction, _results ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - UnityEngine.Vector2 _direction;translator.Get(L, 2, out _direction); - UnityEngine.RaycastHit2D[] _results = (UnityEngine.RaycastHit2D[])translator.GetObject(L, 3, typeof(UnityEngine.RaycastHit2D[])); - float _distance = (float)LuaAPI.lua_tonumber(L, 4); - - var gen_ret = gen_to_be_invoked.Raycast( _direction, _results, _distance ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 5&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - UnityEngine.Vector2 _direction;translator.Get(L, 2, out _direction); - UnityEngine.RaycastHit2D[] _results = (UnityEngine.RaycastHit2D[])translator.GetObject(L, 3, typeof(UnityEngine.RaycastHit2D[])); - float _distance = (float)LuaAPI.lua_tonumber(L, 4); - int _layerMask = LuaAPI.xlua_tointeger(L, 5); - - var gen_ret = gen_to_be_invoked.Raycast( _direction, _results, _distance, _layerMask ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 6&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)) - { - UnityEngine.Vector2 _direction;translator.Get(L, 2, out _direction); - UnityEngine.RaycastHit2D[] _results = (UnityEngine.RaycastHit2D[])translator.GetObject(L, 3, typeof(UnityEngine.RaycastHit2D[])); - float _distance = (float)LuaAPI.lua_tonumber(L, 4); - int _layerMask = LuaAPI.xlua_tointeger(L, 5); - float _minDepth = (float)LuaAPI.lua_tonumber(L, 6); - - var gen_ret = gen_to_be_invoked.Raycast( _direction, _results, _distance, _layerMask, _minDepth ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 7&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 7)) - { - UnityEngine.Vector2 _direction;translator.Get(L, 2, out _direction); - UnityEngine.RaycastHit2D[] _results = (UnityEngine.RaycastHit2D[])translator.GetObject(L, 3, typeof(UnityEngine.RaycastHit2D[])); - float _distance = (float)LuaAPI.lua_tonumber(L, 4); - int _layerMask = LuaAPI.xlua_tointeger(L, 5); - float _minDepth = (float)LuaAPI.lua_tonumber(L, 6); - float _maxDepth = (float)LuaAPI.lua_tonumber(L, 7); - - var gen_ret = gen_to_be_invoked.Raycast( _direction, _results, _distance, _layerMask, _minDepth, _maxDepth ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)) - { - UnityEngine.Vector2 _direction;translator.Get(L, 2, out _direction); - UnityEngine.ContactFilter2D _contactFilter;translator.Get(L, 3, out _contactFilter); - UnityEngine.RaycastHit2D[] _results = (UnityEngine.RaycastHit2D[])translator.GetObject(L, 4, typeof(UnityEngine.RaycastHit2D[])); - - var gen_ret = gen_to_be_invoked.Raycast( _direction, _contactFilter, _results ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 5&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - UnityEngine.Vector2 _direction;translator.Get(L, 2, out _direction); - UnityEngine.ContactFilter2D _contactFilter;translator.Get(L, 3, out _contactFilter); - UnityEngine.RaycastHit2D[] _results = (UnityEngine.RaycastHit2D[])translator.GetObject(L, 4, typeof(UnityEngine.RaycastHit2D[])); - float _distance = (float)LuaAPI.lua_tonumber(L, 5); - - var gen_ret = gen_to_be_invoked.Raycast( _direction, _contactFilter, _results, _distance ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 5&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable>(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - UnityEngine.Vector2 _direction;translator.Get(L, 2, out _direction); - UnityEngine.ContactFilter2D _contactFilter;translator.Get(L, 3, out _contactFilter); - System.Collections.Generic.List _results = (System.Collections.Generic.List)translator.GetObject(L, 4, typeof(System.Collections.Generic.List)); - float _distance = (float)LuaAPI.lua_tonumber(L, 5); - - var gen_ret = gen_to_be_invoked.Raycast( _direction, _contactFilter, _results, _distance ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable>(L, 4)) - { - UnityEngine.Vector2 _direction;translator.Get(L, 2, out _direction); - UnityEngine.ContactFilter2D _contactFilter;translator.Get(L, 3, out _contactFilter); - System.Collections.Generic.List _results = (System.Collections.Generic.List)translator.GetObject(L, 4, typeof(System.Collections.Generic.List)); - - var gen_ret = gen_to_be_invoked.Raycast( _direction, _contactFilter, _results ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Collider2D.Raycast!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ClosestPoint(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Collider2D gen_to_be_invoked = (UnityEngine.Collider2D)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Vector2 _position;translator.Get(L, 2, out _position); - - var gen_ret = gen_to_be_invoked.ClosestPoint( _position ); - translator.PushUnityEngineVector2(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_density(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Collider2D gen_to_be_invoked = (UnityEngine.Collider2D)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.density); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_isTrigger(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Collider2D gen_to_be_invoked = (UnityEngine.Collider2D)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.isTrigger); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_usedByEffector(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Collider2D gen_to_be_invoked = (UnityEngine.Collider2D)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.usedByEffector); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_usedByComposite(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Collider2D gen_to_be_invoked = (UnityEngine.Collider2D)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.usedByComposite); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_composite(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Collider2D gen_to_be_invoked = (UnityEngine.Collider2D)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.composite); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_offset(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Collider2D gen_to_be_invoked = (UnityEngine.Collider2D)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector2(L, gen_to_be_invoked.offset); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_attachedRigidbody(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Collider2D gen_to_be_invoked = (UnityEngine.Collider2D)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.attachedRigidbody); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_shapeCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Collider2D gen_to_be_invoked = (UnityEngine.Collider2D)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.shapeCount); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_bounds(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Collider2D gen_to_be_invoked = (UnityEngine.Collider2D)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineBounds(L, gen_to_be_invoked.bounds); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_sharedMaterial(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Collider2D gen_to_be_invoked = (UnityEngine.Collider2D)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.sharedMaterial); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_friction(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Collider2D gen_to_be_invoked = (UnityEngine.Collider2D)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.friction); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_bounciness(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Collider2D gen_to_be_invoked = (UnityEngine.Collider2D)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.bounciness); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_density(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Collider2D gen_to_be_invoked = (UnityEngine.Collider2D)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.density = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_isTrigger(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Collider2D gen_to_be_invoked = (UnityEngine.Collider2D)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.isTrigger = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_usedByEffector(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Collider2D gen_to_be_invoked = (UnityEngine.Collider2D)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.usedByEffector = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_usedByComposite(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Collider2D gen_to_be_invoked = (UnityEngine.Collider2D)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.usedByComposite = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_offset(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Collider2D gen_to_be_invoked = (UnityEngine.Collider2D)translator.FastGetCSObj(L, 1); - UnityEngine.Vector2 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.offset = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_sharedMaterial(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Collider2D gen_to_be_invoked = (UnityEngine.Collider2D)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.sharedMaterial = (UnityEngine.PhysicsMaterial2D)translator.GetObject(L, 2, typeof(UnityEngine.PhysicsMaterial2D)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_ColliderDistance2DWrap.cs b/Assets/XLua/Gen/UnityEngine_ColliderDistance2DWrap.cs deleted file mode 100644 index 554b642b1..000000000 --- a/Assets/XLua/Gen/UnityEngine_ColliderDistance2DWrap.cs +++ /dev/null @@ -1,246 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineColliderDistance2DWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.ColliderDistance2D); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 6, 4); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "pointA", _g_get_pointA); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "pointB", _g_get_pointB); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "normal", _g_get_normal); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "distance", _g_get_distance); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "isOverlapped", _g_get_isOverlapped); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "isValid", _g_get_isValid); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "pointA", _s_set_pointA); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "pointB", _s_set_pointB); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "distance", _s_set_distance); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "isValid", _s_set_isValid); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(UnityEngine.ColliderDistance2D)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.ColliderDistance2D constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_pointA(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ColliderDistance2D gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineVector2(L, gen_to_be_invoked.pointA); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_pointB(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ColliderDistance2D gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineVector2(L, gen_to_be_invoked.pointB); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_normal(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ColliderDistance2D gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineVector2(L, gen_to_be_invoked.normal); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_distance(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ColliderDistance2D gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.distance); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_isOverlapped(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ColliderDistance2D gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.isOverlapped); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_isValid(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ColliderDistance2D gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.isValid); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_pointA(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ColliderDistance2D gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Vector2 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.pointA = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_pointB(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ColliderDistance2D gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Vector2 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.pointB = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_distance(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ColliderDistance2D gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.distance = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_isValid(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ColliderDistance2D gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.isValid = LuaAPI.lua_toboolean(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_ColliderWrap.cs b/Assets/XLua/Gen/UnityEngine_ColliderWrap.cs deleted file mode 100644 index b574ac695..000000000 --- a/Assets/XLua/Gen/UnityEngine_ColliderWrap.cs +++ /dev/null @@ -1,378 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineColliderWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.Collider); - Utils.BeginObjectRegister(type, L, translator, 0, 3, 8, 5); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ClosestPoint", _m_ClosestPoint); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Raycast", _m_Raycast); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ClosestPointOnBounds", _m_ClosestPointOnBounds); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "enabled", _g_get_enabled); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "attachedRigidbody", _g_get_attachedRigidbody); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "attachedArticulationBody", _g_get_attachedArticulationBody); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "isTrigger", _g_get_isTrigger); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "contactOffset", _g_get_contactOffset); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "bounds", _g_get_bounds); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "sharedMaterial", _g_get_sharedMaterial); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "material", _g_get_material); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "enabled", _s_set_enabled); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "isTrigger", _s_set_isTrigger); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "contactOffset", _s_set_contactOffset); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "sharedMaterial", _s_set_sharedMaterial); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "material", _s_set_material); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.Collider(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Collider constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ClosestPoint(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Collider gen_to_be_invoked = (UnityEngine.Collider)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Vector3 _position;translator.Get(L, 2, out _position); - - var gen_ret = gen_to_be_invoked.ClosestPoint( _position ); - translator.PushUnityEngineVector3(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Raycast(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Collider gen_to_be_invoked = (UnityEngine.Collider)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Ray _ray;translator.Get(L, 2, out _ray); - UnityEngine.RaycastHit _hitInfo; - float _maxDistance = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = gen_to_be_invoked.Raycast( _ray, out _hitInfo, _maxDistance ); - LuaAPI.lua_pushboolean(L, gen_ret); - translator.Push(L, _hitInfo); - - - - - return 2; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ClosestPointOnBounds(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Collider gen_to_be_invoked = (UnityEngine.Collider)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Vector3 _position;translator.Get(L, 2, out _position); - - var gen_ret = gen_to_be_invoked.ClosestPointOnBounds( _position ); - translator.PushUnityEngineVector3(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_enabled(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Collider gen_to_be_invoked = (UnityEngine.Collider)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.enabled); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_attachedRigidbody(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Collider gen_to_be_invoked = (UnityEngine.Collider)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.attachedRigidbody); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_attachedArticulationBody(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Collider gen_to_be_invoked = (UnityEngine.Collider)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.attachedArticulationBody); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_isTrigger(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Collider gen_to_be_invoked = (UnityEngine.Collider)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.isTrigger); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_contactOffset(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Collider gen_to_be_invoked = (UnityEngine.Collider)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.contactOffset); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_bounds(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Collider gen_to_be_invoked = (UnityEngine.Collider)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineBounds(L, gen_to_be_invoked.bounds); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_sharedMaterial(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Collider gen_to_be_invoked = (UnityEngine.Collider)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.sharedMaterial); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_material(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Collider gen_to_be_invoked = (UnityEngine.Collider)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.material); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_enabled(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Collider gen_to_be_invoked = (UnityEngine.Collider)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.enabled = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_isTrigger(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Collider gen_to_be_invoked = (UnityEngine.Collider)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.isTrigger = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_contactOffset(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Collider gen_to_be_invoked = (UnityEngine.Collider)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.contactOffset = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_sharedMaterial(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Collider gen_to_be_invoked = (UnityEngine.Collider)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.sharedMaterial = (UnityEngine.PhysicMaterial)translator.GetObject(L, 2, typeof(UnityEngine.PhysicMaterial)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_material(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Collider gen_to_be_invoked = (UnityEngine.Collider)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.material = (UnityEngine.PhysicMaterial)translator.GetObject(L, 2, typeof(UnityEngine.PhysicMaterial)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_Collision2DWrap.cs b/Assets/XLua/Gen/UnityEngine_Collision2DWrap.cs deleted file mode 100644 index 82740ed84..000000000 --- a/Assets/XLua/Gen/UnityEngine_Collision2DWrap.cs +++ /dev/null @@ -1,309 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineCollision2DWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.Collision2D); - Utils.BeginObjectRegister(type, L, translator, 0, 2, 10, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetContact", _m_GetContact); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetContacts", _m_GetContacts); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "collider", _g_get_collider); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "otherCollider", _g_get_otherCollider); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "rigidbody", _g_get_rigidbody); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "otherRigidbody", _g_get_otherRigidbody); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "transform", _g_get_transform); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "gameObject", _g_get_gameObject); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "relativeVelocity", _g_get_relativeVelocity); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "enabled", _g_get_enabled); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "contacts", _g_get_contacts); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "contactCount", _g_get_contactCount); - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.Collision2D(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Collision2D constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetContact(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Collision2D gen_to_be_invoked = (UnityEngine.Collision2D)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.GetContact( _index ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetContacts(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Collision2D gen_to_be_invoked = (UnityEngine.Collision2D)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.ContactPoint2D[] _contacts = (UnityEngine.ContactPoint2D[])translator.GetObject(L, 2, typeof(UnityEngine.ContactPoint2D[])); - - var gen_ret = gen_to_be_invoked.GetContacts( _contacts ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable>(L, 2)) - { - System.Collections.Generic.List _contacts = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - - var gen_ret = gen_to_be_invoked.GetContacts( _contacts ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Collision2D.GetContacts!"); - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_collider(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Collision2D gen_to_be_invoked = (UnityEngine.Collision2D)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.collider); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_otherCollider(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Collision2D gen_to_be_invoked = (UnityEngine.Collision2D)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.otherCollider); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_rigidbody(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Collision2D gen_to_be_invoked = (UnityEngine.Collision2D)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.rigidbody); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_otherRigidbody(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Collision2D gen_to_be_invoked = (UnityEngine.Collision2D)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.otherRigidbody); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_transform(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Collision2D gen_to_be_invoked = (UnityEngine.Collision2D)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.transform); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_gameObject(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Collision2D gen_to_be_invoked = (UnityEngine.Collision2D)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.gameObject); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_relativeVelocity(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Collision2D gen_to_be_invoked = (UnityEngine.Collision2D)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector2(L, gen_to_be_invoked.relativeVelocity); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_enabled(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Collision2D gen_to_be_invoked = (UnityEngine.Collision2D)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.enabled); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_contacts(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Collision2D gen_to_be_invoked = (UnityEngine.Collision2D)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.contacts); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_contactCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Collision2D gen_to_be_invoked = (UnityEngine.Collision2D)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.contactCount); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_CollisionWrap.cs b/Assets/XLua/Gen/UnityEngine_CollisionWrap.cs deleted file mode 100644 index 6c32c7b9a..000000000 --- a/Assets/XLua/Gen/UnityEngine_CollisionWrap.cs +++ /dev/null @@ -1,309 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineCollisionWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.Collision); - Utils.BeginObjectRegister(type, L, translator, 0, 2, 10, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetContact", _m_GetContact); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetContacts", _m_GetContacts); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "relativeVelocity", _g_get_relativeVelocity); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "rigidbody", _g_get_rigidbody); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "articulationBody", _g_get_articulationBody); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "body", _g_get_body); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "collider", _g_get_collider); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "transform", _g_get_transform); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "gameObject", _g_get_gameObject); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "contactCount", _g_get_contactCount); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "contacts", _g_get_contacts); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "impulse", _g_get_impulse); - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.Collision(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Collision constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetContact(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Collision gen_to_be_invoked = (UnityEngine.Collision)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.GetContact( _index ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetContacts(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Collision gen_to_be_invoked = (UnityEngine.Collision)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.ContactPoint[] _contacts = (UnityEngine.ContactPoint[])translator.GetObject(L, 2, typeof(UnityEngine.ContactPoint[])); - - var gen_ret = gen_to_be_invoked.GetContacts( _contacts ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable>(L, 2)) - { - System.Collections.Generic.List _contacts = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - - var gen_ret = gen_to_be_invoked.GetContacts( _contacts ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Collision.GetContacts!"); - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_relativeVelocity(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Collision gen_to_be_invoked = (UnityEngine.Collision)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.relativeVelocity); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_rigidbody(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Collision gen_to_be_invoked = (UnityEngine.Collision)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.rigidbody); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_articulationBody(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Collision gen_to_be_invoked = (UnityEngine.Collision)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.articulationBody); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_body(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Collision gen_to_be_invoked = (UnityEngine.Collision)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.body); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_collider(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Collision gen_to_be_invoked = (UnityEngine.Collision)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.collider); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_transform(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Collision gen_to_be_invoked = (UnityEngine.Collision)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.transform); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_gameObject(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Collision gen_to_be_invoked = (UnityEngine.Collision)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.gameObject); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_contactCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Collision gen_to_be_invoked = (UnityEngine.Collision)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.contactCount); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_contacts(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Collision gen_to_be_invoked = (UnityEngine.Collision)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.contacts); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_impulse(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Collision gen_to_be_invoked = (UnityEngine.Collision)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.impulse); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_Color32Wrap.cs b/Assets/XLua/Gen/UnityEngine_Color32Wrap.cs deleted file mode 100644 index e9e41ebb0..000000000 --- a/Assets/XLua/Gen/UnityEngine_Color32Wrap.cs +++ /dev/null @@ -1,544 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; -using TMPro; - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineColor32Wrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.Color32); - Utils.BeginObjectRegister(type, L, translator, 0, 5, 4, 4); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ToString", _m_ToString); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Compare", _m_Compare); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "CompareRGB", _m_CompareRGB); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Multiply", _m_Multiply); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Tint", _m_Tint); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "r", _g_get_r); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "g", _g_get_g); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "b", _g_get_b); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "a", _g_get_a); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "r", _s_set_r); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "g", _s_set_g); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "b", _s_set_b); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "a", _s_set_a); - - - Utils.EndObjectRegister(type, L, translator, __CSIndexer, __NewIndexer, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 3, 0, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Lerp", _m_Lerp_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "LerpUnclamped", _m_LerpUnclamped_xlua_st_); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 5 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - byte _r = (byte)LuaAPI.xlua_tointeger(L, 2); - byte _g = (byte)LuaAPI.xlua_tointeger(L, 3); - byte _b = (byte)LuaAPI.xlua_tointeger(L, 4); - byte _a = (byte)LuaAPI.xlua_tointeger(L, 5); - - var gen_ret = new UnityEngine.Color32(_r, _g, _b, _a); - translator.Push(L, gen_ret); - - return 1; - } - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(UnityEngine.Color32)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Color32 constructor!"); - - } - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - public static int __CSIndexer(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - if (translator.Assignable(L, 1) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - - UnityEngine.Color32 gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - int index = LuaAPI.xlua_tointeger(L, 2); - LuaAPI.lua_pushboolean(L, true); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked[index]); - return 2; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - LuaAPI.lua_pushboolean(L, false); - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - public static int __NewIndexer(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - try { - - if (translator.Assignable(L, 1) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - - UnityEngine.Color32 gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - int key = LuaAPI.xlua_tointeger(L, 2); - gen_to_be_invoked[key] = (byte)LuaAPI.xlua_tointeger(L, 3); - LuaAPI.lua_pushboolean(L, true); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - LuaAPI.lua_pushboolean(L, false); - return 1; - } - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Lerp_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Color32 _a;translator.Get(L, 1, out _a); - UnityEngine.Color32 _b;translator.Get(L, 2, out _b); - float _t = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = UnityEngine.Color32.Lerp( _a, _b, _t ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_LerpUnclamped_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Color32 _a;translator.Get(L, 1, out _a); - UnityEngine.Color32 _b;translator.Get(L, 2, out _b); - float _t = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = UnityEngine.Color32.LerpUnclamped( _a, _b, _t ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ToString(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Color32 gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - var gen_ret = gen_to_be_invoked.ToString( ); - LuaAPI.lua_pushstring(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _format = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.ToString( _format ); - LuaAPI.lua_pushstring(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 3)) - { - string _format = LuaAPI.lua_tostring(L, 2); - System.IFormatProvider _formatProvider = (System.IFormatProvider)translator.GetObject(L, 3, typeof(System.IFormatProvider)); - - var gen_ret = gen_to_be_invoked.ToString( _format, _formatProvider ); - LuaAPI.lua_pushstring(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Color32.ToString!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Compare(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Color32 gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - UnityEngine.Color32 _b;translator.Get(L, 2, out _b); - - var gen_ret = gen_to_be_invoked.Compare( _b ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CompareRGB(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Color32 gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - UnityEngine.Color32 _b;translator.Get(L, 2, out _b); - - var gen_ret = gen_to_be_invoked.CompareRGB( _b ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Multiply(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Color32 gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - UnityEngine.Color32 _c2;translator.Get(L, 2, out _c2); - - var gen_ret = gen_to_be_invoked.Multiply( _c2 ); - translator.Push(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Tint(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Color32 gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - float _tint = (float)LuaAPI.lua_tonumber(L, 2); - - var gen_ret = gen_to_be_invoked.Tint( _tint ); - translator.Push(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.Color32 _c2;translator.Get(L, 2, out _c2); - - var gen_ret = gen_to_be_invoked.Tint( _c2 ); - translator.Push(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Color32.Tint!"); - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_r(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Color32 gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.r); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_g(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Color32 gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.g); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_b(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Color32 gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.b); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_a(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Color32 gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.a); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_r(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Color32 gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.r = (byte)LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_g(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Color32 gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.g = (byte)LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_b(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Color32 gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.b = (byte)LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_a(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Color32 gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.a = (byte)LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_ColorUtilityWrap.cs b/Assets/XLua/Gen/UnityEngine_ColorUtilityWrap.cs deleted file mode 100644 index 0f13a8ace..000000000 --- a/Assets/XLua/Gen/UnityEngine_ColorUtilityWrap.cs +++ /dev/null @@ -1,171 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineColorUtilityWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.ColorUtility); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 4, 0, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "TryParseHtmlString", _m_TryParseHtmlString_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "ToHtmlStringRGB", _m_ToHtmlStringRGB_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "ToHtmlStringRGBA", _m_ToHtmlStringRGBA_xlua_st_); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.ColorUtility(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.ColorUtility constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_TryParseHtmlString_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - string _htmlString = LuaAPI.lua_tostring(L, 1); - UnityEngine.Color _color; - - var gen_ret = UnityEngine.ColorUtility.TryParseHtmlString( _htmlString, out _color ); - LuaAPI.lua_pushboolean(L, gen_ret); - translator.PushUnityEngineColor(L, _color); - - - - - return 2; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ToHtmlStringRGB_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Color _color;translator.Get(L, 1, out _color); - - var gen_ret = UnityEngine.ColorUtility.ToHtmlStringRGB( _color ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ToHtmlStringRGBA_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Color _color;translator.Get(L, 1, out _color); - - var gen_ret = UnityEngine.ColorUtility.ToHtmlStringRGBA( _color ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_CombineInstanceWrap.cs b/Assets/XLua/Gen/UnityEngine_CombineInstanceWrap.cs deleted file mode 100644 index 7e8e6d639..000000000 --- a/Assets/XLua/Gen/UnityEngine_CombineInstanceWrap.cs +++ /dev/null @@ -1,250 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineCombineInstanceWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.CombineInstance); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 5, 5); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "mesh", _g_get_mesh); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "subMeshIndex", _g_get_subMeshIndex); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "transform", _g_get_transform); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "lightmapScaleOffset", _g_get_lightmapScaleOffset); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "realtimeLightmapScaleOffset", _g_get_realtimeLightmapScaleOffset); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "mesh", _s_set_mesh); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "subMeshIndex", _s_set_subMeshIndex); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "transform", _s_set_transform); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "lightmapScaleOffset", _s_set_lightmapScaleOffset); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "realtimeLightmapScaleOffset", _s_set_realtimeLightmapScaleOffset); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(UnityEngine.CombineInstance)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.CombineInstance constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_mesh(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CombineInstance gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.mesh); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_subMeshIndex(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CombineInstance gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.subMeshIndex); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_transform(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CombineInstance gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.transform); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_lightmapScaleOffset(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CombineInstance gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineVector4(L, gen_to_be_invoked.lightmapScaleOffset); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_realtimeLightmapScaleOffset(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CombineInstance gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineVector4(L, gen_to_be_invoked.realtimeLightmapScaleOffset); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_mesh(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CombineInstance gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.mesh = (UnityEngine.Mesh)translator.GetObject(L, 2, typeof(UnityEngine.Mesh)); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_subMeshIndex(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CombineInstance gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.subMeshIndex = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_transform(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CombineInstance gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Matrix4x4 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.transform = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_lightmapScaleOffset(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CombineInstance gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Vector4 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.lightmapScaleOffset = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_realtimeLightmapScaleOffset(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CombineInstance gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Vector4 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.realtimeLightmapScaleOffset = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_CompassWrap.cs b/Assets/XLua/Gen/UnityEngine_CompassWrap.cs deleted file mode 100644 index aa4d7c7c2..000000000 --- a/Assets/XLua/Gen/UnityEngine_CompassWrap.cs +++ /dev/null @@ -1,190 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineCompassWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.Compass); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 6, 1); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "magneticHeading", _g_get_magneticHeading); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "trueHeading", _g_get_trueHeading); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "headingAccuracy", _g_get_headingAccuracy); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "rawVector", _g_get_rawVector); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "timestamp", _g_get_timestamp); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "enabled", _g_get_enabled); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "enabled", _s_set_enabled); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.Compass(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Compass constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_magneticHeading(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Compass gen_to_be_invoked = (UnityEngine.Compass)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.magneticHeading); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_trueHeading(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Compass gen_to_be_invoked = (UnityEngine.Compass)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.trueHeading); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_headingAccuracy(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Compass gen_to_be_invoked = (UnityEngine.Compass)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.headingAccuracy); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_rawVector(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Compass gen_to_be_invoked = (UnityEngine.Compass)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.rawVector); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_timestamp(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Compass gen_to_be_invoked = (UnityEngine.Compass)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.timestamp); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_enabled(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Compass gen_to_be_invoked = (UnityEngine.Compass)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.enabled); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_enabled(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Compass gen_to_be_invoked = (UnityEngine.Compass)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.enabled = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_CompositeCollider2DWrap.cs b/Assets/XLua/Gen/UnityEngine_CompositeCollider2DWrap.cs deleted file mode 100644 index 51fc24888..000000000 --- a/Assets/XLua/Gen/UnityEngine_CompositeCollider2DWrap.cs +++ /dev/null @@ -1,376 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineCompositeCollider2DWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.CompositeCollider2D); - Utils.BeginObjectRegister(type, L, translator, 0, 3, 7, 5); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GenerateGeometry", _m_GenerateGeometry); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetPathPointCount", _m_GetPathPointCount); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetPath", _m_GetPath); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "geometryType", _g_get_geometryType); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "generationType", _g_get_generationType); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "vertexDistance", _g_get_vertexDistance); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "edgeRadius", _g_get_edgeRadius); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "offsetDistance", _g_get_offsetDistance); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "pathCount", _g_get_pathCount); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "pointCount", _g_get_pointCount); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "geometryType", _s_set_geometryType); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "generationType", _s_set_generationType); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "vertexDistance", _s_set_vertexDistance); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "edgeRadius", _s_set_edgeRadius); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "offsetDistance", _s_set_offsetDistance); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.CompositeCollider2D(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.CompositeCollider2D constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GenerateGeometry(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.CompositeCollider2D gen_to_be_invoked = (UnityEngine.CompositeCollider2D)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.GenerateGeometry( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetPathPointCount(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.CompositeCollider2D gen_to_be_invoked = (UnityEngine.CompositeCollider2D)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.GetPathPointCount( _index ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetPath(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.CompositeCollider2D gen_to_be_invoked = (UnityEngine.CompositeCollider2D)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)) - { - int _index = LuaAPI.xlua_tointeger(L, 2); - UnityEngine.Vector2[] _points = (UnityEngine.Vector2[])translator.GetObject(L, 3, typeof(UnityEngine.Vector2[])); - - var gen_ret = gen_to_be_invoked.GetPath( _index, _points ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable>(L, 3)) - { - int _index = LuaAPI.xlua_tointeger(L, 2); - System.Collections.Generic.List _points = (System.Collections.Generic.List)translator.GetObject(L, 3, typeof(System.Collections.Generic.List)); - - var gen_ret = gen_to_be_invoked.GetPath( _index, _points ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.CompositeCollider2D.GetPath!"); - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_geometryType(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CompositeCollider2D gen_to_be_invoked = (UnityEngine.CompositeCollider2D)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.geometryType); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_generationType(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CompositeCollider2D gen_to_be_invoked = (UnityEngine.CompositeCollider2D)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.generationType); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_vertexDistance(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CompositeCollider2D gen_to_be_invoked = (UnityEngine.CompositeCollider2D)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.vertexDistance); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_edgeRadius(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CompositeCollider2D gen_to_be_invoked = (UnityEngine.CompositeCollider2D)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.edgeRadius); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_offsetDistance(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CompositeCollider2D gen_to_be_invoked = (UnityEngine.CompositeCollider2D)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.offsetDistance); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_pathCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CompositeCollider2D gen_to_be_invoked = (UnityEngine.CompositeCollider2D)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.pathCount); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_pointCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CompositeCollider2D gen_to_be_invoked = (UnityEngine.CompositeCollider2D)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.pointCount); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_geometryType(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CompositeCollider2D gen_to_be_invoked = (UnityEngine.CompositeCollider2D)translator.FastGetCSObj(L, 1); - UnityEngine.CompositeCollider2D.GeometryType gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.geometryType = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_generationType(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CompositeCollider2D gen_to_be_invoked = (UnityEngine.CompositeCollider2D)translator.FastGetCSObj(L, 1); - UnityEngine.CompositeCollider2D.GenerationType gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.generationType = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_vertexDistance(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CompositeCollider2D gen_to_be_invoked = (UnityEngine.CompositeCollider2D)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.vertexDistance = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_edgeRadius(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CompositeCollider2D gen_to_be_invoked = (UnityEngine.CompositeCollider2D)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.edgeRadius = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_offsetDistance(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CompositeCollider2D gen_to_be_invoked = (UnityEngine.CompositeCollider2D)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.offsetDistance = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_ComputeBufferWrap.cs b/Assets/XLua/Gen/UnityEngine_ComputeBufferWrap.cs deleted file mode 100644 index d16b8e30f..000000000 --- a/Assets/XLua/Gen/UnityEngine_ComputeBufferWrap.cs +++ /dev/null @@ -1,419 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineComputeBufferWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.ComputeBuffer); - Utils.BeginObjectRegister(type, L, translator, 0, 7, 2, 1); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Dispose", _m_Dispose); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Release", _m_Release); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsValid", _m_IsValid); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetData", _m_SetData); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetData", _m_GetData); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetCounterValue", _m_SetCounterValue); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetNativeBufferPtr", _m_GetNativeBufferPtr); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "count", _g_get_count); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "stride", _g_get_stride); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "name", _s_set_name); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 2, 0, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "CopyCount", _m_CopyCount_xlua_st_); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 3 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - int _count = LuaAPI.xlua_tointeger(L, 2); - int _stride = LuaAPI.xlua_tointeger(L, 3); - - var gen_ret = new UnityEngine.ComputeBuffer(_count, _stride); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 4 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && translator.Assignable(L, 4)) - { - int _count = LuaAPI.xlua_tointeger(L, 2); - int _stride = LuaAPI.xlua_tointeger(L, 3); - UnityEngine.ComputeBufferType _type;translator.Get(L, 4, out _type); - - var gen_ret = new UnityEngine.ComputeBuffer(_count, _stride, _type); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 5 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && translator.Assignable(L, 4) && translator.Assignable(L, 5)) - { - int _count = LuaAPI.xlua_tointeger(L, 2); - int _stride = LuaAPI.xlua_tointeger(L, 3); - UnityEngine.ComputeBufferType _type;translator.Get(L, 4, out _type); - UnityEngine.ComputeBufferMode _usage;translator.Get(L, 5, out _usage); - - var gen_ret = new UnityEngine.ComputeBuffer(_count, _stride, _type, _usage); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.ComputeBuffer constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Dispose(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ComputeBuffer gen_to_be_invoked = (UnityEngine.ComputeBuffer)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Dispose( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Release(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ComputeBuffer gen_to_be_invoked = (UnityEngine.ComputeBuffer)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Release( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_IsValid(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ComputeBuffer gen_to_be_invoked = (UnityEngine.ComputeBuffer)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.IsValid( ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetData(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ComputeBuffer gen_to_be_invoked = (UnityEngine.ComputeBuffer)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - System.Array _data = (System.Array)translator.GetObject(L, 2, typeof(System.Array)); - - gen_to_be_invoked.SetData( _data ); - - - - return 0; - } - if(gen_param_count == 5&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - System.Array _data = (System.Array)translator.GetObject(L, 2, typeof(System.Array)); - int _managedBufferStartIndex = LuaAPI.xlua_tointeger(L, 3); - int _computeBufferStartIndex = LuaAPI.xlua_tointeger(L, 4); - int _count = LuaAPI.xlua_tointeger(L, 5); - - gen_to_be_invoked.SetData( _data, _managedBufferStartIndex, _computeBufferStartIndex, _count ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.ComputeBuffer.SetData!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetData(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ComputeBuffer gen_to_be_invoked = (UnityEngine.ComputeBuffer)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - System.Array _data = (System.Array)translator.GetObject(L, 2, typeof(System.Array)); - - gen_to_be_invoked.GetData( _data ); - - - - return 0; - } - if(gen_param_count == 5&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - System.Array _data = (System.Array)translator.GetObject(L, 2, typeof(System.Array)); - int _managedBufferStartIndex = LuaAPI.xlua_tointeger(L, 3); - int _computeBufferStartIndex = LuaAPI.xlua_tointeger(L, 4); - int _count = LuaAPI.xlua_tointeger(L, 5); - - gen_to_be_invoked.GetData( _data, _managedBufferStartIndex, _computeBufferStartIndex, _count ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.ComputeBuffer.GetData!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetCounterValue(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ComputeBuffer gen_to_be_invoked = (UnityEngine.ComputeBuffer)translator.FastGetCSObj(L, 1); - - - - { - uint _counterValue = LuaAPI.xlua_touint(L, 2); - - gen_to_be_invoked.SetCounterValue( _counterValue ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CopyCount_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.ComputeBuffer _src = (UnityEngine.ComputeBuffer)translator.GetObject(L, 1, typeof(UnityEngine.ComputeBuffer)); - UnityEngine.ComputeBuffer _dst = (UnityEngine.ComputeBuffer)translator.GetObject(L, 2, typeof(UnityEngine.ComputeBuffer)); - int _dstOffsetBytes = LuaAPI.xlua_tointeger(L, 3); - - UnityEngine.ComputeBuffer.CopyCount( _src, _dst, _dstOffsetBytes ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetNativeBufferPtr(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ComputeBuffer gen_to_be_invoked = (UnityEngine.ComputeBuffer)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.GetNativeBufferPtr( ); - LuaAPI.lua_pushlightuserdata(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_count(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ComputeBuffer gen_to_be_invoked = (UnityEngine.ComputeBuffer)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.count); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_stride(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ComputeBuffer gen_to_be_invoked = (UnityEngine.ComputeBuffer)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.stride); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_name(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ComputeBuffer gen_to_be_invoked = (UnityEngine.ComputeBuffer)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.name = LuaAPI.lua_tostring(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_ComputeShaderWrap.cs b/Assets/XLua/Gen/UnityEngine_ComputeShaderWrap.cs deleted file mode 100644 index 1f5651fb4..000000000 --- a/Assets/XLua/Gen/UnityEngine_ComputeShaderWrap.cs +++ /dev/null @@ -1,1084 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineComputeShaderWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.ComputeShader); - Utils.BeginObjectRegister(type, L, translator, 0, 21, 1, 1); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "FindKernel", _m_FindKernel); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "HasKernel", _m_HasKernel); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetFloat", _m_SetFloat); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetInt", _m_SetInt); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetVector", _m_SetVector); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetMatrix", _m_SetMatrix); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetVectorArray", _m_SetVectorArray); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetMatrixArray", _m_SetMatrixArray); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetTexture", _m_SetTexture); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetTextureFromGlobal", _m_SetTextureFromGlobal); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetBuffer", _m_SetBuffer); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetKernelThreadGroupSizes", _m_GetKernelThreadGroupSizes); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Dispatch", _m_Dispatch); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "EnableKeyword", _m_EnableKeyword); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "DisableKeyword", _m_DisableKeyword); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsKeywordEnabled", _m_IsKeywordEnabled); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetFloats", _m_SetFloats); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetInts", _m_SetInts); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetBool", _m_SetBool); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetConstantBuffer", _m_SetConstantBuffer); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "DispatchIndirect", _m_DispatchIndirect); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "shaderKeywords", _g_get_shaderKeywords); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "shaderKeywords", _s_set_shaderKeywords); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "UnityEngine.ComputeShader does not have a constructor!"); - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_FindKernel(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ComputeShader gen_to_be_invoked = (UnityEngine.ComputeShader)translator.FastGetCSObj(L, 1); - - - - { - string _name = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.FindKernel( _name ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_HasKernel(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ComputeShader gen_to_be_invoked = (UnityEngine.ComputeShader)translator.FastGetCSObj(L, 1); - - - - { - string _name = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.HasKernel( _name ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetFloat(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ComputeShader gen_to_be_invoked = (UnityEngine.ComputeShader)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - int _nameID = LuaAPI.xlua_tointeger(L, 2); - float _val = (float)LuaAPI.lua_tonumber(L, 3); - - gen_to_be_invoked.SetFloat( _nameID, _val ); - - - - return 0; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - string _name = LuaAPI.lua_tostring(L, 2); - float _val = (float)LuaAPI.lua_tonumber(L, 3); - - gen_to_be_invoked.SetFloat( _name, _val ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.ComputeShader.SetFloat!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetInt(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ComputeShader gen_to_be_invoked = (UnityEngine.ComputeShader)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - int _nameID = LuaAPI.xlua_tointeger(L, 2); - int _val = LuaAPI.xlua_tointeger(L, 3); - - gen_to_be_invoked.SetInt( _nameID, _val ); - - - - return 0; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - string _name = LuaAPI.lua_tostring(L, 2); - int _val = LuaAPI.xlua_tointeger(L, 3); - - gen_to_be_invoked.SetInt( _name, _val ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.ComputeShader.SetInt!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetVector(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ComputeShader gen_to_be_invoked = (UnityEngine.ComputeShader)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)) - { - int _nameID = LuaAPI.xlua_tointeger(L, 2); - UnityEngine.Vector4 _val;translator.Get(L, 3, out _val); - - gen_to_be_invoked.SetVector( _nameID, _val ); - - - - return 0; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 3)) - { - string _name = LuaAPI.lua_tostring(L, 2); - UnityEngine.Vector4 _val;translator.Get(L, 3, out _val); - - gen_to_be_invoked.SetVector( _name, _val ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.ComputeShader.SetVector!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetMatrix(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ComputeShader gen_to_be_invoked = (UnityEngine.ComputeShader)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)) - { - int _nameID = LuaAPI.xlua_tointeger(L, 2); - UnityEngine.Matrix4x4 _val;translator.Get(L, 3, out _val); - - gen_to_be_invoked.SetMatrix( _nameID, _val ); - - - - return 0; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 3)) - { - string _name = LuaAPI.lua_tostring(L, 2); - UnityEngine.Matrix4x4 _val;translator.Get(L, 3, out _val); - - gen_to_be_invoked.SetMatrix( _name, _val ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.ComputeShader.SetMatrix!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetVectorArray(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ComputeShader gen_to_be_invoked = (UnityEngine.ComputeShader)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)) - { - int _nameID = LuaAPI.xlua_tointeger(L, 2); - UnityEngine.Vector4[] _values = (UnityEngine.Vector4[])translator.GetObject(L, 3, typeof(UnityEngine.Vector4[])); - - gen_to_be_invoked.SetVectorArray( _nameID, _values ); - - - - return 0; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 3)) - { - string _name = LuaAPI.lua_tostring(L, 2); - UnityEngine.Vector4[] _values = (UnityEngine.Vector4[])translator.GetObject(L, 3, typeof(UnityEngine.Vector4[])); - - gen_to_be_invoked.SetVectorArray( _name, _values ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.ComputeShader.SetVectorArray!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetMatrixArray(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ComputeShader gen_to_be_invoked = (UnityEngine.ComputeShader)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)) - { - int _nameID = LuaAPI.xlua_tointeger(L, 2); - UnityEngine.Matrix4x4[] _values = (UnityEngine.Matrix4x4[])translator.GetObject(L, 3, typeof(UnityEngine.Matrix4x4[])); - - gen_to_be_invoked.SetMatrixArray( _nameID, _values ); - - - - return 0; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 3)) - { - string _name = LuaAPI.lua_tostring(L, 2); - UnityEngine.Matrix4x4[] _values = (UnityEngine.Matrix4x4[])translator.GetObject(L, 3, typeof(UnityEngine.Matrix4x4[])); - - gen_to_be_invoked.SetMatrixArray( _name, _values ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.ComputeShader.SetMatrixArray!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetTexture(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ComputeShader gen_to_be_invoked = (UnityEngine.ComputeShader)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable(L, 4)) - { - int _kernelIndex = LuaAPI.xlua_tointeger(L, 2); - int _nameID = LuaAPI.xlua_tointeger(L, 3); - UnityEngine.Texture _texture = (UnityEngine.Texture)translator.GetObject(L, 4, typeof(UnityEngine.Texture)); - - gen_to_be_invoked.SetTexture( _kernelIndex, _nameID, _texture ); - - - - return 0; - } - if(gen_param_count == 5&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - int _kernelIndex = LuaAPI.xlua_tointeger(L, 2); - int _nameID = LuaAPI.xlua_tointeger(L, 3); - UnityEngine.Texture _texture = (UnityEngine.Texture)translator.GetObject(L, 4, typeof(UnityEngine.Texture)); - int _mipLevel = LuaAPI.xlua_tointeger(L, 5); - - gen_to_be_invoked.SetTexture( _kernelIndex, _nameID, _texture, _mipLevel ); - - - - return 0; - } - if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 4)) - { - int _kernelIndex = LuaAPI.xlua_tointeger(L, 2); - string _name = LuaAPI.lua_tostring(L, 3); - UnityEngine.Texture _texture = (UnityEngine.Texture)translator.GetObject(L, 4, typeof(UnityEngine.Texture)); - - gen_to_be_invoked.SetTexture( _kernelIndex, _name, _texture ); - - - - return 0; - } - if(gen_param_count == 5&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - int _kernelIndex = LuaAPI.xlua_tointeger(L, 2); - string _name = LuaAPI.lua_tostring(L, 3); - UnityEngine.Texture _texture = (UnityEngine.Texture)translator.GetObject(L, 4, typeof(UnityEngine.Texture)); - int _mipLevel = LuaAPI.xlua_tointeger(L, 5); - - gen_to_be_invoked.SetTexture( _kernelIndex, _name, _texture, _mipLevel ); - - - - return 0; - } - if(gen_param_count == 6&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& translator.Assignable(L, 6)) - { - int _kernelIndex = LuaAPI.xlua_tointeger(L, 2); - int _nameID = LuaAPI.xlua_tointeger(L, 3); - UnityEngine.RenderTexture _texture = (UnityEngine.RenderTexture)translator.GetObject(L, 4, typeof(UnityEngine.RenderTexture)); - int _mipLevel = LuaAPI.xlua_tointeger(L, 5); - UnityEngine.Rendering.RenderTextureSubElement _element;translator.Get(L, 6, out _element); - - gen_to_be_invoked.SetTexture( _kernelIndex, _nameID, _texture, _mipLevel, _element ); - - - - return 0; - } - if(gen_param_count == 6&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& translator.Assignable(L, 6)) - { - int _kernelIndex = LuaAPI.xlua_tointeger(L, 2); - string _name = LuaAPI.lua_tostring(L, 3); - UnityEngine.RenderTexture _texture = (UnityEngine.RenderTexture)translator.GetObject(L, 4, typeof(UnityEngine.RenderTexture)); - int _mipLevel = LuaAPI.xlua_tointeger(L, 5); - UnityEngine.Rendering.RenderTextureSubElement _element;translator.Get(L, 6, out _element); - - gen_to_be_invoked.SetTexture( _kernelIndex, _name, _texture, _mipLevel, _element ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.ComputeShader.SetTexture!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetTextureFromGlobal(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ComputeShader gen_to_be_invoked = (UnityEngine.ComputeShader)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - int _kernelIndex = LuaAPI.xlua_tointeger(L, 2); - int _nameID = LuaAPI.xlua_tointeger(L, 3); - int _globalTextureNameID = LuaAPI.xlua_tointeger(L, 4); - - gen_to_be_invoked.SetTextureFromGlobal( _kernelIndex, _nameID, _globalTextureNameID ); - - - - return 0; - } - if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 4) || LuaAPI.lua_type(L, 4) == LuaTypes.LUA_TSTRING)) - { - int _kernelIndex = LuaAPI.xlua_tointeger(L, 2); - string _name = LuaAPI.lua_tostring(L, 3); - string _globalTextureName = LuaAPI.lua_tostring(L, 4); - - gen_to_be_invoked.SetTextureFromGlobal( _kernelIndex, _name, _globalTextureName ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.ComputeShader.SetTextureFromGlobal!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetBuffer(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ComputeShader gen_to_be_invoked = (UnityEngine.ComputeShader)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable(L, 4)) - { - int _kernelIndex = LuaAPI.xlua_tointeger(L, 2); - int _nameID = LuaAPI.xlua_tointeger(L, 3); - UnityEngine.ComputeBuffer _buffer = (UnityEngine.ComputeBuffer)translator.GetObject(L, 4, typeof(UnityEngine.ComputeBuffer)); - - gen_to_be_invoked.SetBuffer( _kernelIndex, _nameID, _buffer ); - - - - return 0; - } - if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable(L, 4)) - { - int _kernelIndex = LuaAPI.xlua_tointeger(L, 2); - int _nameID = LuaAPI.xlua_tointeger(L, 3); - UnityEngine.GraphicsBuffer _buffer = (UnityEngine.GraphicsBuffer)translator.GetObject(L, 4, typeof(UnityEngine.GraphicsBuffer)); - - gen_to_be_invoked.SetBuffer( _kernelIndex, _nameID, _buffer ); - - - - return 0; - } - if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 4)) - { - int _kernelIndex = LuaAPI.xlua_tointeger(L, 2); - string _name = LuaAPI.lua_tostring(L, 3); - UnityEngine.ComputeBuffer _buffer = (UnityEngine.ComputeBuffer)translator.GetObject(L, 4, typeof(UnityEngine.ComputeBuffer)); - - gen_to_be_invoked.SetBuffer( _kernelIndex, _name, _buffer ); - - - - return 0; - } - if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 4)) - { - int _kernelIndex = LuaAPI.xlua_tointeger(L, 2); - string _name = LuaAPI.lua_tostring(L, 3); - UnityEngine.GraphicsBuffer _buffer = (UnityEngine.GraphicsBuffer)translator.GetObject(L, 4, typeof(UnityEngine.GraphicsBuffer)); - - gen_to_be_invoked.SetBuffer( _kernelIndex, _name, _buffer ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.ComputeShader.SetBuffer!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetKernelThreadGroupSizes(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ComputeShader gen_to_be_invoked = (UnityEngine.ComputeShader)translator.FastGetCSObj(L, 1); - - - - { - int _kernelIndex = LuaAPI.xlua_tointeger(L, 2); - uint _x; - uint _y; - uint _z; - - gen_to_be_invoked.GetKernelThreadGroupSizes( _kernelIndex, out _x, out _y, out _z ); - LuaAPI.xlua_pushuint(L, _x); - - LuaAPI.xlua_pushuint(L, _y); - - LuaAPI.xlua_pushuint(L, _z); - - - - - return 3; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Dispatch(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ComputeShader gen_to_be_invoked = (UnityEngine.ComputeShader)translator.FastGetCSObj(L, 1); - - - - { - int _kernelIndex = LuaAPI.xlua_tointeger(L, 2); - int _threadGroupsX = LuaAPI.xlua_tointeger(L, 3); - int _threadGroupsY = LuaAPI.xlua_tointeger(L, 4); - int _threadGroupsZ = LuaAPI.xlua_tointeger(L, 5); - - gen_to_be_invoked.Dispatch( _kernelIndex, _threadGroupsX, _threadGroupsY, _threadGroupsZ ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_EnableKeyword(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ComputeShader gen_to_be_invoked = (UnityEngine.ComputeShader)translator.FastGetCSObj(L, 1); - - - - { - string _keyword = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.EnableKeyword( _keyword ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DisableKeyword(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ComputeShader gen_to_be_invoked = (UnityEngine.ComputeShader)translator.FastGetCSObj(L, 1); - - - - { - string _keyword = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.DisableKeyword( _keyword ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_IsKeywordEnabled(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ComputeShader gen_to_be_invoked = (UnityEngine.ComputeShader)translator.FastGetCSObj(L, 1); - - - - { - string _keyword = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.IsKeywordEnabled( _keyword ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetFloats(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ComputeShader gen_to_be_invoked = (UnityEngine.ComputeShader)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count >= 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& (LuaTypes.LUA_TNONE == LuaAPI.lua_type(L, 3) || LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3))) - { - int _nameID = LuaAPI.xlua_tointeger(L, 2); - float[] _values = translator.GetParams(L, 3); - - gen_to_be_invoked.SetFloats( _nameID, _values ); - - - - return 0; - } - if(gen_param_count >= 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& (LuaTypes.LUA_TNONE == LuaAPI.lua_type(L, 3) || LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3))) - { - string _name = LuaAPI.lua_tostring(L, 2); - float[] _values = translator.GetParams(L, 3); - - gen_to_be_invoked.SetFloats( _name, _values ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.ComputeShader.SetFloats!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetInts(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ComputeShader gen_to_be_invoked = (UnityEngine.ComputeShader)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count >= 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& (LuaTypes.LUA_TNONE == LuaAPI.lua_type(L, 3) || LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3))) - { - int _nameID = LuaAPI.xlua_tointeger(L, 2); - int[] _values = translator.GetParams(L, 3); - - gen_to_be_invoked.SetInts( _nameID, _values ); - - - - return 0; - } - if(gen_param_count >= 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& (LuaTypes.LUA_TNONE == LuaAPI.lua_type(L, 3) || LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3))) - { - string _name = LuaAPI.lua_tostring(L, 2); - int[] _values = translator.GetParams(L, 3); - - gen_to_be_invoked.SetInts( _name, _values ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.ComputeShader.SetInts!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetBool(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ComputeShader gen_to_be_invoked = (UnityEngine.ComputeShader)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) - { - int _nameID = LuaAPI.xlua_tointeger(L, 2); - bool _val = LuaAPI.lua_toboolean(L, 3); - - gen_to_be_invoked.SetBool( _nameID, _val ); - - - - return 0; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) - { - string _name = LuaAPI.lua_tostring(L, 2); - bool _val = LuaAPI.lua_toboolean(L, 3); - - gen_to_be_invoked.SetBool( _name, _val ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.ComputeShader.SetBool!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetConstantBuffer(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ComputeShader gen_to_be_invoked = (UnityEngine.ComputeShader)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 5&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - int _nameID = LuaAPI.xlua_tointeger(L, 2); - UnityEngine.ComputeBuffer _buffer = (UnityEngine.ComputeBuffer)translator.GetObject(L, 3, typeof(UnityEngine.ComputeBuffer)); - int _offset = LuaAPI.xlua_tointeger(L, 4); - int _size = LuaAPI.xlua_tointeger(L, 5); - - gen_to_be_invoked.SetConstantBuffer( _nameID, _buffer, _offset, _size ); - - - - return 0; - } - if(gen_param_count == 5&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - int _nameID = LuaAPI.xlua_tointeger(L, 2); - UnityEngine.GraphicsBuffer _buffer = (UnityEngine.GraphicsBuffer)translator.GetObject(L, 3, typeof(UnityEngine.GraphicsBuffer)); - int _offset = LuaAPI.xlua_tointeger(L, 4); - int _size = LuaAPI.xlua_tointeger(L, 5); - - gen_to_be_invoked.SetConstantBuffer( _nameID, _buffer, _offset, _size ); - - - - return 0; - } - if(gen_param_count == 5&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - string _name = LuaAPI.lua_tostring(L, 2); - UnityEngine.ComputeBuffer _buffer = (UnityEngine.ComputeBuffer)translator.GetObject(L, 3, typeof(UnityEngine.ComputeBuffer)); - int _offset = LuaAPI.xlua_tointeger(L, 4); - int _size = LuaAPI.xlua_tointeger(L, 5); - - gen_to_be_invoked.SetConstantBuffer( _name, _buffer, _offset, _size ); - - - - return 0; - } - if(gen_param_count == 5&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - string _name = LuaAPI.lua_tostring(L, 2); - UnityEngine.GraphicsBuffer _buffer = (UnityEngine.GraphicsBuffer)translator.GetObject(L, 3, typeof(UnityEngine.GraphicsBuffer)); - int _offset = LuaAPI.xlua_tointeger(L, 4); - int _size = LuaAPI.xlua_tointeger(L, 5); - - gen_to_be_invoked.SetConstantBuffer( _name, _buffer, _offset, _size ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.ComputeShader.SetConstantBuffer!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DispatchIndirect(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ComputeShader gen_to_be_invoked = (UnityEngine.ComputeShader)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)) - { - int _kernelIndex = LuaAPI.xlua_tointeger(L, 2); - UnityEngine.ComputeBuffer _argsBuffer = (UnityEngine.ComputeBuffer)translator.GetObject(L, 3, typeof(UnityEngine.ComputeBuffer)); - - gen_to_be_invoked.DispatchIndirect( _kernelIndex, _argsBuffer ); - - - - return 0; - } - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)) - { - int _kernelIndex = LuaAPI.xlua_tointeger(L, 2); - UnityEngine.GraphicsBuffer _argsBuffer = (UnityEngine.GraphicsBuffer)translator.GetObject(L, 3, typeof(UnityEngine.GraphicsBuffer)); - - gen_to_be_invoked.DispatchIndirect( _kernelIndex, _argsBuffer ); - - - - return 0; - } - if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - int _kernelIndex = LuaAPI.xlua_tointeger(L, 2); - UnityEngine.ComputeBuffer _argsBuffer = (UnityEngine.ComputeBuffer)translator.GetObject(L, 3, typeof(UnityEngine.ComputeBuffer)); - uint _argsOffset = LuaAPI.xlua_touint(L, 4); - - gen_to_be_invoked.DispatchIndirect( _kernelIndex, _argsBuffer, _argsOffset ); - - - - return 0; - } - if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - int _kernelIndex = LuaAPI.xlua_tointeger(L, 2); - UnityEngine.GraphicsBuffer _argsBuffer = (UnityEngine.GraphicsBuffer)translator.GetObject(L, 3, typeof(UnityEngine.GraphicsBuffer)); - uint _argsOffset = LuaAPI.xlua_touint(L, 4); - - gen_to_be_invoked.DispatchIndirect( _kernelIndex, _argsBuffer, _argsOffset ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.ComputeShader.DispatchIndirect!"); - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_shaderKeywords(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ComputeShader gen_to_be_invoked = (UnityEngine.ComputeShader)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.shaderKeywords); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_shaderKeywords(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ComputeShader gen_to_be_invoked = (UnityEngine.ComputeShader)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.shaderKeywords = (string[])translator.GetObject(L, 2, typeof(string[])); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_ConfigurableJointWrap.cs b/Assets/XLua/Gen/UnityEngine_ConfigurableJointWrap.cs deleted file mode 100644 index 6c2226a7b..000000000 --- a/Assets/XLua/Gen/UnityEngine_ConfigurableJointWrap.cs +++ /dev/null @@ -1,1072 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineConfigurableJointWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.ConfigurableJoint); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 31, 31); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "secondaryAxis", _g_get_secondaryAxis); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "xMotion", _g_get_xMotion); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "yMotion", _g_get_yMotion); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "zMotion", _g_get_zMotion); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "angularXMotion", _g_get_angularXMotion); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "angularYMotion", _g_get_angularYMotion); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "angularZMotion", _g_get_angularZMotion); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "linearLimitSpring", _g_get_linearLimitSpring); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "angularXLimitSpring", _g_get_angularXLimitSpring); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "angularYZLimitSpring", _g_get_angularYZLimitSpring); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "linearLimit", _g_get_linearLimit); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "lowAngularXLimit", _g_get_lowAngularXLimit); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "highAngularXLimit", _g_get_highAngularXLimit); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "angularYLimit", _g_get_angularYLimit); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "angularZLimit", _g_get_angularZLimit); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "targetPosition", _g_get_targetPosition); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "targetVelocity", _g_get_targetVelocity); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "xDrive", _g_get_xDrive); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "yDrive", _g_get_yDrive); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "zDrive", _g_get_zDrive); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "targetRotation", _g_get_targetRotation); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "targetAngularVelocity", _g_get_targetAngularVelocity); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "rotationDriveMode", _g_get_rotationDriveMode); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "angularXDrive", _g_get_angularXDrive); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "angularYZDrive", _g_get_angularYZDrive); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "slerpDrive", _g_get_slerpDrive); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "projectionMode", _g_get_projectionMode); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "projectionDistance", _g_get_projectionDistance); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "projectionAngle", _g_get_projectionAngle); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "configuredInWorldSpace", _g_get_configuredInWorldSpace); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "swapBodies", _g_get_swapBodies); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "secondaryAxis", _s_set_secondaryAxis); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "xMotion", _s_set_xMotion); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "yMotion", _s_set_yMotion); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "zMotion", _s_set_zMotion); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "angularXMotion", _s_set_angularXMotion); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "angularYMotion", _s_set_angularYMotion); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "angularZMotion", _s_set_angularZMotion); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "linearLimitSpring", _s_set_linearLimitSpring); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "angularXLimitSpring", _s_set_angularXLimitSpring); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "angularYZLimitSpring", _s_set_angularYZLimitSpring); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "linearLimit", _s_set_linearLimit); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "lowAngularXLimit", _s_set_lowAngularXLimit); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "highAngularXLimit", _s_set_highAngularXLimit); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "angularYLimit", _s_set_angularYLimit); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "angularZLimit", _s_set_angularZLimit); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "targetPosition", _s_set_targetPosition); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "targetVelocity", _s_set_targetVelocity); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "xDrive", _s_set_xDrive); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "yDrive", _s_set_yDrive); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "zDrive", _s_set_zDrive); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "targetRotation", _s_set_targetRotation); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "targetAngularVelocity", _s_set_targetAngularVelocity); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "rotationDriveMode", _s_set_rotationDriveMode); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "angularXDrive", _s_set_angularXDrive); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "angularYZDrive", _s_set_angularYZDrive); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "slerpDrive", _s_set_slerpDrive); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "projectionMode", _s_set_projectionMode); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "projectionDistance", _s_set_projectionDistance); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "projectionAngle", _s_set_projectionAngle); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "configuredInWorldSpace", _s_set_configuredInWorldSpace); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "swapBodies", _s_set_swapBodies); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.ConfigurableJoint(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.ConfigurableJoint constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_secondaryAxis(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ConfigurableJoint gen_to_be_invoked = (UnityEngine.ConfigurableJoint)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.secondaryAxis); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_xMotion(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ConfigurableJoint gen_to_be_invoked = (UnityEngine.ConfigurableJoint)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.xMotion); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_yMotion(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ConfigurableJoint gen_to_be_invoked = (UnityEngine.ConfigurableJoint)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.yMotion); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_zMotion(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ConfigurableJoint gen_to_be_invoked = (UnityEngine.ConfigurableJoint)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.zMotion); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_angularXMotion(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ConfigurableJoint gen_to_be_invoked = (UnityEngine.ConfigurableJoint)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.angularXMotion); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_angularYMotion(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ConfigurableJoint gen_to_be_invoked = (UnityEngine.ConfigurableJoint)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.angularYMotion); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_angularZMotion(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ConfigurableJoint gen_to_be_invoked = (UnityEngine.ConfigurableJoint)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.angularZMotion); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_linearLimitSpring(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ConfigurableJoint gen_to_be_invoked = (UnityEngine.ConfigurableJoint)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.linearLimitSpring); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_angularXLimitSpring(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ConfigurableJoint gen_to_be_invoked = (UnityEngine.ConfigurableJoint)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.angularXLimitSpring); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_angularYZLimitSpring(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ConfigurableJoint gen_to_be_invoked = (UnityEngine.ConfigurableJoint)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.angularYZLimitSpring); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_linearLimit(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ConfigurableJoint gen_to_be_invoked = (UnityEngine.ConfigurableJoint)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.linearLimit); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_lowAngularXLimit(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ConfigurableJoint gen_to_be_invoked = (UnityEngine.ConfigurableJoint)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.lowAngularXLimit); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_highAngularXLimit(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ConfigurableJoint gen_to_be_invoked = (UnityEngine.ConfigurableJoint)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.highAngularXLimit); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_angularYLimit(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ConfigurableJoint gen_to_be_invoked = (UnityEngine.ConfigurableJoint)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.angularYLimit); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_angularZLimit(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ConfigurableJoint gen_to_be_invoked = (UnityEngine.ConfigurableJoint)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.angularZLimit); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_targetPosition(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ConfigurableJoint gen_to_be_invoked = (UnityEngine.ConfigurableJoint)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.targetPosition); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_targetVelocity(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ConfigurableJoint gen_to_be_invoked = (UnityEngine.ConfigurableJoint)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.targetVelocity); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_xDrive(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ConfigurableJoint gen_to_be_invoked = (UnityEngine.ConfigurableJoint)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.xDrive); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_yDrive(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ConfigurableJoint gen_to_be_invoked = (UnityEngine.ConfigurableJoint)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.yDrive); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_zDrive(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ConfigurableJoint gen_to_be_invoked = (UnityEngine.ConfigurableJoint)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.zDrive); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_targetRotation(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ConfigurableJoint gen_to_be_invoked = (UnityEngine.ConfigurableJoint)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineQuaternion(L, gen_to_be_invoked.targetRotation); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_targetAngularVelocity(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ConfigurableJoint gen_to_be_invoked = (UnityEngine.ConfigurableJoint)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.targetAngularVelocity); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_rotationDriveMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ConfigurableJoint gen_to_be_invoked = (UnityEngine.ConfigurableJoint)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.rotationDriveMode); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_angularXDrive(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ConfigurableJoint gen_to_be_invoked = (UnityEngine.ConfigurableJoint)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.angularXDrive); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_angularYZDrive(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ConfigurableJoint gen_to_be_invoked = (UnityEngine.ConfigurableJoint)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.angularYZDrive); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_slerpDrive(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ConfigurableJoint gen_to_be_invoked = (UnityEngine.ConfigurableJoint)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.slerpDrive); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_projectionMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ConfigurableJoint gen_to_be_invoked = (UnityEngine.ConfigurableJoint)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.projectionMode); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_projectionDistance(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ConfigurableJoint gen_to_be_invoked = (UnityEngine.ConfigurableJoint)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.projectionDistance); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_projectionAngle(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ConfigurableJoint gen_to_be_invoked = (UnityEngine.ConfigurableJoint)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.projectionAngle); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_configuredInWorldSpace(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ConfigurableJoint gen_to_be_invoked = (UnityEngine.ConfigurableJoint)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.configuredInWorldSpace); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_swapBodies(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ConfigurableJoint gen_to_be_invoked = (UnityEngine.ConfigurableJoint)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.swapBodies); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_secondaryAxis(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ConfigurableJoint gen_to_be_invoked = (UnityEngine.ConfigurableJoint)translator.FastGetCSObj(L, 1); - UnityEngine.Vector3 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.secondaryAxis = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_xMotion(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ConfigurableJoint gen_to_be_invoked = (UnityEngine.ConfigurableJoint)translator.FastGetCSObj(L, 1); - UnityEngine.ConfigurableJointMotion gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.xMotion = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_yMotion(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ConfigurableJoint gen_to_be_invoked = (UnityEngine.ConfigurableJoint)translator.FastGetCSObj(L, 1); - UnityEngine.ConfigurableJointMotion gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.yMotion = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_zMotion(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ConfigurableJoint gen_to_be_invoked = (UnityEngine.ConfigurableJoint)translator.FastGetCSObj(L, 1); - UnityEngine.ConfigurableJointMotion gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.zMotion = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_angularXMotion(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ConfigurableJoint gen_to_be_invoked = (UnityEngine.ConfigurableJoint)translator.FastGetCSObj(L, 1); - UnityEngine.ConfigurableJointMotion gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.angularXMotion = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_angularYMotion(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ConfigurableJoint gen_to_be_invoked = (UnityEngine.ConfigurableJoint)translator.FastGetCSObj(L, 1); - UnityEngine.ConfigurableJointMotion gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.angularYMotion = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_angularZMotion(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ConfigurableJoint gen_to_be_invoked = (UnityEngine.ConfigurableJoint)translator.FastGetCSObj(L, 1); - UnityEngine.ConfigurableJointMotion gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.angularZMotion = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_linearLimitSpring(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ConfigurableJoint gen_to_be_invoked = (UnityEngine.ConfigurableJoint)translator.FastGetCSObj(L, 1); - UnityEngine.SoftJointLimitSpring gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.linearLimitSpring = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_angularXLimitSpring(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ConfigurableJoint gen_to_be_invoked = (UnityEngine.ConfigurableJoint)translator.FastGetCSObj(L, 1); - UnityEngine.SoftJointLimitSpring gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.angularXLimitSpring = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_angularYZLimitSpring(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ConfigurableJoint gen_to_be_invoked = (UnityEngine.ConfigurableJoint)translator.FastGetCSObj(L, 1); - UnityEngine.SoftJointLimitSpring gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.angularYZLimitSpring = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_linearLimit(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ConfigurableJoint gen_to_be_invoked = (UnityEngine.ConfigurableJoint)translator.FastGetCSObj(L, 1); - UnityEngine.SoftJointLimit gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.linearLimit = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_lowAngularXLimit(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ConfigurableJoint gen_to_be_invoked = (UnityEngine.ConfigurableJoint)translator.FastGetCSObj(L, 1); - UnityEngine.SoftJointLimit gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.lowAngularXLimit = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_highAngularXLimit(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ConfigurableJoint gen_to_be_invoked = (UnityEngine.ConfigurableJoint)translator.FastGetCSObj(L, 1); - UnityEngine.SoftJointLimit gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.highAngularXLimit = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_angularYLimit(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ConfigurableJoint gen_to_be_invoked = (UnityEngine.ConfigurableJoint)translator.FastGetCSObj(L, 1); - UnityEngine.SoftJointLimit gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.angularYLimit = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_angularZLimit(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ConfigurableJoint gen_to_be_invoked = (UnityEngine.ConfigurableJoint)translator.FastGetCSObj(L, 1); - UnityEngine.SoftJointLimit gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.angularZLimit = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_targetPosition(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ConfigurableJoint gen_to_be_invoked = (UnityEngine.ConfigurableJoint)translator.FastGetCSObj(L, 1); - UnityEngine.Vector3 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.targetPosition = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_targetVelocity(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ConfigurableJoint gen_to_be_invoked = (UnityEngine.ConfigurableJoint)translator.FastGetCSObj(L, 1); - UnityEngine.Vector3 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.targetVelocity = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_xDrive(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ConfigurableJoint gen_to_be_invoked = (UnityEngine.ConfigurableJoint)translator.FastGetCSObj(L, 1); - UnityEngine.JointDrive gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.xDrive = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_yDrive(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ConfigurableJoint gen_to_be_invoked = (UnityEngine.ConfigurableJoint)translator.FastGetCSObj(L, 1); - UnityEngine.JointDrive gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.yDrive = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_zDrive(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ConfigurableJoint gen_to_be_invoked = (UnityEngine.ConfigurableJoint)translator.FastGetCSObj(L, 1); - UnityEngine.JointDrive gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.zDrive = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_targetRotation(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ConfigurableJoint gen_to_be_invoked = (UnityEngine.ConfigurableJoint)translator.FastGetCSObj(L, 1); - UnityEngine.Quaternion gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.targetRotation = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_targetAngularVelocity(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ConfigurableJoint gen_to_be_invoked = (UnityEngine.ConfigurableJoint)translator.FastGetCSObj(L, 1); - UnityEngine.Vector3 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.targetAngularVelocity = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_rotationDriveMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ConfigurableJoint gen_to_be_invoked = (UnityEngine.ConfigurableJoint)translator.FastGetCSObj(L, 1); - UnityEngine.RotationDriveMode gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.rotationDriveMode = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_angularXDrive(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ConfigurableJoint gen_to_be_invoked = (UnityEngine.ConfigurableJoint)translator.FastGetCSObj(L, 1); - UnityEngine.JointDrive gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.angularXDrive = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_angularYZDrive(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ConfigurableJoint gen_to_be_invoked = (UnityEngine.ConfigurableJoint)translator.FastGetCSObj(L, 1); - UnityEngine.JointDrive gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.angularYZDrive = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_slerpDrive(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ConfigurableJoint gen_to_be_invoked = (UnityEngine.ConfigurableJoint)translator.FastGetCSObj(L, 1); - UnityEngine.JointDrive gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.slerpDrive = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_projectionMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ConfigurableJoint gen_to_be_invoked = (UnityEngine.ConfigurableJoint)translator.FastGetCSObj(L, 1); - UnityEngine.JointProjectionMode gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.projectionMode = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_projectionDistance(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ConfigurableJoint gen_to_be_invoked = (UnityEngine.ConfigurableJoint)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.projectionDistance = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_projectionAngle(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ConfigurableJoint gen_to_be_invoked = (UnityEngine.ConfigurableJoint)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.projectionAngle = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_configuredInWorldSpace(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ConfigurableJoint gen_to_be_invoked = (UnityEngine.ConfigurableJoint)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.configuredInWorldSpace = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_swapBodies(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ConfigurableJoint gen_to_be_invoked = (UnityEngine.ConfigurableJoint)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.swapBodies = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_ConstantForce2DWrap.cs b/Assets/XLua/Gen/UnityEngine_ConstantForce2DWrap.cs deleted file mode 100644 index ea57370c7..000000000 --- a/Assets/XLua/Gen/UnityEngine_ConstantForce2DWrap.cs +++ /dev/null @@ -1,179 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineConstantForce2DWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.ConstantForce2D); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 3, 3); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "force", _g_get_force); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "relativeForce", _g_get_relativeForce); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "torque", _g_get_torque); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "force", _s_set_force); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "relativeForce", _s_set_relativeForce); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "torque", _s_set_torque); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.ConstantForce2D(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.ConstantForce2D constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_force(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ConstantForce2D gen_to_be_invoked = (UnityEngine.ConstantForce2D)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector2(L, gen_to_be_invoked.force); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_relativeForce(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ConstantForce2D gen_to_be_invoked = (UnityEngine.ConstantForce2D)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector2(L, gen_to_be_invoked.relativeForce); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_torque(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ConstantForce2D gen_to_be_invoked = (UnityEngine.ConstantForce2D)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.torque); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_force(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ConstantForce2D gen_to_be_invoked = (UnityEngine.ConstantForce2D)translator.FastGetCSObj(L, 1); - UnityEngine.Vector2 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.force = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_relativeForce(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ConstantForce2D gen_to_be_invoked = (UnityEngine.ConstantForce2D)translator.FastGetCSObj(L, 1); - UnityEngine.Vector2 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.relativeForce = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_torque(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ConstantForce2D gen_to_be_invoked = (UnityEngine.ConstantForce2D)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.torque = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_ConstantForceWrap.cs b/Assets/XLua/Gen/UnityEngine_ConstantForceWrap.cs deleted file mode 100644 index aadee4925..000000000 --- a/Assets/XLua/Gen/UnityEngine_ConstantForceWrap.cs +++ /dev/null @@ -1,212 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineConstantForceWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.ConstantForce); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 4, 4); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "force", _g_get_force); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "relativeForce", _g_get_relativeForce); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "torque", _g_get_torque); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "relativeTorque", _g_get_relativeTorque); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "force", _s_set_force); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "relativeForce", _s_set_relativeForce); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "torque", _s_set_torque); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "relativeTorque", _s_set_relativeTorque); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.ConstantForce(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.ConstantForce constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_force(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ConstantForce gen_to_be_invoked = (UnityEngine.ConstantForce)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.force); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_relativeForce(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ConstantForce gen_to_be_invoked = (UnityEngine.ConstantForce)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.relativeForce); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_torque(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ConstantForce gen_to_be_invoked = (UnityEngine.ConstantForce)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.torque); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_relativeTorque(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ConstantForce gen_to_be_invoked = (UnityEngine.ConstantForce)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.relativeTorque); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_force(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ConstantForce gen_to_be_invoked = (UnityEngine.ConstantForce)translator.FastGetCSObj(L, 1); - UnityEngine.Vector3 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.force = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_relativeForce(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ConstantForce gen_to_be_invoked = (UnityEngine.ConstantForce)translator.FastGetCSObj(L, 1); - UnityEngine.Vector3 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.relativeForce = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_torque(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ConstantForce gen_to_be_invoked = (UnityEngine.ConstantForce)translator.FastGetCSObj(L, 1); - UnityEngine.Vector3 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.torque = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_relativeTorque(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ConstantForce gen_to_be_invoked = (UnityEngine.ConstantForce)translator.FastGetCSObj(L, 1); - UnityEngine.Vector3 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.relativeTorque = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_ContactFilter2DWrap.cs b/Assets/XLua/Gen/UnityEngine_ContactFilter2DWrap.cs deleted file mode 100644 index 8531ca57e..000000000 --- a/Assets/XLua/Gen/UnityEngine_ContactFilter2DWrap.cs +++ /dev/null @@ -1,823 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineContactFilter2DWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.ContactFilter2D); - Utils.BeginObjectRegister(type, L, translator, 0, 11, 12, 11); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "NoFilter", _m_NoFilter); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ClearLayerMask", _m_ClearLayerMask); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetLayerMask", _m_SetLayerMask); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ClearDepth", _m_ClearDepth); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetDepth", _m_SetDepth); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ClearNormalAngle", _m_ClearNormalAngle); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetNormalAngle", _m_SetNormalAngle); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsFilteringTrigger", _m_IsFilteringTrigger); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsFilteringLayerMask", _m_IsFilteringLayerMask); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsFilteringDepth", _m_IsFilteringDepth); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsFilteringNormalAngle", _m_IsFilteringNormalAngle); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "isFiltering", _g_get_isFiltering); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "useTriggers", _g_get_useTriggers); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "useLayerMask", _g_get_useLayerMask); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "useDepth", _g_get_useDepth); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "useOutsideDepth", _g_get_useOutsideDepth); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "useNormalAngle", _g_get_useNormalAngle); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "useOutsideNormalAngle", _g_get_useOutsideNormalAngle); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "layerMask", _g_get_layerMask); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "minDepth", _g_get_minDepth); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "maxDepth", _g_get_maxDepth); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "minNormalAngle", _g_get_minNormalAngle); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "maxNormalAngle", _g_get_maxNormalAngle); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "useTriggers", _s_set_useTriggers); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "useLayerMask", _s_set_useLayerMask); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "useDepth", _s_set_useDepth); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "useOutsideDepth", _s_set_useOutsideDepth); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "useNormalAngle", _s_set_useNormalAngle); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "useOutsideNormalAngle", _s_set_useOutsideNormalAngle); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "layerMask", _s_set_layerMask); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "minDepth", _s_set_minDepth); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "maxDepth", _s_set_maxDepth); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "minNormalAngle", _s_set_minNormalAngle); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "maxNormalAngle", _s_set_maxNormalAngle); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 2, 0, 0); - - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "NormalAngleUpperLimit", UnityEngine.ContactFilter2D.NormalAngleUpperLimit); - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(UnityEngine.ContactFilter2D)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.ContactFilter2D constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_NoFilter(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ContactFilter2D gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - - var gen_ret = gen_to_be_invoked.NoFilter( ); - translator.Push(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ClearLayerMask(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ContactFilter2D gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - - gen_to_be_invoked.ClearLayerMask( ); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetLayerMask(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ContactFilter2D gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - UnityEngine.LayerMask _layerMask;translator.Get(L, 2, out _layerMask); - - gen_to_be_invoked.SetLayerMask( _layerMask ); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ClearDepth(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ContactFilter2D gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - - gen_to_be_invoked.ClearDepth( ); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetDepth(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ContactFilter2D gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - float _minDepth = (float)LuaAPI.lua_tonumber(L, 2); - float _maxDepth = (float)LuaAPI.lua_tonumber(L, 3); - - gen_to_be_invoked.SetDepth( _minDepth, _maxDepth ); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ClearNormalAngle(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ContactFilter2D gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - - gen_to_be_invoked.ClearNormalAngle( ); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetNormalAngle(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ContactFilter2D gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - float _minNormalAngle = (float)LuaAPI.lua_tonumber(L, 2); - float _maxNormalAngle = (float)LuaAPI.lua_tonumber(L, 3); - - gen_to_be_invoked.SetNormalAngle( _minNormalAngle, _maxNormalAngle ); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_IsFilteringTrigger(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ContactFilter2D gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - UnityEngine.Collider2D _collider = (UnityEngine.Collider2D)translator.GetObject(L, 2, typeof(UnityEngine.Collider2D)); - - var gen_ret = gen_to_be_invoked.IsFilteringTrigger( _collider ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_IsFilteringLayerMask(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ContactFilter2D gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - UnityEngine.GameObject _obj = (UnityEngine.GameObject)translator.GetObject(L, 2, typeof(UnityEngine.GameObject)); - - var gen_ret = gen_to_be_invoked.IsFilteringLayerMask( _obj ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_IsFilteringDepth(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ContactFilter2D gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - UnityEngine.GameObject _obj = (UnityEngine.GameObject)translator.GetObject(L, 2, typeof(UnityEngine.GameObject)); - - var gen_ret = gen_to_be_invoked.IsFilteringDepth( _obj ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_IsFilteringNormalAngle(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ContactFilter2D gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - float _angle = (float)LuaAPI.lua_tonumber(L, 2); - - var gen_ret = gen_to_be_invoked.IsFilteringNormalAngle( _angle ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.Vector2 _normal;translator.Get(L, 2, out _normal); - - var gen_ret = gen_to_be_invoked.IsFilteringNormalAngle( _normal ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.ContactFilter2D.IsFilteringNormalAngle!"); - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_isFiltering(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ContactFilter2D gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.isFiltering); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_useTriggers(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ContactFilter2D gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.useTriggers); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_useLayerMask(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ContactFilter2D gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.useLayerMask); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_useDepth(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ContactFilter2D gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.useDepth); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_useOutsideDepth(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ContactFilter2D gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.useOutsideDepth); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_useNormalAngle(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ContactFilter2D gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.useNormalAngle); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_useOutsideNormalAngle(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ContactFilter2D gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.useOutsideNormalAngle); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_layerMask(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ContactFilter2D gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.layerMask); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_minDepth(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ContactFilter2D gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.minDepth); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_maxDepth(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ContactFilter2D gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.maxDepth); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_minNormalAngle(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ContactFilter2D gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.minNormalAngle); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_maxNormalAngle(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ContactFilter2D gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.maxNormalAngle); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_useTriggers(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ContactFilter2D gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.useTriggers = LuaAPI.lua_toboolean(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_useLayerMask(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ContactFilter2D gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.useLayerMask = LuaAPI.lua_toboolean(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_useDepth(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ContactFilter2D gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.useDepth = LuaAPI.lua_toboolean(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_useOutsideDepth(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ContactFilter2D gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.useOutsideDepth = LuaAPI.lua_toboolean(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_useNormalAngle(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ContactFilter2D gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.useNormalAngle = LuaAPI.lua_toboolean(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_useOutsideNormalAngle(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ContactFilter2D gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.useOutsideNormalAngle = LuaAPI.lua_toboolean(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_layerMask(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ContactFilter2D gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.LayerMask gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.layerMask = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_minDepth(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ContactFilter2D gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.minDepth = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_maxDepth(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ContactFilter2D gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.maxDepth = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_minNormalAngle(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ContactFilter2D gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.minNormalAngle = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_maxNormalAngle(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ContactFilter2D gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.maxNormalAngle = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_ContactPoint2DWrap.cs b/Assets/XLua/Gen/UnityEngine_ContactPoint2DWrap.cs deleted file mode 100644 index 85680af70..000000000 --- a/Assets/XLua/Gen/UnityEngine_ContactPoint2DWrap.cs +++ /dev/null @@ -1,247 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineContactPoint2DWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.ContactPoint2D); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 11, 0); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "point", _g_get_point); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "normal", _g_get_normal); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "separation", _g_get_separation); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "normalImpulse", _g_get_normalImpulse); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "tangentImpulse", _g_get_tangentImpulse); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "relativeVelocity", _g_get_relativeVelocity); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "collider", _g_get_collider); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "otherCollider", _g_get_otherCollider); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "rigidbody", _g_get_rigidbody); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "otherRigidbody", _g_get_otherRigidbody); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "enabled", _g_get_enabled); - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(UnityEngine.ContactPoint2D)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.ContactPoint2D constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_point(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ContactPoint2D gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineVector2(L, gen_to_be_invoked.point); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_normal(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ContactPoint2D gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineVector2(L, gen_to_be_invoked.normal); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_separation(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ContactPoint2D gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.separation); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_normalImpulse(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ContactPoint2D gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.normalImpulse); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_tangentImpulse(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ContactPoint2D gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.tangentImpulse); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_relativeVelocity(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ContactPoint2D gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineVector2(L, gen_to_be_invoked.relativeVelocity); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_collider(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ContactPoint2D gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.collider); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_otherCollider(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ContactPoint2D gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.otherCollider); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_rigidbody(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ContactPoint2D gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.rigidbody); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_otherRigidbody(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ContactPoint2D gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.otherRigidbody); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_enabled(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ContactPoint2D gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.enabled); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_ContactPointWrap.cs b/Assets/XLua/Gen/UnityEngine_ContactPointWrap.cs deleted file mode 100644 index 2f34b9c4b..000000000 --- a/Assets/XLua/Gen/UnityEngine_ContactPointWrap.cs +++ /dev/null @@ -1,157 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineContactPointWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.ContactPoint); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 5, 0); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "point", _g_get_point); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "normal", _g_get_normal); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "thisCollider", _g_get_thisCollider); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "otherCollider", _g_get_otherCollider); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "separation", _g_get_separation); - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(UnityEngine.ContactPoint)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.ContactPoint constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_point(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ContactPoint gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.point); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_normal(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ContactPoint gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.normal); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_thisCollider(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ContactPoint gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.thisCollider); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_otherCollider(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ContactPoint gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.otherCollider); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_separation(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ContactPoint gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.separation); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_ControllerColliderHitWrap.cs b/Assets/XLua/Gen/UnityEngine_ControllerColliderHitWrap.cs deleted file mode 100644 index 01c9cd6b5..000000000 --- a/Assets/XLua/Gen/UnityEngine_ControllerColliderHitWrap.cs +++ /dev/null @@ -1,219 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineControllerColliderHitWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.ControllerColliderHit); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 9, 0); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "controller", _g_get_controller); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "collider", _g_get_collider); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "rigidbody", _g_get_rigidbody); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "gameObject", _g_get_gameObject); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "transform", _g_get_transform); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "point", _g_get_point); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "normal", _g_get_normal); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "moveDirection", _g_get_moveDirection); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "moveLength", _g_get_moveLength); - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.ControllerColliderHit(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.ControllerColliderHit constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_controller(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ControllerColliderHit gen_to_be_invoked = (UnityEngine.ControllerColliderHit)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.controller); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_collider(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ControllerColliderHit gen_to_be_invoked = (UnityEngine.ControllerColliderHit)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.collider); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_rigidbody(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ControllerColliderHit gen_to_be_invoked = (UnityEngine.ControllerColliderHit)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.rigidbody); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_gameObject(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ControllerColliderHit gen_to_be_invoked = (UnityEngine.ControllerColliderHit)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.gameObject); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_transform(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ControllerColliderHit gen_to_be_invoked = (UnityEngine.ControllerColliderHit)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.transform); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_point(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ControllerColliderHit gen_to_be_invoked = (UnityEngine.ControllerColliderHit)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.point); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_normal(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ControllerColliderHit gen_to_be_invoked = (UnityEngine.ControllerColliderHit)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.normal); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_moveDirection(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ControllerColliderHit gen_to_be_invoked = (UnityEngine.ControllerColliderHit)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.moveDirection); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_moveLength(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ControllerColliderHit gen_to_be_invoked = (UnityEngine.ControllerColliderHit)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.moveLength); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_CoroutineWrap.cs b/Assets/XLua/Gen/UnityEngine_CoroutineWrap.cs deleted file mode 100644 index 932cb2b79..000000000 --- a/Assets/XLua/Gen/UnityEngine_CoroutineWrap.cs +++ /dev/null @@ -1,67 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineCoroutineWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.Coroutine); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "UnityEngine.Coroutine does not have a constructor!"); - } - - - - - - - - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_CrashReportWrap.cs b/Assets/XLua/Gen/UnityEngine_CrashReportWrap.cs deleted file mode 100644 index fb7b6bb16..000000000 --- a/Assets/XLua/Gen/UnityEngine_CrashReportWrap.cs +++ /dev/null @@ -1,175 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineCrashReportWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.CrashReport); - Utils.BeginObjectRegister(type, L, translator, 0, 1, 2, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Remove", _m_Remove); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "time", _g_get_time); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "text", _g_get_text); - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 2, 2, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "RemoveAll", _m_RemoveAll_xlua_st_); - - - - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "reports", _g_get_reports); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "lastReport", _g_get_lastReport); - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "UnityEngine.CrashReport does not have a constructor!"); - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RemoveAll_xlua_st_(RealStatePtr L) - { - try { - - - - - { - - UnityEngine.CrashReport.RemoveAll( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Remove(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.CrashReport gen_to_be_invoked = (UnityEngine.CrashReport)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Remove( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_reports(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, UnityEngine.CrashReport.reports); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_lastReport(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, UnityEngine.CrashReport.lastReport); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_time(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CrashReport gen_to_be_invoked = (UnityEngine.CrashReport)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.time); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_text(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CrashReport gen_to_be_invoked = (UnityEngine.CrashReport)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.text); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_CubemapArrayWrap.cs b/Assets/XLua/Gen/UnityEngine_CubemapArrayWrap.cs deleted file mode 100644 index 70936169a..000000000 --- a/Assets/XLua/Gen/UnityEngine_CubemapArrayWrap.cs +++ /dev/null @@ -1,441 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineCubemapArrayWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.CubemapArray); - Utils.BeginObjectRegister(type, L, translator, 0, 5, 3, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetPixels", _m_GetPixels); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetPixels32", _m_GetPixels32); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetPixels", _m_SetPixels); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetPixels32", _m_SetPixels32); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Apply", _m_Apply); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "cubemapCount", _g_get_cubemapCount); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "format", _g_get_format); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "isReadable", _g_get_isReadable); - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 5 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && translator.Assignable(L, 4) && translator.Assignable(L, 5)) - { - int _width = LuaAPI.xlua_tointeger(L, 2); - int _cubemapCount = LuaAPI.xlua_tointeger(L, 3); - UnityEngine.Experimental.Rendering.DefaultFormat _format;translator.Get(L, 4, out _format); - UnityEngine.Experimental.Rendering.TextureCreationFlags _flags;translator.Get(L, 5, out _flags); - - var gen_ret = new UnityEngine.CubemapArray(_width, _cubemapCount, _format, _flags); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 5 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && translator.Assignable(L, 4) && translator.Assignable(L, 5)) - { - int _width = LuaAPI.xlua_tointeger(L, 2); - int _cubemapCount = LuaAPI.xlua_tointeger(L, 3); - UnityEngine.Experimental.Rendering.GraphicsFormat _format;translator.Get(L, 4, out _format); - UnityEngine.Experimental.Rendering.TextureCreationFlags _flags;translator.Get(L, 5, out _flags); - - var gen_ret = new UnityEngine.CubemapArray(_width, _cubemapCount, _format, _flags); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 6 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && translator.Assignable(L, 4) && translator.Assignable(L, 5) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)) - { - int _width = LuaAPI.xlua_tointeger(L, 2); - int _cubemapCount = LuaAPI.xlua_tointeger(L, 3); - UnityEngine.Experimental.Rendering.GraphicsFormat _format;translator.Get(L, 4, out _format); - UnityEngine.Experimental.Rendering.TextureCreationFlags _flags;translator.Get(L, 5, out _flags); - int _mipCount = LuaAPI.xlua_tointeger(L, 6); - - var gen_ret = new UnityEngine.CubemapArray(_width, _cubemapCount, _format, _flags, _mipCount); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 6 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && translator.Assignable(L, 4) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 6)) - { - int _width = LuaAPI.xlua_tointeger(L, 2); - int _cubemapCount = LuaAPI.xlua_tointeger(L, 3); - UnityEngine.TextureFormat _textureFormat;translator.Get(L, 4, out _textureFormat); - int _mipCount = LuaAPI.xlua_tointeger(L, 5); - bool _linear = LuaAPI.lua_toboolean(L, 6); - - var gen_ret = new UnityEngine.CubemapArray(_width, _cubemapCount, _textureFormat, _mipCount, _linear); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 6 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && translator.Assignable(L, 4) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 5) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 6)) - { - int _width = LuaAPI.xlua_tointeger(L, 2); - int _cubemapCount = LuaAPI.xlua_tointeger(L, 3); - UnityEngine.TextureFormat _textureFormat;translator.Get(L, 4, out _textureFormat); - bool _mipChain = LuaAPI.lua_toboolean(L, 5); - bool _linear = LuaAPI.lua_toboolean(L, 6); - - var gen_ret = new UnityEngine.CubemapArray(_width, _cubemapCount, _textureFormat, _mipChain, _linear); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 5 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && translator.Assignable(L, 4) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 5)) - { - int _width = LuaAPI.xlua_tointeger(L, 2); - int _cubemapCount = LuaAPI.xlua_tointeger(L, 3); - UnityEngine.TextureFormat _textureFormat;translator.Get(L, 4, out _textureFormat); - bool _mipChain = LuaAPI.lua_toboolean(L, 5); - - var gen_ret = new UnityEngine.CubemapArray(_width, _cubemapCount, _textureFormat, _mipChain); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.CubemapArray constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetPixels(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.CubemapArray gen_to_be_invoked = (UnityEngine.CubemapArray)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - UnityEngine.CubemapFace _face;translator.Get(L, 2, out _face); - int _arrayElement = LuaAPI.xlua_tointeger(L, 3); - - var gen_ret = gen_to_be_invoked.GetPixels( _face, _arrayElement ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - UnityEngine.CubemapFace _face;translator.Get(L, 2, out _face); - int _arrayElement = LuaAPI.xlua_tointeger(L, 3); - int _miplevel = LuaAPI.xlua_tointeger(L, 4); - - var gen_ret = gen_to_be_invoked.GetPixels( _face, _arrayElement, _miplevel ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.CubemapArray.GetPixels!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetPixels32(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.CubemapArray gen_to_be_invoked = (UnityEngine.CubemapArray)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - UnityEngine.CubemapFace _face;translator.Get(L, 2, out _face); - int _arrayElement = LuaAPI.xlua_tointeger(L, 3); - - var gen_ret = gen_to_be_invoked.GetPixels32( _face, _arrayElement ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - UnityEngine.CubemapFace _face;translator.Get(L, 2, out _face); - int _arrayElement = LuaAPI.xlua_tointeger(L, 3); - int _miplevel = LuaAPI.xlua_tointeger(L, 4); - - var gen_ret = gen_to_be_invoked.GetPixels32( _face, _arrayElement, _miplevel ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.CubemapArray.GetPixels32!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetPixels(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.CubemapArray gen_to_be_invoked = (UnityEngine.CubemapArray)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 4&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - UnityEngine.Color[] _colors = (UnityEngine.Color[])translator.GetObject(L, 2, typeof(UnityEngine.Color[])); - UnityEngine.CubemapFace _face;translator.Get(L, 3, out _face); - int _arrayElement = LuaAPI.xlua_tointeger(L, 4); - - gen_to_be_invoked.SetPixels( _colors, _face, _arrayElement ); - - - - return 0; - } - if(gen_param_count == 5&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - UnityEngine.Color[] _colors = (UnityEngine.Color[])translator.GetObject(L, 2, typeof(UnityEngine.Color[])); - UnityEngine.CubemapFace _face;translator.Get(L, 3, out _face); - int _arrayElement = LuaAPI.xlua_tointeger(L, 4); - int _miplevel = LuaAPI.xlua_tointeger(L, 5); - - gen_to_be_invoked.SetPixels( _colors, _face, _arrayElement, _miplevel ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.CubemapArray.SetPixels!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetPixels32(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.CubemapArray gen_to_be_invoked = (UnityEngine.CubemapArray)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 4&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - UnityEngine.Color32[] _colors = (UnityEngine.Color32[])translator.GetObject(L, 2, typeof(UnityEngine.Color32[])); - UnityEngine.CubemapFace _face;translator.Get(L, 3, out _face); - int _arrayElement = LuaAPI.xlua_tointeger(L, 4); - - gen_to_be_invoked.SetPixels32( _colors, _face, _arrayElement ); - - - - return 0; - } - if(gen_param_count == 5&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - UnityEngine.Color32[] _colors = (UnityEngine.Color32[])translator.GetObject(L, 2, typeof(UnityEngine.Color32[])); - UnityEngine.CubemapFace _face;translator.Get(L, 3, out _face); - int _arrayElement = LuaAPI.xlua_tointeger(L, 4); - int _miplevel = LuaAPI.xlua_tointeger(L, 5); - - gen_to_be_invoked.SetPixels32( _colors, _face, _arrayElement, _miplevel ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.CubemapArray.SetPixels32!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Apply(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.CubemapArray gen_to_be_invoked = (UnityEngine.CubemapArray)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - gen_to_be_invoked.Apply( ); - - - - return 0; - } - if(gen_param_count == 2&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)) - { - bool _updateMipmaps = LuaAPI.lua_toboolean(L, 2); - - gen_to_be_invoked.Apply( _updateMipmaps ); - - - - return 0; - } - if(gen_param_count == 3&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) - { - bool _updateMipmaps = LuaAPI.lua_toboolean(L, 2); - bool _makeNoLongerReadable = LuaAPI.lua_toboolean(L, 3); - - gen_to_be_invoked.Apply( _updateMipmaps, _makeNoLongerReadable ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.CubemapArray.Apply!"); - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_cubemapCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CubemapArray gen_to_be_invoked = (UnityEngine.CubemapArray)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.cubemapCount); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_format(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CubemapArray gen_to_be_invoked = (UnityEngine.CubemapArray)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.format); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_isReadable(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CubemapArray gen_to_be_invoked = (UnityEngine.CubemapArray)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.isReadable); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_CubemapWrap.cs b/Assets/XLua/Gen/UnityEngine_CubemapWrap.cs deleted file mode 100644 index 9d1a2589d..000000000 --- a/Assets/XLua/Gen/UnityEngine_CubemapWrap.cs +++ /dev/null @@ -1,636 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineCubemapWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.Cubemap); - Utils.BeginObjectRegister(type, L, translator, 0, 9, 8, 1); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "UpdateExternalTexture", _m_UpdateExternalTexture); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SmoothEdges", _m_SmoothEdges); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetPixels", _m_GetPixels); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetPixels", _m_SetPixels); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ClearRequestedMipmapLevel", _m_ClearRequestedMipmapLevel); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsRequestedMipmapLevelLoaded", _m_IsRequestedMipmapLevelLoaded); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetPixel", _m_SetPixel); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetPixel", _m_GetPixel); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Apply", _m_Apply); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "format", _g_get_format); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "isReadable", _g_get_isReadable); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "streamingMipmaps", _g_get_streamingMipmaps); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "streamingMipmapsPriority", _g_get_streamingMipmapsPriority); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "requestedMipmapLevel", _g_get_requestedMipmapLevel); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "desiredMipmapLevel", _g_get_desiredMipmapLevel); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "loadingMipmapLevel", _g_get_loadingMipmapLevel); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "loadedMipmapLevel", _g_get_loadedMipmapLevel); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "requestedMipmapLevel", _s_set_requestedMipmapLevel); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 2, 0, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "CreateExternalTexture", _m_CreateExternalTexture_xlua_st_); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 4 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && translator.Assignable(L, 3) && translator.Assignable(L, 4)) - { - int _width = LuaAPI.xlua_tointeger(L, 2); - UnityEngine.Experimental.Rendering.DefaultFormat _format;translator.Get(L, 3, out _format); - UnityEngine.Experimental.Rendering.TextureCreationFlags _flags;translator.Get(L, 4, out _flags); - - var gen_ret = new UnityEngine.Cubemap(_width, _format, _flags); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 4 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && translator.Assignable(L, 3) && translator.Assignable(L, 4)) - { - int _width = LuaAPI.xlua_tointeger(L, 2); - UnityEngine.Experimental.Rendering.GraphicsFormat _format;translator.Get(L, 3, out _format); - UnityEngine.Experimental.Rendering.TextureCreationFlags _flags;translator.Get(L, 4, out _flags); - - var gen_ret = new UnityEngine.Cubemap(_width, _format, _flags); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 4 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && translator.Assignable(L, 3) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - int _width = LuaAPI.xlua_tointeger(L, 2); - UnityEngine.TextureFormat _format;translator.Get(L, 3, out _format); - int _mipCount = LuaAPI.xlua_tointeger(L, 4); - - var gen_ret = new UnityEngine.Cubemap(_width, _format, _mipCount); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 5 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && translator.Assignable(L, 3) && translator.Assignable(L, 4) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - int _width = LuaAPI.xlua_tointeger(L, 2); - UnityEngine.Experimental.Rendering.GraphicsFormat _format;translator.Get(L, 3, out _format); - UnityEngine.Experimental.Rendering.TextureCreationFlags _flags;translator.Get(L, 4, out _flags); - int _mipCount = LuaAPI.xlua_tointeger(L, 5); - - var gen_ret = new UnityEngine.Cubemap(_width, _format, _flags, _mipCount); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 4 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && translator.Assignable(L, 3) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 4)) - { - int _width = LuaAPI.xlua_tointeger(L, 2); - UnityEngine.TextureFormat _textureFormat;translator.Get(L, 3, out _textureFormat); - bool _mipChain = LuaAPI.lua_toboolean(L, 4); - - var gen_ret = new UnityEngine.Cubemap(_width, _textureFormat, _mipChain); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Cubemap constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_UpdateExternalTexture(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Cubemap gen_to_be_invoked = (UnityEngine.Cubemap)translator.FastGetCSObj(L, 1); - - - - { - System.IntPtr _nativeTexture = LuaAPI.lua_touserdata(L, 2); - - gen_to_be_invoked.UpdateExternalTexture( _nativeTexture ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SmoothEdges(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Cubemap gen_to_be_invoked = (UnityEngine.Cubemap)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - gen_to_be_invoked.SmoothEdges( ); - - - - return 0; - } - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - int _smoothRegionWidthInPixels = LuaAPI.xlua_tointeger(L, 2); - - gen_to_be_invoked.SmoothEdges( _smoothRegionWidthInPixels ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Cubemap.SmoothEdges!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetPixels(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Cubemap gen_to_be_invoked = (UnityEngine.Cubemap)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.CubemapFace _face;translator.Get(L, 2, out _face); - - var gen_ret = gen_to_be_invoked.GetPixels( _face ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - UnityEngine.CubemapFace _face;translator.Get(L, 2, out _face); - int _miplevel = LuaAPI.xlua_tointeger(L, 3); - - var gen_ret = gen_to_be_invoked.GetPixels( _face, _miplevel ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Cubemap.GetPixels!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetPixels(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Cubemap gen_to_be_invoked = (UnityEngine.Cubemap)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)) - { - UnityEngine.Color[] _colors = (UnityEngine.Color[])translator.GetObject(L, 2, typeof(UnityEngine.Color[])); - UnityEngine.CubemapFace _face;translator.Get(L, 3, out _face); - - gen_to_be_invoked.SetPixels( _colors, _face ); - - - - return 0; - } - if(gen_param_count == 4&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - UnityEngine.Color[] _colors = (UnityEngine.Color[])translator.GetObject(L, 2, typeof(UnityEngine.Color[])); - UnityEngine.CubemapFace _face;translator.Get(L, 3, out _face); - int _miplevel = LuaAPI.xlua_tointeger(L, 4); - - gen_to_be_invoked.SetPixels( _colors, _face, _miplevel ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Cubemap.SetPixels!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ClearRequestedMipmapLevel(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Cubemap gen_to_be_invoked = (UnityEngine.Cubemap)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.ClearRequestedMipmapLevel( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_IsRequestedMipmapLevelLoaded(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Cubemap gen_to_be_invoked = (UnityEngine.Cubemap)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.IsRequestedMipmapLevelLoaded( ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CreateExternalTexture_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - int _width = LuaAPI.xlua_tointeger(L, 1); - UnityEngine.TextureFormat _format;translator.Get(L, 2, out _format); - bool _mipmap = LuaAPI.lua_toboolean(L, 3); - System.IntPtr _nativeTex = LuaAPI.lua_touserdata(L, 4); - - var gen_ret = UnityEngine.Cubemap.CreateExternalTexture( _width, _format, _mipmap, _nativeTex ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetPixel(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Cubemap gen_to_be_invoked = (UnityEngine.Cubemap)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.CubemapFace _face;translator.Get(L, 2, out _face); - int _x = LuaAPI.xlua_tointeger(L, 3); - int _y = LuaAPI.xlua_tointeger(L, 4); - UnityEngine.Color _color;translator.Get(L, 5, out _color); - - gen_to_be_invoked.SetPixel( _face, _x, _y, _color ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetPixel(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Cubemap gen_to_be_invoked = (UnityEngine.Cubemap)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.CubemapFace _face;translator.Get(L, 2, out _face); - int _x = LuaAPI.xlua_tointeger(L, 3); - int _y = LuaAPI.xlua_tointeger(L, 4); - - var gen_ret = gen_to_be_invoked.GetPixel( _face, _x, _y ); - translator.PushUnityEngineColor(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Apply(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Cubemap gen_to_be_invoked = (UnityEngine.Cubemap)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - gen_to_be_invoked.Apply( ); - - - - return 0; - } - if(gen_param_count == 2&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)) - { - bool _updateMipmaps = LuaAPI.lua_toboolean(L, 2); - - gen_to_be_invoked.Apply( _updateMipmaps ); - - - - return 0; - } - if(gen_param_count == 3&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) - { - bool _updateMipmaps = LuaAPI.lua_toboolean(L, 2); - bool _makeNoLongerReadable = LuaAPI.lua_toboolean(L, 3); - - gen_to_be_invoked.Apply( _updateMipmaps, _makeNoLongerReadable ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Cubemap.Apply!"); - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_format(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Cubemap gen_to_be_invoked = (UnityEngine.Cubemap)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.format); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_isReadable(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Cubemap gen_to_be_invoked = (UnityEngine.Cubemap)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.isReadable); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_streamingMipmaps(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Cubemap gen_to_be_invoked = (UnityEngine.Cubemap)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.streamingMipmaps); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_streamingMipmapsPriority(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Cubemap gen_to_be_invoked = (UnityEngine.Cubemap)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.streamingMipmapsPriority); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_requestedMipmapLevel(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Cubemap gen_to_be_invoked = (UnityEngine.Cubemap)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.requestedMipmapLevel); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_desiredMipmapLevel(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Cubemap gen_to_be_invoked = (UnityEngine.Cubemap)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.desiredMipmapLevel); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_loadingMipmapLevel(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Cubemap gen_to_be_invoked = (UnityEngine.Cubemap)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.loadingMipmapLevel); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_loadedMipmapLevel(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Cubemap gen_to_be_invoked = (UnityEngine.Cubemap)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.loadedMipmapLevel); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_requestedMipmapLevel(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Cubemap gen_to_be_invoked = (UnityEngine.Cubemap)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.requestedMipmapLevel = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_CullingGroupEventWrap.cs b/Assets/XLua/Gen/UnityEngine_CullingGroupEventWrap.cs deleted file mode 100644 index b30076f38..000000000 --- a/Assets/XLua/Gen/UnityEngine_CullingGroupEventWrap.cs +++ /dev/null @@ -1,187 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineCullingGroupEventWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.CullingGroupEvent); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 7, 0); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "index", _g_get_index); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "isVisible", _g_get_isVisible); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "wasVisible", _g_get_wasVisible); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "hasBecomeVisible", _g_get_hasBecomeVisible); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "hasBecomeInvisible", _g_get_hasBecomeInvisible); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "currentDistance", _g_get_currentDistance); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "previousDistance", _g_get_previousDistance); - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(UnityEngine.CullingGroupEvent)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.CullingGroupEvent constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_index(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CullingGroupEvent gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.index); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_isVisible(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CullingGroupEvent gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.isVisible); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_wasVisible(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CullingGroupEvent gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.wasVisible); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_hasBecomeVisible(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CullingGroupEvent gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.hasBecomeVisible); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_hasBecomeInvisible(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CullingGroupEvent gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.hasBecomeInvisible); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_currentDistance(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CullingGroupEvent gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.currentDistance); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_previousDistance(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CullingGroupEvent gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.previousDistance); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_CullingGroupWrap.cs b/Assets/XLua/Gen/UnityEngine_CullingGroupWrap.cs deleted file mode 100644 index e0ce8a581..000000000 --- a/Assets/XLua/Gen/UnityEngine_CullingGroupWrap.cs +++ /dev/null @@ -1,487 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineCullingGroupWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.CullingGroup); - Utils.BeginObjectRegister(type, L, translator, 0, 9, 3, 3); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Dispose", _m_Dispose); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetBoundingSpheres", _m_SetBoundingSpheres); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetBoundingSphereCount", _m_SetBoundingSphereCount); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "EraseSwapBack", _m_EraseSwapBack); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "QueryIndices", _m_QueryIndices); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsVisible", _m_IsVisible); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetDistance", _m_GetDistance); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetBoundingDistances", _m_SetBoundingDistances); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetDistanceReferencePoint", _m_SetDistanceReferencePoint); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "onStateChanged", _g_get_onStateChanged); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "enabled", _g_get_enabled); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "targetCamera", _g_get_targetCamera); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "onStateChanged", _s_set_onStateChanged); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "enabled", _s_set_enabled); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "targetCamera", _s_set_targetCamera); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.CullingGroup(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.CullingGroup constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Dispose(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.CullingGroup gen_to_be_invoked = (UnityEngine.CullingGroup)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Dispose( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetBoundingSpheres(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.CullingGroup gen_to_be_invoked = (UnityEngine.CullingGroup)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.BoundingSphere[] _array = (UnityEngine.BoundingSphere[])translator.GetObject(L, 2, typeof(UnityEngine.BoundingSphere[])); - - gen_to_be_invoked.SetBoundingSpheres( _array ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetBoundingSphereCount(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.CullingGroup gen_to_be_invoked = (UnityEngine.CullingGroup)translator.FastGetCSObj(L, 1); - - - - { - int _count = LuaAPI.xlua_tointeger(L, 2); - - gen_to_be_invoked.SetBoundingSphereCount( _count ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_EraseSwapBack(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.CullingGroup gen_to_be_invoked = (UnityEngine.CullingGroup)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - - gen_to_be_invoked.EraseSwapBack( _index ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_QueryIndices(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.CullingGroup gen_to_be_invoked = (UnityEngine.CullingGroup)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 4&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - bool _visible = LuaAPI.lua_toboolean(L, 2); - int[] _result = (int[])translator.GetObject(L, 3, typeof(int[])); - int _firstIndex = LuaAPI.xlua_tointeger(L, 4); - - var gen_ret = gen_to_be_invoked.QueryIndices( _visible, _result, _firstIndex ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - int _distanceIndex = LuaAPI.xlua_tointeger(L, 2); - int[] _result = (int[])translator.GetObject(L, 3, typeof(int[])); - int _firstIndex = LuaAPI.xlua_tointeger(L, 4); - - var gen_ret = gen_to_be_invoked.QueryIndices( _distanceIndex, _result, _firstIndex ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 5&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - bool _visible = LuaAPI.lua_toboolean(L, 2); - int _distanceIndex = LuaAPI.xlua_tointeger(L, 3); - int[] _result = (int[])translator.GetObject(L, 4, typeof(int[])); - int _firstIndex = LuaAPI.xlua_tointeger(L, 5); - - var gen_ret = gen_to_be_invoked.QueryIndices( _visible, _distanceIndex, _result, _firstIndex ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.CullingGroup.QueryIndices!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_IsVisible(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.CullingGroup gen_to_be_invoked = (UnityEngine.CullingGroup)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.IsVisible( _index ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetDistance(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.CullingGroup gen_to_be_invoked = (UnityEngine.CullingGroup)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.GetDistance( _index ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetBoundingDistances(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.CullingGroup gen_to_be_invoked = (UnityEngine.CullingGroup)translator.FastGetCSObj(L, 1); - - - - { - float[] _distances = (float[])translator.GetObject(L, 2, typeof(float[])); - - gen_to_be_invoked.SetBoundingDistances( _distances ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetDistanceReferencePoint(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.CullingGroup gen_to_be_invoked = (UnityEngine.CullingGroup)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.Vector3 _point;translator.Get(L, 2, out _point); - - gen_to_be_invoked.SetDistanceReferencePoint( _point ); - - - - return 0; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.Transform _transform = (UnityEngine.Transform)translator.GetObject(L, 2, typeof(UnityEngine.Transform)); - - gen_to_be_invoked.SetDistanceReferencePoint( _transform ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.CullingGroup.SetDistanceReferencePoint!"); - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_onStateChanged(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CullingGroup gen_to_be_invoked = (UnityEngine.CullingGroup)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.onStateChanged); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_enabled(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CullingGroup gen_to_be_invoked = (UnityEngine.CullingGroup)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.enabled); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_targetCamera(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CullingGroup gen_to_be_invoked = (UnityEngine.CullingGroup)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.targetCamera); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_onStateChanged(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CullingGroup gen_to_be_invoked = (UnityEngine.CullingGroup)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.onStateChanged = translator.GetDelegate(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_enabled(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CullingGroup gen_to_be_invoked = (UnityEngine.CullingGroup)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.enabled = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_targetCamera(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CullingGroup gen_to_be_invoked = (UnityEngine.CullingGroup)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.targetCamera = (UnityEngine.Camera)translator.GetObject(L, 2, typeof(UnityEngine.Camera)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_CustomRenderTextureManagerWrap.cs b/Assets/XLua/Gen/UnityEngine_CustomRenderTextureManagerWrap.cs deleted file mode 100644 index f164cd9fb..000000000 --- a/Assets/XLua/Gen/UnityEngine_CustomRenderTextureManagerWrap.cs +++ /dev/null @@ -1,214 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineCustomRenderTextureManagerWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.CustomRenderTextureManager); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 6, 0, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetAllCustomRenderTextures", _m_GetAllCustomRenderTextures_xlua_st_); - - Utils.RegisterFunc(L, Utils.CLS_IDX, "textureLoaded", _e_textureLoaded); - Utils.RegisterFunc(L, Utils.CLS_IDX, "textureUnloaded", _e_textureUnloaded); - Utils.RegisterFunc(L, Utils.CLS_IDX, "updateTriggered", _e_updateTriggered); - Utils.RegisterFunc(L, Utils.CLS_IDX, "initializeTriggered", _e_initializeTriggered); - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "UnityEngine.CustomRenderTextureManager does not have a constructor!"); - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetAllCustomRenderTextures_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - System.Collections.Generic.List _currentCustomRenderTextures = (System.Collections.Generic.List)translator.GetObject(L, 1, typeof(System.Collections.Generic.List)); - - UnityEngine.CustomRenderTextureManager.GetAllCustomRenderTextures( _currentCustomRenderTextures ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_textureLoaded(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - System.Action gen_delegate = translator.GetDelegate>(L, 2); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#2 need System.Action!"); - } - - - if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "+")) { - UnityEngine.CustomRenderTextureManager.textureLoaded += gen_delegate; - return 0; - } - - - if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "-")) { - UnityEngine.CustomRenderTextureManager.textureLoaded -= gen_delegate; - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.CustomRenderTextureManager.textureLoaded!"); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_textureUnloaded(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - System.Action gen_delegate = translator.GetDelegate>(L, 2); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#2 need System.Action!"); - } - - - if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "+")) { - UnityEngine.CustomRenderTextureManager.textureUnloaded += gen_delegate; - return 0; - } - - - if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "-")) { - UnityEngine.CustomRenderTextureManager.textureUnloaded -= gen_delegate; - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.CustomRenderTextureManager.textureUnloaded!"); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_updateTriggered(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - System.Action gen_delegate = translator.GetDelegate>(L, 2); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#2 need System.Action!"); - } - - - if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "+")) { - UnityEngine.CustomRenderTextureManager.updateTriggered += gen_delegate; - return 0; - } - - - if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "-")) { - UnityEngine.CustomRenderTextureManager.updateTriggered -= gen_delegate; - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.CustomRenderTextureManager.updateTriggered!"); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_initializeTriggered(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - System.Action gen_delegate = translator.GetDelegate>(L, 2); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#2 need System.Action!"); - } - - - if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "+")) { - UnityEngine.CustomRenderTextureManager.initializeTriggered += gen_delegate; - return 0; - } - - - if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "-")) { - UnityEngine.CustomRenderTextureManager.initializeTriggered -= gen_delegate; - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.CustomRenderTextureManager.initializeTriggered!"); - } - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_CustomRenderTextureUpdateZoneWrap.cs b/Assets/XLua/Gen/UnityEngine_CustomRenderTextureUpdateZoneWrap.cs deleted file mode 100644 index 04a10141c..000000000 --- a/Assets/XLua/Gen/UnityEngine_CustomRenderTextureUpdateZoneWrap.cs +++ /dev/null @@ -1,249 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineCustomRenderTextureUpdateZoneWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.CustomRenderTextureUpdateZone); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 5, 5); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "updateZoneCenter", _g_get_updateZoneCenter); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "updateZoneSize", _g_get_updateZoneSize); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "rotation", _g_get_rotation); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "passIndex", _g_get_passIndex); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "needSwap", _g_get_needSwap); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "updateZoneCenter", _s_set_updateZoneCenter); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "updateZoneSize", _s_set_updateZoneSize); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "rotation", _s_set_rotation); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "passIndex", _s_set_passIndex); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "needSwap", _s_set_needSwap); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(UnityEngine.CustomRenderTextureUpdateZone)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.CustomRenderTextureUpdateZone constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_updateZoneCenter(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CustomRenderTextureUpdateZone gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.updateZoneCenter); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_updateZoneSize(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CustomRenderTextureUpdateZone gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.updateZoneSize); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_rotation(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CustomRenderTextureUpdateZone gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.rotation); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_passIndex(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CustomRenderTextureUpdateZone gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.passIndex); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_needSwap(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CustomRenderTextureUpdateZone gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.needSwap); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_updateZoneCenter(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CustomRenderTextureUpdateZone gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Vector3 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.updateZoneCenter = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_updateZoneSize(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CustomRenderTextureUpdateZone gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Vector3 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.updateZoneSize = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_rotation(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CustomRenderTextureUpdateZone gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.rotation = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_passIndex(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CustomRenderTextureUpdateZone gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.passIndex = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_needSwap(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CustomRenderTextureUpdateZone gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.needSwap = LuaAPI.lua_toboolean(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_CustomRenderTextureWrap.cs b/Assets/XLua/Gen/UnityEngine_CustomRenderTextureWrap.cs deleted file mode 100644 index c672e6ee7..000000000 --- a/Assets/XLua/Gen/UnityEngine_CustomRenderTextureWrap.cs +++ /dev/null @@ -1,752 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineCustomRenderTextureWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.CustomRenderTexture); - Utils.BeginObjectRegister(type, L, translator, 0, 7, 13, 13); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Update", _m_Update); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Initialize", _m_Initialize); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ClearUpdateZones", _m_ClearUpdateZones); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetUpdateZones", _m_GetUpdateZones); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetDoubleBufferRenderTexture", _m_GetDoubleBufferRenderTexture); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "EnsureDoubleBufferConsistency", _m_EnsureDoubleBufferConsistency); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetUpdateZones", _m_SetUpdateZones); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "material", _g_get_material); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "initializationMaterial", _g_get_initializationMaterial); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "initializationTexture", _g_get_initializationTexture); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "initializationSource", _g_get_initializationSource); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "initializationColor", _g_get_initializationColor); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "updateMode", _g_get_updateMode); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "initializationMode", _g_get_initializationMode); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "updateZoneSpace", _g_get_updateZoneSpace); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "shaderPass", _g_get_shaderPass); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "cubemapFaceMask", _g_get_cubemapFaceMask); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "doubleBuffered", _g_get_doubleBuffered); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "wrapUpdateZones", _g_get_wrapUpdateZones); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "updatePeriod", _g_get_updatePeriod); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "material", _s_set_material); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "initializationMaterial", _s_set_initializationMaterial); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "initializationTexture", _s_set_initializationTexture); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "initializationSource", _s_set_initializationSource); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "initializationColor", _s_set_initializationColor); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "updateMode", _s_set_updateMode); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "initializationMode", _s_set_initializationMode); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "updateZoneSpace", _s_set_updateZoneSpace); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "shaderPass", _s_set_shaderPass); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "cubemapFaceMask", _s_set_cubemapFaceMask); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "doubleBuffered", _s_set_doubleBuffered); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "wrapUpdateZones", _s_set_wrapUpdateZones); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "updatePeriod", _s_set_updatePeriod); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 5 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && translator.Assignable(L, 4) && translator.Assignable(L, 5)) - { - int _width = LuaAPI.xlua_tointeger(L, 2); - int _height = LuaAPI.xlua_tointeger(L, 3); - UnityEngine.RenderTextureFormat _format;translator.Get(L, 4, out _format); - UnityEngine.RenderTextureReadWrite _readWrite;translator.Get(L, 5, out _readWrite); - - var gen_ret = new UnityEngine.CustomRenderTexture(_width, _height, _format, _readWrite); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 4 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && translator.Assignable(L, 4)) - { - int _width = LuaAPI.xlua_tointeger(L, 2); - int _height = LuaAPI.xlua_tointeger(L, 3); - UnityEngine.RenderTextureFormat _format;translator.Get(L, 4, out _format); - - var gen_ret = new UnityEngine.CustomRenderTexture(_width, _height, _format); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 3 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - int _width = LuaAPI.xlua_tointeger(L, 2); - int _height = LuaAPI.xlua_tointeger(L, 3); - - var gen_ret = new UnityEngine.CustomRenderTexture(_width, _height); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 4 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && translator.Assignable(L, 4)) - { - int _width = LuaAPI.xlua_tointeger(L, 2); - int _height = LuaAPI.xlua_tointeger(L, 3); - UnityEngine.Experimental.Rendering.DefaultFormat _defaultFormat;translator.Get(L, 4, out _defaultFormat); - - var gen_ret = new UnityEngine.CustomRenderTexture(_width, _height, _defaultFormat); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 4 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && translator.Assignable(L, 4)) - { - int _width = LuaAPI.xlua_tointeger(L, 2); - int _height = LuaAPI.xlua_tointeger(L, 3); - UnityEngine.Experimental.Rendering.GraphicsFormat _format;translator.Get(L, 4, out _format); - - var gen_ret = new UnityEngine.CustomRenderTexture(_width, _height, _format); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.CustomRenderTexture constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Update(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.CustomRenderTexture gen_to_be_invoked = (UnityEngine.CustomRenderTexture)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - gen_to_be_invoked.Update( ); - - - - return 0; - } - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - int _count = LuaAPI.xlua_tointeger(L, 2); - - gen_to_be_invoked.Update( _count ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.CustomRenderTexture.Update!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Initialize(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.CustomRenderTexture gen_to_be_invoked = (UnityEngine.CustomRenderTexture)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Initialize( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ClearUpdateZones(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.CustomRenderTexture gen_to_be_invoked = (UnityEngine.CustomRenderTexture)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.ClearUpdateZones( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetUpdateZones(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.CustomRenderTexture gen_to_be_invoked = (UnityEngine.CustomRenderTexture)translator.FastGetCSObj(L, 1); - - - - { - System.Collections.Generic.List _updateZones = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - - gen_to_be_invoked.GetUpdateZones( _updateZones ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetDoubleBufferRenderTexture(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.CustomRenderTexture gen_to_be_invoked = (UnityEngine.CustomRenderTexture)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.GetDoubleBufferRenderTexture( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_EnsureDoubleBufferConsistency(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.CustomRenderTexture gen_to_be_invoked = (UnityEngine.CustomRenderTexture)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.EnsureDoubleBufferConsistency( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetUpdateZones(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.CustomRenderTexture gen_to_be_invoked = (UnityEngine.CustomRenderTexture)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.CustomRenderTextureUpdateZone[] _updateZones = (UnityEngine.CustomRenderTextureUpdateZone[])translator.GetObject(L, 2, typeof(UnityEngine.CustomRenderTextureUpdateZone[])); - - gen_to_be_invoked.SetUpdateZones( _updateZones ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_material(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CustomRenderTexture gen_to_be_invoked = (UnityEngine.CustomRenderTexture)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.material); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_initializationMaterial(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CustomRenderTexture gen_to_be_invoked = (UnityEngine.CustomRenderTexture)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.initializationMaterial); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_initializationTexture(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CustomRenderTexture gen_to_be_invoked = (UnityEngine.CustomRenderTexture)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.initializationTexture); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_initializationSource(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CustomRenderTexture gen_to_be_invoked = (UnityEngine.CustomRenderTexture)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.initializationSource); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_initializationColor(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CustomRenderTexture gen_to_be_invoked = (UnityEngine.CustomRenderTexture)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineColor(L, gen_to_be_invoked.initializationColor); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_updateMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CustomRenderTexture gen_to_be_invoked = (UnityEngine.CustomRenderTexture)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.updateMode); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_initializationMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CustomRenderTexture gen_to_be_invoked = (UnityEngine.CustomRenderTexture)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.initializationMode); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_updateZoneSpace(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CustomRenderTexture gen_to_be_invoked = (UnityEngine.CustomRenderTexture)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.updateZoneSpace); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_shaderPass(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CustomRenderTexture gen_to_be_invoked = (UnityEngine.CustomRenderTexture)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.shaderPass); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_cubemapFaceMask(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CustomRenderTexture gen_to_be_invoked = (UnityEngine.CustomRenderTexture)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushuint(L, gen_to_be_invoked.cubemapFaceMask); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_doubleBuffered(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CustomRenderTexture gen_to_be_invoked = (UnityEngine.CustomRenderTexture)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.doubleBuffered); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_wrapUpdateZones(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CustomRenderTexture gen_to_be_invoked = (UnityEngine.CustomRenderTexture)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.wrapUpdateZones); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_updatePeriod(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CustomRenderTexture gen_to_be_invoked = (UnityEngine.CustomRenderTexture)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.updatePeriod); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_material(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CustomRenderTexture gen_to_be_invoked = (UnityEngine.CustomRenderTexture)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.material = (UnityEngine.Material)translator.GetObject(L, 2, typeof(UnityEngine.Material)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_initializationMaterial(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CustomRenderTexture gen_to_be_invoked = (UnityEngine.CustomRenderTexture)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.initializationMaterial = (UnityEngine.Material)translator.GetObject(L, 2, typeof(UnityEngine.Material)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_initializationTexture(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CustomRenderTexture gen_to_be_invoked = (UnityEngine.CustomRenderTexture)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.initializationTexture = (UnityEngine.Texture)translator.GetObject(L, 2, typeof(UnityEngine.Texture)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_initializationSource(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CustomRenderTexture gen_to_be_invoked = (UnityEngine.CustomRenderTexture)translator.FastGetCSObj(L, 1); - UnityEngine.CustomRenderTextureInitializationSource gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.initializationSource = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_initializationColor(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CustomRenderTexture gen_to_be_invoked = (UnityEngine.CustomRenderTexture)translator.FastGetCSObj(L, 1); - UnityEngine.Color gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.initializationColor = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_updateMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CustomRenderTexture gen_to_be_invoked = (UnityEngine.CustomRenderTexture)translator.FastGetCSObj(L, 1); - UnityEngine.CustomRenderTextureUpdateMode gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.updateMode = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_initializationMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CustomRenderTexture gen_to_be_invoked = (UnityEngine.CustomRenderTexture)translator.FastGetCSObj(L, 1); - UnityEngine.CustomRenderTextureUpdateMode gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.initializationMode = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_updateZoneSpace(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CustomRenderTexture gen_to_be_invoked = (UnityEngine.CustomRenderTexture)translator.FastGetCSObj(L, 1); - UnityEngine.CustomRenderTextureUpdateZoneSpace gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.updateZoneSpace = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_shaderPass(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CustomRenderTexture gen_to_be_invoked = (UnityEngine.CustomRenderTexture)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.shaderPass = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_cubemapFaceMask(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CustomRenderTexture gen_to_be_invoked = (UnityEngine.CustomRenderTexture)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.cubemapFaceMask = LuaAPI.xlua_touint(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_doubleBuffered(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CustomRenderTexture gen_to_be_invoked = (UnityEngine.CustomRenderTexture)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.doubleBuffered = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_wrapUpdateZones(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CustomRenderTexture gen_to_be_invoked = (UnityEngine.CustomRenderTexture)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.wrapUpdateZones = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_updatePeriod(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CustomRenderTexture gen_to_be_invoked = (UnityEngine.CustomRenderTexture)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.updatePeriod = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_CustomYieldInstructionWrap.cs b/Assets/XLua/Gen/UnityEngine_CustomYieldInstructionWrap.cs deleted file mode 100644 index c071c8677..000000000 --- a/Assets/XLua/Gen/UnityEngine_CustomYieldInstructionWrap.cs +++ /dev/null @@ -1,154 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineCustomYieldInstructionWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.CustomYieldInstruction); - Utils.BeginObjectRegister(type, L, translator, 0, 2, 2, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "MoveNext", _m_MoveNext); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Reset", _m_Reset); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "keepWaiting", _g_get_keepWaiting); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Current", _g_get_Current); - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "UnityEngine.CustomYieldInstruction does not have a constructor!"); - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_MoveNext(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.CustomYieldInstruction gen_to_be_invoked = (UnityEngine.CustomYieldInstruction)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.MoveNext( ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Reset(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.CustomYieldInstruction gen_to_be_invoked = (UnityEngine.CustomYieldInstruction)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Reset( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_keepWaiting(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CustomYieldInstruction gen_to_be_invoked = (UnityEngine.CustomYieldInstruction)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.keepWaiting); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Current(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CustomYieldInstruction gen_to_be_invoked = (UnityEngine.CustomYieldInstruction)translator.FastGetCSObj(L, 1); - translator.PushAny(L, gen_to_be_invoked.Current); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_DefaultExecutionOrderWrap.cs b/Assets/XLua/Gen/UnityEngine_DefaultExecutionOrderWrap.cs deleted file mode 100644 index 1c53b02c0..000000000 --- a/Assets/XLua/Gen/UnityEngine_DefaultExecutionOrderWrap.cs +++ /dev/null @@ -1,100 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineDefaultExecutionOrderWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.DefaultExecutionOrder); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 1, 0); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "order", _g_get_order); - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 2 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - int _order = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = new UnityEngine.DefaultExecutionOrder(_order); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.DefaultExecutionOrder constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_order(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.DefaultExecutionOrder gen_to_be_invoked = (UnityEngine.DefaultExecutionOrder)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.order); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_DisplayWrap.cs b/Assets/XLua/Gen/UnityEngine_DisplayWrap.cs deleted file mode 100644 index 0263a9d51..000000000 --- a/Assets/XLua/Gen/UnityEngine_DisplayWrap.cs +++ /dev/null @@ -1,419 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineDisplayWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.Display); - Utils.BeginObjectRegister(type, L, translator, 0, 3, 9, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Activate", _m_Activate); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetParams", _m_SetParams); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetRenderingResolution", _m_SetRenderingResolution); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "renderingWidth", _g_get_renderingWidth); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "renderingHeight", _g_get_renderingHeight); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "systemWidth", _g_get_systemWidth); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "systemHeight", _g_get_systemHeight); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "colorBuffer", _g_get_colorBuffer); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "depthBuffer", _g_get_depthBuffer); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "active", _g_get_active); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "requiresBlitToBackbuffer", _g_get_requiresBlitToBackbuffer); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "requiresSrgbBlitToBackbuffer", _g_get_requiresSrgbBlitToBackbuffer); - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 3, 3, 1); - Utils.RegisterFunc(L, Utils.CLS_IDX, "RelativeMouseAt", _m_RelativeMouseAt_xlua_st_); - - Utils.RegisterFunc(L, Utils.CLS_IDX, "onDisplaysUpdated", _e_onDisplaysUpdated); - - - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "main", _g_get_main); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "activeEditorGameViewTarget", _g_get_activeEditorGameViewTarget); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "displays", _g_get_displays); - - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "displays", _s_set_displays); - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "UnityEngine.Display does not have a constructor!"); - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Activate(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Display gen_to_be_invoked = (UnityEngine.Display)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - gen_to_be_invoked.Activate( ); - - - - return 0; - } - if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - int _width = LuaAPI.xlua_tointeger(L, 2); - int _height = LuaAPI.xlua_tointeger(L, 3); - int _refreshRate = LuaAPI.xlua_tointeger(L, 4); - - gen_to_be_invoked.Activate( _width, _height, _refreshRate ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Display.Activate!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetParams(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Display gen_to_be_invoked = (UnityEngine.Display)translator.FastGetCSObj(L, 1); - - - - { - int _width = LuaAPI.xlua_tointeger(L, 2); - int _height = LuaAPI.xlua_tointeger(L, 3); - int _x = LuaAPI.xlua_tointeger(L, 4); - int _y = LuaAPI.xlua_tointeger(L, 5); - - gen_to_be_invoked.SetParams( _width, _height, _x, _y ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetRenderingResolution(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Display gen_to_be_invoked = (UnityEngine.Display)translator.FastGetCSObj(L, 1); - - - - { - int _w = LuaAPI.xlua_tointeger(L, 2); - int _h = LuaAPI.xlua_tointeger(L, 3); - - gen_to_be_invoked.SetRenderingResolution( _w, _h ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RelativeMouseAt_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Vector3 _inputMouseCoordinates;translator.Get(L, 1, out _inputMouseCoordinates); - - var gen_ret = UnityEngine.Display.RelativeMouseAt( _inputMouseCoordinates ); - translator.PushUnityEngineVector3(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_renderingWidth(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Display gen_to_be_invoked = (UnityEngine.Display)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.renderingWidth); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_renderingHeight(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Display gen_to_be_invoked = (UnityEngine.Display)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.renderingHeight); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_systemWidth(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Display gen_to_be_invoked = (UnityEngine.Display)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.systemWidth); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_systemHeight(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Display gen_to_be_invoked = (UnityEngine.Display)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.systemHeight); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_colorBuffer(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Display gen_to_be_invoked = (UnityEngine.Display)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.colorBuffer); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_depthBuffer(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Display gen_to_be_invoked = (UnityEngine.Display)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.depthBuffer); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_active(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Display gen_to_be_invoked = (UnityEngine.Display)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.active); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_requiresBlitToBackbuffer(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Display gen_to_be_invoked = (UnityEngine.Display)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.requiresBlitToBackbuffer); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_requiresSrgbBlitToBackbuffer(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Display gen_to_be_invoked = (UnityEngine.Display)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.requiresSrgbBlitToBackbuffer); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_main(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, UnityEngine.Display.main); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_activeEditorGameViewTarget(RealStatePtr L) - { - try { - - LuaAPI.xlua_pushinteger(L, UnityEngine.Display.activeEditorGameViewTarget); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_displays(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, UnityEngine.Display.displays); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_displays(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - UnityEngine.Display.displays = (UnityEngine.Display[])translator.GetObject(L, 1, typeof(UnityEngine.Display[])); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_onDisplaysUpdated(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - UnityEngine.Display.DisplaysUpdatedDelegate gen_delegate = translator.GetDelegate(L, 2); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#2 need UnityEngine.Display.DisplaysUpdatedDelegate!"); - } - - - if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "+")) { - UnityEngine.Display.onDisplaysUpdated += gen_delegate; - return 0; - } - - - if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "-")) { - UnityEngine.Display.onDisplaysUpdated -= gen_delegate; - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Display.onDisplaysUpdated!"); - } - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_DistanceJoint2DWrap.cs b/Assets/XLua/Gen/UnityEngine_DistanceJoint2DWrap.cs deleted file mode 100644 index cfd4fe143..000000000 --- a/Assets/XLua/Gen/UnityEngine_DistanceJoint2DWrap.cs +++ /dev/null @@ -1,177 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineDistanceJoint2DWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.DistanceJoint2D); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 3, 3); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "autoConfigureDistance", _g_get_autoConfigureDistance); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "distance", _g_get_distance); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "maxDistanceOnly", _g_get_maxDistanceOnly); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "autoConfigureDistance", _s_set_autoConfigureDistance); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "distance", _s_set_distance); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "maxDistanceOnly", _s_set_maxDistanceOnly); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.DistanceJoint2D(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.DistanceJoint2D constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_autoConfigureDistance(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.DistanceJoint2D gen_to_be_invoked = (UnityEngine.DistanceJoint2D)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.autoConfigureDistance); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_distance(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.DistanceJoint2D gen_to_be_invoked = (UnityEngine.DistanceJoint2D)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.distance); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_maxDistanceOnly(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.DistanceJoint2D gen_to_be_invoked = (UnityEngine.DistanceJoint2D)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.maxDistanceOnly); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_autoConfigureDistance(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.DistanceJoint2D gen_to_be_invoked = (UnityEngine.DistanceJoint2D)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.autoConfigureDistance = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_distance(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.DistanceJoint2D gen_to_be_invoked = (UnityEngine.DistanceJoint2D)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.distance = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_maxDistanceOnly(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.DistanceJoint2D gen_to_be_invoked = (UnityEngine.DistanceJoint2D)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.maxDistanceOnly = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_DynamicGIWrap.cs b/Assets/XLua/Gen/UnityEngine_DynamicGIWrap.cs deleted file mode 100644 index 744df9cca..000000000 --- a/Assets/XLua/Gen/UnityEngine_DynamicGIWrap.cs +++ /dev/null @@ -1,284 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineDynamicGIWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.DynamicGI); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 4, 5, 4); - Utils.RegisterFunc(L, Utils.CLS_IDX, "SetEmissive", _m_SetEmissive_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "SetEnvironmentData", _m_SetEnvironmentData_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "UpdateEnvironment", _m_UpdateEnvironment_xlua_st_); - - - - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "indirectScale", _g_get_indirectScale); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "updateThreshold", _g_get_updateThreshold); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "materialUpdateTimeSlice", _g_get_materialUpdateTimeSlice); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "synchronousMode", _g_get_synchronousMode); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "isConverged", _g_get_isConverged); - - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "indirectScale", _s_set_indirectScale); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "updateThreshold", _s_set_updateThreshold); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "materialUpdateTimeSlice", _s_set_materialUpdateTimeSlice); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "synchronousMode", _s_set_synchronousMode); - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.DynamicGI(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.DynamicGI constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetEmissive_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Renderer _renderer = (UnityEngine.Renderer)translator.GetObject(L, 1, typeof(UnityEngine.Renderer)); - UnityEngine.Color _color;translator.Get(L, 2, out _color); - - UnityEngine.DynamicGI.SetEmissive( _renderer, _color ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetEnvironmentData_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - float[] _input = (float[])translator.GetObject(L, 1, typeof(float[])); - - UnityEngine.DynamicGI.SetEnvironmentData( _input ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_UpdateEnvironment_xlua_st_(RealStatePtr L) - { - try { - - - - - { - - UnityEngine.DynamicGI.UpdateEnvironment( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_indirectScale(RealStatePtr L) - { - try { - - LuaAPI.lua_pushnumber(L, UnityEngine.DynamicGI.indirectScale); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_updateThreshold(RealStatePtr L) - { - try { - - LuaAPI.lua_pushnumber(L, UnityEngine.DynamicGI.updateThreshold); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_materialUpdateTimeSlice(RealStatePtr L) - { - try { - - LuaAPI.xlua_pushinteger(L, UnityEngine.DynamicGI.materialUpdateTimeSlice); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_synchronousMode(RealStatePtr L) - { - try { - - LuaAPI.lua_pushboolean(L, UnityEngine.DynamicGI.synchronousMode); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_isConverged(RealStatePtr L) - { - try { - - LuaAPI.lua_pushboolean(L, UnityEngine.DynamicGI.isConverged); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_indirectScale(RealStatePtr L) - { - try { - - UnityEngine.DynamicGI.indirectScale = (float)LuaAPI.lua_tonumber(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_updateThreshold(RealStatePtr L) - { - try { - - UnityEngine.DynamicGI.updateThreshold = (float)LuaAPI.lua_tonumber(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_materialUpdateTimeSlice(RealStatePtr L) - { - try { - - UnityEngine.DynamicGI.materialUpdateTimeSlice = LuaAPI.xlua_tointeger(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_synchronousMode(RealStatePtr L) - { - try { - - UnityEngine.DynamicGI.synchronousMode = LuaAPI.lua_toboolean(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_EdgeCollider2DWrap.cs b/Assets/XLua/Gen/UnityEngine_EdgeCollider2DWrap.cs deleted file mode 100644 index 7c54ffd53..000000000 --- a/Assets/XLua/Gen/UnityEngine_EdgeCollider2DWrap.cs +++ /dev/null @@ -1,390 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineEdgeCollider2DWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.EdgeCollider2D); - Utils.BeginObjectRegister(type, L, translator, 0, 3, 8, 6); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Reset", _m_Reset); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetPoints", _m_GetPoints); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetPoints", _m_SetPoints); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "edgeRadius", _g_get_edgeRadius); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "edgeCount", _g_get_edgeCount); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "pointCount", _g_get_pointCount); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "points", _g_get_points); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "useAdjacentStartPoint", _g_get_useAdjacentStartPoint); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "useAdjacentEndPoint", _g_get_useAdjacentEndPoint); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "adjacentStartPoint", _g_get_adjacentStartPoint); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "adjacentEndPoint", _g_get_adjacentEndPoint); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "edgeRadius", _s_set_edgeRadius); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "points", _s_set_points); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "useAdjacentStartPoint", _s_set_useAdjacentStartPoint); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "useAdjacentEndPoint", _s_set_useAdjacentEndPoint); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "adjacentStartPoint", _s_set_adjacentStartPoint); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "adjacentEndPoint", _s_set_adjacentEndPoint); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.EdgeCollider2D(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.EdgeCollider2D constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Reset(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.EdgeCollider2D gen_to_be_invoked = (UnityEngine.EdgeCollider2D)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Reset( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetPoints(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.EdgeCollider2D gen_to_be_invoked = (UnityEngine.EdgeCollider2D)translator.FastGetCSObj(L, 1); - - - - { - System.Collections.Generic.List _points = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - - var gen_ret = gen_to_be_invoked.GetPoints( _points ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetPoints(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.EdgeCollider2D gen_to_be_invoked = (UnityEngine.EdgeCollider2D)translator.FastGetCSObj(L, 1); - - - - { - System.Collections.Generic.List _points = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - - var gen_ret = gen_to_be_invoked.SetPoints( _points ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_edgeRadius(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.EdgeCollider2D gen_to_be_invoked = (UnityEngine.EdgeCollider2D)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.edgeRadius); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_edgeCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.EdgeCollider2D gen_to_be_invoked = (UnityEngine.EdgeCollider2D)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.edgeCount); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_pointCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.EdgeCollider2D gen_to_be_invoked = (UnityEngine.EdgeCollider2D)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.pointCount); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_points(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.EdgeCollider2D gen_to_be_invoked = (UnityEngine.EdgeCollider2D)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.points); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_useAdjacentStartPoint(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.EdgeCollider2D gen_to_be_invoked = (UnityEngine.EdgeCollider2D)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.useAdjacentStartPoint); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_useAdjacentEndPoint(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.EdgeCollider2D gen_to_be_invoked = (UnityEngine.EdgeCollider2D)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.useAdjacentEndPoint); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_adjacentStartPoint(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.EdgeCollider2D gen_to_be_invoked = (UnityEngine.EdgeCollider2D)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector2(L, gen_to_be_invoked.adjacentStartPoint); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_adjacentEndPoint(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.EdgeCollider2D gen_to_be_invoked = (UnityEngine.EdgeCollider2D)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector2(L, gen_to_be_invoked.adjacentEndPoint); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_edgeRadius(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.EdgeCollider2D gen_to_be_invoked = (UnityEngine.EdgeCollider2D)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.edgeRadius = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_points(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.EdgeCollider2D gen_to_be_invoked = (UnityEngine.EdgeCollider2D)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.points = (UnityEngine.Vector2[])translator.GetObject(L, 2, typeof(UnityEngine.Vector2[])); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_useAdjacentStartPoint(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.EdgeCollider2D gen_to_be_invoked = (UnityEngine.EdgeCollider2D)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.useAdjacentStartPoint = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_useAdjacentEndPoint(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.EdgeCollider2D gen_to_be_invoked = (UnityEngine.EdgeCollider2D)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.useAdjacentEndPoint = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_adjacentStartPoint(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.EdgeCollider2D gen_to_be_invoked = (UnityEngine.EdgeCollider2D)translator.FastGetCSObj(L, 1); - UnityEngine.Vector2 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.adjacentStartPoint = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_adjacentEndPoint(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.EdgeCollider2D gen_to_be_invoked = (UnityEngine.EdgeCollider2D)translator.FastGetCSObj(L, 1); - UnityEngine.Vector2 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.adjacentEndPoint = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_Effector2DWrap.cs b/Assets/XLua/Gen/UnityEngine_Effector2DWrap.cs deleted file mode 100644 index 30944f0ef..000000000 --- a/Assets/XLua/Gen/UnityEngine_Effector2DWrap.cs +++ /dev/null @@ -1,146 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineEffector2DWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.Effector2D); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 2, 2); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "useColliderMask", _g_get_useColliderMask); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "colliderMask", _g_get_colliderMask); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "useColliderMask", _s_set_useColliderMask); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "colliderMask", _s_set_colliderMask); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.Effector2D(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Effector2D constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_useColliderMask(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Effector2D gen_to_be_invoked = (UnityEngine.Effector2D)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.useColliderMask); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_colliderMask(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Effector2D gen_to_be_invoked = (UnityEngine.Effector2D)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.colliderMask); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_useColliderMask(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Effector2D gen_to_be_invoked = (UnityEngine.Effector2D)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.useColliderMask = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_colliderMask(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Effector2D gen_to_be_invoked = (UnityEngine.Effector2D)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.colliderMask = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_EventWrap.cs b/Assets/XLua/Gen/UnityEngine_EventWrap.cs deleted file mode 100644 index d1751d5cc..000000000 --- a/Assets/XLua/Gen/UnityEngine_EventWrap.cs +++ /dev/null @@ -1,995 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineEventWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.Event); - Utils.BeginObjectRegister(type, L, translator, 0, 5, 23, 18); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetTypeForControl", _m_GetTypeForControl); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetHashCode", _m_GetHashCode); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Equals", _m_Equals); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ToString", _m_ToString); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Use", _m_Use); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "rawType", _g_get_rawType); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "mousePosition", _g_get_mousePosition); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "delta", _g_get_delta); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "pointerType", _g_get_pointerType); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "button", _g_get_button); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "modifiers", _g_get_modifiers); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "pressure", _g_get_pressure); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "clickCount", _g_get_clickCount); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "character", _g_get_character); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "keyCode", _g_get_keyCode); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "displayIndex", _g_get_displayIndex); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "type", _g_get_type); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "commandName", _g_get_commandName); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "shift", _g_get_shift); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "control", _g_get_control); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "alt", _g_get_alt); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "command", _g_get_command); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "capsLock", _g_get_capsLock); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "numeric", _g_get_numeric); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "functionKey", _g_get_functionKey); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "isKey", _g_get_isKey); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "isMouse", _g_get_isMouse); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "isScrollWheel", _g_get_isScrollWheel); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "mousePosition", _s_set_mousePosition); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "delta", _s_set_delta); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "pointerType", _s_set_pointerType); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "button", _s_set_button); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "modifiers", _s_set_modifiers); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "pressure", _s_set_pressure); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "clickCount", _s_set_clickCount); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "character", _s_set_character); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "keyCode", _s_set_keyCode); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "displayIndex", _s_set_displayIndex); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "type", _s_set_type); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "commandName", _s_set_commandName); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "shift", _s_set_shift); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "control", _s_set_control); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "alt", _s_set_alt); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "command", _s_set_command); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "capsLock", _s_set_capsLock); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "numeric", _s_set_numeric); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 4, 1, 1); - Utils.RegisterFunc(L, Utils.CLS_IDX, "PopEvent", _m_PopEvent_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetEventCount", _m_GetEventCount_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "KeyboardEvent", _m_KeyboardEvent_xlua_st_); - - - - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "current", _g_get_current); - - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "current", _s_set_current); - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.Event(); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 2 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - int _displayIndex = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = new UnityEngine.Event(_displayIndex); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 2 && translator.Assignable(L, 2)) - { - UnityEngine.Event _other = (UnityEngine.Event)translator.GetObject(L, 2, typeof(UnityEngine.Event)); - - var gen_ret = new UnityEngine.Event(_other); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Event constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetTypeForControl(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Event gen_to_be_invoked = (UnityEngine.Event)translator.FastGetCSObj(L, 1); - - - - { - int _controlID = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.GetTypeForControl( _controlID ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_PopEvent_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Event _outEvent = (UnityEngine.Event)translator.GetObject(L, 1, typeof(UnityEngine.Event)); - - var gen_ret = UnityEngine.Event.PopEvent( _outEvent ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetEventCount_xlua_st_(RealStatePtr L) - { - try { - - - - - { - - var gen_ret = UnityEngine.Event.GetEventCount( ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_KeyboardEvent_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - string _key = LuaAPI.lua_tostring(L, 1); - - var gen_ret = UnityEngine.Event.KeyboardEvent( _key ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetHashCode(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Event gen_to_be_invoked = (UnityEngine.Event)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.GetHashCode( ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Equals(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Event gen_to_be_invoked = (UnityEngine.Event)translator.FastGetCSObj(L, 1); - - - - { - object _obj = translator.GetObject(L, 2, typeof(object)); - - var gen_ret = gen_to_be_invoked.Equals( _obj ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ToString(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Event gen_to_be_invoked = (UnityEngine.Event)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.ToString( ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Use(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Event gen_to_be_invoked = (UnityEngine.Event)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Use( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_rawType(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Event gen_to_be_invoked = (UnityEngine.Event)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.rawType); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_mousePosition(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Event gen_to_be_invoked = (UnityEngine.Event)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector2(L, gen_to_be_invoked.mousePosition); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_delta(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Event gen_to_be_invoked = (UnityEngine.Event)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector2(L, gen_to_be_invoked.delta); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_pointerType(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Event gen_to_be_invoked = (UnityEngine.Event)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.pointerType); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_button(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Event gen_to_be_invoked = (UnityEngine.Event)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.button); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_modifiers(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Event gen_to_be_invoked = (UnityEngine.Event)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.modifiers); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_pressure(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Event gen_to_be_invoked = (UnityEngine.Event)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.pressure); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_clickCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Event gen_to_be_invoked = (UnityEngine.Event)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.clickCount); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_character(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Event gen_to_be_invoked = (UnityEngine.Event)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.character); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_keyCode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Event gen_to_be_invoked = (UnityEngine.Event)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineKeyCode(L, gen_to_be_invoked.keyCode); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_displayIndex(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Event gen_to_be_invoked = (UnityEngine.Event)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.displayIndex); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_type(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Event gen_to_be_invoked = (UnityEngine.Event)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.type); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_commandName(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Event gen_to_be_invoked = (UnityEngine.Event)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.commandName); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_shift(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Event gen_to_be_invoked = (UnityEngine.Event)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.shift); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_control(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Event gen_to_be_invoked = (UnityEngine.Event)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.control); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_alt(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Event gen_to_be_invoked = (UnityEngine.Event)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.alt); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_command(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Event gen_to_be_invoked = (UnityEngine.Event)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.command); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_capsLock(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Event gen_to_be_invoked = (UnityEngine.Event)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.capsLock); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_numeric(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Event gen_to_be_invoked = (UnityEngine.Event)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.numeric); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_functionKey(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Event gen_to_be_invoked = (UnityEngine.Event)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.functionKey); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_current(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, UnityEngine.Event.current); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_isKey(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Event gen_to_be_invoked = (UnityEngine.Event)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.isKey); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_isMouse(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Event gen_to_be_invoked = (UnityEngine.Event)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.isMouse); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_isScrollWheel(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Event gen_to_be_invoked = (UnityEngine.Event)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.isScrollWheel); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_mousePosition(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Event gen_to_be_invoked = (UnityEngine.Event)translator.FastGetCSObj(L, 1); - UnityEngine.Vector2 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.mousePosition = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_delta(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Event gen_to_be_invoked = (UnityEngine.Event)translator.FastGetCSObj(L, 1); - UnityEngine.Vector2 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.delta = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_pointerType(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Event gen_to_be_invoked = (UnityEngine.Event)translator.FastGetCSObj(L, 1); - UnityEngine.PointerType gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.pointerType = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_button(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Event gen_to_be_invoked = (UnityEngine.Event)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.button = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_modifiers(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Event gen_to_be_invoked = (UnityEngine.Event)translator.FastGetCSObj(L, 1); - UnityEngine.EventModifiers gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.modifiers = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_pressure(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Event gen_to_be_invoked = (UnityEngine.Event)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.pressure = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_clickCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Event gen_to_be_invoked = (UnityEngine.Event)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.clickCount = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_character(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Event gen_to_be_invoked = (UnityEngine.Event)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.character = (char)LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_keyCode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Event gen_to_be_invoked = (UnityEngine.Event)translator.FastGetCSObj(L, 1); - UnityEngine.KeyCode gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.keyCode = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_displayIndex(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Event gen_to_be_invoked = (UnityEngine.Event)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.displayIndex = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_type(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Event gen_to_be_invoked = (UnityEngine.Event)translator.FastGetCSObj(L, 1); - UnityEngine.EventType gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.type = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_commandName(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Event gen_to_be_invoked = (UnityEngine.Event)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.commandName = LuaAPI.lua_tostring(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_shift(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Event gen_to_be_invoked = (UnityEngine.Event)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.shift = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_control(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Event gen_to_be_invoked = (UnityEngine.Event)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.control = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_alt(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Event gen_to_be_invoked = (UnityEngine.Event)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.alt = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_command(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Event gen_to_be_invoked = (UnityEngine.Event)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.command = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_capsLock(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Event gen_to_be_invoked = (UnityEngine.Event)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.capsLock = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_numeric(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Event gen_to_be_invoked = (UnityEngine.Event)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.numeric = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_current(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - UnityEngine.Event.current = (UnityEngine.Event)translator.GetObject(L, 1, typeof(UnityEngine.Event)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_ExecuteAlwaysWrap.cs b/Assets/XLua/Gen/UnityEngine_ExecuteAlwaysWrap.cs deleted file mode 100644 index 866eacc10..000000000 --- a/Assets/XLua/Gen/UnityEngine_ExecuteAlwaysWrap.cs +++ /dev/null @@ -1,84 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineExecuteAlwaysWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.ExecuteAlways); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.ExecuteAlways(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.ExecuteAlways constructor!"); - - } - - - - - - - - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_ExposedPropertyResolverWrap.cs b/Assets/XLua/Gen/UnityEngine_ExposedPropertyResolverWrap.cs deleted file mode 100644 index 4d0e2b346..000000000 --- a/Assets/XLua/Gen/UnityEngine_ExposedPropertyResolverWrap.cs +++ /dev/null @@ -1,82 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineExposedPropertyResolverWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.ExposedPropertyResolver); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(UnityEngine.ExposedPropertyResolver)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.ExposedPropertyResolver constructor!"); - - } - - - - - - - - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_FixedJoint2DWrap.cs b/Assets/XLua/Gen/UnityEngine_FixedJoint2DWrap.cs deleted file mode 100644 index c560aece7..000000000 --- a/Assets/XLua/Gen/UnityEngine_FixedJoint2DWrap.cs +++ /dev/null @@ -1,161 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineFixedJoint2DWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.FixedJoint2D); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 3, 2); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "dampingRatio", _g_get_dampingRatio); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "frequency", _g_get_frequency); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "referenceAngle", _g_get_referenceAngle); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "dampingRatio", _s_set_dampingRatio); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "frequency", _s_set_frequency); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.FixedJoint2D(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.FixedJoint2D constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_dampingRatio(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.FixedJoint2D gen_to_be_invoked = (UnityEngine.FixedJoint2D)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.dampingRatio); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_frequency(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.FixedJoint2D gen_to_be_invoked = (UnityEngine.FixedJoint2D)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.frequency); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_referenceAngle(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.FixedJoint2D gen_to_be_invoked = (UnityEngine.FixedJoint2D)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.referenceAngle); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_dampingRatio(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.FixedJoint2D gen_to_be_invoked = (UnityEngine.FixedJoint2D)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.dampingRatio = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_frequency(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.FixedJoint2D gen_to_be_invoked = (UnityEngine.FixedJoint2D)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.frequency = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_FixedJointWrap.cs b/Assets/XLua/Gen/UnityEngine_FixedJointWrap.cs deleted file mode 100644 index aa790d8d4..000000000 --- a/Assets/XLua/Gen/UnityEngine_FixedJointWrap.cs +++ /dev/null @@ -1,84 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineFixedJointWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.FixedJoint); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.FixedJoint(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.FixedJoint constructor!"); - - } - - - - - - - - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_FlareLayerWrap.cs b/Assets/XLua/Gen/UnityEngine_FlareLayerWrap.cs deleted file mode 100644 index 3cdecff2c..000000000 --- a/Assets/XLua/Gen/UnityEngine_FlareLayerWrap.cs +++ /dev/null @@ -1,67 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineFlareLayerWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.FlareLayer); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "UnityEngine.FlareLayer does not have a constructor!"); - } - - - - - - - - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_FlareWrap.cs b/Assets/XLua/Gen/UnityEngine_FlareWrap.cs deleted file mode 100644 index 6d3526537..000000000 --- a/Assets/XLua/Gen/UnityEngine_FlareWrap.cs +++ /dev/null @@ -1,84 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineFlareWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.Flare); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.Flare(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Flare constructor!"); - - } - - - - - - - - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_FrameTimingManagerWrap.cs b/Assets/XLua/Gen/UnityEngine_FrameTimingManagerWrap.cs deleted file mode 100644 index cf39db9dc..000000000 --- a/Assets/XLua/Gen/UnityEngine_FrameTimingManagerWrap.cs +++ /dev/null @@ -1,195 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineFrameTimingManagerWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.FrameTimingManager); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 6, 0, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "CaptureFrameTimings", _m_CaptureFrameTimings_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetLatestTimings", _m_GetLatestTimings_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetVSyncsPerSecond", _m_GetVSyncsPerSecond_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetGpuTimerFrequency", _m_GetGpuTimerFrequency_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetCpuTimerFrequency", _m_GetCpuTimerFrequency_xlua_st_); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "UnityEngine.FrameTimingManager does not have a constructor!"); - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CaptureFrameTimings_xlua_st_(RealStatePtr L) - { - try { - - - - - { - - UnityEngine.FrameTimingManager.CaptureFrameTimings( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetLatestTimings_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - uint _numFrames = LuaAPI.xlua_touint(L, 1); - UnityEngine.FrameTiming[] _timings = (UnityEngine.FrameTiming[])translator.GetObject(L, 2, typeof(UnityEngine.FrameTiming[])); - - var gen_ret = UnityEngine.FrameTimingManager.GetLatestTimings( _numFrames, _timings ); - LuaAPI.xlua_pushuint(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetVSyncsPerSecond_xlua_st_(RealStatePtr L) - { - try { - - - - - { - - var gen_ret = UnityEngine.FrameTimingManager.GetVSyncsPerSecond( ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetGpuTimerFrequency_xlua_st_(RealStatePtr L) - { - try { - - - - - { - - var gen_ret = UnityEngine.FrameTimingManager.GetGpuTimerFrequency( ); - LuaAPI.lua_pushuint64(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetCpuTimerFrequency_xlua_st_(RealStatePtr L) - { - try { - - - - - { - - var gen_ret = UnityEngine.FrameTimingManager.GetCpuTimerFrequency( ); - LuaAPI.lua_pushuint64(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_FrameTimingWrap.cs b/Assets/XLua/Gen/UnityEngine_FrameTimingWrap.cs deleted file mode 100644 index 484aec928..000000000 --- a/Assets/XLua/Gen/UnityEngine_FrameTimingWrap.cs +++ /dev/null @@ -1,313 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineFrameTimingWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.FrameTiming); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 7, 7); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "cpuTimePresentCalled", _g_get_cpuTimePresentCalled); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "cpuFrameTime", _g_get_cpuFrameTime); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "cpuTimeFrameComplete", _g_get_cpuTimeFrameComplete); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "gpuFrameTime", _g_get_gpuFrameTime); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "heightScale", _g_get_heightScale); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "widthScale", _g_get_widthScale); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "syncInterval", _g_get_syncInterval); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "cpuTimePresentCalled", _s_set_cpuTimePresentCalled); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "cpuFrameTime", _s_set_cpuFrameTime); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "cpuTimeFrameComplete", _s_set_cpuTimeFrameComplete); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "gpuFrameTime", _s_set_gpuFrameTime); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "heightScale", _s_set_heightScale); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "widthScale", _s_set_widthScale); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "syncInterval", _s_set_syncInterval); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(UnityEngine.FrameTiming)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.FrameTiming constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_cpuTimePresentCalled(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.FrameTiming gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushuint64(L, gen_to_be_invoked.cpuTimePresentCalled); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_cpuFrameTime(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.FrameTiming gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.cpuFrameTime); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_cpuTimeFrameComplete(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.FrameTiming gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushuint64(L, gen_to_be_invoked.cpuTimeFrameComplete); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_gpuFrameTime(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.FrameTiming gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.gpuFrameTime); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_heightScale(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.FrameTiming gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.heightScale); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_widthScale(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.FrameTiming gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.widthScale); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_syncInterval(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.FrameTiming gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushuint(L, gen_to_be_invoked.syncInterval); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_cpuTimePresentCalled(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.FrameTiming gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.cpuTimePresentCalled = LuaAPI.lua_touint64(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_cpuFrameTime(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.FrameTiming gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.cpuFrameTime = LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_cpuTimeFrameComplete(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.FrameTiming gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.cpuTimeFrameComplete = LuaAPI.lua_touint64(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_gpuFrameTime(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.FrameTiming gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.gpuFrameTime = LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_heightScale(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.FrameTiming gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.heightScale = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_widthScale(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.FrameTiming gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.widthScale = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_syncInterval(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.FrameTiming gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.syncInterval = LuaAPI.xlua_touint(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_FrictionJoint2DWrap.cs b/Assets/XLua/Gen/UnityEngine_FrictionJoint2DWrap.cs deleted file mode 100644 index dff00fc41..000000000 --- a/Assets/XLua/Gen/UnityEngine_FrictionJoint2DWrap.cs +++ /dev/null @@ -1,146 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineFrictionJoint2DWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.FrictionJoint2D); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 2, 2); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "maxForce", _g_get_maxForce); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "maxTorque", _g_get_maxTorque); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "maxForce", _s_set_maxForce); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "maxTorque", _s_set_maxTorque); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.FrictionJoint2D(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.FrictionJoint2D constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_maxForce(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.FrictionJoint2D gen_to_be_invoked = (UnityEngine.FrictionJoint2D)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.maxForce); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_maxTorque(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.FrictionJoint2D gen_to_be_invoked = (UnityEngine.FrictionJoint2D)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.maxTorque); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_maxForce(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.FrictionJoint2D gen_to_be_invoked = (UnityEngine.FrictionJoint2D)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.maxForce = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_maxTorque(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.FrictionJoint2D gen_to_be_invoked = (UnityEngine.FrictionJoint2D)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.maxTorque = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_FrustumPlanesWrap.cs b/Assets/XLua/Gen/UnityEngine_FrustumPlanesWrap.cs deleted file mode 100644 index 3acb1b167..000000000 --- a/Assets/XLua/Gen/UnityEngine_FrustumPlanesWrap.cs +++ /dev/null @@ -1,280 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineFrustumPlanesWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.FrustumPlanes); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 6, 6); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "left", _g_get_left); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "right", _g_get_right); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "bottom", _g_get_bottom); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "top", _g_get_top); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "zNear", _g_get_zNear); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "zFar", _g_get_zFar); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "left", _s_set_left); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "right", _s_set_right); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "bottom", _s_set_bottom); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "top", _s_set_top); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "zNear", _s_set_zNear); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "zFar", _s_set_zFar); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(UnityEngine.FrustumPlanes)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.FrustumPlanes constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_left(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.FrustumPlanes gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.left); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_right(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.FrustumPlanes gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.right); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_bottom(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.FrustumPlanes gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.bottom); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_top(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.FrustumPlanes gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.top); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_zNear(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.FrustumPlanes gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.zNear); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_zFar(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.FrustumPlanes gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.zFar); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_left(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.FrustumPlanes gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.left = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_right(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.FrustumPlanes gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.right = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_bottom(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.FrustumPlanes gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.bottom = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_top(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.FrustumPlanes gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.top = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_zNear(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.FrustumPlanes gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.zNear = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_zFar(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.FrustumPlanes gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.zFar = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_GLWrap.cs b/Assets/XLua/Gen/UnityEngine_GLWrap.cs deleted file mode 100644 index db65894ab..000000000 --- a/Assets/XLua/Gen/UnityEngine_GLWrap.cs +++ /dev/null @@ -1,910 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineGLWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.GL); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 32, 4, 4); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Vertex3", _m_Vertex3_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Vertex", _m_Vertex_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "TexCoord3", _m_TexCoord3_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "TexCoord", _m_TexCoord_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "TexCoord2", _m_TexCoord2_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "MultiTexCoord3", _m_MultiTexCoord3_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "MultiTexCoord", _m_MultiTexCoord_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "MultiTexCoord2", _m_MultiTexCoord2_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Color", _m_Color_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Flush", _m_Flush_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "RenderTargetBarrier", _m_RenderTargetBarrier_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "MultMatrix", _m_MultMatrix_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "PushMatrix", _m_PushMatrix_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "PopMatrix", _m_PopMatrix_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "LoadIdentity", _m_LoadIdentity_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "LoadOrtho", _m_LoadOrtho_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "LoadPixelMatrix", _m_LoadPixelMatrix_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "LoadProjectionMatrix", _m_LoadProjectionMatrix_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "InvalidateState", _m_InvalidateState_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetGPUProjectionMatrix", _m_GetGPUProjectionMatrix_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "IssuePluginEvent", _m_IssuePluginEvent_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Begin", _m_Begin_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "End", _m_End_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Clear", _m_Clear_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Viewport", _m_Viewport_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "ClearWithSkybox", _m_ClearWithSkybox_xlua_st_); - - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "TRIANGLES", UnityEngine.GL.TRIANGLES); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "TRIANGLE_STRIP", UnityEngine.GL.TRIANGLE_STRIP); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "QUADS", UnityEngine.GL.QUADS); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "LINES", UnityEngine.GL.LINES); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "LINE_STRIP", UnityEngine.GL.LINE_STRIP); - - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "wireframe", _g_get_wireframe); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "sRGBWrite", _g_get_sRGBWrite); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "invertCulling", _g_get_invertCulling); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "modelview", _g_get_modelview); - - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "wireframe", _s_set_wireframe); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "sRGBWrite", _s_set_sRGBWrite); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "invertCulling", _s_set_invertCulling); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "modelview", _s_set_modelview); - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.GL(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.GL constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Vertex3_xlua_st_(RealStatePtr L) - { - try { - - - - - { - float _x = (float)LuaAPI.lua_tonumber(L, 1); - float _y = (float)LuaAPI.lua_tonumber(L, 2); - float _z = (float)LuaAPI.lua_tonumber(L, 3); - - UnityEngine.GL.Vertex3( _x, _y, _z ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Vertex_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Vector3 _v;translator.Get(L, 1, out _v); - - UnityEngine.GL.Vertex( _v ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_TexCoord3_xlua_st_(RealStatePtr L) - { - try { - - - - - { - float _x = (float)LuaAPI.lua_tonumber(L, 1); - float _y = (float)LuaAPI.lua_tonumber(L, 2); - float _z = (float)LuaAPI.lua_tonumber(L, 3); - - UnityEngine.GL.TexCoord3( _x, _y, _z ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_TexCoord_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Vector3 _v;translator.Get(L, 1, out _v); - - UnityEngine.GL.TexCoord( _v ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_TexCoord2_xlua_st_(RealStatePtr L) - { - try { - - - - - { - float _x = (float)LuaAPI.lua_tonumber(L, 1); - float _y = (float)LuaAPI.lua_tonumber(L, 2); - - UnityEngine.GL.TexCoord2( _x, _y ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_MultiTexCoord3_xlua_st_(RealStatePtr L) - { - try { - - - - - { - int _unit = LuaAPI.xlua_tointeger(L, 1); - float _x = (float)LuaAPI.lua_tonumber(L, 2); - float _y = (float)LuaAPI.lua_tonumber(L, 3); - float _z = (float)LuaAPI.lua_tonumber(L, 4); - - UnityEngine.GL.MultiTexCoord3( _unit, _x, _y, _z ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_MultiTexCoord_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - int _unit = LuaAPI.xlua_tointeger(L, 1); - UnityEngine.Vector3 _v;translator.Get(L, 2, out _v); - - UnityEngine.GL.MultiTexCoord( _unit, _v ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_MultiTexCoord2_xlua_st_(RealStatePtr L) - { - try { - - - - - { - int _unit = LuaAPI.xlua_tointeger(L, 1); - float _x = (float)LuaAPI.lua_tonumber(L, 2); - float _y = (float)LuaAPI.lua_tonumber(L, 3); - - UnityEngine.GL.MultiTexCoord2( _unit, _x, _y ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Color_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Color _c;translator.Get(L, 1, out _c); - - UnityEngine.GL.Color( _c ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Flush_xlua_st_(RealStatePtr L) - { - try { - - - - - { - - UnityEngine.GL.Flush( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RenderTargetBarrier_xlua_st_(RealStatePtr L) - { - try { - - - - - { - - UnityEngine.GL.RenderTargetBarrier( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_MultMatrix_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Matrix4x4 _m;translator.Get(L, 1, out _m); - - UnityEngine.GL.MultMatrix( _m ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_PushMatrix_xlua_st_(RealStatePtr L) - { - try { - - - - - { - - UnityEngine.GL.PushMatrix( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_PopMatrix_xlua_st_(RealStatePtr L) - { - try { - - - - - { - - UnityEngine.GL.PopMatrix( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_LoadIdentity_xlua_st_(RealStatePtr L) - { - try { - - - - - { - - UnityEngine.GL.LoadIdentity( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_LoadOrtho_xlua_st_(RealStatePtr L) - { - try { - - - - - { - - UnityEngine.GL.LoadOrtho( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_LoadPixelMatrix_xlua_st_(RealStatePtr L) - { - try { - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 0) - { - - UnityEngine.GL.LoadPixelMatrix( ); - - - - return 0; - } - if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - float _left = (float)LuaAPI.lua_tonumber(L, 1); - float _right = (float)LuaAPI.lua_tonumber(L, 2); - float _bottom = (float)LuaAPI.lua_tonumber(L, 3); - float _top = (float)LuaAPI.lua_tonumber(L, 4); - - UnityEngine.GL.LoadPixelMatrix( _left, _right, _bottom, _top ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.GL.LoadPixelMatrix!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_LoadProjectionMatrix_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Matrix4x4 _mat;translator.Get(L, 1, out _mat); - - UnityEngine.GL.LoadProjectionMatrix( _mat ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_InvalidateState_xlua_st_(RealStatePtr L) - { - try { - - - - - { - - UnityEngine.GL.InvalidateState( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetGPUProjectionMatrix_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Matrix4x4 _proj;translator.Get(L, 1, out _proj); - bool _renderIntoTexture = LuaAPI.lua_toboolean(L, 2); - - var gen_ret = UnityEngine.GL.GetGPUProjectionMatrix( _proj, _renderIntoTexture ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_IssuePluginEvent_xlua_st_(RealStatePtr L) - { - try { - - - - - { - System.IntPtr _callback = LuaAPI.lua_touserdata(L, 1); - int _eventID = LuaAPI.xlua_tointeger(L, 2); - - UnityEngine.GL.IssuePluginEvent( _callback, _eventID ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Begin_xlua_st_(RealStatePtr L) - { - try { - - - - - { - int _mode = LuaAPI.xlua_tointeger(L, 1); - - UnityEngine.GL.Begin( _mode ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_End_xlua_st_(RealStatePtr L) - { - try { - - - - - { - - UnityEngine.GL.End( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Clear_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 1)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)) - { - bool _clearDepth = LuaAPI.lua_toboolean(L, 1); - bool _clearColor = LuaAPI.lua_toboolean(L, 2); - UnityEngine.Color _backgroundColor;translator.Get(L, 3, out _backgroundColor); - - UnityEngine.GL.Clear( _clearDepth, _clearColor, _backgroundColor ); - - - - return 0; - } - if(gen_param_count == 4&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 1)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - bool _clearDepth = LuaAPI.lua_toboolean(L, 1); - bool _clearColor = LuaAPI.lua_toboolean(L, 2); - UnityEngine.Color _backgroundColor;translator.Get(L, 3, out _backgroundColor); - float _depth = (float)LuaAPI.lua_tonumber(L, 4); - - UnityEngine.GL.Clear( _clearDepth, _clearColor, _backgroundColor, _depth ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.GL.Clear!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Viewport_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Rect _pixelRect;translator.Get(L, 1, out _pixelRect); - - UnityEngine.GL.Viewport( _pixelRect ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ClearWithSkybox_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - bool _clearDepth = LuaAPI.lua_toboolean(L, 1); - UnityEngine.Camera _camera = (UnityEngine.Camera)translator.GetObject(L, 2, typeof(UnityEngine.Camera)); - - UnityEngine.GL.ClearWithSkybox( _clearDepth, _camera ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_wireframe(RealStatePtr L) - { - try { - - LuaAPI.lua_pushboolean(L, UnityEngine.GL.wireframe); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_sRGBWrite(RealStatePtr L) - { - try { - - LuaAPI.lua_pushboolean(L, UnityEngine.GL.sRGBWrite); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_invertCulling(RealStatePtr L) - { - try { - - LuaAPI.lua_pushboolean(L, UnityEngine.GL.invertCulling); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_modelview(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, UnityEngine.GL.modelview); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_wireframe(RealStatePtr L) - { - try { - - UnityEngine.GL.wireframe = LuaAPI.lua_toboolean(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_sRGBWrite(RealStatePtr L) - { - try { - - UnityEngine.GL.sRGBWrite = LuaAPI.lua_toboolean(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_invertCulling(RealStatePtr L) - { - try { - - UnityEngine.GL.invertCulling = LuaAPI.lua_toboolean(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_modelview(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - UnityEngine.Matrix4x4 gen_value;translator.Get(L, 1, out gen_value); - UnityEngine.GL.modelview = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_GUIUtilityWrap.cs b/Assets/XLua/Gen/UnityEngine_GUIUtilityWrap.cs deleted file mode 100644 index 8fcfe09f3..000000000 --- a/Assets/XLua/Gen/UnityEngine_GUIUtilityWrap.cs +++ /dev/null @@ -1,571 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineGUIUtilityWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.GUIUtility); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 12, 4, 3); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetControlID", _m_GetControlID_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "AlignRectToDevice", _m_AlignRectToDevice_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetStateObject", _m_GetStateObject_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "QueryStateObject", _m_QueryStateObject_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "ExitGUI", _m_ExitGUI_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GUIToScreenPoint", _m_GUIToScreenPoint_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GUIToScreenRect", _m_GUIToScreenRect_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "ScreenToGUIPoint", _m_ScreenToGUIPoint_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "ScreenToGUIRect", _m_ScreenToGUIRect_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "RotateAroundPivot", _m_RotateAroundPivot_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "ScaleAroundPivot", _m_ScaleAroundPivot_xlua_st_); - - - - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "hasModalWindow", _g_get_hasModalWindow); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "systemCopyBuffer", _g_get_systemCopyBuffer); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "hotControl", _g_get_hotControl); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "keyboardControl", _g_get_keyboardControl); - - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "systemCopyBuffer", _s_set_systemCopyBuffer); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "hotControl", _s_set_hotControl); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "keyboardControl", _s_set_keyboardControl); - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.GUIUtility(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.GUIUtility constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetControlID_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1&& translator.Assignable(L, 1)) - { - UnityEngine.FocusType _focus;translator.Get(L, 1, out _focus); - - var gen_ret = UnityEngine.GUIUtility.GetControlID( _focus ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& translator.Assignable(L, 2)) - { - int _hint = LuaAPI.xlua_tointeger(L, 1); - UnityEngine.FocusType _focus;translator.Get(L, 2, out _focus); - - var gen_ret = UnityEngine.GUIUtility.GetControlID( _hint, _focus ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)) - { - UnityEngine.GUIContent _contents = (UnityEngine.GUIContent)translator.GetObject(L, 1, typeof(UnityEngine.GUIContent)); - UnityEngine.FocusType _focus;translator.Get(L, 2, out _focus); - - var gen_ret = UnityEngine.GUIUtility.GetControlID( _contents, _focus ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)) - { - UnityEngine.FocusType _focus;translator.Get(L, 1, out _focus); - UnityEngine.Rect _position;translator.Get(L, 2, out _position); - - var gen_ret = UnityEngine.GUIUtility.GetControlID( _focus, _position ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)) - { - int _hint = LuaAPI.xlua_tointeger(L, 1); - UnityEngine.FocusType _focusType;translator.Get(L, 2, out _focusType); - UnityEngine.Rect _rect;translator.Get(L, 3, out _rect); - - var gen_ret = UnityEngine.GUIUtility.GetControlID( _hint, _focusType, _rect ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)) - { - UnityEngine.GUIContent _contents = (UnityEngine.GUIContent)translator.GetObject(L, 1, typeof(UnityEngine.GUIContent)); - UnityEngine.FocusType _focus;translator.Get(L, 2, out _focus); - UnityEngine.Rect _position;translator.Get(L, 3, out _position); - - var gen_ret = UnityEngine.GUIUtility.GetControlID( _contents, _focus, _position ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.GUIUtility.GetControlID!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AlignRectToDevice_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1&& translator.Assignable(L, 1)) - { - UnityEngine.Rect _rect;translator.Get(L, 1, out _rect); - - var gen_ret = UnityEngine.GUIUtility.AlignRectToDevice( _rect ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& translator.Assignable(L, 1)) - { - UnityEngine.Rect _rect;translator.Get(L, 1, out _rect); - int _widthInPixels; - int _heightInPixels; - - var gen_ret = UnityEngine.GUIUtility.AlignRectToDevice( _rect, out _widthInPixels, out _heightInPixels ); - translator.Push(L, gen_ret); - LuaAPI.xlua_pushinteger(L, _widthInPixels); - - LuaAPI.xlua_pushinteger(L, _heightInPixels); - - - - - return 3; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.GUIUtility.AlignRectToDevice!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetStateObject_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - System.Type _t = (System.Type)translator.GetObject(L, 1, typeof(System.Type)); - int _controlID = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = UnityEngine.GUIUtility.GetStateObject( _t, _controlID ); - translator.PushAny(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_QueryStateObject_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - System.Type _t = (System.Type)translator.GetObject(L, 1, typeof(System.Type)); - int _controlID = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = UnityEngine.GUIUtility.QueryStateObject( _t, _controlID ); - translator.PushAny(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ExitGUI_xlua_st_(RealStatePtr L) - { - try { - - - - - { - - UnityEngine.GUIUtility.ExitGUI( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GUIToScreenPoint_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Vector2 _guiPoint;translator.Get(L, 1, out _guiPoint); - - var gen_ret = UnityEngine.GUIUtility.GUIToScreenPoint( _guiPoint ); - translator.PushUnityEngineVector2(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GUIToScreenRect_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Rect _guiRect;translator.Get(L, 1, out _guiRect); - - var gen_ret = UnityEngine.GUIUtility.GUIToScreenRect( _guiRect ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ScreenToGUIPoint_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Vector2 _screenPoint;translator.Get(L, 1, out _screenPoint); - - var gen_ret = UnityEngine.GUIUtility.ScreenToGUIPoint( _screenPoint ); - translator.PushUnityEngineVector2(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ScreenToGUIRect_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Rect _screenRect;translator.Get(L, 1, out _screenRect); - - var gen_ret = UnityEngine.GUIUtility.ScreenToGUIRect( _screenRect ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RotateAroundPivot_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - float _angle = (float)LuaAPI.lua_tonumber(L, 1); - UnityEngine.Vector2 _pivotPoint;translator.Get(L, 2, out _pivotPoint); - - UnityEngine.GUIUtility.RotateAroundPivot( _angle, _pivotPoint ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ScaleAroundPivot_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Vector2 _scale;translator.Get(L, 1, out _scale); - UnityEngine.Vector2 _pivotPoint;translator.Get(L, 2, out _pivotPoint); - - UnityEngine.GUIUtility.ScaleAroundPivot( _scale, _pivotPoint ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_hasModalWindow(RealStatePtr L) - { - try { - - LuaAPI.lua_pushboolean(L, UnityEngine.GUIUtility.hasModalWindow); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_systemCopyBuffer(RealStatePtr L) - { - try { - - LuaAPI.lua_pushstring(L, UnityEngine.GUIUtility.systemCopyBuffer); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_hotControl(RealStatePtr L) - { - try { - - LuaAPI.xlua_pushinteger(L, UnityEngine.GUIUtility.hotControl); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_keyboardControl(RealStatePtr L) - { - try { - - LuaAPI.xlua_pushinteger(L, UnityEngine.GUIUtility.keyboardControl); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_systemCopyBuffer(RealStatePtr L) - { - try { - - UnityEngine.GUIUtility.systemCopyBuffer = LuaAPI.lua_tostring(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_hotControl(RealStatePtr L) - { - try { - - UnityEngine.GUIUtility.hotControl = LuaAPI.xlua_tointeger(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_keyboardControl(RealStatePtr L) - { - try { - - UnityEngine.GUIUtility.keyboardControl = LuaAPI.xlua_tointeger(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_GeometryUtilityWrap.cs b/Assets/XLua/Gen/UnityEngine_GeometryUtilityWrap.cs deleted file mode 100644 index 26d425576..000000000 --- a/Assets/XLua/Gen/UnityEngine_GeometryUtilityWrap.cs +++ /dev/null @@ -1,238 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineGeometryUtilityWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.GeometryUtility); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 5, 0, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "CalculateFrustumPlanes", _m_CalculateFrustumPlanes_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "CalculateBounds", _m_CalculateBounds_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "TryCreatePlaneFromPolygon", _m_TryCreatePlaneFromPolygon_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "TestPlanesAABB", _m_TestPlanesAABB_xlua_st_); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.GeometryUtility(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.GeometryUtility constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CalculateFrustumPlanes_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1&& translator.Assignable(L, 1)) - { - UnityEngine.Camera _camera = (UnityEngine.Camera)translator.GetObject(L, 1, typeof(UnityEngine.Camera)); - - var gen_ret = UnityEngine.GeometryUtility.CalculateFrustumPlanes( _camera ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& translator.Assignable(L, 1)) - { - UnityEngine.Matrix4x4 _worldToProjectionMatrix;translator.Get(L, 1, out _worldToProjectionMatrix); - - var gen_ret = UnityEngine.GeometryUtility.CalculateFrustumPlanes( _worldToProjectionMatrix ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)) - { - UnityEngine.Camera _camera = (UnityEngine.Camera)translator.GetObject(L, 1, typeof(UnityEngine.Camera)); - UnityEngine.Plane[] _planes = (UnityEngine.Plane[])translator.GetObject(L, 2, typeof(UnityEngine.Plane[])); - - UnityEngine.GeometryUtility.CalculateFrustumPlanes( _camera, _planes ); - - - - return 0; - } - if(gen_param_count == 2&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)) - { - UnityEngine.Matrix4x4 _worldToProjectionMatrix;translator.Get(L, 1, out _worldToProjectionMatrix); - UnityEngine.Plane[] _planes = (UnityEngine.Plane[])translator.GetObject(L, 2, typeof(UnityEngine.Plane[])); - - UnityEngine.GeometryUtility.CalculateFrustumPlanes( _worldToProjectionMatrix, _planes ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.GeometryUtility.CalculateFrustumPlanes!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CalculateBounds_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Vector3[] _positions = (UnityEngine.Vector3[])translator.GetObject(L, 1, typeof(UnityEngine.Vector3[])); - UnityEngine.Matrix4x4 _transform;translator.Get(L, 2, out _transform); - - var gen_ret = UnityEngine.GeometryUtility.CalculateBounds( _positions, _transform ); - translator.PushUnityEngineBounds(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_TryCreatePlaneFromPolygon_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Vector3[] _vertices = (UnityEngine.Vector3[])translator.GetObject(L, 1, typeof(UnityEngine.Vector3[])); - UnityEngine.Plane _plane; - - var gen_ret = UnityEngine.GeometryUtility.TryCreatePlaneFromPolygon( _vertices, out _plane ); - LuaAPI.lua_pushboolean(L, gen_ret); - translator.Push(L, _plane); - - - - - return 2; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_TestPlanesAABB_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Plane[] _planes = (UnityEngine.Plane[])translator.GetObject(L, 1, typeof(UnityEngine.Plane[])); - UnityEngine.Bounds _bounds;translator.Get(L, 2, out _bounds); - - var gen_ret = UnityEngine.GeometryUtility.TestPlanesAABB( _planes, _bounds ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_GradientAlphaKeyWrap.cs b/Assets/XLua/Gen/UnityEngine_GradientAlphaKeyWrap.cs deleted file mode 100644 index 22f6940d2..000000000 --- a/Assets/XLua/Gen/UnityEngine_GradientAlphaKeyWrap.cs +++ /dev/null @@ -1,158 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineGradientAlphaKeyWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.GradientAlphaKey); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 2, 2); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "alpha", _g_get_alpha); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "time", _g_get_time); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "alpha", _s_set_alpha); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "time", _s_set_time); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 3 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - float _alpha = (float)LuaAPI.lua_tonumber(L, 2); - float _time = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = new UnityEngine.GradientAlphaKey(_alpha, _time); - translator.Push(L, gen_ret); - - return 1; - } - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(UnityEngine.GradientAlphaKey)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.GradientAlphaKey constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_alpha(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.GradientAlphaKey gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.alpha); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_time(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.GradientAlphaKey gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.time); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_alpha(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.GradientAlphaKey gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.alpha = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_time(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.GradientAlphaKey gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.time = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_GradientColorKeyWrap.cs b/Assets/XLua/Gen/UnityEngine_GradientColorKeyWrap.cs deleted file mode 100644 index 3001749f3..000000000 --- a/Assets/XLua/Gen/UnityEngine_GradientColorKeyWrap.cs +++ /dev/null @@ -1,159 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineGradientColorKeyWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.GradientColorKey); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 2, 2); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "color", _g_get_color); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "time", _g_get_time); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "color", _s_set_color); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "time", _s_set_time); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 3 && translator.Assignable(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - UnityEngine.Color _col;translator.Get(L, 2, out _col); - float _time = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = new UnityEngine.GradientColorKey(_col, _time); - translator.Push(L, gen_ret); - - return 1; - } - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(UnityEngine.GradientColorKey)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.GradientColorKey constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_color(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.GradientColorKey gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineColor(L, gen_to_be_invoked.color); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_time(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.GradientColorKey gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.time); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_color(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.GradientColorKey gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Color gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.color = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_time(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.GradientColorKey gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.time = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_GradientWrap.cs b/Assets/XLua/Gen/UnityEngine_GradientWrap.cs deleted file mode 100644 index f375323d4..000000000 --- a/Assets/XLua/Gen/UnityEngine_GradientWrap.cs +++ /dev/null @@ -1,312 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineGradientWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.Gradient); - Utils.BeginObjectRegister(type, L, translator, 0, 4, 3, 3); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Evaluate", _m_Evaluate); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetKeys", _m_SetKeys); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Equals", _m_Equals); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetHashCode", _m_GetHashCode); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "colorKeys", _g_get_colorKeys); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "alphaKeys", _g_get_alphaKeys); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "mode", _g_get_mode); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "colorKeys", _s_set_colorKeys); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "alphaKeys", _s_set_alphaKeys); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "mode", _s_set_mode); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.Gradient(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Gradient constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Evaluate(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Gradient gen_to_be_invoked = (UnityEngine.Gradient)translator.FastGetCSObj(L, 1); - - - - { - float _time = (float)LuaAPI.lua_tonumber(L, 2); - - var gen_ret = gen_to_be_invoked.Evaluate( _time ); - translator.PushUnityEngineColor(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetKeys(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Gradient gen_to_be_invoked = (UnityEngine.Gradient)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.GradientColorKey[] _colorKeys = (UnityEngine.GradientColorKey[])translator.GetObject(L, 2, typeof(UnityEngine.GradientColorKey[])); - UnityEngine.GradientAlphaKey[] _alphaKeys = (UnityEngine.GradientAlphaKey[])translator.GetObject(L, 3, typeof(UnityEngine.GradientAlphaKey[])); - - gen_to_be_invoked.SetKeys( _colorKeys, _alphaKeys ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Equals(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Gradient gen_to_be_invoked = (UnityEngine.Gradient)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - object _o = translator.GetObject(L, 2, typeof(object)); - - var gen_ret = gen_to_be_invoked.Equals( _o ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.Gradient _other = (UnityEngine.Gradient)translator.GetObject(L, 2, typeof(UnityEngine.Gradient)); - - var gen_ret = gen_to_be_invoked.Equals( _other ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Gradient.Equals!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetHashCode(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Gradient gen_to_be_invoked = (UnityEngine.Gradient)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.GetHashCode( ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_colorKeys(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Gradient gen_to_be_invoked = (UnityEngine.Gradient)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.colorKeys); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_alphaKeys(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Gradient gen_to_be_invoked = (UnityEngine.Gradient)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.alphaKeys); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_mode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Gradient gen_to_be_invoked = (UnityEngine.Gradient)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.mode); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_colorKeys(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Gradient gen_to_be_invoked = (UnityEngine.Gradient)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.colorKeys = (UnityEngine.GradientColorKey[])translator.GetObject(L, 2, typeof(UnityEngine.GradientColorKey[])); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_alphaKeys(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Gradient gen_to_be_invoked = (UnityEngine.Gradient)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.alphaKeys = (UnityEngine.GradientAlphaKey[])translator.GetObject(L, 2, typeof(UnityEngine.GradientAlphaKey[])); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_mode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Gradient gen_to_be_invoked = (UnityEngine.Gradient)translator.FastGetCSObj(L, 1); - UnityEngine.GradientMode gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.mode = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_GraphicsBufferWrap.cs b/Assets/XLua/Gen/UnityEngine_GraphicsBufferWrap.cs deleted file mode 100644 index 617312a5e..000000000 --- a/Assets/XLua/Gen/UnityEngine_GraphicsBufferWrap.cs +++ /dev/null @@ -1,421 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineGraphicsBufferWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.GraphicsBuffer); - Utils.BeginObjectRegister(type, L, translator, 0, 7, 2, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Dispose", _m_Dispose); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Release", _m_Release); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsValid", _m_IsValid); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetData", _m_SetData); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetData", _m_GetData); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetNativeBufferPtr", _m_GetNativeBufferPtr); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetCounterValue", _m_SetCounterValue); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "count", _g_get_count); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "stride", _g_get_stride); - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 2, 0, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "CopyCount", _m_CopyCount_xlua_st_); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 4 && translator.Assignable(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - UnityEngine.GraphicsBuffer.Target _target;translator.Get(L, 2, out _target); - int _count = LuaAPI.xlua_tointeger(L, 3); - int _stride = LuaAPI.xlua_tointeger(L, 4); - - var gen_ret = new UnityEngine.GraphicsBuffer(_target, _count, _stride); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.GraphicsBuffer constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Dispose(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.GraphicsBuffer gen_to_be_invoked = (UnityEngine.GraphicsBuffer)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Dispose( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Release(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.GraphicsBuffer gen_to_be_invoked = (UnityEngine.GraphicsBuffer)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Release( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_IsValid(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.GraphicsBuffer gen_to_be_invoked = (UnityEngine.GraphicsBuffer)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.IsValid( ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetData(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.GraphicsBuffer gen_to_be_invoked = (UnityEngine.GraphicsBuffer)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - System.Array _data = (System.Array)translator.GetObject(L, 2, typeof(System.Array)); - - gen_to_be_invoked.SetData( _data ); - - - - return 0; - } - if(gen_param_count == 5&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - System.Array _data = (System.Array)translator.GetObject(L, 2, typeof(System.Array)); - int _managedBufferStartIndex = LuaAPI.xlua_tointeger(L, 3); - int _graphicsBufferStartIndex = LuaAPI.xlua_tointeger(L, 4); - int _count = LuaAPI.xlua_tointeger(L, 5); - - gen_to_be_invoked.SetData( _data, _managedBufferStartIndex, _graphicsBufferStartIndex, _count ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.GraphicsBuffer.SetData!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetData(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.GraphicsBuffer gen_to_be_invoked = (UnityEngine.GraphicsBuffer)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - System.Array _data = (System.Array)translator.GetObject(L, 2, typeof(System.Array)); - - gen_to_be_invoked.GetData( _data ); - - - - return 0; - } - if(gen_param_count == 5&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - System.Array _data = (System.Array)translator.GetObject(L, 2, typeof(System.Array)); - int _managedBufferStartIndex = LuaAPI.xlua_tointeger(L, 3); - int _computeBufferStartIndex = LuaAPI.xlua_tointeger(L, 4); - int _count = LuaAPI.xlua_tointeger(L, 5); - - gen_to_be_invoked.GetData( _data, _managedBufferStartIndex, _computeBufferStartIndex, _count ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.GraphicsBuffer.GetData!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetNativeBufferPtr(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.GraphicsBuffer gen_to_be_invoked = (UnityEngine.GraphicsBuffer)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.GetNativeBufferPtr( ); - LuaAPI.lua_pushlightuserdata(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetCounterValue(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.GraphicsBuffer gen_to_be_invoked = (UnityEngine.GraphicsBuffer)translator.FastGetCSObj(L, 1); - - - - { - uint _counterValue = LuaAPI.xlua_touint(L, 2); - - gen_to_be_invoked.SetCounterValue( _counterValue ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CopyCount_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - UnityEngine.ComputeBuffer _src = (UnityEngine.ComputeBuffer)translator.GetObject(L, 1, typeof(UnityEngine.ComputeBuffer)); - UnityEngine.ComputeBuffer _dst = (UnityEngine.ComputeBuffer)translator.GetObject(L, 2, typeof(UnityEngine.ComputeBuffer)); - int _dstOffsetBytes = LuaAPI.xlua_tointeger(L, 3); - - UnityEngine.GraphicsBuffer.CopyCount( _src, _dst, _dstOffsetBytes ); - - - - return 0; - } - if(gen_param_count == 3&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - UnityEngine.GraphicsBuffer _src = (UnityEngine.GraphicsBuffer)translator.GetObject(L, 1, typeof(UnityEngine.GraphicsBuffer)); - UnityEngine.ComputeBuffer _dst = (UnityEngine.ComputeBuffer)translator.GetObject(L, 2, typeof(UnityEngine.ComputeBuffer)); - int _dstOffsetBytes = LuaAPI.xlua_tointeger(L, 3); - - UnityEngine.GraphicsBuffer.CopyCount( _src, _dst, _dstOffsetBytes ); - - - - return 0; - } - if(gen_param_count == 3&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - UnityEngine.ComputeBuffer _src = (UnityEngine.ComputeBuffer)translator.GetObject(L, 1, typeof(UnityEngine.ComputeBuffer)); - UnityEngine.GraphicsBuffer _dst = (UnityEngine.GraphicsBuffer)translator.GetObject(L, 2, typeof(UnityEngine.GraphicsBuffer)); - int _dstOffsetBytes = LuaAPI.xlua_tointeger(L, 3); - - UnityEngine.GraphicsBuffer.CopyCount( _src, _dst, _dstOffsetBytes ); - - - - return 0; - } - if(gen_param_count == 3&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - UnityEngine.GraphicsBuffer _src = (UnityEngine.GraphicsBuffer)translator.GetObject(L, 1, typeof(UnityEngine.GraphicsBuffer)); - UnityEngine.GraphicsBuffer _dst = (UnityEngine.GraphicsBuffer)translator.GetObject(L, 2, typeof(UnityEngine.GraphicsBuffer)); - int _dstOffsetBytes = LuaAPI.xlua_tointeger(L, 3); - - UnityEngine.GraphicsBuffer.CopyCount( _src, _dst, _dstOffsetBytes ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.GraphicsBuffer.CopyCount!"); - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_count(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.GraphicsBuffer gen_to_be_invoked = (UnityEngine.GraphicsBuffer)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.count); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_stride(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.GraphicsBuffer gen_to_be_invoked = (UnityEngine.GraphicsBuffer)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.stride); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_GridBrushBaseWrap.cs b/Assets/XLua/Gen/UnityEngine_GridBrushBaseWrap.cs deleted file mode 100644 index 1db4a9e69..000000000 --- a/Assets/XLua/Gen/UnityEngine_GridBrushBaseWrap.cs +++ /dev/null @@ -1,496 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineGridBrushBaseWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.GridBrushBase); - Utils.BeginObjectRegister(type, L, translator, 0, 14, 0, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Paint", _m_Paint); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Erase", _m_Erase); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "BoxFill", _m_BoxFill); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "BoxErase", _m_BoxErase); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Select", _m_Select); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "FloodFill", _m_FloodFill); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Rotate", _m_Rotate); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Flip", _m_Flip); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Pick", _m_Pick); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Move", _m_Move); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "MoveStart", _m_MoveStart); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "MoveEnd", _m_MoveEnd); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ChangeZPosition", _m_ChangeZPosition); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ResetZPosition", _m_ResetZPosition); - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "UnityEngine.GridBrushBase does not have a constructor!"); - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Paint(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.GridBrushBase gen_to_be_invoked = (UnityEngine.GridBrushBase)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.GridLayout _gridLayout = (UnityEngine.GridLayout)translator.GetObject(L, 2, typeof(UnityEngine.GridLayout)); - UnityEngine.GameObject _brushTarget = (UnityEngine.GameObject)translator.GetObject(L, 3, typeof(UnityEngine.GameObject)); - UnityEngine.Vector3Int _position;translator.Get(L, 4, out _position); - - gen_to_be_invoked.Paint( _gridLayout, _brushTarget, _position ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Erase(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.GridBrushBase gen_to_be_invoked = (UnityEngine.GridBrushBase)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.GridLayout _gridLayout = (UnityEngine.GridLayout)translator.GetObject(L, 2, typeof(UnityEngine.GridLayout)); - UnityEngine.GameObject _brushTarget = (UnityEngine.GameObject)translator.GetObject(L, 3, typeof(UnityEngine.GameObject)); - UnityEngine.Vector3Int _position;translator.Get(L, 4, out _position); - - gen_to_be_invoked.Erase( _gridLayout, _brushTarget, _position ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_BoxFill(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.GridBrushBase gen_to_be_invoked = (UnityEngine.GridBrushBase)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.GridLayout _gridLayout = (UnityEngine.GridLayout)translator.GetObject(L, 2, typeof(UnityEngine.GridLayout)); - UnityEngine.GameObject _brushTarget = (UnityEngine.GameObject)translator.GetObject(L, 3, typeof(UnityEngine.GameObject)); - UnityEngine.BoundsInt _position;translator.Get(L, 4, out _position); - - gen_to_be_invoked.BoxFill( _gridLayout, _brushTarget, _position ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_BoxErase(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.GridBrushBase gen_to_be_invoked = (UnityEngine.GridBrushBase)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.GridLayout _gridLayout = (UnityEngine.GridLayout)translator.GetObject(L, 2, typeof(UnityEngine.GridLayout)); - UnityEngine.GameObject _brushTarget = (UnityEngine.GameObject)translator.GetObject(L, 3, typeof(UnityEngine.GameObject)); - UnityEngine.BoundsInt _position;translator.Get(L, 4, out _position); - - gen_to_be_invoked.BoxErase( _gridLayout, _brushTarget, _position ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Select(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.GridBrushBase gen_to_be_invoked = (UnityEngine.GridBrushBase)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.GridLayout _gridLayout = (UnityEngine.GridLayout)translator.GetObject(L, 2, typeof(UnityEngine.GridLayout)); - UnityEngine.GameObject _brushTarget = (UnityEngine.GameObject)translator.GetObject(L, 3, typeof(UnityEngine.GameObject)); - UnityEngine.BoundsInt _position;translator.Get(L, 4, out _position); - - gen_to_be_invoked.Select( _gridLayout, _brushTarget, _position ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_FloodFill(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.GridBrushBase gen_to_be_invoked = (UnityEngine.GridBrushBase)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.GridLayout _gridLayout = (UnityEngine.GridLayout)translator.GetObject(L, 2, typeof(UnityEngine.GridLayout)); - UnityEngine.GameObject _brushTarget = (UnityEngine.GameObject)translator.GetObject(L, 3, typeof(UnityEngine.GameObject)); - UnityEngine.Vector3Int _position;translator.Get(L, 4, out _position); - - gen_to_be_invoked.FloodFill( _gridLayout, _brushTarget, _position ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Rotate(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.GridBrushBase gen_to_be_invoked = (UnityEngine.GridBrushBase)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.GridBrushBase.RotationDirection _direction;translator.Get(L, 2, out _direction); - UnityEngine.GridLayout.CellLayout _layout;translator.Get(L, 3, out _layout); - - gen_to_be_invoked.Rotate( _direction, _layout ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Flip(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.GridBrushBase gen_to_be_invoked = (UnityEngine.GridBrushBase)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.GridBrushBase.FlipAxis _flip;translator.Get(L, 2, out _flip); - UnityEngine.GridLayout.CellLayout _layout;translator.Get(L, 3, out _layout); - - gen_to_be_invoked.Flip( _flip, _layout ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Pick(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.GridBrushBase gen_to_be_invoked = (UnityEngine.GridBrushBase)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.GridLayout _gridLayout = (UnityEngine.GridLayout)translator.GetObject(L, 2, typeof(UnityEngine.GridLayout)); - UnityEngine.GameObject _brushTarget = (UnityEngine.GameObject)translator.GetObject(L, 3, typeof(UnityEngine.GameObject)); - UnityEngine.BoundsInt _position;translator.Get(L, 4, out _position); - UnityEngine.Vector3Int _pivot;translator.Get(L, 5, out _pivot); - - gen_to_be_invoked.Pick( _gridLayout, _brushTarget, _position, _pivot ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Move(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.GridBrushBase gen_to_be_invoked = (UnityEngine.GridBrushBase)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.GridLayout _gridLayout = (UnityEngine.GridLayout)translator.GetObject(L, 2, typeof(UnityEngine.GridLayout)); - UnityEngine.GameObject _brushTarget = (UnityEngine.GameObject)translator.GetObject(L, 3, typeof(UnityEngine.GameObject)); - UnityEngine.BoundsInt _from;translator.Get(L, 4, out _from); - UnityEngine.BoundsInt _to;translator.Get(L, 5, out _to); - - gen_to_be_invoked.Move( _gridLayout, _brushTarget, _from, _to ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_MoveStart(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.GridBrushBase gen_to_be_invoked = (UnityEngine.GridBrushBase)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.GridLayout _gridLayout = (UnityEngine.GridLayout)translator.GetObject(L, 2, typeof(UnityEngine.GridLayout)); - UnityEngine.GameObject _brushTarget = (UnityEngine.GameObject)translator.GetObject(L, 3, typeof(UnityEngine.GameObject)); - UnityEngine.BoundsInt _position;translator.Get(L, 4, out _position); - - gen_to_be_invoked.MoveStart( _gridLayout, _brushTarget, _position ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_MoveEnd(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.GridBrushBase gen_to_be_invoked = (UnityEngine.GridBrushBase)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.GridLayout _gridLayout = (UnityEngine.GridLayout)translator.GetObject(L, 2, typeof(UnityEngine.GridLayout)); - UnityEngine.GameObject _brushTarget = (UnityEngine.GameObject)translator.GetObject(L, 3, typeof(UnityEngine.GameObject)); - UnityEngine.BoundsInt _position;translator.Get(L, 4, out _position); - - gen_to_be_invoked.MoveEnd( _gridLayout, _brushTarget, _position ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ChangeZPosition(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.GridBrushBase gen_to_be_invoked = (UnityEngine.GridBrushBase)translator.FastGetCSObj(L, 1); - - - - { - int _change = LuaAPI.xlua_tointeger(L, 2); - - gen_to_be_invoked.ChangeZPosition( _change ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ResetZPosition(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.GridBrushBase gen_to_be_invoked = (UnityEngine.GridBrushBase)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.ResetZPosition( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_GridLayoutWrap.cs b/Assets/XLua/Gen/UnityEngine_GridLayoutWrap.cs deleted file mode 100644 index 290c75e14..000000000 --- a/Assets/XLua/Gen/UnityEngine_GridLayoutWrap.cs +++ /dev/null @@ -1,459 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineGridLayoutWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.GridLayout); - Utils.BeginObjectRegister(type, L, translator, 0, 10, 4, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetBoundsLocal", _m_GetBoundsLocal); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "CellToLocal", _m_CellToLocal); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "LocalToCell", _m_LocalToCell); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "CellToLocalInterpolated", _m_CellToLocalInterpolated); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "LocalToCellInterpolated", _m_LocalToCellInterpolated); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "CellToWorld", _m_CellToWorld); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "WorldToCell", _m_WorldToCell); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "LocalToWorld", _m_LocalToWorld); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "WorldToLocal", _m_WorldToLocal); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetLayoutCellCenter", _m_GetLayoutCellCenter); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "cellSize", _g_get_cellSize); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "cellGap", _g_get_cellGap); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "cellLayout", _g_get_cellLayout); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "cellSwizzle", _g_get_cellSwizzle); - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.GridLayout(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.GridLayout constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetBoundsLocal(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.GridLayout gen_to_be_invoked = (UnityEngine.GridLayout)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.Vector3Int _cellPosition;translator.Get(L, 2, out _cellPosition); - - var gen_ret = gen_to_be_invoked.GetBoundsLocal( _cellPosition ); - translator.PushUnityEngineBounds(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)) - { - UnityEngine.Vector3 _origin;translator.Get(L, 2, out _origin); - UnityEngine.Vector3 _size;translator.Get(L, 3, out _size); - - var gen_ret = gen_to_be_invoked.GetBoundsLocal( _origin, _size ); - translator.PushUnityEngineBounds(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.GridLayout.GetBoundsLocal!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CellToLocal(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.GridLayout gen_to_be_invoked = (UnityEngine.GridLayout)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Vector3Int _cellPosition;translator.Get(L, 2, out _cellPosition); - - var gen_ret = gen_to_be_invoked.CellToLocal( _cellPosition ); - translator.PushUnityEngineVector3(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_LocalToCell(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.GridLayout gen_to_be_invoked = (UnityEngine.GridLayout)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Vector3 _localPosition;translator.Get(L, 2, out _localPosition); - - var gen_ret = gen_to_be_invoked.LocalToCell( _localPosition ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CellToLocalInterpolated(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.GridLayout gen_to_be_invoked = (UnityEngine.GridLayout)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Vector3 _cellPosition;translator.Get(L, 2, out _cellPosition); - - var gen_ret = gen_to_be_invoked.CellToLocalInterpolated( _cellPosition ); - translator.PushUnityEngineVector3(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_LocalToCellInterpolated(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.GridLayout gen_to_be_invoked = (UnityEngine.GridLayout)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Vector3 _localPosition;translator.Get(L, 2, out _localPosition); - - var gen_ret = gen_to_be_invoked.LocalToCellInterpolated( _localPosition ); - translator.PushUnityEngineVector3(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CellToWorld(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.GridLayout gen_to_be_invoked = (UnityEngine.GridLayout)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Vector3Int _cellPosition;translator.Get(L, 2, out _cellPosition); - - var gen_ret = gen_to_be_invoked.CellToWorld( _cellPosition ); - translator.PushUnityEngineVector3(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_WorldToCell(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.GridLayout gen_to_be_invoked = (UnityEngine.GridLayout)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Vector3 _worldPosition;translator.Get(L, 2, out _worldPosition); - - var gen_ret = gen_to_be_invoked.WorldToCell( _worldPosition ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_LocalToWorld(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.GridLayout gen_to_be_invoked = (UnityEngine.GridLayout)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Vector3 _localPosition;translator.Get(L, 2, out _localPosition); - - var gen_ret = gen_to_be_invoked.LocalToWorld( _localPosition ); - translator.PushUnityEngineVector3(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_WorldToLocal(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.GridLayout gen_to_be_invoked = (UnityEngine.GridLayout)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Vector3 _worldPosition;translator.Get(L, 2, out _worldPosition); - - var gen_ret = gen_to_be_invoked.WorldToLocal( _worldPosition ); - translator.PushUnityEngineVector3(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetLayoutCellCenter(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.GridLayout gen_to_be_invoked = (UnityEngine.GridLayout)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.GetLayoutCellCenter( ); - translator.PushUnityEngineVector3(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_cellSize(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.GridLayout gen_to_be_invoked = (UnityEngine.GridLayout)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.cellSize); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_cellGap(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.GridLayout gen_to_be_invoked = (UnityEngine.GridLayout)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.cellGap); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_cellLayout(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.GridLayout gen_to_be_invoked = (UnityEngine.GridLayout)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.cellLayout); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_cellSwizzle(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.GridLayout gen_to_be_invoked = (UnityEngine.GridLayout)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.cellSwizzle); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_GridWrap.cs b/Assets/XLua/Gen/UnityEngine_GridWrap.cs deleted file mode 100644 index 0907936e4..000000000 --- a/Assets/XLua/Gen/UnityEngine_GridWrap.cs +++ /dev/null @@ -1,330 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineGridWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.Grid); - Utils.BeginObjectRegister(type, L, translator, 0, 2, 4, 4); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetCellCenterLocal", _m_GetCellCenterLocal); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetCellCenterWorld", _m_GetCellCenterWorld); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "cellSize", _g_get_cellSize); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "cellGap", _g_get_cellGap); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "cellLayout", _g_get_cellLayout); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "cellSwizzle", _g_get_cellSwizzle); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "cellSize", _s_set_cellSize); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "cellGap", _s_set_cellGap); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "cellLayout", _s_set_cellLayout); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "cellSwizzle", _s_set_cellSwizzle); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 3, 0, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Swizzle", _m_Swizzle_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "InverseSwizzle", _m_InverseSwizzle_xlua_st_); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.Grid(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Grid constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetCellCenterLocal(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Grid gen_to_be_invoked = (UnityEngine.Grid)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Vector3Int _position;translator.Get(L, 2, out _position); - - var gen_ret = gen_to_be_invoked.GetCellCenterLocal( _position ); - translator.PushUnityEngineVector3(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetCellCenterWorld(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Grid gen_to_be_invoked = (UnityEngine.Grid)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Vector3Int _position;translator.Get(L, 2, out _position); - - var gen_ret = gen_to_be_invoked.GetCellCenterWorld( _position ); - translator.PushUnityEngineVector3(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Swizzle_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.GridLayout.CellSwizzle _swizzle;translator.Get(L, 1, out _swizzle); - UnityEngine.Vector3 _position;translator.Get(L, 2, out _position); - - var gen_ret = UnityEngine.Grid.Swizzle( _swizzle, _position ); - translator.PushUnityEngineVector3(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_InverseSwizzle_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.GridLayout.CellSwizzle _swizzle;translator.Get(L, 1, out _swizzle); - UnityEngine.Vector3 _position;translator.Get(L, 2, out _position); - - var gen_ret = UnityEngine.Grid.InverseSwizzle( _swizzle, _position ); - translator.PushUnityEngineVector3(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_cellSize(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Grid gen_to_be_invoked = (UnityEngine.Grid)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.cellSize); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_cellGap(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Grid gen_to_be_invoked = (UnityEngine.Grid)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.cellGap); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_cellLayout(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Grid gen_to_be_invoked = (UnityEngine.Grid)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.cellLayout); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_cellSwizzle(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Grid gen_to_be_invoked = (UnityEngine.Grid)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.cellSwizzle); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_cellSize(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Grid gen_to_be_invoked = (UnityEngine.Grid)translator.FastGetCSObj(L, 1); - UnityEngine.Vector3 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.cellSize = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_cellGap(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Grid gen_to_be_invoked = (UnityEngine.Grid)translator.FastGetCSObj(L, 1); - UnityEngine.Vector3 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.cellGap = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_cellLayout(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Grid gen_to_be_invoked = (UnityEngine.Grid)translator.FastGetCSObj(L, 1); - UnityEngine.GridLayout.CellLayout gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.cellLayout = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_cellSwizzle(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Grid gen_to_be_invoked = (UnityEngine.Grid)translator.FastGetCSObj(L, 1); - UnityEngine.GridLayout.CellSwizzle gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.cellSwizzle = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_GyroscopeWrap.cs b/Assets/XLua/Gen/UnityEngine_GyroscopeWrap.cs deleted file mode 100644 index ad4fd0cc4..000000000 --- a/Assets/XLua/Gen/UnityEngine_GyroscopeWrap.cs +++ /dev/null @@ -1,204 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineGyroscopeWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.Gyroscope); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 7, 2); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "rotationRate", _g_get_rotationRate); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "rotationRateUnbiased", _g_get_rotationRateUnbiased); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "gravity", _g_get_gravity); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "userAcceleration", _g_get_userAcceleration); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "attitude", _g_get_attitude); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "enabled", _g_get_enabled); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "updateInterval", _g_get_updateInterval); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "enabled", _s_set_enabled); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "updateInterval", _s_set_updateInterval); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "UnityEngine.Gyroscope does not have a constructor!"); - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_rotationRate(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Gyroscope gen_to_be_invoked = (UnityEngine.Gyroscope)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.rotationRate); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_rotationRateUnbiased(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Gyroscope gen_to_be_invoked = (UnityEngine.Gyroscope)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.rotationRateUnbiased); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_gravity(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Gyroscope gen_to_be_invoked = (UnityEngine.Gyroscope)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.gravity); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_userAcceleration(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Gyroscope gen_to_be_invoked = (UnityEngine.Gyroscope)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.userAcceleration); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_attitude(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Gyroscope gen_to_be_invoked = (UnityEngine.Gyroscope)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineQuaternion(L, gen_to_be_invoked.attitude); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_enabled(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Gyroscope gen_to_be_invoked = (UnityEngine.Gyroscope)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.enabled); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_updateInterval(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Gyroscope gen_to_be_invoked = (UnityEngine.Gyroscope)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.updateInterval); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_enabled(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Gyroscope gen_to_be_invoked = (UnityEngine.Gyroscope)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.enabled = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_updateInterval(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Gyroscope gen_to_be_invoked = (UnityEngine.Gyroscope)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.updateInterval = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_HDROutputSettingsWrap.cs b/Assets/XLua/Gen/UnityEngine_HDROutputSettingsWrap.cs deleted file mode 100644 index bdb8ef428..000000000 --- a/Assets/XLua/Gen/UnityEngine_HDROutputSettingsWrap.cs +++ /dev/null @@ -1,333 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineHDROutputSettingsWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.HDROutputSettings); - Utils.BeginObjectRegister(type, L, translator, 0, 1, 11, 2); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "RequestHDRModeChange", _m_RequestHDRModeChange); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "active", _g_get_active); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "available", _g_get_available); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "automaticHDRTonemapping", _g_get_automaticHDRTonemapping); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "displayColorGamut", _g_get_displayColorGamut); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "format", _g_get_format); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "graphicsFormat", _g_get_graphicsFormat); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "paperWhiteNits", _g_get_paperWhiteNits); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "maxFullFrameToneMapLuminance", _g_get_maxFullFrameToneMapLuminance); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "maxToneMapLuminance", _g_get_maxToneMapLuminance); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "minToneMapLuminance", _g_get_minToneMapLuminance); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "HDRModeChangeRequested", _g_get_HDRModeChangeRequested); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "automaticHDRTonemapping", _s_set_automaticHDRTonemapping); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "paperWhiteNits", _s_set_paperWhiteNits); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 2, 1); - - - - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "main", _g_get_main); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "displays", _g_get_displays); - - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "displays", _s_set_displays); - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "UnityEngine.HDROutputSettings does not have a constructor!"); - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RequestHDRModeChange(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.HDROutputSettings gen_to_be_invoked = (UnityEngine.HDROutputSettings)translator.FastGetCSObj(L, 1); - - - - { - bool _enabled = LuaAPI.lua_toboolean(L, 2); - - gen_to_be_invoked.RequestHDRModeChange( _enabled ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_main(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, UnityEngine.HDROutputSettings.main); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_active(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.HDROutputSettings gen_to_be_invoked = (UnityEngine.HDROutputSettings)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.active); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_available(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.HDROutputSettings gen_to_be_invoked = (UnityEngine.HDROutputSettings)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.available); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_automaticHDRTonemapping(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.HDROutputSettings gen_to_be_invoked = (UnityEngine.HDROutputSettings)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.automaticHDRTonemapping); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_displayColorGamut(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.HDROutputSettings gen_to_be_invoked = (UnityEngine.HDROutputSettings)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.displayColorGamut); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_format(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.HDROutputSettings gen_to_be_invoked = (UnityEngine.HDROutputSettings)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineRenderTextureFormat(L, gen_to_be_invoked.format); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_graphicsFormat(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.HDROutputSettings gen_to_be_invoked = (UnityEngine.HDROutputSettings)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.graphicsFormat); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_paperWhiteNits(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.HDROutputSettings gen_to_be_invoked = (UnityEngine.HDROutputSettings)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.paperWhiteNits); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_maxFullFrameToneMapLuminance(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.HDROutputSettings gen_to_be_invoked = (UnityEngine.HDROutputSettings)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.maxFullFrameToneMapLuminance); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_maxToneMapLuminance(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.HDROutputSettings gen_to_be_invoked = (UnityEngine.HDROutputSettings)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.maxToneMapLuminance); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_minToneMapLuminance(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.HDROutputSettings gen_to_be_invoked = (UnityEngine.HDROutputSettings)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.minToneMapLuminance); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_HDRModeChangeRequested(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.HDROutputSettings gen_to_be_invoked = (UnityEngine.HDROutputSettings)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.HDRModeChangeRequested); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_displays(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, UnityEngine.HDROutputSettings.displays); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_automaticHDRTonemapping(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.HDROutputSettings gen_to_be_invoked = (UnityEngine.HDROutputSettings)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.automaticHDRTonemapping = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_paperWhiteNits(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.HDROutputSettings gen_to_be_invoked = (UnityEngine.HDROutputSettings)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.paperWhiteNits = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_displays(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - UnityEngine.HDROutputSettings.displays = (UnityEngine.HDROutputSettings[])translator.GetObject(L, 1, typeof(UnityEngine.HDROutputSettings[])); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_Hash128Wrap.cs b/Assets/XLua/Gen/UnityEngine_Hash128Wrap.cs deleted file mode 100644 index 2074a4c36..000000000 --- a/Assets/XLua/Gen/UnityEngine_Hash128Wrap.cs +++ /dev/null @@ -1,474 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineHash128Wrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.Hash128); - Utils.BeginObjectRegister(type, L, translator, 2, 5, 1, 0); - Utils.RegisterFunc(L, Utils.OBJ_META_IDX, "__eq", __EqMeta); - Utils.RegisterFunc(L, Utils.OBJ_META_IDX, "__lt", __LTMeta); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "CompareTo", _m_CompareTo); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ToString", _m_ToString); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Append", _m_Append); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Equals", _m_Equals); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetHashCode", _m_GetHashCode); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "isValid", _g_get_isValid); - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 3, 0, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Parse", _m_Parse_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Compute", _m_Compute_xlua_st_); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 5 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - uint _u32_0 = LuaAPI.xlua_touint(L, 2); - uint _u32_1 = LuaAPI.xlua_touint(L, 3); - uint _u32_2 = LuaAPI.xlua_touint(L, 4); - uint _u32_3 = LuaAPI.xlua_touint(L, 5); - - var gen_ret = new UnityEngine.Hash128(_u32_0, _u32_1, _u32_2, _u32_3); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 3 && (LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) || LuaAPI.lua_isuint64(L, 2)) && (LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) || LuaAPI.lua_isuint64(L, 3))) - { - ulong _u64_0 = LuaAPI.lua_touint64(L, 2); - ulong _u64_1 = LuaAPI.lua_touint64(L, 3); - - var gen_ret = new UnityEngine.Hash128(_u64_0, _u64_1); - translator.Push(L, gen_ret); - - return 1; - } - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(UnityEngine.Hash128)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Hash128 constructor!"); - - } - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __EqMeta(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - if (translator.Assignable(L, 1) && translator.Assignable(L, 2)) - { - UnityEngine.Hash128 leftside;translator.Get(L, 1, out leftside); - UnityEngine.Hash128 rightside;translator.Get(L, 2, out rightside); - - LuaAPI.lua_pushboolean(L, leftside == rightside); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to right hand of == operator, need UnityEngine.Hash128!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __LTMeta(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - if (translator.Assignable(L, 1) && translator.Assignable(L, 2)) - { - UnityEngine.Hash128 leftside;translator.Get(L, 1, out leftside); - UnityEngine.Hash128 rightside;translator.Get(L, 2, out rightside); - - LuaAPI.lua_pushboolean(L, leftside < rightside); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to right hand of < operator, need UnityEngine.Hash128!"); - - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CompareTo(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Hash128 gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.Hash128 _rhs;translator.Get(L, 2, out _rhs); - - var gen_ret = gen_to_be_invoked.CompareTo( _rhs ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - object _obj = translator.GetObject(L, 2, typeof(object)); - - var gen_ret = gen_to_be_invoked.CompareTo( _obj ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Hash128.CompareTo!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ToString(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Hash128 gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - - var gen_ret = gen_to_be_invoked.ToString( ); - LuaAPI.lua_pushstring(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Parse_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - string _hashString = LuaAPI.lua_tostring(L, 1); - - var gen_ret = UnityEngine.Hash128.Parse( _hashString ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Compute_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - int _val = LuaAPI.xlua_tointeger(L, 1); - - var gen_ret = UnityEngine.Hash128.Compute( _val ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - float _val = (float)LuaAPI.lua_tonumber(L, 1); - - var gen_ret = UnityEngine.Hash128.Compute( _val ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)) - { - string _data = LuaAPI.lua_tostring(L, 1); - - var gen_ret = UnityEngine.Hash128.Compute( _data ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Hash128.Compute!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Append(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Hash128 gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - int _val = LuaAPI.xlua_tointeger(L, 2); - - gen_to_be_invoked.Append( _val ); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 0; - } - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - float _val = (float)LuaAPI.lua_tonumber(L, 2); - - gen_to_be_invoked.Append( _val ); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 0; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _data = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.Append( _data ); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Hash128.Append!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Equals(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Hash128 gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - object _obj = translator.GetObject(L, 2, typeof(object)); - - var gen_ret = gen_to_be_invoked.Equals( _obj ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.Hash128 _obj;translator.Get(L, 2, out _obj); - - var gen_ret = gen_to_be_invoked.Equals( _obj ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Hash128.Equals!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetHashCode(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Hash128 gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - - var gen_ret = gen_to_be_invoked.GetHashCode( ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_isValid(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Hash128 gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.isValid); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_HashUnsafeUtilitiesWrap.cs b/Assets/XLua/Gen/UnityEngine_HashUnsafeUtilitiesWrap.cs deleted file mode 100644 index edad51ed4..000000000 --- a/Assets/XLua/Gen/UnityEngine_HashUnsafeUtilitiesWrap.cs +++ /dev/null @@ -1,67 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineHashUnsafeUtilitiesWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.HashUnsafeUtilities); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "UnityEngine.HashUnsafeUtilities does not have a constructor!"); - } - - - - - - - - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_HashUtilitiesWrap.cs b/Assets/XLua/Gen/UnityEngine_HashUtilitiesWrap.cs deleted file mode 100644 index 78147d20c..000000000 --- a/Assets/XLua/Gen/UnityEngine_HashUtilitiesWrap.cs +++ /dev/null @@ -1,200 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineHashUtilitiesWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.HashUtilities); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 5, 0, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "AppendHash", _m_AppendHash_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "QuantisedMatrixHash", _m_QuantisedMatrixHash_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "QuantisedVectorHash", _m_QuantisedVectorHash_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "ComputeHash128", _m_ComputeHash128_xlua_st_); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "UnityEngine.HashUtilities does not have a constructor!"); - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AppendHash_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Hash128 _inHash;translator.Get(L, 1, out _inHash); - UnityEngine.Hash128 _outHash;translator.Get(L, 2, out _outHash); - - UnityEngine.HashUtilities.AppendHash( ref _inHash, ref _outHash ); - translator.Push(L, _inHash); - translator.Update(L, 1, _inHash); - - translator.Push(L, _outHash); - translator.Update(L, 2, _outHash); - - - - - return 2; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_QuantisedMatrixHash_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Matrix4x4 _value;translator.Get(L, 1, out _value); - UnityEngine.Hash128 _hash;translator.Get(L, 2, out _hash); - - UnityEngine.HashUtilities.QuantisedMatrixHash( ref _value, ref _hash ); - translator.Push(L, _value); - translator.Update(L, 1, _value); - - translator.Push(L, _hash); - translator.Update(L, 2, _hash); - - - - - return 2; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_QuantisedVectorHash_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Vector3 _value;translator.Get(L, 1, out _value); - UnityEngine.Hash128 _hash;translator.Get(L, 2, out _hash); - - UnityEngine.HashUtilities.QuantisedVectorHash( ref _value, ref _hash ); - translator.PushUnityEngineVector3(L, _value); - translator.UpdateUnityEngineVector3(L, 1, _value); - - translator.Push(L, _hash); - translator.Update(L, 2, _hash); - - - - - return 2; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ComputeHash128_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - byte[] _value = LuaAPI.lua_tobytes(L, 1); - UnityEngine.Hash128 _hash;translator.Get(L, 2, out _hash); - - UnityEngine.HashUtilities.ComputeHash128( _value, ref _hash ); - translator.Push(L, _hash); - translator.Update(L, 2, _hash); - - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_HingeJoint2DWrap.cs b/Assets/XLua/Gen/UnityEngine_HingeJoint2DWrap.cs deleted file mode 100644 index 1fbe9f199..000000000 --- a/Assets/XLua/Gen/UnityEngine_HingeJoint2DWrap.cs +++ /dev/null @@ -1,300 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineHingeJoint2DWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.HingeJoint2D); - Utils.BeginObjectRegister(type, L, translator, 0, 1, 8, 4); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetMotorTorque", _m_GetMotorTorque); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "useMotor", _g_get_useMotor); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "useLimits", _g_get_useLimits); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "motor", _g_get_motor); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "limits", _g_get_limits); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "limitState", _g_get_limitState); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "referenceAngle", _g_get_referenceAngle); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "jointAngle", _g_get_jointAngle); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "jointSpeed", _g_get_jointSpeed); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "useMotor", _s_set_useMotor); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "useLimits", _s_set_useLimits); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "motor", _s_set_motor); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "limits", _s_set_limits); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.HingeJoint2D(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.HingeJoint2D constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetMotorTorque(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.HingeJoint2D gen_to_be_invoked = (UnityEngine.HingeJoint2D)translator.FastGetCSObj(L, 1); - - - - { - float _timeStep = (float)LuaAPI.lua_tonumber(L, 2); - - var gen_ret = gen_to_be_invoked.GetMotorTorque( _timeStep ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_useMotor(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.HingeJoint2D gen_to_be_invoked = (UnityEngine.HingeJoint2D)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.useMotor); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_useLimits(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.HingeJoint2D gen_to_be_invoked = (UnityEngine.HingeJoint2D)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.useLimits); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_motor(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.HingeJoint2D gen_to_be_invoked = (UnityEngine.HingeJoint2D)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.motor); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_limits(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.HingeJoint2D gen_to_be_invoked = (UnityEngine.HingeJoint2D)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.limits); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_limitState(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.HingeJoint2D gen_to_be_invoked = (UnityEngine.HingeJoint2D)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.limitState); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_referenceAngle(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.HingeJoint2D gen_to_be_invoked = (UnityEngine.HingeJoint2D)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.referenceAngle); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_jointAngle(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.HingeJoint2D gen_to_be_invoked = (UnityEngine.HingeJoint2D)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.jointAngle); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_jointSpeed(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.HingeJoint2D gen_to_be_invoked = (UnityEngine.HingeJoint2D)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.jointSpeed); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_useMotor(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.HingeJoint2D gen_to_be_invoked = (UnityEngine.HingeJoint2D)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.useMotor = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_useLimits(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.HingeJoint2D gen_to_be_invoked = (UnityEngine.HingeJoint2D)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.useLimits = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_motor(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.HingeJoint2D gen_to_be_invoked = (UnityEngine.HingeJoint2D)translator.FastGetCSObj(L, 1); - UnityEngine.JointMotor2D gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.motor = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_limits(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.HingeJoint2D gen_to_be_invoked = (UnityEngine.HingeJoint2D)translator.FastGetCSObj(L, 1); - UnityEngine.JointAngleLimits2D gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.limits = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_HingeJointWrap.cs b/Assets/XLua/Gen/UnityEngine_HingeJointWrap.cs deleted file mode 100644 index 6707f9457..000000000 --- a/Assets/XLua/Gen/UnityEngine_HingeJointWrap.cs +++ /dev/null @@ -1,303 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineHingeJointWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.HingeJoint); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 8, 6); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "motor", _g_get_motor); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "limits", _g_get_limits); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "spring", _g_get_spring); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "useMotor", _g_get_useMotor); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "useLimits", _g_get_useLimits); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "useSpring", _g_get_useSpring); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "velocity", _g_get_velocity); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "angle", _g_get_angle); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "motor", _s_set_motor); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "limits", _s_set_limits); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "spring", _s_set_spring); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "useMotor", _s_set_useMotor); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "useLimits", _s_set_useLimits); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "useSpring", _s_set_useSpring); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.HingeJoint(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.HingeJoint constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_motor(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.HingeJoint gen_to_be_invoked = (UnityEngine.HingeJoint)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.motor); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_limits(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.HingeJoint gen_to_be_invoked = (UnityEngine.HingeJoint)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.limits); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_spring(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.HingeJoint gen_to_be_invoked = (UnityEngine.HingeJoint)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.spring); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_useMotor(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.HingeJoint gen_to_be_invoked = (UnityEngine.HingeJoint)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.useMotor); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_useLimits(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.HingeJoint gen_to_be_invoked = (UnityEngine.HingeJoint)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.useLimits); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_useSpring(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.HingeJoint gen_to_be_invoked = (UnityEngine.HingeJoint)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.useSpring); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_velocity(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.HingeJoint gen_to_be_invoked = (UnityEngine.HingeJoint)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.velocity); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_angle(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.HingeJoint gen_to_be_invoked = (UnityEngine.HingeJoint)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.angle); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_motor(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.HingeJoint gen_to_be_invoked = (UnityEngine.HingeJoint)translator.FastGetCSObj(L, 1); - UnityEngine.JointMotor gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.motor = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_limits(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.HingeJoint gen_to_be_invoked = (UnityEngine.HingeJoint)translator.FastGetCSObj(L, 1); - UnityEngine.JointLimits gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.limits = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_spring(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.HingeJoint gen_to_be_invoked = (UnityEngine.HingeJoint)translator.FastGetCSObj(L, 1); - UnityEngine.JointSpring gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.spring = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_useMotor(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.HingeJoint gen_to_be_invoked = (UnityEngine.HingeJoint)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.useMotor = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_useLimits(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.HingeJoint gen_to_be_invoked = (UnityEngine.HingeJoint)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.useLimits = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_useSpring(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.HingeJoint gen_to_be_invoked = (UnityEngine.HingeJoint)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.useSpring = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_HumanBoneWrap.cs b/Assets/XLua/Gen/UnityEngine_HumanBoneWrap.cs deleted file mode 100644 index 8daa49532..000000000 --- a/Assets/XLua/Gen/UnityEngine_HumanBoneWrap.cs +++ /dev/null @@ -1,182 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineHumanBoneWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.HumanBone); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 3, 3); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "boneName", _g_get_boneName); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "humanName", _g_get_humanName); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "limit", _g_get_limit); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "boneName", _s_set_boneName); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "humanName", _s_set_humanName); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "limit", _s_set_limit); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(UnityEngine.HumanBone)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.HumanBone constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_boneName(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.HumanBone gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.boneName); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_humanName(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.HumanBone gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.humanName); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_limit(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.HumanBone gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.limit); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_boneName(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.HumanBone gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.boneName = LuaAPI.lua_tostring(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_humanName(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.HumanBone gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.humanName = LuaAPI.lua_tostring(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_limit(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.HumanBone gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.HumanLimit gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.limit = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_HumanDescriptionWrap.cs b/Assets/XLua/Gen/UnityEngine_HumanDescriptionWrap.cs deleted file mode 100644 index f2e23b2eb..000000000 --- a/Assets/XLua/Gen/UnityEngine_HumanDescriptionWrap.cs +++ /dev/null @@ -1,412 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineHumanDescriptionWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.HumanDescription); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 10, 10); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "upperArmTwist", _g_get_upperArmTwist); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "lowerArmTwist", _g_get_lowerArmTwist); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "upperLegTwist", _g_get_upperLegTwist); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "lowerLegTwist", _g_get_lowerLegTwist); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "armStretch", _g_get_armStretch); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "legStretch", _g_get_legStretch); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "feetSpacing", _g_get_feetSpacing); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "hasTranslationDoF", _g_get_hasTranslationDoF); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "human", _g_get_human); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "skeleton", _g_get_skeleton); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "upperArmTwist", _s_set_upperArmTwist); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "lowerArmTwist", _s_set_lowerArmTwist); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "upperLegTwist", _s_set_upperLegTwist); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "lowerLegTwist", _s_set_lowerLegTwist); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "armStretch", _s_set_armStretch); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "legStretch", _s_set_legStretch); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "feetSpacing", _s_set_feetSpacing); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "hasTranslationDoF", _s_set_hasTranslationDoF); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "human", _s_set_human); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "skeleton", _s_set_skeleton); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(UnityEngine.HumanDescription)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.HumanDescription constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_upperArmTwist(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.HumanDescription gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.upperArmTwist); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_lowerArmTwist(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.HumanDescription gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.lowerArmTwist); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_upperLegTwist(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.HumanDescription gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.upperLegTwist); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_lowerLegTwist(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.HumanDescription gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.lowerLegTwist); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_armStretch(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.HumanDescription gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.armStretch); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_legStretch(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.HumanDescription gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.legStretch); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_feetSpacing(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.HumanDescription gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.feetSpacing); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_hasTranslationDoF(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.HumanDescription gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.hasTranslationDoF); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_human(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.HumanDescription gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.human); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_skeleton(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.HumanDescription gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.skeleton); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_upperArmTwist(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.HumanDescription gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.upperArmTwist = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_lowerArmTwist(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.HumanDescription gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.lowerArmTwist = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_upperLegTwist(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.HumanDescription gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.upperLegTwist = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_lowerLegTwist(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.HumanDescription gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.lowerLegTwist = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_armStretch(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.HumanDescription gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.armStretch = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_legStretch(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.HumanDescription gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.legStretch = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_feetSpacing(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.HumanDescription gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.feetSpacing = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_hasTranslationDoF(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.HumanDescription gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.hasTranslationDoF = LuaAPI.lua_toboolean(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_human(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.HumanDescription gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.human = (UnityEngine.HumanBone[])translator.GetObject(L, 2, typeof(UnityEngine.HumanBone[])); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_skeleton(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.HumanDescription gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.skeleton = (UnityEngine.SkeletonBone[])translator.GetObject(L, 2, typeof(UnityEngine.SkeletonBone[])); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_HumanLimitWrap.cs b/Assets/XLua/Gen/UnityEngine_HumanLimitWrap.cs deleted file mode 100644 index de5930e3b..000000000 --- a/Assets/XLua/Gen/UnityEngine_HumanLimitWrap.cs +++ /dev/null @@ -1,250 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineHumanLimitWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.HumanLimit); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 5, 5); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "useDefaultValues", _g_get_useDefaultValues); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "min", _g_get_min); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "max", _g_get_max); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "center", _g_get_center); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "axisLength", _g_get_axisLength); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "useDefaultValues", _s_set_useDefaultValues); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "min", _s_set_min); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "max", _s_set_max); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "center", _s_set_center); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "axisLength", _s_set_axisLength); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(UnityEngine.HumanLimit)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.HumanLimit constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_useDefaultValues(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.HumanLimit gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.useDefaultValues); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_min(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.HumanLimit gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.min); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_max(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.HumanLimit gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.max); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_center(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.HumanLimit gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.center); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_axisLength(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.HumanLimit gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.axisLength); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_useDefaultValues(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.HumanLimit gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.useDefaultValues = LuaAPI.lua_toboolean(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_min(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.HumanLimit gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Vector3 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.min = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_max(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.HumanLimit gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Vector3 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.max = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_center(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.HumanLimit gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Vector3 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.center = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_axisLength(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.HumanLimit gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.axisLength = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_HumanPoseHandlerWrap.cs b/Assets/XLua/Gen/UnityEngine_HumanPoseHandlerWrap.cs deleted file mode 100644 index 166f27760..000000000 --- a/Assets/XLua/Gen/UnityEngine_HumanPoseHandlerWrap.cs +++ /dev/null @@ -1,310 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineHumanPoseHandlerWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.HumanPoseHandler); - Utils.BeginObjectRegister(type, L, translator, 0, 7, 0, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Dispose", _m_Dispose); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetHumanPose", _m_GetHumanPose); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetHumanPose", _m_SetHumanPose); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetInternalHumanPose", _m_GetInternalHumanPose); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetInternalHumanPose", _m_SetInternalHumanPose); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetInternalAvatarPose", _m_GetInternalAvatarPose); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetInternalAvatarPose", _m_SetInternalAvatarPose); - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 3 && translator.Assignable(L, 2) && translator.Assignable(L, 3)) - { - UnityEngine.Avatar _avatar = (UnityEngine.Avatar)translator.GetObject(L, 2, typeof(UnityEngine.Avatar)); - UnityEngine.Transform _root = (UnityEngine.Transform)translator.GetObject(L, 3, typeof(UnityEngine.Transform)); - - var gen_ret = new UnityEngine.HumanPoseHandler(_avatar, _root); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 3 && translator.Assignable(L, 2) && translator.Assignable(L, 3)) - { - UnityEngine.Avatar _avatar = (UnityEngine.Avatar)translator.GetObject(L, 2, typeof(UnityEngine.Avatar)); - string[] _jointPaths = (string[])translator.GetObject(L, 3, typeof(string[])); - - var gen_ret = new UnityEngine.HumanPoseHandler(_avatar, _jointPaths); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.HumanPoseHandler constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Dispose(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.HumanPoseHandler gen_to_be_invoked = (UnityEngine.HumanPoseHandler)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Dispose( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetHumanPose(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.HumanPoseHandler gen_to_be_invoked = (UnityEngine.HumanPoseHandler)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.HumanPose _humanPose;translator.Get(L, 2, out _humanPose); - - gen_to_be_invoked.GetHumanPose( ref _humanPose ); - translator.Push(L, _humanPose); - translator.Update(L, 2, _humanPose); - - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetHumanPose(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.HumanPoseHandler gen_to_be_invoked = (UnityEngine.HumanPoseHandler)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.HumanPose _humanPose;translator.Get(L, 2, out _humanPose); - - gen_to_be_invoked.SetHumanPose( ref _humanPose ); - translator.Push(L, _humanPose); - translator.Update(L, 2, _humanPose); - - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetInternalHumanPose(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.HumanPoseHandler gen_to_be_invoked = (UnityEngine.HumanPoseHandler)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.HumanPose _humanPose;translator.Get(L, 2, out _humanPose); - - gen_to_be_invoked.GetInternalHumanPose( ref _humanPose ); - translator.Push(L, _humanPose); - translator.Update(L, 2, _humanPose); - - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetInternalHumanPose(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.HumanPoseHandler gen_to_be_invoked = (UnityEngine.HumanPoseHandler)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.HumanPose _humanPose;translator.Get(L, 2, out _humanPose); - - gen_to_be_invoked.SetInternalHumanPose( ref _humanPose ); - translator.Push(L, _humanPose); - translator.Update(L, 2, _humanPose); - - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetInternalAvatarPose(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.HumanPoseHandler gen_to_be_invoked = (UnityEngine.HumanPoseHandler)translator.FastGetCSObj(L, 1); - - - - { - Unity.Collections.NativeArray _avatarPose;translator.Get(L, 2, out _avatarPose); - - gen_to_be_invoked.GetInternalAvatarPose( _avatarPose ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetInternalAvatarPose(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.HumanPoseHandler gen_to_be_invoked = (UnityEngine.HumanPoseHandler)translator.FastGetCSObj(L, 1); - - - - { - Unity.Collections.NativeArray _avatarPose;translator.Get(L, 2, out _avatarPose); - - gen_to_be_invoked.SetInternalAvatarPose( _avatarPose ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_HumanPoseWrap.cs b/Assets/XLua/Gen/UnityEngine_HumanPoseWrap.cs deleted file mode 100644 index 6661da7e4..000000000 --- a/Assets/XLua/Gen/UnityEngine_HumanPoseWrap.cs +++ /dev/null @@ -1,183 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineHumanPoseWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.HumanPose); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 3, 3); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "bodyPosition", _g_get_bodyPosition); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "bodyRotation", _g_get_bodyRotation); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "muscles", _g_get_muscles); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "bodyPosition", _s_set_bodyPosition); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "bodyRotation", _s_set_bodyRotation); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "muscles", _s_set_muscles); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(UnityEngine.HumanPose)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.HumanPose constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_bodyPosition(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.HumanPose gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.bodyPosition); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_bodyRotation(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.HumanPose gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineQuaternion(L, gen_to_be_invoked.bodyRotation); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_muscles(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.HumanPose gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.muscles); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_bodyPosition(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.HumanPose gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Vector3 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.bodyPosition = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_bodyRotation(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.HumanPose gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Quaternion gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.bodyRotation = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_muscles(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.HumanPose gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.muscles = (float[])translator.GetObject(L, 2, typeof(float[])); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_HumanTraitWrap.cs b/Assets/XLua/Gen/UnityEngine_HumanTraitWrap.cs deleted file mode 100644 index dd8a18f3e..000000000 --- a/Assets/XLua/Gen/UnityEngine_HumanTraitWrap.cs +++ /dev/null @@ -1,332 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineHumanTraitWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.HumanTrait); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 8, 5, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "MuscleFromBone", _m_MuscleFromBone_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "BoneFromMuscle", _m_BoneFromMuscle_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "RequiredBone", _m_RequiredBone_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetMuscleDefaultMin", _m_GetMuscleDefaultMin_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetMuscleDefaultMax", _m_GetMuscleDefaultMax_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetBoneDefaultHierarchyMass", _m_GetBoneDefaultHierarchyMass_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetParentBone", _m_GetParentBone_xlua_st_); - - - - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "MuscleCount", _g_get_MuscleCount); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "MuscleName", _g_get_MuscleName); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "BoneCount", _g_get_BoneCount); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "BoneName", _g_get_BoneName); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "RequiredBoneCount", _g_get_RequiredBoneCount); - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.HumanTrait(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.HumanTrait constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_MuscleFromBone_xlua_st_(RealStatePtr L) - { - try { - - - - - { - int _i = LuaAPI.xlua_tointeger(L, 1); - int _dofIndex = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = UnityEngine.HumanTrait.MuscleFromBone( _i, _dofIndex ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_BoneFromMuscle_xlua_st_(RealStatePtr L) - { - try { - - - - - { - int _i = LuaAPI.xlua_tointeger(L, 1); - - var gen_ret = UnityEngine.HumanTrait.BoneFromMuscle( _i ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RequiredBone_xlua_st_(RealStatePtr L) - { - try { - - - - - { - int _i = LuaAPI.xlua_tointeger(L, 1); - - var gen_ret = UnityEngine.HumanTrait.RequiredBone( _i ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetMuscleDefaultMin_xlua_st_(RealStatePtr L) - { - try { - - - - - { - int _i = LuaAPI.xlua_tointeger(L, 1); - - var gen_ret = UnityEngine.HumanTrait.GetMuscleDefaultMin( _i ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetMuscleDefaultMax_xlua_st_(RealStatePtr L) - { - try { - - - - - { - int _i = LuaAPI.xlua_tointeger(L, 1); - - var gen_ret = UnityEngine.HumanTrait.GetMuscleDefaultMax( _i ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetBoneDefaultHierarchyMass_xlua_st_(RealStatePtr L) - { - try { - - - - - { - int _i = LuaAPI.xlua_tointeger(L, 1); - - var gen_ret = UnityEngine.HumanTrait.GetBoneDefaultHierarchyMass( _i ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetParentBone_xlua_st_(RealStatePtr L) - { - try { - - - - - { - int _i = LuaAPI.xlua_tointeger(L, 1); - - var gen_ret = UnityEngine.HumanTrait.GetParentBone( _i ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_MuscleCount(RealStatePtr L) - { - try { - - LuaAPI.xlua_pushinteger(L, UnityEngine.HumanTrait.MuscleCount); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_MuscleName(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, UnityEngine.HumanTrait.MuscleName); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_BoneCount(RealStatePtr L) - { - try { - - LuaAPI.xlua_pushinteger(L, UnityEngine.HumanTrait.BoneCount); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_BoneName(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, UnityEngine.HumanTrait.BoneName); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_RequiredBoneCount(RealStatePtr L) - { - try { - - LuaAPI.xlua_pushinteger(L, UnityEngine.HumanTrait.RequiredBoneCount); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_ImageConversionWrap.cs b/Assets/XLua/Gen/UnityEngine_ImageConversionWrap.cs deleted file mode 100644 index 5220a808b..000000000 --- a/Assets/XLua/Gen/UnityEngine_ImageConversionWrap.cs +++ /dev/null @@ -1,326 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineImageConversionWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.ImageConversion); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 5, 1, 1); - Utils.RegisterFunc(L, Utils.CLS_IDX, "EncodeArrayToTGA", _m_EncodeArrayToTGA_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "EncodeArrayToPNG", _m_EncodeArrayToPNG_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "EncodeArrayToJPG", _m_EncodeArrayToJPG_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "EncodeArrayToEXR", _m_EncodeArrayToEXR_xlua_st_); - - - - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "EnableLegacyPngGammaRuntimeLoadBehavior", _g_get_EnableLegacyPngGammaRuntimeLoadBehavior); - - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "EnableLegacyPngGammaRuntimeLoadBehavior", _s_set_EnableLegacyPngGammaRuntimeLoadBehavior); - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "UnityEngine.ImageConversion does not have a constructor!"); - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_EncodeArrayToTGA_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 5&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - System.Array _array = (System.Array)translator.GetObject(L, 1, typeof(System.Array)); - UnityEngine.Experimental.Rendering.GraphicsFormat _format;translator.Get(L, 2, out _format); - uint _width = LuaAPI.xlua_touint(L, 3); - uint _height = LuaAPI.xlua_touint(L, 4); - uint _rowBytes = LuaAPI.xlua_touint(L, 5); - - var gen_ret = UnityEngine.ImageConversion.EncodeArrayToTGA( _array, _format, _width, _height, _rowBytes ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - System.Array _array = (System.Array)translator.GetObject(L, 1, typeof(System.Array)); - UnityEngine.Experimental.Rendering.GraphicsFormat _format;translator.Get(L, 2, out _format); - uint _width = LuaAPI.xlua_touint(L, 3); - uint _height = LuaAPI.xlua_touint(L, 4); - - var gen_ret = UnityEngine.ImageConversion.EncodeArrayToTGA( _array, _format, _width, _height ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.ImageConversion.EncodeArrayToTGA!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_EncodeArrayToPNG_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 5&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - System.Array _array = (System.Array)translator.GetObject(L, 1, typeof(System.Array)); - UnityEngine.Experimental.Rendering.GraphicsFormat _format;translator.Get(L, 2, out _format); - uint _width = LuaAPI.xlua_touint(L, 3); - uint _height = LuaAPI.xlua_touint(L, 4); - uint _rowBytes = LuaAPI.xlua_touint(L, 5); - - var gen_ret = UnityEngine.ImageConversion.EncodeArrayToPNG( _array, _format, _width, _height, _rowBytes ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - System.Array _array = (System.Array)translator.GetObject(L, 1, typeof(System.Array)); - UnityEngine.Experimental.Rendering.GraphicsFormat _format;translator.Get(L, 2, out _format); - uint _width = LuaAPI.xlua_touint(L, 3); - uint _height = LuaAPI.xlua_touint(L, 4); - - var gen_ret = UnityEngine.ImageConversion.EncodeArrayToPNG( _array, _format, _width, _height ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.ImageConversion.EncodeArrayToPNG!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_EncodeArrayToJPG_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 6&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)) - { - System.Array _array = (System.Array)translator.GetObject(L, 1, typeof(System.Array)); - UnityEngine.Experimental.Rendering.GraphicsFormat _format;translator.Get(L, 2, out _format); - uint _width = LuaAPI.xlua_touint(L, 3); - uint _height = LuaAPI.xlua_touint(L, 4); - uint _rowBytes = LuaAPI.xlua_touint(L, 5); - int _quality = LuaAPI.xlua_tointeger(L, 6); - - var gen_ret = UnityEngine.ImageConversion.EncodeArrayToJPG( _array, _format, _width, _height, _rowBytes, _quality ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 5&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - System.Array _array = (System.Array)translator.GetObject(L, 1, typeof(System.Array)); - UnityEngine.Experimental.Rendering.GraphicsFormat _format;translator.Get(L, 2, out _format); - uint _width = LuaAPI.xlua_touint(L, 3); - uint _height = LuaAPI.xlua_touint(L, 4); - uint _rowBytes = LuaAPI.xlua_touint(L, 5); - - var gen_ret = UnityEngine.ImageConversion.EncodeArrayToJPG( _array, _format, _width, _height, _rowBytes ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - System.Array _array = (System.Array)translator.GetObject(L, 1, typeof(System.Array)); - UnityEngine.Experimental.Rendering.GraphicsFormat _format;translator.Get(L, 2, out _format); - uint _width = LuaAPI.xlua_touint(L, 3); - uint _height = LuaAPI.xlua_touint(L, 4); - - var gen_ret = UnityEngine.ImageConversion.EncodeArrayToJPG( _array, _format, _width, _height ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.ImageConversion.EncodeArrayToJPG!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_EncodeArrayToEXR_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 6&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& translator.Assignable(L, 6)) - { - System.Array _array = (System.Array)translator.GetObject(L, 1, typeof(System.Array)); - UnityEngine.Experimental.Rendering.GraphicsFormat _format;translator.Get(L, 2, out _format); - uint _width = LuaAPI.xlua_touint(L, 3); - uint _height = LuaAPI.xlua_touint(L, 4); - uint _rowBytes = LuaAPI.xlua_touint(L, 5); - UnityEngine.Texture2D.EXRFlags _flags;translator.Get(L, 6, out _flags); - - var gen_ret = UnityEngine.ImageConversion.EncodeArrayToEXR( _array, _format, _width, _height, _rowBytes, _flags ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 5&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - System.Array _array = (System.Array)translator.GetObject(L, 1, typeof(System.Array)); - UnityEngine.Experimental.Rendering.GraphicsFormat _format;translator.Get(L, 2, out _format); - uint _width = LuaAPI.xlua_touint(L, 3); - uint _height = LuaAPI.xlua_touint(L, 4); - uint _rowBytes = LuaAPI.xlua_touint(L, 5); - - var gen_ret = UnityEngine.ImageConversion.EncodeArrayToEXR( _array, _format, _width, _height, _rowBytes ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - System.Array _array = (System.Array)translator.GetObject(L, 1, typeof(System.Array)); - UnityEngine.Experimental.Rendering.GraphicsFormat _format;translator.Get(L, 2, out _format); - uint _width = LuaAPI.xlua_touint(L, 3); - uint _height = LuaAPI.xlua_touint(L, 4); - - var gen_ret = UnityEngine.ImageConversion.EncodeArrayToEXR( _array, _format, _width, _height ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.ImageConversion.EncodeArrayToEXR!"); - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_EnableLegacyPngGammaRuntimeLoadBehavior(RealStatePtr L) - { - try { - - LuaAPI.lua_pushboolean(L, UnityEngine.ImageConversion.EnableLegacyPngGammaRuntimeLoadBehavior); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_EnableLegacyPngGammaRuntimeLoadBehavior(RealStatePtr L) - { - try { - - UnityEngine.ImageConversion.EnableLegacyPngGammaRuntimeLoadBehavior = LuaAPI.lua_toboolean(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_ImageEffectAfterScaleWrap.cs b/Assets/XLua/Gen/UnityEngine_ImageEffectAfterScaleWrap.cs deleted file mode 100644 index 1fa168d71..000000000 --- a/Assets/XLua/Gen/UnityEngine_ImageEffectAfterScaleWrap.cs +++ /dev/null @@ -1,84 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineImageEffectAfterScaleWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.ImageEffectAfterScale); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.ImageEffectAfterScale(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.ImageEffectAfterScale constructor!"); - - } - - - - - - - - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_ImageEffectAllowedInSceneViewWrap.cs b/Assets/XLua/Gen/UnityEngine_ImageEffectAllowedInSceneViewWrap.cs deleted file mode 100644 index 54ac0a0e5..000000000 --- a/Assets/XLua/Gen/UnityEngine_ImageEffectAllowedInSceneViewWrap.cs +++ /dev/null @@ -1,84 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineImageEffectAllowedInSceneViewWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.ImageEffectAllowedInSceneView); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.ImageEffectAllowedInSceneView(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.ImageEffectAllowedInSceneView constructor!"); - - } - - - - - - - - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_ImageEffectOpaqueWrap.cs b/Assets/XLua/Gen/UnityEngine_ImageEffectOpaqueWrap.cs deleted file mode 100644 index 63041eefa..000000000 --- a/Assets/XLua/Gen/UnityEngine_ImageEffectOpaqueWrap.cs +++ /dev/null @@ -1,84 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineImageEffectOpaqueWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.ImageEffectOpaque); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.ImageEffectOpaque(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.ImageEffectOpaque constructor!"); - - } - - - - - - - - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_ImageEffectTransformsToLDRWrap.cs b/Assets/XLua/Gen/UnityEngine_ImageEffectTransformsToLDRWrap.cs deleted file mode 100644 index 0da45e672..000000000 --- a/Assets/XLua/Gen/UnityEngine_ImageEffectTransformsToLDRWrap.cs +++ /dev/null @@ -1,84 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineImageEffectTransformsToLDRWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.ImageEffectTransformsToLDR); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.ImageEffectTransformsToLDR(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.ImageEffectTransformsToLDR constructor!"); - - } - - - - - - - - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_ImageEffectUsesCommandBufferWrap.cs b/Assets/XLua/Gen/UnityEngine_ImageEffectUsesCommandBufferWrap.cs deleted file mode 100644 index 73058d7a2..000000000 --- a/Assets/XLua/Gen/UnityEngine_ImageEffectUsesCommandBufferWrap.cs +++ /dev/null @@ -1,84 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineImageEffectUsesCommandBufferWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.ImageEffectUsesCommandBuffer); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.ImageEffectUsesCommandBuffer(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.ImageEffectUsesCommandBuffer constructor!"); - - } - - - - - - - - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_IntegratedSubsystemDescriptorWrap.cs b/Assets/XLua/Gen/UnityEngine_IntegratedSubsystemDescriptorWrap.cs deleted file mode 100644 index 9e825f8c7..000000000 --- a/Assets/XLua/Gen/UnityEngine_IntegratedSubsystemDescriptorWrap.cs +++ /dev/null @@ -1,82 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineIntegratedSubsystemDescriptorWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.IntegratedSubsystemDescriptor); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 1, 0); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "id", _g_get_id); - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "UnityEngine.IntegratedSubsystemDescriptor does not have a constructor!"); - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_id(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.IntegratedSubsystemDescriptor gen_to_be_invoked = (UnityEngine.IntegratedSubsystemDescriptor)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.id); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_IntegratedSubsystemWrap.cs b/Assets/XLua/Gen/UnityEngine_IntegratedSubsystemWrap.cs deleted file mode 100644 index 958988f14..000000000 --- a/Assets/XLua/Gen/UnityEngine_IntegratedSubsystemWrap.cs +++ /dev/null @@ -1,183 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineIntegratedSubsystemWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.IntegratedSubsystem); - Utils.BeginObjectRegister(type, L, translator, 0, 3, 1, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Start", _m_Start); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Stop", _m_Stop); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Destroy", _m_Destroy); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "running", _g_get_running); - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.IntegratedSubsystem(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.IntegratedSubsystem constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Start(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.IntegratedSubsystem gen_to_be_invoked = (UnityEngine.IntegratedSubsystem)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Start( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Stop(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.IntegratedSubsystem gen_to_be_invoked = (UnityEngine.IntegratedSubsystem)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Stop( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Destroy(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.IntegratedSubsystem gen_to_be_invoked = (UnityEngine.IntegratedSubsystem)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Destroy( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_running(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.IntegratedSubsystem gen_to_be_invoked = (UnityEngine.IntegratedSubsystem)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.running); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_Joint2DWrap.cs b/Assets/XLua/Gen/UnityEngine_Joint2DWrap.cs deleted file mode 100644 index 26e874e54..000000000 --- a/Assets/XLua/Gen/UnityEngine_Joint2DWrap.cs +++ /dev/null @@ -1,313 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineJoint2DWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.Joint2D); - Utils.BeginObjectRegister(type, L, translator, 0, 2, 7, 4); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetReactionForce", _m_GetReactionForce); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetReactionTorque", _m_GetReactionTorque); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "attachedRigidbody", _g_get_attachedRigidbody); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "connectedBody", _g_get_connectedBody); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "enableCollision", _g_get_enableCollision); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "breakForce", _g_get_breakForce); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "breakTorque", _g_get_breakTorque); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "reactionForce", _g_get_reactionForce); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "reactionTorque", _g_get_reactionTorque); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "connectedBody", _s_set_connectedBody); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "enableCollision", _s_set_enableCollision); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "breakForce", _s_set_breakForce); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "breakTorque", _s_set_breakTorque); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.Joint2D(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Joint2D constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetReactionForce(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Joint2D gen_to_be_invoked = (UnityEngine.Joint2D)translator.FastGetCSObj(L, 1); - - - - { - float _timeStep = (float)LuaAPI.lua_tonumber(L, 2); - - var gen_ret = gen_to_be_invoked.GetReactionForce( _timeStep ); - translator.PushUnityEngineVector2(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetReactionTorque(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Joint2D gen_to_be_invoked = (UnityEngine.Joint2D)translator.FastGetCSObj(L, 1); - - - - { - float _timeStep = (float)LuaAPI.lua_tonumber(L, 2); - - var gen_ret = gen_to_be_invoked.GetReactionTorque( _timeStep ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_attachedRigidbody(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Joint2D gen_to_be_invoked = (UnityEngine.Joint2D)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.attachedRigidbody); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_connectedBody(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Joint2D gen_to_be_invoked = (UnityEngine.Joint2D)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.connectedBody); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_enableCollision(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Joint2D gen_to_be_invoked = (UnityEngine.Joint2D)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.enableCollision); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_breakForce(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Joint2D gen_to_be_invoked = (UnityEngine.Joint2D)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.breakForce); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_breakTorque(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Joint2D gen_to_be_invoked = (UnityEngine.Joint2D)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.breakTorque); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_reactionForce(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Joint2D gen_to_be_invoked = (UnityEngine.Joint2D)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector2(L, gen_to_be_invoked.reactionForce); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_reactionTorque(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Joint2D gen_to_be_invoked = (UnityEngine.Joint2D)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.reactionTorque); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_connectedBody(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Joint2D gen_to_be_invoked = (UnityEngine.Joint2D)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.connectedBody = (UnityEngine.Rigidbody2D)translator.GetObject(L, 2, typeof(UnityEngine.Rigidbody2D)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_enableCollision(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Joint2D gen_to_be_invoked = (UnityEngine.Joint2D)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.enableCollision = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_breakForce(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Joint2D gen_to_be_invoked = (UnityEngine.Joint2D)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.breakForce = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_breakTorque(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Joint2D gen_to_be_invoked = (UnityEngine.Joint2D)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.breakTorque = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_JointAngleLimits2DWrap.cs b/Assets/XLua/Gen/UnityEngine_JointAngleLimits2DWrap.cs deleted file mode 100644 index 3b8b81ea0..000000000 --- a/Assets/XLua/Gen/UnityEngine_JointAngleLimits2DWrap.cs +++ /dev/null @@ -1,148 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineJointAngleLimits2DWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.JointAngleLimits2D); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 2, 2); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "min", _g_get_min); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "max", _g_get_max); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "min", _s_set_min); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "max", _s_set_max); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(UnityEngine.JointAngleLimits2D)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.JointAngleLimits2D constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_min(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.JointAngleLimits2D gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.min); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_max(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.JointAngleLimits2D gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.max); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_min(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.JointAngleLimits2D gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.min = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_max(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.JointAngleLimits2D gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.max = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_JointDriveWrap.cs b/Assets/XLua/Gen/UnityEngine_JointDriveWrap.cs deleted file mode 100644 index f3f3a19ce..000000000 --- a/Assets/XLua/Gen/UnityEngine_JointDriveWrap.cs +++ /dev/null @@ -1,181 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineJointDriveWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.JointDrive); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 3, 3); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "positionSpring", _g_get_positionSpring); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "positionDamper", _g_get_positionDamper); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "maximumForce", _g_get_maximumForce); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "positionSpring", _s_set_positionSpring); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "positionDamper", _s_set_positionDamper); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "maximumForce", _s_set_maximumForce); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(UnityEngine.JointDrive)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.JointDrive constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_positionSpring(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.JointDrive gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.positionSpring); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_positionDamper(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.JointDrive gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.positionDamper); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_maximumForce(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.JointDrive gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.maximumForce); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_positionSpring(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.JointDrive gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.positionSpring = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_positionDamper(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.JointDrive gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.positionDamper = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_maximumForce(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.JointDrive gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.maximumForce = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_JointLimitsWrap.cs b/Assets/XLua/Gen/UnityEngine_JointLimitsWrap.cs deleted file mode 100644 index 1cc514e4a..000000000 --- a/Assets/XLua/Gen/UnityEngine_JointLimitsWrap.cs +++ /dev/null @@ -1,247 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineJointLimitsWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.JointLimits); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 5, 5); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "min", _g_get_min); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "max", _g_get_max); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "bounciness", _g_get_bounciness); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "bounceMinVelocity", _g_get_bounceMinVelocity); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "contactDistance", _g_get_contactDistance); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "min", _s_set_min); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "max", _s_set_max); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "bounciness", _s_set_bounciness); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "bounceMinVelocity", _s_set_bounceMinVelocity); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "contactDistance", _s_set_contactDistance); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(UnityEngine.JointLimits)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.JointLimits constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_min(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.JointLimits gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.min); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_max(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.JointLimits gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.max); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_bounciness(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.JointLimits gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.bounciness); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_bounceMinVelocity(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.JointLimits gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.bounceMinVelocity); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_contactDistance(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.JointLimits gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.contactDistance); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_min(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.JointLimits gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.min = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_max(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.JointLimits gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.max = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_bounciness(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.JointLimits gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.bounciness = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_bounceMinVelocity(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.JointLimits gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.bounceMinVelocity = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_contactDistance(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.JointLimits gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.contactDistance = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_JointMotor2DWrap.cs b/Assets/XLua/Gen/UnityEngine_JointMotor2DWrap.cs deleted file mode 100644 index 6f54c3380..000000000 --- a/Assets/XLua/Gen/UnityEngine_JointMotor2DWrap.cs +++ /dev/null @@ -1,148 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineJointMotor2DWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.JointMotor2D); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 2, 2); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "motorSpeed", _g_get_motorSpeed); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "maxMotorTorque", _g_get_maxMotorTorque); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "motorSpeed", _s_set_motorSpeed); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "maxMotorTorque", _s_set_maxMotorTorque); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(UnityEngine.JointMotor2D)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.JointMotor2D constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_motorSpeed(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.JointMotor2D gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.motorSpeed); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_maxMotorTorque(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.JointMotor2D gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.maxMotorTorque); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_motorSpeed(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.JointMotor2D gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.motorSpeed = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_maxMotorTorque(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.JointMotor2D gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.maxMotorTorque = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_JointMotorWrap.cs b/Assets/XLua/Gen/UnityEngine_JointMotorWrap.cs deleted file mode 100644 index ce3132111..000000000 --- a/Assets/XLua/Gen/UnityEngine_JointMotorWrap.cs +++ /dev/null @@ -1,181 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineJointMotorWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.JointMotor); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 3, 3); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "targetVelocity", _g_get_targetVelocity); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "force", _g_get_force); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "freeSpin", _g_get_freeSpin); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "targetVelocity", _s_set_targetVelocity); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "force", _s_set_force); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "freeSpin", _s_set_freeSpin); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(UnityEngine.JointMotor)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.JointMotor constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_targetVelocity(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.JointMotor gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.targetVelocity); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_force(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.JointMotor gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.force); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_freeSpin(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.JointMotor gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.freeSpin); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_targetVelocity(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.JointMotor gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.targetVelocity = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_force(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.JointMotor gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.force = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_freeSpin(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.JointMotor gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.freeSpin = LuaAPI.lua_toboolean(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_JointSpringWrap.cs b/Assets/XLua/Gen/UnityEngine_JointSpringWrap.cs deleted file mode 100644 index 6a3f560b8..000000000 --- a/Assets/XLua/Gen/UnityEngine_JointSpringWrap.cs +++ /dev/null @@ -1,181 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineJointSpringWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.JointSpring); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 3, 3); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "spring", _g_get_spring); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "damper", _g_get_damper); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "targetPosition", _g_get_targetPosition); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "spring", _s_set_spring); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "damper", _s_set_damper); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "targetPosition", _s_set_targetPosition); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(UnityEngine.JointSpring)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.JointSpring constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_spring(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.JointSpring gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.spring); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_damper(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.JointSpring gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.damper); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_targetPosition(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.JointSpring gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.targetPosition); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_spring(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.JointSpring gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.spring = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_damper(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.JointSpring gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.damper = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_targetPosition(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.JointSpring gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.targetPosition = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_JointSuspension2DWrap.cs b/Assets/XLua/Gen/UnityEngine_JointSuspension2DWrap.cs deleted file mode 100644 index dc51b7ca5..000000000 --- a/Assets/XLua/Gen/UnityEngine_JointSuspension2DWrap.cs +++ /dev/null @@ -1,181 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineJointSuspension2DWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.JointSuspension2D); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 3, 3); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "dampingRatio", _g_get_dampingRatio); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "frequency", _g_get_frequency); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "angle", _g_get_angle); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "dampingRatio", _s_set_dampingRatio); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "frequency", _s_set_frequency); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "angle", _s_set_angle); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(UnityEngine.JointSuspension2D)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.JointSuspension2D constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_dampingRatio(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.JointSuspension2D gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.dampingRatio); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_frequency(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.JointSuspension2D gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.frequency); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_angle(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.JointSuspension2D gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.angle); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_dampingRatio(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.JointSuspension2D gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.dampingRatio = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_frequency(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.JointSuspension2D gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.frequency = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_angle(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.JointSuspension2D gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.angle = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_JointTranslationLimits2DWrap.cs b/Assets/XLua/Gen/UnityEngine_JointTranslationLimits2DWrap.cs deleted file mode 100644 index 4080baf42..000000000 --- a/Assets/XLua/Gen/UnityEngine_JointTranslationLimits2DWrap.cs +++ /dev/null @@ -1,148 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineJointTranslationLimits2DWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.JointTranslationLimits2D); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 2, 2); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "min", _g_get_min); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "max", _g_get_max); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "min", _s_set_min); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "max", _s_set_max); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(UnityEngine.JointTranslationLimits2D)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.JointTranslationLimits2D constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_min(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.JointTranslationLimits2D gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.min); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_max(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.JointTranslationLimits2D gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.max); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_min(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.JointTranslationLimits2D gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.min = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_max(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.JointTranslationLimits2D gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.max = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_JointWrap.cs b/Assets/XLua/Gen/UnityEngine_JointWrap.cs deleted file mode 100644 index 1eab0682a..000000000 --- a/Assets/XLua/Gen/UnityEngine_JointWrap.cs +++ /dev/null @@ -1,489 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineJointWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.Joint); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 14, 12); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "connectedBody", _g_get_connectedBody); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "connectedArticulationBody", _g_get_connectedArticulationBody); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "axis", _g_get_axis); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "anchor", _g_get_anchor); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "connectedAnchor", _g_get_connectedAnchor); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "autoConfigureConnectedAnchor", _g_get_autoConfigureConnectedAnchor); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "breakForce", _g_get_breakForce); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "breakTorque", _g_get_breakTorque); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "enableCollision", _g_get_enableCollision); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "enablePreprocessing", _g_get_enablePreprocessing); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "massScale", _g_get_massScale); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "connectedMassScale", _g_get_connectedMassScale); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "currentForce", _g_get_currentForce); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "currentTorque", _g_get_currentTorque); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "connectedBody", _s_set_connectedBody); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "connectedArticulationBody", _s_set_connectedArticulationBody); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "axis", _s_set_axis); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "anchor", _s_set_anchor); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "connectedAnchor", _s_set_connectedAnchor); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "autoConfigureConnectedAnchor", _s_set_autoConfigureConnectedAnchor); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "breakForce", _s_set_breakForce); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "breakTorque", _s_set_breakTorque); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "enableCollision", _s_set_enableCollision); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "enablePreprocessing", _s_set_enablePreprocessing); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "massScale", _s_set_massScale); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "connectedMassScale", _s_set_connectedMassScale); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.Joint(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Joint constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_connectedBody(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Joint gen_to_be_invoked = (UnityEngine.Joint)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.connectedBody); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_connectedArticulationBody(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Joint gen_to_be_invoked = (UnityEngine.Joint)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.connectedArticulationBody); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_axis(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Joint gen_to_be_invoked = (UnityEngine.Joint)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.axis); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_anchor(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Joint gen_to_be_invoked = (UnityEngine.Joint)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.anchor); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_connectedAnchor(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Joint gen_to_be_invoked = (UnityEngine.Joint)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.connectedAnchor); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_autoConfigureConnectedAnchor(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Joint gen_to_be_invoked = (UnityEngine.Joint)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.autoConfigureConnectedAnchor); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_breakForce(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Joint gen_to_be_invoked = (UnityEngine.Joint)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.breakForce); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_breakTorque(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Joint gen_to_be_invoked = (UnityEngine.Joint)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.breakTorque); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_enableCollision(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Joint gen_to_be_invoked = (UnityEngine.Joint)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.enableCollision); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_enablePreprocessing(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Joint gen_to_be_invoked = (UnityEngine.Joint)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.enablePreprocessing); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_massScale(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Joint gen_to_be_invoked = (UnityEngine.Joint)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.massScale); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_connectedMassScale(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Joint gen_to_be_invoked = (UnityEngine.Joint)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.connectedMassScale); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_currentForce(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Joint gen_to_be_invoked = (UnityEngine.Joint)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.currentForce); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_currentTorque(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Joint gen_to_be_invoked = (UnityEngine.Joint)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.currentTorque); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_connectedBody(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Joint gen_to_be_invoked = (UnityEngine.Joint)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.connectedBody = (UnityEngine.Rigidbody)translator.GetObject(L, 2, typeof(UnityEngine.Rigidbody)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_connectedArticulationBody(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Joint gen_to_be_invoked = (UnityEngine.Joint)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.connectedArticulationBody = (UnityEngine.ArticulationBody)translator.GetObject(L, 2, typeof(UnityEngine.ArticulationBody)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_axis(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Joint gen_to_be_invoked = (UnityEngine.Joint)translator.FastGetCSObj(L, 1); - UnityEngine.Vector3 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.axis = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_anchor(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Joint gen_to_be_invoked = (UnityEngine.Joint)translator.FastGetCSObj(L, 1); - UnityEngine.Vector3 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.anchor = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_connectedAnchor(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Joint gen_to_be_invoked = (UnityEngine.Joint)translator.FastGetCSObj(L, 1); - UnityEngine.Vector3 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.connectedAnchor = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_autoConfigureConnectedAnchor(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Joint gen_to_be_invoked = (UnityEngine.Joint)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.autoConfigureConnectedAnchor = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_breakForce(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Joint gen_to_be_invoked = (UnityEngine.Joint)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.breakForce = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_breakTorque(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Joint gen_to_be_invoked = (UnityEngine.Joint)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.breakTorque = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_enableCollision(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Joint gen_to_be_invoked = (UnityEngine.Joint)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.enableCollision = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_enablePreprocessing(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Joint gen_to_be_invoked = (UnityEngine.Joint)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.enablePreprocessing = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_massScale(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Joint gen_to_be_invoked = (UnityEngine.Joint)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.massScale = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_connectedMassScale(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Joint gen_to_be_invoked = (UnityEngine.Joint)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.connectedMassScale = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_JsonUtilityWrap.cs b/Assets/XLua/Gen/UnityEngine_JsonUtilityWrap.cs deleted file mode 100644 index 068add483..000000000 --- a/Assets/XLua/Gen/UnityEngine_JsonUtilityWrap.cs +++ /dev/null @@ -1,168 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineJsonUtilityWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.JsonUtility); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 4, 0, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "ToJson", _m_ToJson_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "FromJson", _m_FromJson_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "FromJsonOverwrite", _m_FromJsonOverwrite_xlua_st_); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "UnityEngine.JsonUtility does not have a constructor!"); - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ToJson_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1&& translator.Assignable(L, 1)) - { - object _obj = translator.GetObject(L, 1, typeof(object)); - - var gen_ret = UnityEngine.JsonUtility.ToJson( _obj ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 1)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)) - { - object _obj = translator.GetObject(L, 1, typeof(object)); - bool _prettyPrint = LuaAPI.lua_toboolean(L, 2); - - var gen_ret = UnityEngine.JsonUtility.ToJson( _obj, _prettyPrint ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.JsonUtility.ToJson!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_FromJson_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - string _json = LuaAPI.lua_tostring(L, 1); - System.Type _type = (System.Type)translator.GetObject(L, 2, typeof(System.Type)); - - var gen_ret = UnityEngine.JsonUtility.FromJson( _json, _type ); - translator.PushAny(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_FromJsonOverwrite_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - string _json = LuaAPI.lua_tostring(L, 1); - object _objectToOverwrite = translator.GetObject(L, 2, typeof(object)); - - UnityEngine.JsonUtility.FromJsonOverwrite( _json, _objectToOverwrite ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_LODGroupWrap.cs b/Assets/XLua/Gen/UnityEngine_LODGroupWrap.cs deleted file mode 100644 index 635af6637..000000000 --- a/Assets/XLua/Gen/UnityEngine_LODGroupWrap.cs +++ /dev/null @@ -1,398 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineLODGroupWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.LODGroup); - Utils.BeginObjectRegister(type, L, translator, 0, 4, 6, 5); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "RecalculateBounds", _m_RecalculateBounds); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetLODs", _m_GetLODs); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetLODs", _m_SetLODs); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ForceLOD", _m_ForceLOD); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "localReferencePoint", _g_get_localReferencePoint); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "size", _g_get_size); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "lodCount", _g_get_lodCount); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "fadeMode", _g_get_fadeMode); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "animateCrossFading", _g_get_animateCrossFading); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "enabled", _g_get_enabled); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "localReferencePoint", _s_set_localReferencePoint); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "size", _s_set_size); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "fadeMode", _s_set_fadeMode); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "animateCrossFading", _s_set_animateCrossFading); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "enabled", _s_set_enabled); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 1, 1); - - - - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "crossFadeAnimationDuration", _g_get_crossFadeAnimationDuration); - - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "crossFadeAnimationDuration", _s_set_crossFadeAnimationDuration); - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.LODGroup(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.LODGroup constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RecalculateBounds(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.LODGroup gen_to_be_invoked = (UnityEngine.LODGroup)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.RecalculateBounds( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetLODs(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.LODGroup gen_to_be_invoked = (UnityEngine.LODGroup)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.GetLODs( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetLODs(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.LODGroup gen_to_be_invoked = (UnityEngine.LODGroup)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.LOD[] _lods = (UnityEngine.LOD[])translator.GetObject(L, 2, typeof(UnityEngine.LOD[])); - - gen_to_be_invoked.SetLODs( _lods ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ForceLOD(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.LODGroup gen_to_be_invoked = (UnityEngine.LODGroup)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - - gen_to_be_invoked.ForceLOD( _index ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_localReferencePoint(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.LODGroup gen_to_be_invoked = (UnityEngine.LODGroup)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.localReferencePoint); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_size(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.LODGroup gen_to_be_invoked = (UnityEngine.LODGroup)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.size); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_lodCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.LODGroup gen_to_be_invoked = (UnityEngine.LODGroup)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.lodCount); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_fadeMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.LODGroup gen_to_be_invoked = (UnityEngine.LODGroup)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.fadeMode); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_animateCrossFading(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.LODGroup gen_to_be_invoked = (UnityEngine.LODGroup)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.animateCrossFading); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_enabled(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.LODGroup gen_to_be_invoked = (UnityEngine.LODGroup)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.enabled); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_crossFadeAnimationDuration(RealStatePtr L) - { - try { - - LuaAPI.lua_pushnumber(L, UnityEngine.LODGroup.crossFadeAnimationDuration); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_localReferencePoint(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.LODGroup gen_to_be_invoked = (UnityEngine.LODGroup)translator.FastGetCSObj(L, 1); - UnityEngine.Vector3 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.localReferencePoint = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_size(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.LODGroup gen_to_be_invoked = (UnityEngine.LODGroup)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.size = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_fadeMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.LODGroup gen_to_be_invoked = (UnityEngine.LODGroup)translator.FastGetCSObj(L, 1); - UnityEngine.LODFadeMode gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.fadeMode = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_animateCrossFading(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.LODGroup gen_to_be_invoked = (UnityEngine.LODGroup)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.animateCrossFading = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_enabled(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.LODGroup gen_to_be_invoked = (UnityEngine.LODGroup)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.enabled = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_crossFadeAnimationDuration(RealStatePtr L) - { - try { - - UnityEngine.LODGroup.crossFadeAnimationDuration = (float)LuaAPI.lua_tonumber(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_LODWrap.cs b/Assets/XLua/Gen/UnityEngine_LODWrap.cs deleted file mode 100644 index d55b012d9..000000000 --- a/Assets/XLua/Gen/UnityEngine_LODWrap.cs +++ /dev/null @@ -1,191 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineLODWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.LOD); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 3, 3); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "screenRelativeTransitionHeight", _g_get_screenRelativeTransitionHeight); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "fadeTransitionWidth", _g_get_fadeTransitionWidth); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "renderers", _g_get_renderers); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "screenRelativeTransitionHeight", _s_set_screenRelativeTransitionHeight); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "fadeTransitionWidth", _s_set_fadeTransitionWidth); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "renderers", _s_set_renderers); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 3 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && translator.Assignable(L, 3)) - { - float _screenRelativeTransitionHeight = (float)LuaAPI.lua_tonumber(L, 2); - UnityEngine.Renderer[] _renderers = (UnityEngine.Renderer[])translator.GetObject(L, 3, typeof(UnityEngine.Renderer[])); - - var gen_ret = new UnityEngine.LOD(_screenRelativeTransitionHeight, _renderers); - translator.Push(L, gen_ret); - - return 1; - } - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(UnityEngine.LOD)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.LOD constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_screenRelativeTransitionHeight(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.LOD gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.screenRelativeTransitionHeight); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_fadeTransitionWidth(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.LOD gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.fadeTransitionWidth); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_renderers(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.LOD gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.renderers); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_screenRelativeTransitionHeight(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.LOD gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.screenRelativeTransitionHeight = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_fadeTransitionWidth(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.LOD gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.fadeTransitionWidth = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_renderers(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.LOD gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.renderers = (UnityEngine.Renderer[])translator.GetObject(L, 2, typeof(UnityEngine.Renderer[])); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_LensFlareWrap.cs b/Assets/XLua/Gen/UnityEngine_LensFlareWrap.cs deleted file mode 100644 index 180669308..000000000 --- a/Assets/XLua/Gen/UnityEngine_LensFlareWrap.cs +++ /dev/null @@ -1,209 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineLensFlareWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.LensFlare); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 4, 4); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "brightness", _g_get_brightness); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "fadeSpeed", _g_get_fadeSpeed); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "color", _g_get_color); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "flare", _g_get_flare); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "brightness", _s_set_brightness); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "fadeSpeed", _s_set_fadeSpeed); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "color", _s_set_color); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "flare", _s_set_flare); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.LensFlare(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.LensFlare constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_brightness(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.LensFlare gen_to_be_invoked = (UnityEngine.LensFlare)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.brightness); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_fadeSpeed(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.LensFlare gen_to_be_invoked = (UnityEngine.LensFlare)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.fadeSpeed); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_color(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.LensFlare gen_to_be_invoked = (UnityEngine.LensFlare)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineColor(L, gen_to_be_invoked.color); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_flare(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.LensFlare gen_to_be_invoked = (UnityEngine.LensFlare)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.flare); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_brightness(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.LensFlare gen_to_be_invoked = (UnityEngine.LensFlare)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.brightness = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_fadeSpeed(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.LensFlare gen_to_be_invoked = (UnityEngine.LensFlare)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.fadeSpeed = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_color(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.LensFlare gen_to_be_invoked = (UnityEngine.LensFlare)translator.FastGetCSObj(L, 1); - UnityEngine.Color gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.color = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_flare(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.LensFlare gen_to_be_invoked = (UnityEngine.LensFlare)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.flare = (UnityEngine.Flare)translator.GetObject(L, 2, typeof(UnityEngine.Flare)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_LightBakingOutputWrap.cs b/Assets/XLua/Gen/UnityEngine_LightBakingOutputWrap.cs deleted file mode 100644 index 2fbb30d77..000000000 --- a/Assets/XLua/Gen/UnityEngine_LightBakingOutputWrap.cs +++ /dev/null @@ -1,249 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineLightBakingOutputWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.LightBakingOutput); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 5, 5); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "probeOcclusionLightIndex", _g_get_probeOcclusionLightIndex); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "occlusionMaskChannel", _g_get_occlusionMaskChannel); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "lightmapBakeType", _g_get_lightmapBakeType); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "mixedLightingMode", _g_get_mixedLightingMode); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "isBaked", _g_get_isBaked); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "probeOcclusionLightIndex", _s_set_probeOcclusionLightIndex); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "occlusionMaskChannel", _s_set_occlusionMaskChannel); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "lightmapBakeType", _s_set_lightmapBakeType); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "mixedLightingMode", _s_set_mixedLightingMode); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "isBaked", _s_set_isBaked); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(UnityEngine.LightBakingOutput)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.LightBakingOutput constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_probeOcclusionLightIndex(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.LightBakingOutput gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.probeOcclusionLightIndex); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_occlusionMaskChannel(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.LightBakingOutput gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.occlusionMaskChannel); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_lightmapBakeType(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.LightBakingOutput gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.lightmapBakeType); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_mixedLightingMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.LightBakingOutput gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.mixedLightingMode); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_isBaked(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.LightBakingOutput gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.isBaked); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_probeOcclusionLightIndex(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.LightBakingOutput gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.probeOcclusionLightIndex = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_occlusionMaskChannel(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.LightBakingOutput gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.occlusionMaskChannel = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_lightmapBakeType(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.LightBakingOutput gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.LightmapBakeType gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.lightmapBakeType = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_mixedLightingMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.LightBakingOutput gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.MixedLightingMode gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.mixedLightingMode = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_isBaked(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.LightBakingOutput gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.isBaked = LuaAPI.lua_toboolean(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_LightProbeProxyVolumeWrap.cs b/Assets/XLua/Gen/UnityEngine_LightProbeProxyVolumeWrap.cs deleted file mode 100644 index 5e0189231..000000000 --- a/Assets/XLua/Gen/UnityEngine_LightProbeProxyVolumeWrap.cs +++ /dev/null @@ -1,520 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineLightProbeProxyVolumeWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.LightProbeProxyVolume); - Utils.BeginObjectRegister(type, L, translator, 0, 1, 13, 12); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Update", _m_Update); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "boundsGlobal", _g_get_boundsGlobal); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "sizeCustom", _g_get_sizeCustom); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "originCustom", _g_get_originCustom); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "probeDensity", _g_get_probeDensity); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "gridResolutionX", _g_get_gridResolutionX); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "gridResolutionY", _g_get_gridResolutionY); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "gridResolutionZ", _g_get_gridResolutionZ); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "boundingBoxMode", _g_get_boundingBoxMode); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "resolutionMode", _g_get_resolutionMode); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "probePositionMode", _g_get_probePositionMode); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "refreshMode", _g_get_refreshMode); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "qualityMode", _g_get_qualityMode); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "dataFormat", _g_get_dataFormat); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "sizeCustom", _s_set_sizeCustom); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "originCustom", _s_set_originCustom); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "probeDensity", _s_set_probeDensity); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "gridResolutionX", _s_set_gridResolutionX); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "gridResolutionY", _s_set_gridResolutionY); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "gridResolutionZ", _s_set_gridResolutionZ); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "boundingBoxMode", _s_set_boundingBoxMode); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "resolutionMode", _s_set_resolutionMode); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "probePositionMode", _s_set_probePositionMode); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "refreshMode", _s_set_refreshMode); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "qualityMode", _s_set_qualityMode); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "dataFormat", _s_set_dataFormat); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 1, 0); - - - - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "isFeatureSupported", _g_get_isFeatureSupported); - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.LightProbeProxyVolume(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.LightProbeProxyVolume constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Update(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.LightProbeProxyVolume gen_to_be_invoked = (UnityEngine.LightProbeProxyVolume)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Update( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_isFeatureSupported(RealStatePtr L) - { - try { - - LuaAPI.lua_pushboolean(L, UnityEngine.LightProbeProxyVolume.isFeatureSupported); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_boundsGlobal(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.LightProbeProxyVolume gen_to_be_invoked = (UnityEngine.LightProbeProxyVolume)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineBounds(L, gen_to_be_invoked.boundsGlobal); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_sizeCustom(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.LightProbeProxyVolume gen_to_be_invoked = (UnityEngine.LightProbeProxyVolume)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.sizeCustom); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_originCustom(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.LightProbeProxyVolume gen_to_be_invoked = (UnityEngine.LightProbeProxyVolume)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.originCustom); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_probeDensity(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.LightProbeProxyVolume gen_to_be_invoked = (UnityEngine.LightProbeProxyVolume)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.probeDensity); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_gridResolutionX(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.LightProbeProxyVolume gen_to_be_invoked = (UnityEngine.LightProbeProxyVolume)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.gridResolutionX); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_gridResolutionY(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.LightProbeProxyVolume gen_to_be_invoked = (UnityEngine.LightProbeProxyVolume)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.gridResolutionY); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_gridResolutionZ(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.LightProbeProxyVolume gen_to_be_invoked = (UnityEngine.LightProbeProxyVolume)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.gridResolutionZ); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_boundingBoxMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.LightProbeProxyVolume gen_to_be_invoked = (UnityEngine.LightProbeProxyVolume)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.boundingBoxMode); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_resolutionMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.LightProbeProxyVolume gen_to_be_invoked = (UnityEngine.LightProbeProxyVolume)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.resolutionMode); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_probePositionMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.LightProbeProxyVolume gen_to_be_invoked = (UnityEngine.LightProbeProxyVolume)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.probePositionMode); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_refreshMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.LightProbeProxyVolume gen_to_be_invoked = (UnityEngine.LightProbeProxyVolume)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.refreshMode); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_qualityMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.LightProbeProxyVolume gen_to_be_invoked = (UnityEngine.LightProbeProxyVolume)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.qualityMode); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_dataFormat(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.LightProbeProxyVolume gen_to_be_invoked = (UnityEngine.LightProbeProxyVolume)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.dataFormat); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_sizeCustom(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.LightProbeProxyVolume gen_to_be_invoked = (UnityEngine.LightProbeProxyVolume)translator.FastGetCSObj(L, 1); - UnityEngine.Vector3 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.sizeCustom = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_originCustom(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.LightProbeProxyVolume gen_to_be_invoked = (UnityEngine.LightProbeProxyVolume)translator.FastGetCSObj(L, 1); - UnityEngine.Vector3 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.originCustom = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_probeDensity(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.LightProbeProxyVolume gen_to_be_invoked = (UnityEngine.LightProbeProxyVolume)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.probeDensity = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_gridResolutionX(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.LightProbeProxyVolume gen_to_be_invoked = (UnityEngine.LightProbeProxyVolume)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.gridResolutionX = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_gridResolutionY(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.LightProbeProxyVolume gen_to_be_invoked = (UnityEngine.LightProbeProxyVolume)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.gridResolutionY = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_gridResolutionZ(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.LightProbeProxyVolume gen_to_be_invoked = (UnityEngine.LightProbeProxyVolume)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.gridResolutionZ = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_boundingBoxMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.LightProbeProxyVolume gen_to_be_invoked = (UnityEngine.LightProbeProxyVolume)translator.FastGetCSObj(L, 1); - UnityEngine.LightProbeProxyVolume.BoundingBoxMode gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.boundingBoxMode = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_resolutionMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.LightProbeProxyVolume gen_to_be_invoked = (UnityEngine.LightProbeProxyVolume)translator.FastGetCSObj(L, 1); - UnityEngine.LightProbeProxyVolume.ResolutionMode gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.resolutionMode = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_probePositionMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.LightProbeProxyVolume gen_to_be_invoked = (UnityEngine.LightProbeProxyVolume)translator.FastGetCSObj(L, 1); - UnityEngine.LightProbeProxyVolume.ProbePositionMode gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.probePositionMode = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_refreshMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.LightProbeProxyVolume gen_to_be_invoked = (UnityEngine.LightProbeProxyVolume)translator.FastGetCSObj(L, 1); - UnityEngine.LightProbeProxyVolume.RefreshMode gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.refreshMode = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_qualityMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.LightProbeProxyVolume gen_to_be_invoked = (UnityEngine.LightProbeProxyVolume)translator.FastGetCSObj(L, 1); - UnityEngine.LightProbeProxyVolume.QualityMode gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.qualityMode = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_dataFormat(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.LightProbeProxyVolume gen_to_be_invoked = (UnityEngine.LightProbeProxyVolume)translator.FastGetCSObj(L, 1); - UnityEngine.LightProbeProxyVolume.DataFormat gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.dataFormat = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_LineUtilityWrap.cs b/Assets/XLua/Gen/UnityEngine_LineUtilityWrap.cs deleted file mode 100644 index 79f9eec99..000000000 --- a/Assets/XLua/Gen/UnityEngine_LineUtilityWrap.cs +++ /dev/null @@ -1,153 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineLineUtilityWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.LineUtility); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 2, 0, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Simplify", _m_Simplify_xlua_st_); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.LineUtility(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.LineUtility constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Simplify_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& translator.Assignable>(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable>(L, 3)) - { - System.Collections.Generic.List _points = (System.Collections.Generic.List)translator.GetObject(L, 1, typeof(System.Collections.Generic.List)); - float _tolerance = (float)LuaAPI.lua_tonumber(L, 2); - System.Collections.Generic.List _pointsToKeep = (System.Collections.Generic.List)translator.GetObject(L, 3, typeof(System.Collections.Generic.List)); - - UnityEngine.LineUtility.Simplify( _points, _tolerance, _pointsToKeep ); - - - - return 0; - } - if(gen_param_count == 3&& translator.Assignable>(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable>(L, 3)) - { - System.Collections.Generic.List _points = (System.Collections.Generic.List)translator.GetObject(L, 1, typeof(System.Collections.Generic.List)); - float _tolerance = (float)LuaAPI.lua_tonumber(L, 2); - System.Collections.Generic.List _simplifiedPoints = (System.Collections.Generic.List)translator.GetObject(L, 3, typeof(System.Collections.Generic.List)); - - UnityEngine.LineUtility.Simplify( _points, _tolerance, _simplifiedPoints ); - - - - return 0; - } - if(gen_param_count == 3&& translator.Assignable>(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable>(L, 3)) - { - System.Collections.Generic.List _points = (System.Collections.Generic.List)translator.GetObject(L, 1, typeof(System.Collections.Generic.List)); - float _tolerance = (float)LuaAPI.lua_tonumber(L, 2); - System.Collections.Generic.List _pointsToKeep = (System.Collections.Generic.List)translator.GetObject(L, 3, typeof(System.Collections.Generic.List)); - - UnityEngine.LineUtility.Simplify( _points, _tolerance, _pointsToKeep ); - - - - return 0; - } - if(gen_param_count == 3&& translator.Assignable>(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable>(L, 3)) - { - System.Collections.Generic.List _points = (System.Collections.Generic.List)translator.GetObject(L, 1, typeof(System.Collections.Generic.List)); - float _tolerance = (float)LuaAPI.lua_tonumber(L, 2); - System.Collections.Generic.List _simplifiedPoints = (System.Collections.Generic.List)translator.GetObject(L, 3, typeof(System.Collections.Generic.List)); - - UnityEngine.LineUtility.Simplify( _points, _tolerance, _simplifiedPoints ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.LineUtility.Simplify!"); - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_LocalizationAssetWrap.cs b/Assets/XLua/Gen/UnityEngine_LocalizationAssetWrap.cs deleted file mode 100644 index 8e3b057f5..000000000 --- a/Assets/XLua/Gen/UnityEngine_LocalizationAssetWrap.cs +++ /dev/null @@ -1,206 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineLocalizationAssetWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.LocalizationAsset); - Utils.BeginObjectRegister(type, L, translator, 0, 2, 2, 2); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetLocalizedString", _m_SetLocalizedString); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetLocalizedString", _m_GetLocalizedString); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "localeIsoCode", _g_get_localeIsoCode); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "isEditorAsset", _g_get_isEditorAsset); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "localeIsoCode", _s_set_localeIsoCode); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "isEditorAsset", _s_set_isEditorAsset); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.LocalizationAsset(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.LocalizationAsset constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetLocalizedString(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.LocalizationAsset gen_to_be_invoked = (UnityEngine.LocalizationAsset)translator.FastGetCSObj(L, 1); - - - - { - string _original = LuaAPI.lua_tostring(L, 2); - string _localized = LuaAPI.lua_tostring(L, 3); - - gen_to_be_invoked.SetLocalizedString( _original, _localized ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetLocalizedString(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.LocalizationAsset gen_to_be_invoked = (UnityEngine.LocalizationAsset)translator.FastGetCSObj(L, 1); - - - - { - string _original = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.GetLocalizedString( _original ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_localeIsoCode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.LocalizationAsset gen_to_be_invoked = (UnityEngine.LocalizationAsset)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.localeIsoCode); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_isEditorAsset(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.LocalizationAsset gen_to_be_invoked = (UnityEngine.LocalizationAsset)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.isEditorAsset); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_localeIsoCode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.LocalizationAsset gen_to_be_invoked = (UnityEngine.LocalizationAsset)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.localeIsoCode = LuaAPI.lua_tostring(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_isEditorAsset(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.LocalizationAsset gen_to_be_invoked = (UnityEngine.LocalizationAsset)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.isEditorAsset = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_LocationInfoWrap.cs b/Assets/XLua/Gen/UnityEngine_LocationInfoWrap.cs deleted file mode 100644 index 27f7a757b..000000000 --- a/Assets/XLua/Gen/UnityEngine_LocationInfoWrap.cs +++ /dev/null @@ -1,172 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineLocationInfoWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.LocationInfo); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 6, 0); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "latitude", _g_get_latitude); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "longitude", _g_get_longitude); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "altitude", _g_get_altitude); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "horizontalAccuracy", _g_get_horizontalAccuracy); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "verticalAccuracy", _g_get_verticalAccuracy); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "timestamp", _g_get_timestamp); - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(UnityEngine.LocationInfo)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.LocationInfo constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_latitude(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.LocationInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.latitude); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_longitude(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.LocationInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.longitude); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_altitude(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.LocationInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.altitude); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_horizontalAccuracy(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.LocationInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.horizontalAccuracy); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_verticalAccuracy(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.LocationInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.verticalAccuracy); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_timestamp(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.LocationInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.timestamp); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_LocationServiceWrap.cs b/Assets/XLua/Gen/UnityEngine_LocationServiceWrap.cs deleted file mode 100644 index c4297ddad..000000000 --- a/Assets/XLua/Gen/UnityEngine_LocationServiceWrap.cs +++ /dev/null @@ -1,210 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineLocationServiceWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.LocationService); - Utils.BeginObjectRegister(type, L, translator, 0, 2, 3, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Start", _m_Start); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Stop", _m_Stop); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "isEnabledByUser", _g_get_isEnabledByUser); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "status", _g_get_status); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "lastData", _g_get_lastData); - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.LocationService(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.LocationService constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Start(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.LocationService gen_to_be_invoked = (UnityEngine.LocationService)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - gen_to_be_invoked.Start( ); - - - - return 0; - } - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - float _desiredAccuracyInMeters = (float)LuaAPI.lua_tonumber(L, 2); - - gen_to_be_invoked.Start( _desiredAccuracyInMeters ); - - - - return 0; - } - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - float _desiredAccuracyInMeters = (float)LuaAPI.lua_tonumber(L, 2); - float _updateDistanceInMeters = (float)LuaAPI.lua_tonumber(L, 3); - - gen_to_be_invoked.Start( _desiredAccuracyInMeters, _updateDistanceInMeters ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.LocationService.Start!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Stop(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.LocationService gen_to_be_invoked = (UnityEngine.LocationService)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Stop( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_isEnabledByUser(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.LocationService gen_to_be_invoked = (UnityEngine.LocationService)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.isEnabledByUser); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_status(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.LocationService gen_to_be_invoked = (UnityEngine.LocationService)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.status); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_lastData(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.LocationService gen_to_be_invoked = (UnityEngine.LocationService)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.lastData); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_LoggerWrap.cs b/Assets/XLua/Gen/UnityEngine_LoggerWrap.cs deleted file mode 100644 index ea8494c26..000000000 --- a/Assets/XLua/Gen/UnityEngine_LoggerWrap.cs +++ /dev/null @@ -1,497 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineLoggerWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.Logger); - Utils.BeginObjectRegister(type, L, translator, 0, 6, 3, 3); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsLogTypeAllowed", _m_IsLogTypeAllowed); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Log", _m_Log); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "LogWarning", _m_LogWarning); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "LogError", _m_LogError); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "LogException", _m_LogException); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "LogFormat", _m_LogFormat); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "logHandler", _g_get_logHandler); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "logEnabled", _g_get_logEnabled); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "filterLogType", _g_get_filterLogType); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "logHandler", _s_set_logHandler); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "logEnabled", _s_set_logEnabled); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "filterLogType", _s_set_filterLogType); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 2 && translator.Assignable(L, 2)) - { - UnityEngine.ILogHandler _logHandler = (UnityEngine.ILogHandler)translator.GetObject(L, 2, typeof(UnityEngine.ILogHandler)); - - var gen_ret = new UnityEngine.Logger(_logHandler); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Logger constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_IsLogTypeAllowed(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Logger gen_to_be_invoked = (UnityEngine.Logger)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.LogType _logType;translator.Get(L, 2, out _logType); - - var gen_ret = gen_to_be_invoked.IsLogTypeAllowed( _logType ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Log(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Logger gen_to_be_invoked = (UnityEngine.Logger)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - object _message = translator.GetObject(L, 2, typeof(object)); - - gen_to_be_invoked.Log( _message ); - - - - return 0; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)) - { - UnityEngine.LogType _logType;translator.Get(L, 2, out _logType); - object _message = translator.GetObject(L, 3, typeof(object)); - - gen_to_be_invoked.Log( _logType, _message ); - - - - return 0; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 3)) - { - string _tag = LuaAPI.lua_tostring(L, 2); - object _message = translator.GetObject(L, 3, typeof(object)); - - gen_to_be_invoked.Log( _tag, _message ); - - - - return 0; - } - if(gen_param_count == 4&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)) - { - UnityEngine.LogType _logType;translator.Get(L, 2, out _logType); - object _message = translator.GetObject(L, 3, typeof(object)); - UnityEngine.Object _context = (UnityEngine.Object)translator.GetObject(L, 4, typeof(UnityEngine.Object)); - - gen_to_be_invoked.Log( _logType, _message, _context ); - - - - return 0; - } - if(gen_param_count == 4&& translator.Assignable(L, 2)&& (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 4)) - { - UnityEngine.LogType _logType;translator.Get(L, 2, out _logType); - string _tag = LuaAPI.lua_tostring(L, 3); - object _message = translator.GetObject(L, 4, typeof(object)); - - gen_to_be_invoked.Log( _logType, _tag, _message ); - - - - return 0; - } - if(gen_param_count == 4&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)) - { - string _tag = LuaAPI.lua_tostring(L, 2); - object _message = translator.GetObject(L, 3, typeof(object)); - UnityEngine.Object _context = (UnityEngine.Object)translator.GetObject(L, 4, typeof(UnityEngine.Object)); - - gen_to_be_invoked.Log( _tag, _message, _context ); - - - - return 0; - } - if(gen_param_count == 5&& translator.Assignable(L, 2)&& (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 4)&& translator.Assignable(L, 5)) - { - UnityEngine.LogType _logType;translator.Get(L, 2, out _logType); - string _tag = LuaAPI.lua_tostring(L, 3); - object _message = translator.GetObject(L, 4, typeof(object)); - UnityEngine.Object _context = (UnityEngine.Object)translator.GetObject(L, 5, typeof(UnityEngine.Object)); - - gen_to_be_invoked.Log( _logType, _tag, _message, _context ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Logger.Log!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_LogWarning(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Logger gen_to_be_invoked = (UnityEngine.Logger)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 3)) - { - string _tag = LuaAPI.lua_tostring(L, 2); - object _message = translator.GetObject(L, 3, typeof(object)); - - gen_to_be_invoked.LogWarning( _tag, _message ); - - - - return 0; - } - if(gen_param_count == 4&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)) - { - string _tag = LuaAPI.lua_tostring(L, 2); - object _message = translator.GetObject(L, 3, typeof(object)); - UnityEngine.Object _context = (UnityEngine.Object)translator.GetObject(L, 4, typeof(UnityEngine.Object)); - - gen_to_be_invoked.LogWarning( _tag, _message, _context ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Logger.LogWarning!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_LogError(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Logger gen_to_be_invoked = (UnityEngine.Logger)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 3)) - { - string _tag = LuaAPI.lua_tostring(L, 2); - object _message = translator.GetObject(L, 3, typeof(object)); - - gen_to_be_invoked.LogError( _tag, _message ); - - - - return 0; - } - if(gen_param_count == 4&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)) - { - string _tag = LuaAPI.lua_tostring(L, 2); - object _message = translator.GetObject(L, 3, typeof(object)); - UnityEngine.Object _context = (UnityEngine.Object)translator.GetObject(L, 4, typeof(UnityEngine.Object)); - - gen_to_be_invoked.LogError( _tag, _message, _context ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Logger.LogError!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_LogException(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Logger gen_to_be_invoked = (UnityEngine.Logger)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - System.Exception _exception = (System.Exception)translator.GetObject(L, 2, typeof(System.Exception)); - - gen_to_be_invoked.LogException( _exception ); - - - - return 0; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)) - { - System.Exception _exception = (System.Exception)translator.GetObject(L, 2, typeof(System.Exception)); - UnityEngine.Object _context = (UnityEngine.Object)translator.GetObject(L, 3, typeof(UnityEngine.Object)); - - gen_to_be_invoked.LogException( _exception, _context ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Logger.LogException!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_LogFormat(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Logger gen_to_be_invoked = (UnityEngine.Logger)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count >= 3&& translator.Assignable(L, 2)&& (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING)&& (LuaTypes.LUA_TNONE == LuaAPI.lua_type(L, 4) || translator.Assignable(L, 4))) - { - UnityEngine.LogType _logType;translator.Get(L, 2, out _logType); - string _format = LuaAPI.lua_tostring(L, 3); - object[] _args = translator.GetParams(L, 4); - - gen_to_be_invoked.LogFormat( _logType, _format, _args ); - - - - return 0; - } - if(gen_param_count >= 4&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& (LuaAPI.lua_isnil(L, 4) || LuaAPI.lua_type(L, 4) == LuaTypes.LUA_TSTRING)&& (LuaTypes.LUA_TNONE == LuaAPI.lua_type(L, 5) || translator.Assignable(L, 5))) - { - UnityEngine.LogType _logType;translator.Get(L, 2, out _logType); - UnityEngine.Object _context = (UnityEngine.Object)translator.GetObject(L, 3, typeof(UnityEngine.Object)); - string _format = LuaAPI.lua_tostring(L, 4); - object[] _args = translator.GetParams(L, 5); - - gen_to_be_invoked.LogFormat( _logType, _context, _format, _args ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Logger.LogFormat!"); - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_logHandler(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Logger gen_to_be_invoked = (UnityEngine.Logger)translator.FastGetCSObj(L, 1); - translator.PushAny(L, gen_to_be_invoked.logHandler); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_logEnabled(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Logger gen_to_be_invoked = (UnityEngine.Logger)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.logEnabled); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_filterLogType(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Logger gen_to_be_invoked = (UnityEngine.Logger)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.filterLogType); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_logHandler(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Logger gen_to_be_invoked = (UnityEngine.Logger)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.logHandler = (UnityEngine.ILogHandler)translator.GetObject(L, 2, typeof(UnityEngine.ILogHandler)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_logEnabled(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Logger gen_to_be_invoked = (UnityEngine.Logger)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.logEnabled = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_filterLogType(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Logger gen_to_be_invoked = (UnityEngine.Logger)translator.FastGetCSObj(L, 1); - UnityEngine.LogType gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.filterLogType = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_MatchTargetWeightMaskWrap.cs b/Assets/XLua/Gen/UnityEngine_MatchTargetWeightMaskWrap.cs deleted file mode 100644 index ec8d76863..000000000 --- a/Assets/XLua/Gen/UnityEngine_MatchTargetWeightMaskWrap.cs +++ /dev/null @@ -1,159 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineMatchTargetWeightMaskWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.MatchTargetWeightMask); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 2, 2); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "positionXYZWeight", _g_get_positionXYZWeight); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "rotationWeight", _g_get_rotationWeight); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "positionXYZWeight", _s_set_positionXYZWeight); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "rotationWeight", _s_set_rotationWeight); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 3 && translator.Assignable(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - UnityEngine.Vector3 _positionXYZWeight;translator.Get(L, 2, out _positionXYZWeight); - float _rotationWeight = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = new UnityEngine.MatchTargetWeightMask(_positionXYZWeight, _rotationWeight); - translator.Push(L, gen_ret); - - return 1; - } - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(UnityEngine.MatchTargetWeightMask)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.MatchTargetWeightMask constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_positionXYZWeight(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.MatchTargetWeightMask gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.positionXYZWeight); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_rotationWeight(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.MatchTargetWeightMask gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.rotationWeight); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_positionXYZWeight(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.MatchTargetWeightMask gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Vector3 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.positionXYZWeight = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_rotationWeight(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.MatchTargetWeightMask gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.rotationWeight = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_Mesh_MeshDataArrayWrap.cs b/Assets/XLua/Gen/UnityEngine_Mesh_MeshDataArrayWrap.cs deleted file mode 100644 index 0b0a4b215..000000000 --- a/Assets/XLua/Gen/UnityEngine_Mesh_MeshDataArrayWrap.cs +++ /dev/null @@ -1,152 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineMeshMeshDataArrayWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.Mesh.MeshDataArray); - Utils.BeginObjectRegister(type, L, translator, 0, 1, 1, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Dispose", _m_Dispose); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Length", _g_get_Length); - - - - Utils.EndObjectRegister(type, L, translator, __CSIndexer, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(UnityEngine.Mesh.MeshDataArray)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Mesh.MeshDataArray constructor!"); - - } - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - public static int __CSIndexer(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - if (translator.Assignable(L, 1) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - - UnityEngine.Mesh.MeshDataArray gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - int index = LuaAPI.xlua_tointeger(L, 2); - LuaAPI.lua_pushboolean(L, true); - translator.Push(L, gen_to_be_invoked[index]); - return 2; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - LuaAPI.lua_pushboolean(L, false); - return 1; - } - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Dispose(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Mesh.MeshDataArray gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - - gen_to_be_invoked.Dispose( ); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Length(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Mesh.MeshDataArray gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.Length); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_Mesh_MeshDataWrap.cs b/Assets/XLua/Gen/UnityEngine_Mesh_MeshDataWrap.cs deleted file mode 100644 index ceab9b1a0..000000000 --- a/Assets/XLua/Gen/UnityEngine_Mesh_MeshDataWrap.cs +++ /dev/null @@ -1,698 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineMeshMeshDataWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.Mesh.MeshData); - Utils.BeginObjectRegister(type, L, translator, 0, 13, 4, 1); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "HasVertexAttribute", _m_HasVertexAttribute); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetVertexAttributeDimension", _m_GetVertexAttributeDimension); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetVertexAttributeFormat", _m_GetVertexAttributeFormat); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetVertices", _m_GetVertices); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetNormals", _m_GetNormals); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetTangents", _m_GetTangents); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetColors", _m_GetColors); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetUVs", _m_GetUVs); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetVertexBufferParams", _m_SetVertexBufferParams); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetIndexBufferParams", _m_SetIndexBufferParams); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetIndices", _m_GetIndices); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetSubMesh", _m_GetSubMesh); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetSubMesh", _m_SetSubMesh); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "vertexCount", _g_get_vertexCount); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "vertexBufferCount", _g_get_vertexBufferCount); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "indexFormat", _g_get_indexFormat); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "subMeshCount", _g_get_subMeshCount); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "subMeshCount", _s_set_subMeshCount); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(UnityEngine.Mesh.MeshData)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Mesh.MeshData constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_HasVertexAttribute(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Mesh.MeshData gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - UnityEngine.Rendering.VertexAttribute _attr;translator.Get(L, 2, out _attr); - - var gen_ret = gen_to_be_invoked.HasVertexAttribute( _attr ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetVertexAttributeDimension(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Mesh.MeshData gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - UnityEngine.Rendering.VertexAttribute _attr;translator.Get(L, 2, out _attr); - - var gen_ret = gen_to_be_invoked.GetVertexAttributeDimension( _attr ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetVertexAttributeFormat(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Mesh.MeshData gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - UnityEngine.Rendering.VertexAttribute _attr;translator.Get(L, 2, out _attr); - - var gen_ret = gen_to_be_invoked.GetVertexAttributeFormat( _attr ); - translator.Push(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetVertices(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Mesh.MeshData gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - Unity.Collections.NativeArray _outVertices;translator.Get(L, 2, out _outVertices); - - gen_to_be_invoked.GetVertices( _outVertices ); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetNormals(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Mesh.MeshData gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - Unity.Collections.NativeArray _outNormals;translator.Get(L, 2, out _outNormals); - - gen_to_be_invoked.GetNormals( _outNormals ); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetTangents(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Mesh.MeshData gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - Unity.Collections.NativeArray _outTangents;translator.Get(L, 2, out _outTangents); - - gen_to_be_invoked.GetTangents( _outTangents ); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetColors(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Mesh.MeshData gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable>(L, 2)) - { - Unity.Collections.NativeArray _outColors;translator.Get(L, 2, out _outColors); - - gen_to_be_invoked.GetColors( _outColors ); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 0; - } - if(gen_param_count == 2&& translator.Assignable>(L, 2)) - { - Unity.Collections.NativeArray _outColors;translator.Get(L, 2, out _outColors); - - gen_to_be_invoked.GetColors( _outColors ); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Mesh.MeshData.GetColors!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetUVs(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Mesh.MeshData gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable>(L, 3)) - { - int _channel = LuaAPI.xlua_tointeger(L, 2); - Unity.Collections.NativeArray _outUVs;translator.Get(L, 3, out _outUVs); - - gen_to_be_invoked.GetUVs( _channel, _outUVs ); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 0; - } - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable>(L, 3)) - { - int _channel = LuaAPI.xlua_tointeger(L, 2); - Unity.Collections.NativeArray _outUVs;translator.Get(L, 3, out _outUVs); - - gen_to_be_invoked.GetUVs( _channel, _outUVs ); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 0; - } - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable>(L, 3)) - { - int _channel = LuaAPI.xlua_tointeger(L, 2); - Unity.Collections.NativeArray _outUVs;translator.Get(L, 3, out _outUVs); - - gen_to_be_invoked.GetUVs( _channel, _outUVs ); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Mesh.MeshData.GetUVs!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetVertexBufferParams(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Mesh.MeshData gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count >= 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& (LuaTypes.LUA_TNONE == LuaAPI.lua_type(L, 3) || translator.Assignable(L, 3))) - { - int _vertexCount = LuaAPI.xlua_tointeger(L, 2); - UnityEngine.Rendering.VertexAttributeDescriptor[] _attributes = translator.GetParams(L, 3); - - gen_to_be_invoked.SetVertexBufferParams( _vertexCount, _attributes ); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 0; - } - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable>(L, 3)) - { - int _vertexCount = LuaAPI.xlua_tointeger(L, 2); - Unity.Collections.NativeArray _attributes;translator.Get(L, 3, out _attributes); - - gen_to_be_invoked.SetVertexBufferParams( _vertexCount, _attributes ); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Mesh.MeshData.SetVertexBufferParams!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetIndexBufferParams(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Mesh.MeshData gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - int _indexCount = LuaAPI.xlua_tointeger(L, 2); - UnityEngine.Rendering.IndexFormat _format;translator.Get(L, 3, out _format); - - gen_to_be_invoked.SetIndexBufferParams( _indexCount, _format ); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetIndices(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Mesh.MeshData gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 4&& translator.Assignable>(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 4)) - { - Unity.Collections.NativeArray _outIndices;translator.Get(L, 2, out _outIndices); - int _submesh = LuaAPI.xlua_tointeger(L, 3); - bool _applyBaseVertex = LuaAPI.lua_toboolean(L, 4); - - gen_to_be_invoked.GetIndices( _outIndices, _submesh, _applyBaseVertex ); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 0; - } - if(gen_param_count == 3&& translator.Assignable>(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - Unity.Collections.NativeArray _outIndices;translator.Get(L, 2, out _outIndices); - int _submesh = LuaAPI.xlua_tointeger(L, 3); - - gen_to_be_invoked.GetIndices( _outIndices, _submesh ); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 0; - } - if(gen_param_count == 4&& translator.Assignable>(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 4)) - { - Unity.Collections.NativeArray _outIndices;translator.Get(L, 2, out _outIndices); - int _submesh = LuaAPI.xlua_tointeger(L, 3); - bool _applyBaseVertex = LuaAPI.lua_toboolean(L, 4); - - gen_to_be_invoked.GetIndices( _outIndices, _submesh, _applyBaseVertex ); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 0; - } - if(gen_param_count == 3&& translator.Assignable>(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - Unity.Collections.NativeArray _outIndices;translator.Get(L, 2, out _outIndices); - int _submesh = LuaAPI.xlua_tointeger(L, 3); - - gen_to_be_invoked.GetIndices( _outIndices, _submesh ); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Mesh.MeshData.GetIndices!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetSubMesh(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Mesh.MeshData gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.GetSubMesh( _index ); - translator.Push(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetSubMesh(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Mesh.MeshData gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)) - { - int _index = LuaAPI.xlua_tointeger(L, 2); - UnityEngine.Rendering.SubMeshDescriptor _desc;translator.Get(L, 3, out _desc); - UnityEngine.Rendering.MeshUpdateFlags _flags;translator.Get(L, 4, out _flags); - - gen_to_be_invoked.SetSubMesh( _index, _desc, _flags ); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 0; - } - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)) - { - int _index = LuaAPI.xlua_tointeger(L, 2); - UnityEngine.Rendering.SubMeshDescriptor _desc;translator.Get(L, 3, out _desc); - - gen_to_be_invoked.SetSubMesh( _index, _desc ); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Mesh.MeshData.SetSubMesh!"); - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_vertexCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Mesh.MeshData gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.vertexCount); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_vertexBufferCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Mesh.MeshData gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.vertexBufferCount); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_indexFormat(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Mesh.MeshData gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.indexFormat); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_subMeshCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Mesh.MeshData gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.subMeshCount); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_subMeshCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Mesh.MeshData gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.subMeshCount = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_MicrophoneWrap.cs b/Assets/XLua/Gen/UnityEngine_MicrophoneWrap.cs deleted file mode 100644 index ba3b05ad7..000000000 --- a/Assets/XLua/Gen/UnityEngine_MicrophoneWrap.cs +++ /dev/null @@ -1,236 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineMicrophoneWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.Microphone); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 6, 1, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Start", _m_Start_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "End", _m_End_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "IsRecording", _m_IsRecording_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetPosition", _m_GetPosition_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetDeviceCaps", _m_GetDeviceCaps_xlua_st_); - - - - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "devices", _g_get_devices); - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.Microphone(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Microphone constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Start_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - string _deviceName = LuaAPI.lua_tostring(L, 1); - bool _loop = LuaAPI.lua_toboolean(L, 2); - int _lengthSec = LuaAPI.xlua_tointeger(L, 3); - int _frequency = LuaAPI.xlua_tointeger(L, 4); - - var gen_ret = UnityEngine.Microphone.Start( _deviceName, _loop, _lengthSec, _frequency ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_End_xlua_st_(RealStatePtr L) - { - try { - - - - - { - string _deviceName = LuaAPI.lua_tostring(L, 1); - - UnityEngine.Microphone.End( _deviceName ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_IsRecording_xlua_st_(RealStatePtr L) - { - try { - - - - - { - string _deviceName = LuaAPI.lua_tostring(L, 1); - - var gen_ret = UnityEngine.Microphone.IsRecording( _deviceName ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetPosition_xlua_st_(RealStatePtr L) - { - try { - - - - - { - string _deviceName = LuaAPI.lua_tostring(L, 1); - - var gen_ret = UnityEngine.Microphone.GetPosition( _deviceName ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetDeviceCaps_xlua_st_(RealStatePtr L) - { - try { - - - - - { - string _deviceName = LuaAPI.lua_tostring(L, 1); - int _minFreq; - int _maxFreq; - - UnityEngine.Microphone.GetDeviceCaps( _deviceName, out _minFreq, out _maxFreq ); - LuaAPI.xlua_pushinteger(L, _minFreq); - - LuaAPI.xlua_pushinteger(L, _maxFreq); - - - - - return 2; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_devices(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, UnityEngine.Microphone.devices); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_MissingComponentExceptionWrap.cs b/Assets/XLua/Gen/UnityEngine_MissingComponentExceptionWrap.cs deleted file mode 100644 index 1f99211e0..000000000 --- a/Assets/XLua/Gen/UnityEngine_MissingComponentExceptionWrap.cs +++ /dev/null @@ -1,103 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineMissingComponentExceptionWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.MissingComponentException); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.MissingComponentException(); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 2 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _message = LuaAPI.lua_tostring(L, 2); - - var gen_ret = new UnityEngine.MissingComponentException(_message); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 3 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING) && translator.Assignable(L, 3)) - { - string _message = LuaAPI.lua_tostring(L, 2); - System.Exception _innerException = (System.Exception)translator.GetObject(L, 3, typeof(System.Exception)); - - var gen_ret = new UnityEngine.MissingComponentException(_message, _innerException); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.MissingComponentException constructor!"); - - } - - - - - - - - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_MissingReferenceExceptionWrap.cs b/Assets/XLua/Gen/UnityEngine_MissingReferenceExceptionWrap.cs deleted file mode 100644 index b8ce358a0..000000000 --- a/Assets/XLua/Gen/UnityEngine_MissingReferenceExceptionWrap.cs +++ /dev/null @@ -1,103 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineMissingReferenceExceptionWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.MissingReferenceException); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.MissingReferenceException(); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 2 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _message = LuaAPI.lua_tostring(L, 2); - - var gen_ret = new UnityEngine.MissingReferenceException(_message); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 3 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING) && translator.Assignable(L, 3)) - { - string _message = LuaAPI.lua_tostring(L, 2); - System.Exception _innerException = (System.Exception)translator.GetObject(L, 3, typeof(System.Exception)); - - var gen_ret = new UnityEngine.MissingReferenceException(_message, _innerException); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.MissingReferenceException constructor!"); - - } - - - - - - - - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_OcclusionAreaWrap.cs b/Assets/XLua/Gen/UnityEngine_OcclusionAreaWrap.cs deleted file mode 100644 index 87abd0574..000000000 --- a/Assets/XLua/Gen/UnityEngine_OcclusionAreaWrap.cs +++ /dev/null @@ -1,148 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineOcclusionAreaWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.OcclusionArea); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 2, 2); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "center", _g_get_center); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "size", _g_get_size); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "center", _s_set_center); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "size", _s_set_size); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.OcclusionArea(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.OcclusionArea constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_center(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.OcclusionArea gen_to_be_invoked = (UnityEngine.OcclusionArea)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.center); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_size(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.OcclusionArea gen_to_be_invoked = (UnityEngine.OcclusionArea)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.size); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_center(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.OcclusionArea gen_to_be_invoked = (UnityEngine.OcclusionArea)translator.FastGetCSObj(L, 1); - UnityEngine.Vector3 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.center = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_size(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.OcclusionArea gen_to_be_invoked = (UnityEngine.OcclusionArea)translator.FastGetCSObj(L, 1); - UnityEngine.Vector3 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.size = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_OcclusionPortalWrap.cs b/Assets/XLua/Gen/UnityEngine_OcclusionPortalWrap.cs deleted file mode 100644 index d8cdfa12d..000000000 --- a/Assets/XLua/Gen/UnityEngine_OcclusionPortalWrap.cs +++ /dev/null @@ -1,115 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineOcclusionPortalWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.OcclusionPortal); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 1, 1); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "open", _g_get_open); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "open", _s_set_open); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.OcclusionPortal(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.OcclusionPortal constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_open(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.OcclusionPortal gen_to_be_invoked = (UnityEngine.OcclusionPortal)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.open); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_open(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.OcclusionPortal gen_to_be_invoked = (UnityEngine.OcclusionPortal)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.open = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_ParticleCollisionEventWrap.cs b/Assets/XLua/Gen/UnityEngine_ParticleCollisionEventWrap.cs deleted file mode 100644 index 5f9dae39f..000000000 --- a/Assets/XLua/Gen/UnityEngine_ParticleCollisionEventWrap.cs +++ /dev/null @@ -1,142 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineParticleCollisionEventWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.ParticleCollisionEvent); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 4, 0); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "intersection", _g_get_intersection); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "normal", _g_get_normal); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "velocity", _g_get_velocity); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "colliderComponent", _g_get_colliderComponent); - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(UnityEngine.ParticleCollisionEvent)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.ParticleCollisionEvent constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_intersection(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleCollisionEvent gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.intersection); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_normal(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleCollisionEvent gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.normal); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_velocity(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleCollisionEvent gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.velocity); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_colliderComponent(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleCollisionEvent gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.colliderComponent); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_ParticlePhysicsExtensionsWrap.cs b/Assets/XLua/Gen/UnityEngine_ParticlePhysicsExtensionsWrap.cs deleted file mode 100644 index 0c9518d04..000000000 --- a/Assets/XLua/Gen/UnityEngine_ParticlePhysicsExtensionsWrap.cs +++ /dev/null @@ -1,67 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineParticlePhysicsExtensionsWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.ParticlePhysicsExtensions); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "UnityEngine.ParticlePhysicsExtensions does not have a constructor!"); - } - - - - - - - - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_ParticleSystemForceFieldWrap.cs b/Assets/XLua/Gen/UnityEngine_ParticleSystemForceFieldWrap.cs deleted file mode 100644 index 4493b7109..000000000 --- a/Assets/XLua/Gen/UnityEngine_ParticleSystemForceFieldWrap.cs +++ /dev/null @@ -1,653 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineParticleSystemForceFieldWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.ParticleSystemForceField); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 18, 18); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "shape", _g_get_shape); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "startRange", _g_get_startRange); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "endRange", _g_get_endRange); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "length", _g_get_length); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "gravityFocus", _g_get_gravityFocus); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "rotationRandomness", _g_get_rotationRandomness); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "multiplyDragByParticleSize", _g_get_multiplyDragByParticleSize); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "multiplyDragByParticleVelocity", _g_get_multiplyDragByParticleVelocity); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "vectorField", _g_get_vectorField); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "directionX", _g_get_directionX); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "directionY", _g_get_directionY); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "directionZ", _g_get_directionZ); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "gravity", _g_get_gravity); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "rotationSpeed", _g_get_rotationSpeed); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "rotationAttraction", _g_get_rotationAttraction); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "drag", _g_get_drag); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "vectorFieldSpeed", _g_get_vectorFieldSpeed); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "vectorFieldAttraction", _g_get_vectorFieldAttraction); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "shape", _s_set_shape); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "startRange", _s_set_startRange); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "endRange", _s_set_endRange); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "length", _s_set_length); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "gravityFocus", _s_set_gravityFocus); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "rotationRandomness", _s_set_rotationRandomness); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "multiplyDragByParticleSize", _s_set_multiplyDragByParticleSize); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "multiplyDragByParticleVelocity", _s_set_multiplyDragByParticleVelocity); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "vectorField", _s_set_vectorField); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "directionX", _s_set_directionX); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "directionY", _s_set_directionY); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "directionZ", _s_set_directionZ); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "gravity", _s_set_gravity); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "rotationSpeed", _s_set_rotationSpeed); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "rotationAttraction", _s_set_rotationAttraction); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "drag", _s_set_drag); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "vectorFieldSpeed", _s_set_vectorFieldSpeed); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "vectorFieldAttraction", _s_set_vectorFieldAttraction); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.ParticleSystemForceField(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.ParticleSystemForceField constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_shape(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystemForceField gen_to_be_invoked = (UnityEngine.ParticleSystemForceField)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.shape); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_startRange(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystemForceField gen_to_be_invoked = (UnityEngine.ParticleSystemForceField)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.startRange); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_endRange(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystemForceField gen_to_be_invoked = (UnityEngine.ParticleSystemForceField)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.endRange); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_length(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystemForceField gen_to_be_invoked = (UnityEngine.ParticleSystemForceField)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.length); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_gravityFocus(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystemForceField gen_to_be_invoked = (UnityEngine.ParticleSystemForceField)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.gravityFocus); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_rotationRandomness(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystemForceField gen_to_be_invoked = (UnityEngine.ParticleSystemForceField)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector2(L, gen_to_be_invoked.rotationRandomness); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_multiplyDragByParticleSize(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystemForceField gen_to_be_invoked = (UnityEngine.ParticleSystemForceField)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.multiplyDragByParticleSize); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_multiplyDragByParticleVelocity(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystemForceField gen_to_be_invoked = (UnityEngine.ParticleSystemForceField)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.multiplyDragByParticleVelocity); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_vectorField(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystemForceField gen_to_be_invoked = (UnityEngine.ParticleSystemForceField)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.vectorField); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_directionX(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystemForceField gen_to_be_invoked = (UnityEngine.ParticleSystemForceField)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.directionX); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_directionY(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystemForceField gen_to_be_invoked = (UnityEngine.ParticleSystemForceField)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.directionY); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_directionZ(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystemForceField gen_to_be_invoked = (UnityEngine.ParticleSystemForceField)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.directionZ); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_gravity(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystemForceField gen_to_be_invoked = (UnityEngine.ParticleSystemForceField)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.gravity); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_rotationSpeed(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystemForceField gen_to_be_invoked = (UnityEngine.ParticleSystemForceField)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.rotationSpeed); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_rotationAttraction(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystemForceField gen_to_be_invoked = (UnityEngine.ParticleSystemForceField)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.rotationAttraction); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_drag(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystemForceField gen_to_be_invoked = (UnityEngine.ParticleSystemForceField)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.drag); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_vectorFieldSpeed(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystemForceField gen_to_be_invoked = (UnityEngine.ParticleSystemForceField)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.vectorFieldSpeed); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_vectorFieldAttraction(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystemForceField gen_to_be_invoked = (UnityEngine.ParticleSystemForceField)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.vectorFieldAttraction); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_shape(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystemForceField gen_to_be_invoked = (UnityEngine.ParticleSystemForceField)translator.FastGetCSObj(L, 1); - UnityEngine.ParticleSystemForceFieldShape gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.shape = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_startRange(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystemForceField gen_to_be_invoked = (UnityEngine.ParticleSystemForceField)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.startRange = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_endRange(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystemForceField gen_to_be_invoked = (UnityEngine.ParticleSystemForceField)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.endRange = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_length(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystemForceField gen_to_be_invoked = (UnityEngine.ParticleSystemForceField)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.length = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_gravityFocus(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystemForceField gen_to_be_invoked = (UnityEngine.ParticleSystemForceField)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.gravityFocus = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_rotationRandomness(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystemForceField gen_to_be_invoked = (UnityEngine.ParticleSystemForceField)translator.FastGetCSObj(L, 1); - UnityEngine.Vector2 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.rotationRandomness = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_multiplyDragByParticleSize(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystemForceField gen_to_be_invoked = (UnityEngine.ParticleSystemForceField)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.multiplyDragByParticleSize = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_multiplyDragByParticleVelocity(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystemForceField gen_to_be_invoked = (UnityEngine.ParticleSystemForceField)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.multiplyDragByParticleVelocity = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_vectorField(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystemForceField gen_to_be_invoked = (UnityEngine.ParticleSystemForceField)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.vectorField = (UnityEngine.Texture3D)translator.GetObject(L, 2, typeof(UnityEngine.Texture3D)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_directionX(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystemForceField gen_to_be_invoked = (UnityEngine.ParticleSystemForceField)translator.FastGetCSObj(L, 1); - UnityEngine.ParticleSystem.MinMaxCurve gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.directionX = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_directionY(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystemForceField gen_to_be_invoked = (UnityEngine.ParticleSystemForceField)translator.FastGetCSObj(L, 1); - UnityEngine.ParticleSystem.MinMaxCurve gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.directionY = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_directionZ(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystemForceField gen_to_be_invoked = (UnityEngine.ParticleSystemForceField)translator.FastGetCSObj(L, 1); - UnityEngine.ParticleSystem.MinMaxCurve gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.directionZ = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_gravity(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystemForceField gen_to_be_invoked = (UnityEngine.ParticleSystemForceField)translator.FastGetCSObj(L, 1); - UnityEngine.ParticleSystem.MinMaxCurve gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.gravity = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_rotationSpeed(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystemForceField gen_to_be_invoked = (UnityEngine.ParticleSystemForceField)translator.FastGetCSObj(L, 1); - UnityEngine.ParticleSystem.MinMaxCurve gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.rotationSpeed = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_rotationAttraction(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystemForceField gen_to_be_invoked = (UnityEngine.ParticleSystemForceField)translator.FastGetCSObj(L, 1); - UnityEngine.ParticleSystem.MinMaxCurve gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.rotationAttraction = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_drag(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystemForceField gen_to_be_invoked = (UnityEngine.ParticleSystemForceField)translator.FastGetCSObj(L, 1); - UnityEngine.ParticleSystem.MinMaxCurve gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.drag = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_vectorFieldSpeed(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystemForceField gen_to_be_invoked = (UnityEngine.ParticleSystemForceField)translator.FastGetCSObj(L, 1); - UnityEngine.ParticleSystem.MinMaxCurve gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.vectorFieldSpeed = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_vectorFieldAttraction(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystemForceField gen_to_be_invoked = (UnityEngine.ParticleSystemForceField)translator.FastGetCSObj(L, 1); - UnityEngine.ParticleSystem.MinMaxCurve gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.vectorFieldAttraction = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_ParticleSystem_ColliderDataWrap.cs b/Assets/XLua/Gen/UnityEngine_ParticleSystem_ColliderDataWrap.cs deleted file mode 100644 index 981d7431e..000000000 --- a/Assets/XLua/Gen/UnityEngine_ParticleSystem_ColliderDataWrap.cs +++ /dev/null @@ -1,147 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineParticleSystemColliderDataWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.ParticleSystem.ColliderData); - Utils.BeginObjectRegister(type, L, translator, 0, 2, 0, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetColliderCount", _m_GetColliderCount); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetCollider", _m_GetCollider); - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(UnityEngine.ParticleSystem.ColliderData)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.ParticleSystem.ColliderData constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetColliderCount(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ParticleSystem.ColliderData gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - int _particleIndex = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.GetColliderCount( _particleIndex ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetCollider(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ParticleSystem.ColliderData gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - int _particleIndex = LuaAPI.xlua_tointeger(L, 2); - int _colliderIndex = LuaAPI.xlua_tointeger(L, 3); - - var gen_ret = gen_to_be_invoked.GetCollider( _particleIndex, _colliderIndex ); - translator.Push(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_ParticleSystem_LifetimeByEmitterSpeedModuleWrap.cs b/Assets/XLua/Gen/UnityEngine_ParticleSystem_LifetimeByEmitterSpeedModuleWrap.cs deleted file mode 100644 index 64150febd..000000000 --- a/Assets/XLua/Gen/UnityEngine_ParticleSystem_LifetimeByEmitterSpeedModuleWrap.cs +++ /dev/null @@ -1,216 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineParticleSystemLifetimeByEmitterSpeedModuleWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.ParticleSystem.LifetimeByEmitterSpeedModule); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 4, 4); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "enabled", _g_get_enabled); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "curve", _g_get_curve); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "curveMultiplier", _g_get_curveMultiplier); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "range", _g_get_range); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "enabled", _s_set_enabled); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "curve", _s_set_curve); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "curveMultiplier", _s_set_curveMultiplier); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "range", _s_set_range); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(UnityEngine.ParticleSystem.LifetimeByEmitterSpeedModule)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.ParticleSystem.LifetimeByEmitterSpeedModule constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_enabled(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.LifetimeByEmitterSpeedModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.enabled); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_curve(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.LifetimeByEmitterSpeedModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.curve); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_curveMultiplier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.LifetimeByEmitterSpeedModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.curveMultiplier); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_range(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.LifetimeByEmitterSpeedModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineVector2(L, gen_to_be_invoked.range); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_enabled(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.LifetimeByEmitterSpeedModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.enabled = LuaAPI.lua_toboolean(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_curve(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.LifetimeByEmitterSpeedModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.ParticleSystem.MinMaxCurve gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.curve = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_curveMultiplier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.LifetimeByEmitterSpeedModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.curveMultiplier = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_range(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.LifetimeByEmitterSpeedModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Vector2 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.range = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_ParticleSystem_PlaybackStateWrap.cs b/Assets/XLua/Gen/UnityEngine_ParticleSystem_PlaybackStateWrap.cs deleted file mode 100644 index 19700c135..000000000 --- a/Assets/XLua/Gen/UnityEngine_ParticleSystem_PlaybackStateWrap.cs +++ /dev/null @@ -1,82 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineParticleSystemPlaybackStateWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.ParticleSystem.PlaybackState); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(UnityEngine.ParticleSystem.PlaybackState)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.ParticleSystem.PlaybackState constructor!"); - - } - - - - - - - - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_ParticleSystem_TrailsWrap.cs b/Assets/XLua/Gen/UnityEngine_ParticleSystem_TrailsWrap.cs deleted file mode 100644 index ecdcab2e8..000000000 --- a/Assets/XLua/Gen/UnityEngine_ParticleSystem_TrailsWrap.cs +++ /dev/null @@ -1,115 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineParticleSystemTrailsWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.ParticleSystem.Trails); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 1, 1); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "capacity", _g_get_capacity); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "capacity", _s_set_capacity); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(UnityEngine.ParticleSystem.Trails)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.ParticleSystem.Trails constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_capacity(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.Trails gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.capacity); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_capacity(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.Trails gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.capacity = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_PatchExtentsWrap.cs b/Assets/XLua/Gen/UnityEngine_PatchExtentsWrap.cs deleted file mode 100644 index 2a0fe46a3..000000000 --- a/Assets/XLua/Gen/UnityEngine_PatchExtentsWrap.cs +++ /dev/null @@ -1,148 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEnginePatchExtentsWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.PatchExtents); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 2, 2); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "min", _g_get_min); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "max", _g_get_max); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "min", _s_set_min); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "max", _s_set_max); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(UnityEngine.PatchExtents)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.PatchExtents constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_min(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.PatchExtents gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.min); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_max(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.PatchExtents gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.max); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_min(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.PatchExtents gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.min = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_max(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.PatchExtents gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.max = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_Physics2DWrap.cs b/Assets/XLua/Gen/UnityEngine_Physics2DWrap.cs deleted file mode 100644 index 2c582c1c9..000000000 --- a/Assets/XLua/Gen/UnityEngine_Physics2DWrap.cs +++ /dev/null @@ -1,4835 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEnginePhysics2DWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.Physics2D); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 51, 31, 30); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Simulate", _m_Simulate_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "SyncTransforms", _m_SyncTransforms_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "IgnoreCollision", _m_IgnoreCollision_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetIgnoreCollision", _m_GetIgnoreCollision_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "IgnoreLayerCollision", _m_IgnoreLayerCollision_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetIgnoreLayerCollision", _m_GetIgnoreLayerCollision_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "SetLayerCollisionMask", _m_SetLayerCollisionMask_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetLayerCollisionMask", _m_GetLayerCollisionMask_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "IsTouching", _m_IsTouching_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "IsTouchingLayers", _m_IsTouchingLayers_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Distance", _m_Distance_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "ClosestPoint", _m_ClosestPoint_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Linecast", _m_Linecast_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "LinecastAll", _m_LinecastAll_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "LinecastNonAlloc", _m_LinecastNonAlloc_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Raycast", _m_Raycast_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "RaycastNonAlloc", _m_RaycastNonAlloc_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "RaycastAll", _m_RaycastAll_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "CircleCast", _m_CircleCast_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "CircleCastAll", _m_CircleCastAll_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "CircleCastNonAlloc", _m_CircleCastNonAlloc_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "BoxCast", _m_BoxCast_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "BoxCastAll", _m_BoxCastAll_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "BoxCastNonAlloc", _m_BoxCastNonAlloc_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "CapsuleCast", _m_CapsuleCast_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "CapsuleCastAll", _m_CapsuleCastAll_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "CapsuleCastNonAlloc", _m_CapsuleCastNonAlloc_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetRayIntersection", _m_GetRayIntersection_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetRayIntersectionAll", _m_GetRayIntersectionAll_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetRayIntersectionNonAlloc", _m_GetRayIntersectionNonAlloc_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "OverlapPoint", _m_OverlapPoint_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "OverlapPointAll", _m_OverlapPointAll_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "OverlapPointNonAlloc", _m_OverlapPointNonAlloc_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "OverlapCircle", _m_OverlapCircle_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "OverlapCircleAll", _m_OverlapCircleAll_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "OverlapCircleNonAlloc", _m_OverlapCircleNonAlloc_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "OverlapBox", _m_OverlapBox_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "OverlapBoxAll", _m_OverlapBoxAll_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "OverlapBoxNonAlloc", _m_OverlapBoxNonAlloc_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "OverlapArea", _m_OverlapArea_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "OverlapAreaAll", _m_OverlapAreaAll_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "OverlapAreaNonAlloc", _m_OverlapAreaNonAlloc_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "OverlapCapsule", _m_OverlapCapsule_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "OverlapCapsuleAll", _m_OverlapCapsuleAll_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "OverlapCapsuleNonAlloc", _m_OverlapCapsuleNonAlloc_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "OverlapCollider", _m_OverlapCollider_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetContacts", _m_GetContacts_xlua_st_); - - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "IgnoreRaycastLayer", UnityEngine.Physics2D.IgnoreRaycastLayer); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "DefaultRaycastLayers", UnityEngine.Physics2D.DefaultRaycastLayers); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "AllLayers", UnityEngine.Physics2D.AllLayers); - - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "defaultPhysicsScene", _g_get_defaultPhysicsScene); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "velocityIterations", _g_get_velocityIterations); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "positionIterations", _g_get_positionIterations); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "gravity", _g_get_gravity); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "queriesHitTriggers", _g_get_queriesHitTriggers); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "queriesStartInColliders", _g_get_queriesStartInColliders); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "callbacksOnDisable", _g_get_callbacksOnDisable); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "reuseCollisionCallbacks", _g_get_reuseCollisionCallbacks); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "autoSyncTransforms", _g_get_autoSyncTransforms); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "simulationMode", _g_get_simulationMode); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "jobOptions", _g_get_jobOptions); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "velocityThreshold", _g_get_velocityThreshold); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "maxLinearCorrection", _g_get_maxLinearCorrection); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "maxAngularCorrection", _g_get_maxAngularCorrection); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "maxTranslationSpeed", _g_get_maxTranslationSpeed); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "maxRotationSpeed", _g_get_maxRotationSpeed); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "defaultContactOffset", _g_get_defaultContactOffset); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "baumgarteScale", _g_get_baumgarteScale); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "baumgarteTOIScale", _g_get_baumgarteTOIScale); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "timeToSleep", _g_get_timeToSleep); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "linearSleepTolerance", _g_get_linearSleepTolerance); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "angularSleepTolerance", _g_get_angularSleepTolerance); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "alwaysShowColliders", _g_get_alwaysShowColliders); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "showColliderSleep", _g_get_showColliderSleep); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "showColliderContacts", _g_get_showColliderContacts); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "showColliderAABB", _g_get_showColliderAABB); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "contactArrowScale", _g_get_contactArrowScale); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "colliderAwakeColor", _g_get_colliderAwakeColor); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "colliderAsleepColor", _g_get_colliderAsleepColor); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "colliderContactColor", _g_get_colliderContactColor); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "colliderAABBColor", _g_get_colliderAABBColor); - - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "velocityIterations", _s_set_velocityIterations); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "positionIterations", _s_set_positionIterations); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "gravity", _s_set_gravity); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "queriesHitTriggers", _s_set_queriesHitTriggers); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "queriesStartInColliders", _s_set_queriesStartInColliders); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "callbacksOnDisable", _s_set_callbacksOnDisable); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "reuseCollisionCallbacks", _s_set_reuseCollisionCallbacks); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "autoSyncTransforms", _s_set_autoSyncTransforms); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "simulationMode", _s_set_simulationMode); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "jobOptions", _s_set_jobOptions); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "velocityThreshold", _s_set_velocityThreshold); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "maxLinearCorrection", _s_set_maxLinearCorrection); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "maxAngularCorrection", _s_set_maxAngularCorrection); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "maxTranslationSpeed", _s_set_maxTranslationSpeed); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "maxRotationSpeed", _s_set_maxRotationSpeed); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "defaultContactOffset", _s_set_defaultContactOffset); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "baumgarteScale", _s_set_baumgarteScale); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "baumgarteTOIScale", _s_set_baumgarteTOIScale); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "timeToSleep", _s_set_timeToSleep); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "linearSleepTolerance", _s_set_linearSleepTolerance); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "angularSleepTolerance", _s_set_angularSleepTolerance); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "alwaysShowColliders", _s_set_alwaysShowColliders); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "showColliderSleep", _s_set_showColliderSleep); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "showColliderContacts", _s_set_showColliderContacts); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "showColliderAABB", _s_set_showColliderAABB); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "contactArrowScale", _s_set_contactArrowScale); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "colliderAwakeColor", _s_set_colliderAwakeColor); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "colliderAsleepColor", _s_set_colliderAsleepColor); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "colliderContactColor", _s_set_colliderContactColor); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "colliderAABBColor", _s_set_colliderAABBColor); - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.Physics2D(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Physics2D constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Simulate_xlua_st_(RealStatePtr L) - { - try { - - - - - { - float _step = (float)LuaAPI.lua_tonumber(L, 1); - - var gen_ret = UnityEngine.Physics2D.Simulate( _step ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SyncTransforms_xlua_st_(RealStatePtr L) - { - try { - - - - - { - - UnityEngine.Physics2D.SyncTransforms( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_IgnoreCollision_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)) - { - UnityEngine.Collider2D _collider1 = (UnityEngine.Collider2D)translator.GetObject(L, 1, typeof(UnityEngine.Collider2D)); - UnityEngine.Collider2D _collider2 = (UnityEngine.Collider2D)translator.GetObject(L, 2, typeof(UnityEngine.Collider2D)); - - UnityEngine.Physics2D.IgnoreCollision( _collider1, _collider2 ); - - - - return 0; - } - if(gen_param_count == 3&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) - { - UnityEngine.Collider2D _collider1 = (UnityEngine.Collider2D)translator.GetObject(L, 1, typeof(UnityEngine.Collider2D)); - UnityEngine.Collider2D _collider2 = (UnityEngine.Collider2D)translator.GetObject(L, 2, typeof(UnityEngine.Collider2D)); - bool _ignore = LuaAPI.lua_toboolean(L, 3); - - UnityEngine.Physics2D.IgnoreCollision( _collider1, _collider2, _ignore ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Physics2D.IgnoreCollision!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetIgnoreCollision_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Collider2D _collider1 = (UnityEngine.Collider2D)translator.GetObject(L, 1, typeof(UnityEngine.Collider2D)); - UnityEngine.Collider2D _collider2 = (UnityEngine.Collider2D)translator.GetObject(L, 2, typeof(UnityEngine.Collider2D)); - - var gen_ret = UnityEngine.Physics2D.GetIgnoreCollision( _collider1, _collider2 ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_IgnoreLayerCollision_xlua_st_(RealStatePtr L) - { - try { - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - int _layer1 = LuaAPI.xlua_tointeger(L, 1); - int _layer2 = LuaAPI.xlua_tointeger(L, 2); - - UnityEngine.Physics2D.IgnoreLayerCollision( _layer1, _layer2 ); - - - - return 0; - } - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) - { - int _layer1 = LuaAPI.xlua_tointeger(L, 1); - int _layer2 = LuaAPI.xlua_tointeger(L, 2); - bool _ignore = LuaAPI.lua_toboolean(L, 3); - - UnityEngine.Physics2D.IgnoreLayerCollision( _layer1, _layer2, _ignore ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Physics2D.IgnoreLayerCollision!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetIgnoreLayerCollision_xlua_st_(RealStatePtr L) - { - try { - - - - - { - int _layer1 = LuaAPI.xlua_tointeger(L, 1); - int _layer2 = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = UnityEngine.Physics2D.GetIgnoreLayerCollision( _layer1, _layer2 ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetLayerCollisionMask_xlua_st_(RealStatePtr L) - { - try { - - - - - { - int _layer = LuaAPI.xlua_tointeger(L, 1); - int _layerMask = LuaAPI.xlua_tointeger(L, 2); - - UnityEngine.Physics2D.SetLayerCollisionMask( _layer, _layerMask ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetLayerCollisionMask_xlua_st_(RealStatePtr L) - { - try { - - - - - { - int _layer = LuaAPI.xlua_tointeger(L, 1); - - var gen_ret = UnityEngine.Physics2D.GetLayerCollisionMask( _layer ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_IsTouching_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)) - { - UnityEngine.Collider2D _collider1 = (UnityEngine.Collider2D)translator.GetObject(L, 1, typeof(UnityEngine.Collider2D)); - UnityEngine.Collider2D _collider2 = (UnityEngine.Collider2D)translator.GetObject(L, 2, typeof(UnityEngine.Collider2D)); - - var gen_ret = UnityEngine.Physics2D.IsTouching( _collider1, _collider2 ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)) - { - UnityEngine.Collider2D _collider = (UnityEngine.Collider2D)translator.GetObject(L, 1, typeof(UnityEngine.Collider2D)); - UnityEngine.ContactFilter2D _contactFilter;translator.Get(L, 2, out _contactFilter); - - var gen_ret = UnityEngine.Physics2D.IsTouching( _collider, _contactFilter ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)) - { - UnityEngine.Collider2D _collider1 = (UnityEngine.Collider2D)translator.GetObject(L, 1, typeof(UnityEngine.Collider2D)); - UnityEngine.Collider2D _collider2 = (UnityEngine.Collider2D)translator.GetObject(L, 2, typeof(UnityEngine.Collider2D)); - UnityEngine.ContactFilter2D _contactFilter;translator.Get(L, 3, out _contactFilter); - - var gen_ret = UnityEngine.Physics2D.IsTouching( _collider1, _collider2, _contactFilter ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Physics2D.IsTouching!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_IsTouchingLayers_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1&& translator.Assignable(L, 1)) - { - UnityEngine.Collider2D _collider = (UnityEngine.Collider2D)translator.GetObject(L, 1, typeof(UnityEngine.Collider2D)); - - var gen_ret = UnityEngine.Physics2D.IsTouchingLayers( _collider ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - UnityEngine.Collider2D _collider = (UnityEngine.Collider2D)translator.GetObject(L, 1, typeof(UnityEngine.Collider2D)); - int _layerMask = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = UnityEngine.Physics2D.IsTouchingLayers( _collider, _layerMask ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Physics2D.IsTouchingLayers!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Distance_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Collider2D _colliderA = (UnityEngine.Collider2D)translator.GetObject(L, 1, typeof(UnityEngine.Collider2D)); - UnityEngine.Collider2D _colliderB = (UnityEngine.Collider2D)translator.GetObject(L, 2, typeof(UnityEngine.Collider2D)); - - var gen_ret = UnityEngine.Physics2D.Distance( _colliderA, _colliderB ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ClosestPoint_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)) - { - UnityEngine.Vector2 _position;translator.Get(L, 1, out _position); - UnityEngine.Collider2D _collider = (UnityEngine.Collider2D)translator.GetObject(L, 2, typeof(UnityEngine.Collider2D)); - - var gen_ret = UnityEngine.Physics2D.ClosestPoint( _position, _collider ); - translator.PushUnityEngineVector2(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)) - { - UnityEngine.Vector2 _position;translator.Get(L, 1, out _position); - UnityEngine.Rigidbody2D _rigidbody = (UnityEngine.Rigidbody2D)translator.GetObject(L, 2, typeof(UnityEngine.Rigidbody2D)); - - var gen_ret = UnityEngine.Physics2D.ClosestPoint( _position, _rigidbody ); - translator.PushUnityEngineVector2(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Physics2D.ClosestPoint!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Linecast_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)) - { - UnityEngine.Vector2 _start;translator.Get(L, 1, out _start); - UnityEngine.Vector2 _end;translator.Get(L, 2, out _end); - - var gen_ret = UnityEngine.Physics2D.Linecast( _start, _end ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - UnityEngine.Vector2 _start;translator.Get(L, 1, out _start); - UnityEngine.Vector2 _end;translator.Get(L, 2, out _end); - int _layerMask = LuaAPI.xlua_tointeger(L, 3); - - var gen_ret = UnityEngine.Physics2D.Linecast( _start, _end, _layerMask ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - UnityEngine.Vector2 _start;translator.Get(L, 1, out _start); - UnityEngine.Vector2 _end;translator.Get(L, 2, out _end); - int _layerMask = LuaAPI.xlua_tointeger(L, 3); - float _minDepth = (float)LuaAPI.lua_tonumber(L, 4); - - var gen_ret = UnityEngine.Physics2D.Linecast( _start, _end, _layerMask, _minDepth ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 5&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - UnityEngine.Vector2 _start;translator.Get(L, 1, out _start); - UnityEngine.Vector2 _end;translator.Get(L, 2, out _end); - int _layerMask = LuaAPI.xlua_tointeger(L, 3); - float _minDepth = (float)LuaAPI.lua_tonumber(L, 4); - float _maxDepth = (float)LuaAPI.lua_tonumber(L, 5); - - var gen_ret = UnityEngine.Physics2D.Linecast( _start, _end, _layerMask, _minDepth, _maxDepth ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)) - { - UnityEngine.Vector2 _start;translator.Get(L, 1, out _start); - UnityEngine.Vector2 _end;translator.Get(L, 2, out _end); - UnityEngine.ContactFilter2D _contactFilter;translator.Get(L, 3, out _contactFilter); - UnityEngine.RaycastHit2D[] _results = (UnityEngine.RaycastHit2D[])translator.GetObject(L, 4, typeof(UnityEngine.RaycastHit2D[])); - - var gen_ret = UnityEngine.Physics2D.Linecast( _start, _end, _contactFilter, _results ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable>(L, 4)) - { - UnityEngine.Vector2 _start;translator.Get(L, 1, out _start); - UnityEngine.Vector2 _end;translator.Get(L, 2, out _end); - UnityEngine.ContactFilter2D _contactFilter;translator.Get(L, 3, out _contactFilter); - System.Collections.Generic.List _results = (System.Collections.Generic.List)translator.GetObject(L, 4, typeof(System.Collections.Generic.List)); - - var gen_ret = UnityEngine.Physics2D.Linecast( _start, _end, _contactFilter, _results ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Physics2D.Linecast!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_LinecastAll_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)) - { - UnityEngine.Vector2 _start;translator.Get(L, 1, out _start); - UnityEngine.Vector2 _end;translator.Get(L, 2, out _end); - - var gen_ret = UnityEngine.Physics2D.LinecastAll( _start, _end ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - UnityEngine.Vector2 _start;translator.Get(L, 1, out _start); - UnityEngine.Vector2 _end;translator.Get(L, 2, out _end); - int _layerMask = LuaAPI.xlua_tointeger(L, 3); - - var gen_ret = UnityEngine.Physics2D.LinecastAll( _start, _end, _layerMask ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - UnityEngine.Vector2 _start;translator.Get(L, 1, out _start); - UnityEngine.Vector2 _end;translator.Get(L, 2, out _end); - int _layerMask = LuaAPI.xlua_tointeger(L, 3); - float _minDepth = (float)LuaAPI.lua_tonumber(L, 4); - - var gen_ret = UnityEngine.Physics2D.LinecastAll( _start, _end, _layerMask, _minDepth ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 5&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - UnityEngine.Vector2 _start;translator.Get(L, 1, out _start); - UnityEngine.Vector2 _end;translator.Get(L, 2, out _end); - int _layerMask = LuaAPI.xlua_tointeger(L, 3); - float _minDepth = (float)LuaAPI.lua_tonumber(L, 4); - float _maxDepth = (float)LuaAPI.lua_tonumber(L, 5); - - var gen_ret = UnityEngine.Physics2D.LinecastAll( _start, _end, _layerMask, _minDepth, _maxDepth ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Physics2D.LinecastAll!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_LinecastNonAlloc_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)) - { - UnityEngine.Vector2 _start;translator.Get(L, 1, out _start); - UnityEngine.Vector2 _end;translator.Get(L, 2, out _end); - UnityEngine.RaycastHit2D[] _results = (UnityEngine.RaycastHit2D[])translator.GetObject(L, 3, typeof(UnityEngine.RaycastHit2D[])); - - var gen_ret = UnityEngine.Physics2D.LinecastNonAlloc( _start, _end, _results ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - UnityEngine.Vector2 _start;translator.Get(L, 1, out _start); - UnityEngine.Vector2 _end;translator.Get(L, 2, out _end); - UnityEngine.RaycastHit2D[] _results = (UnityEngine.RaycastHit2D[])translator.GetObject(L, 3, typeof(UnityEngine.RaycastHit2D[])); - int _layerMask = LuaAPI.xlua_tointeger(L, 4); - - var gen_ret = UnityEngine.Physics2D.LinecastNonAlloc( _start, _end, _results, _layerMask ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 5&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - UnityEngine.Vector2 _start;translator.Get(L, 1, out _start); - UnityEngine.Vector2 _end;translator.Get(L, 2, out _end); - UnityEngine.RaycastHit2D[] _results = (UnityEngine.RaycastHit2D[])translator.GetObject(L, 3, typeof(UnityEngine.RaycastHit2D[])); - int _layerMask = LuaAPI.xlua_tointeger(L, 4); - float _minDepth = (float)LuaAPI.lua_tonumber(L, 5); - - var gen_ret = UnityEngine.Physics2D.LinecastNonAlloc( _start, _end, _results, _layerMask, _minDepth ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 6&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)) - { - UnityEngine.Vector2 _start;translator.Get(L, 1, out _start); - UnityEngine.Vector2 _end;translator.Get(L, 2, out _end); - UnityEngine.RaycastHit2D[] _results = (UnityEngine.RaycastHit2D[])translator.GetObject(L, 3, typeof(UnityEngine.RaycastHit2D[])); - int _layerMask = LuaAPI.xlua_tointeger(L, 4); - float _minDepth = (float)LuaAPI.lua_tonumber(L, 5); - float _maxDepth = (float)LuaAPI.lua_tonumber(L, 6); - - var gen_ret = UnityEngine.Physics2D.LinecastNonAlloc( _start, _end, _results, _layerMask, _minDepth, _maxDepth ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Physics2D.LinecastNonAlloc!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Raycast_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)) - { - UnityEngine.Vector2 _origin;translator.Get(L, 1, out _origin); - UnityEngine.Vector2 _direction;translator.Get(L, 2, out _direction); - - var gen_ret = UnityEngine.Physics2D.Raycast( _origin, _direction ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - UnityEngine.Vector2 _origin;translator.Get(L, 1, out _origin); - UnityEngine.Vector2 _direction;translator.Get(L, 2, out _direction); - float _distance = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = UnityEngine.Physics2D.Raycast( _origin, _direction, _distance ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - UnityEngine.Vector2 _origin;translator.Get(L, 1, out _origin); - UnityEngine.Vector2 _direction;translator.Get(L, 2, out _direction); - float _distance = (float)LuaAPI.lua_tonumber(L, 3); - int _layerMask = LuaAPI.xlua_tointeger(L, 4); - - var gen_ret = UnityEngine.Physics2D.Raycast( _origin, _direction, _distance, _layerMask ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 5&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - UnityEngine.Vector2 _origin;translator.Get(L, 1, out _origin); - UnityEngine.Vector2 _direction;translator.Get(L, 2, out _direction); - float _distance = (float)LuaAPI.lua_tonumber(L, 3); - int _layerMask = LuaAPI.xlua_tointeger(L, 4); - float _minDepth = (float)LuaAPI.lua_tonumber(L, 5); - - var gen_ret = UnityEngine.Physics2D.Raycast( _origin, _direction, _distance, _layerMask, _minDepth ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 6&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)) - { - UnityEngine.Vector2 _origin;translator.Get(L, 1, out _origin); - UnityEngine.Vector2 _direction;translator.Get(L, 2, out _direction); - float _distance = (float)LuaAPI.lua_tonumber(L, 3); - int _layerMask = LuaAPI.xlua_tointeger(L, 4); - float _minDepth = (float)LuaAPI.lua_tonumber(L, 5); - float _maxDepth = (float)LuaAPI.lua_tonumber(L, 6); - - var gen_ret = UnityEngine.Physics2D.Raycast( _origin, _direction, _distance, _layerMask, _minDepth, _maxDepth ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)) - { - UnityEngine.Vector2 _origin;translator.Get(L, 1, out _origin); - UnityEngine.Vector2 _direction;translator.Get(L, 2, out _direction); - UnityEngine.ContactFilter2D _contactFilter;translator.Get(L, 3, out _contactFilter); - UnityEngine.RaycastHit2D[] _results = (UnityEngine.RaycastHit2D[])translator.GetObject(L, 4, typeof(UnityEngine.RaycastHit2D[])); - - var gen_ret = UnityEngine.Physics2D.Raycast( _origin, _direction, _contactFilter, _results ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 5&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - UnityEngine.Vector2 _origin;translator.Get(L, 1, out _origin); - UnityEngine.Vector2 _direction;translator.Get(L, 2, out _direction); - UnityEngine.ContactFilter2D _contactFilter;translator.Get(L, 3, out _contactFilter); - UnityEngine.RaycastHit2D[] _results = (UnityEngine.RaycastHit2D[])translator.GetObject(L, 4, typeof(UnityEngine.RaycastHit2D[])); - float _distance = (float)LuaAPI.lua_tonumber(L, 5); - - var gen_ret = UnityEngine.Physics2D.Raycast( _origin, _direction, _contactFilter, _results, _distance ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 5&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable>(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - UnityEngine.Vector2 _origin;translator.Get(L, 1, out _origin); - UnityEngine.Vector2 _direction;translator.Get(L, 2, out _direction); - UnityEngine.ContactFilter2D _contactFilter;translator.Get(L, 3, out _contactFilter); - System.Collections.Generic.List _results = (System.Collections.Generic.List)translator.GetObject(L, 4, typeof(System.Collections.Generic.List)); - float _distance = (float)LuaAPI.lua_tonumber(L, 5); - - var gen_ret = UnityEngine.Physics2D.Raycast( _origin, _direction, _contactFilter, _results, _distance ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable>(L, 4)) - { - UnityEngine.Vector2 _origin;translator.Get(L, 1, out _origin); - UnityEngine.Vector2 _direction;translator.Get(L, 2, out _direction); - UnityEngine.ContactFilter2D _contactFilter;translator.Get(L, 3, out _contactFilter); - System.Collections.Generic.List _results = (System.Collections.Generic.List)translator.GetObject(L, 4, typeof(System.Collections.Generic.List)); - - var gen_ret = UnityEngine.Physics2D.Raycast( _origin, _direction, _contactFilter, _results ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Physics2D.Raycast!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RaycastNonAlloc_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)) - { - UnityEngine.Vector2 _origin;translator.Get(L, 1, out _origin); - UnityEngine.Vector2 _direction;translator.Get(L, 2, out _direction); - UnityEngine.RaycastHit2D[] _results = (UnityEngine.RaycastHit2D[])translator.GetObject(L, 3, typeof(UnityEngine.RaycastHit2D[])); - - var gen_ret = UnityEngine.Physics2D.RaycastNonAlloc( _origin, _direction, _results ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - UnityEngine.Vector2 _origin;translator.Get(L, 1, out _origin); - UnityEngine.Vector2 _direction;translator.Get(L, 2, out _direction); - UnityEngine.RaycastHit2D[] _results = (UnityEngine.RaycastHit2D[])translator.GetObject(L, 3, typeof(UnityEngine.RaycastHit2D[])); - float _distance = (float)LuaAPI.lua_tonumber(L, 4); - - var gen_ret = UnityEngine.Physics2D.RaycastNonAlloc( _origin, _direction, _results, _distance ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 5&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - UnityEngine.Vector2 _origin;translator.Get(L, 1, out _origin); - UnityEngine.Vector2 _direction;translator.Get(L, 2, out _direction); - UnityEngine.RaycastHit2D[] _results = (UnityEngine.RaycastHit2D[])translator.GetObject(L, 3, typeof(UnityEngine.RaycastHit2D[])); - float _distance = (float)LuaAPI.lua_tonumber(L, 4); - int _layerMask = LuaAPI.xlua_tointeger(L, 5); - - var gen_ret = UnityEngine.Physics2D.RaycastNonAlloc( _origin, _direction, _results, _distance, _layerMask ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 6&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)) - { - UnityEngine.Vector2 _origin;translator.Get(L, 1, out _origin); - UnityEngine.Vector2 _direction;translator.Get(L, 2, out _direction); - UnityEngine.RaycastHit2D[] _results = (UnityEngine.RaycastHit2D[])translator.GetObject(L, 3, typeof(UnityEngine.RaycastHit2D[])); - float _distance = (float)LuaAPI.lua_tonumber(L, 4); - int _layerMask = LuaAPI.xlua_tointeger(L, 5); - float _minDepth = (float)LuaAPI.lua_tonumber(L, 6); - - var gen_ret = UnityEngine.Physics2D.RaycastNonAlloc( _origin, _direction, _results, _distance, _layerMask, _minDepth ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 7&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 7)) - { - UnityEngine.Vector2 _origin;translator.Get(L, 1, out _origin); - UnityEngine.Vector2 _direction;translator.Get(L, 2, out _direction); - UnityEngine.RaycastHit2D[] _results = (UnityEngine.RaycastHit2D[])translator.GetObject(L, 3, typeof(UnityEngine.RaycastHit2D[])); - float _distance = (float)LuaAPI.lua_tonumber(L, 4); - int _layerMask = LuaAPI.xlua_tointeger(L, 5); - float _minDepth = (float)LuaAPI.lua_tonumber(L, 6); - float _maxDepth = (float)LuaAPI.lua_tonumber(L, 7); - - var gen_ret = UnityEngine.Physics2D.RaycastNonAlloc( _origin, _direction, _results, _distance, _layerMask, _minDepth, _maxDepth ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Physics2D.RaycastNonAlloc!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RaycastAll_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)) - { - UnityEngine.Vector2 _origin;translator.Get(L, 1, out _origin); - UnityEngine.Vector2 _direction;translator.Get(L, 2, out _direction); - - var gen_ret = UnityEngine.Physics2D.RaycastAll( _origin, _direction ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - UnityEngine.Vector2 _origin;translator.Get(L, 1, out _origin); - UnityEngine.Vector2 _direction;translator.Get(L, 2, out _direction); - float _distance = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = UnityEngine.Physics2D.RaycastAll( _origin, _direction, _distance ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - UnityEngine.Vector2 _origin;translator.Get(L, 1, out _origin); - UnityEngine.Vector2 _direction;translator.Get(L, 2, out _direction); - float _distance = (float)LuaAPI.lua_tonumber(L, 3); - int _layerMask = LuaAPI.xlua_tointeger(L, 4); - - var gen_ret = UnityEngine.Physics2D.RaycastAll( _origin, _direction, _distance, _layerMask ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 5&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - UnityEngine.Vector2 _origin;translator.Get(L, 1, out _origin); - UnityEngine.Vector2 _direction;translator.Get(L, 2, out _direction); - float _distance = (float)LuaAPI.lua_tonumber(L, 3); - int _layerMask = LuaAPI.xlua_tointeger(L, 4); - float _minDepth = (float)LuaAPI.lua_tonumber(L, 5); - - var gen_ret = UnityEngine.Physics2D.RaycastAll( _origin, _direction, _distance, _layerMask, _minDepth ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 6&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)) - { - UnityEngine.Vector2 _origin;translator.Get(L, 1, out _origin); - UnityEngine.Vector2 _direction;translator.Get(L, 2, out _direction); - float _distance = (float)LuaAPI.lua_tonumber(L, 3); - int _layerMask = LuaAPI.xlua_tointeger(L, 4); - float _minDepth = (float)LuaAPI.lua_tonumber(L, 5); - float _maxDepth = (float)LuaAPI.lua_tonumber(L, 6); - - var gen_ret = UnityEngine.Physics2D.RaycastAll( _origin, _direction, _distance, _layerMask, _minDepth, _maxDepth ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Physics2D.RaycastAll!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CircleCast_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)) - { - UnityEngine.Vector2 _origin;translator.Get(L, 1, out _origin); - float _radius = (float)LuaAPI.lua_tonumber(L, 2); - UnityEngine.Vector2 _direction;translator.Get(L, 3, out _direction); - - var gen_ret = UnityEngine.Physics2D.CircleCast( _origin, _radius, _direction ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - UnityEngine.Vector2 _origin;translator.Get(L, 1, out _origin); - float _radius = (float)LuaAPI.lua_tonumber(L, 2); - UnityEngine.Vector2 _direction;translator.Get(L, 3, out _direction); - float _distance = (float)LuaAPI.lua_tonumber(L, 4); - - var gen_ret = UnityEngine.Physics2D.CircleCast( _origin, _radius, _direction, _distance ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 5&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - UnityEngine.Vector2 _origin;translator.Get(L, 1, out _origin); - float _radius = (float)LuaAPI.lua_tonumber(L, 2); - UnityEngine.Vector2 _direction;translator.Get(L, 3, out _direction); - float _distance = (float)LuaAPI.lua_tonumber(L, 4); - int _layerMask = LuaAPI.xlua_tointeger(L, 5); - - var gen_ret = UnityEngine.Physics2D.CircleCast( _origin, _radius, _direction, _distance, _layerMask ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 6&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)) - { - UnityEngine.Vector2 _origin;translator.Get(L, 1, out _origin); - float _radius = (float)LuaAPI.lua_tonumber(L, 2); - UnityEngine.Vector2 _direction;translator.Get(L, 3, out _direction); - float _distance = (float)LuaAPI.lua_tonumber(L, 4); - int _layerMask = LuaAPI.xlua_tointeger(L, 5); - float _minDepth = (float)LuaAPI.lua_tonumber(L, 6); - - var gen_ret = UnityEngine.Physics2D.CircleCast( _origin, _radius, _direction, _distance, _layerMask, _minDepth ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 7&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 7)) - { - UnityEngine.Vector2 _origin;translator.Get(L, 1, out _origin); - float _radius = (float)LuaAPI.lua_tonumber(L, 2); - UnityEngine.Vector2 _direction;translator.Get(L, 3, out _direction); - float _distance = (float)LuaAPI.lua_tonumber(L, 4); - int _layerMask = LuaAPI.xlua_tointeger(L, 5); - float _minDepth = (float)LuaAPI.lua_tonumber(L, 6); - float _maxDepth = (float)LuaAPI.lua_tonumber(L, 7); - - var gen_ret = UnityEngine.Physics2D.CircleCast( _origin, _radius, _direction, _distance, _layerMask, _minDepth, _maxDepth ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 5&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)&& translator.Assignable(L, 5)) - { - UnityEngine.Vector2 _origin;translator.Get(L, 1, out _origin); - float _radius = (float)LuaAPI.lua_tonumber(L, 2); - UnityEngine.Vector2 _direction;translator.Get(L, 3, out _direction); - UnityEngine.ContactFilter2D _contactFilter;translator.Get(L, 4, out _contactFilter); - UnityEngine.RaycastHit2D[] _results = (UnityEngine.RaycastHit2D[])translator.GetObject(L, 5, typeof(UnityEngine.RaycastHit2D[])); - - var gen_ret = UnityEngine.Physics2D.CircleCast( _origin, _radius, _direction, _contactFilter, _results ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 6&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)&& translator.Assignable(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)) - { - UnityEngine.Vector2 _origin;translator.Get(L, 1, out _origin); - float _radius = (float)LuaAPI.lua_tonumber(L, 2); - UnityEngine.Vector2 _direction;translator.Get(L, 3, out _direction); - UnityEngine.ContactFilter2D _contactFilter;translator.Get(L, 4, out _contactFilter); - UnityEngine.RaycastHit2D[] _results = (UnityEngine.RaycastHit2D[])translator.GetObject(L, 5, typeof(UnityEngine.RaycastHit2D[])); - float _distance = (float)LuaAPI.lua_tonumber(L, 6); - - var gen_ret = UnityEngine.Physics2D.CircleCast( _origin, _radius, _direction, _contactFilter, _results, _distance ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 6&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)&& translator.Assignable>(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)) - { - UnityEngine.Vector2 _origin;translator.Get(L, 1, out _origin); - float _radius = (float)LuaAPI.lua_tonumber(L, 2); - UnityEngine.Vector2 _direction;translator.Get(L, 3, out _direction); - UnityEngine.ContactFilter2D _contactFilter;translator.Get(L, 4, out _contactFilter); - System.Collections.Generic.List _results = (System.Collections.Generic.List)translator.GetObject(L, 5, typeof(System.Collections.Generic.List)); - float _distance = (float)LuaAPI.lua_tonumber(L, 6); - - var gen_ret = UnityEngine.Physics2D.CircleCast( _origin, _radius, _direction, _contactFilter, _results, _distance ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 5&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)&& translator.Assignable>(L, 5)) - { - UnityEngine.Vector2 _origin;translator.Get(L, 1, out _origin); - float _radius = (float)LuaAPI.lua_tonumber(L, 2); - UnityEngine.Vector2 _direction;translator.Get(L, 3, out _direction); - UnityEngine.ContactFilter2D _contactFilter;translator.Get(L, 4, out _contactFilter); - System.Collections.Generic.List _results = (System.Collections.Generic.List)translator.GetObject(L, 5, typeof(System.Collections.Generic.List)); - - var gen_ret = UnityEngine.Physics2D.CircleCast( _origin, _radius, _direction, _contactFilter, _results ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Physics2D.CircleCast!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CircleCastAll_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)) - { - UnityEngine.Vector2 _origin;translator.Get(L, 1, out _origin); - float _radius = (float)LuaAPI.lua_tonumber(L, 2); - UnityEngine.Vector2 _direction;translator.Get(L, 3, out _direction); - - var gen_ret = UnityEngine.Physics2D.CircleCastAll( _origin, _radius, _direction ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - UnityEngine.Vector2 _origin;translator.Get(L, 1, out _origin); - float _radius = (float)LuaAPI.lua_tonumber(L, 2); - UnityEngine.Vector2 _direction;translator.Get(L, 3, out _direction); - float _distance = (float)LuaAPI.lua_tonumber(L, 4); - - var gen_ret = UnityEngine.Physics2D.CircleCastAll( _origin, _radius, _direction, _distance ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 5&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - UnityEngine.Vector2 _origin;translator.Get(L, 1, out _origin); - float _radius = (float)LuaAPI.lua_tonumber(L, 2); - UnityEngine.Vector2 _direction;translator.Get(L, 3, out _direction); - float _distance = (float)LuaAPI.lua_tonumber(L, 4); - int _layerMask = LuaAPI.xlua_tointeger(L, 5); - - var gen_ret = UnityEngine.Physics2D.CircleCastAll( _origin, _radius, _direction, _distance, _layerMask ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 6&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)) - { - UnityEngine.Vector2 _origin;translator.Get(L, 1, out _origin); - float _radius = (float)LuaAPI.lua_tonumber(L, 2); - UnityEngine.Vector2 _direction;translator.Get(L, 3, out _direction); - float _distance = (float)LuaAPI.lua_tonumber(L, 4); - int _layerMask = LuaAPI.xlua_tointeger(L, 5); - float _minDepth = (float)LuaAPI.lua_tonumber(L, 6); - - var gen_ret = UnityEngine.Physics2D.CircleCastAll( _origin, _radius, _direction, _distance, _layerMask, _minDepth ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 7&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 7)) - { - UnityEngine.Vector2 _origin;translator.Get(L, 1, out _origin); - float _radius = (float)LuaAPI.lua_tonumber(L, 2); - UnityEngine.Vector2 _direction;translator.Get(L, 3, out _direction); - float _distance = (float)LuaAPI.lua_tonumber(L, 4); - int _layerMask = LuaAPI.xlua_tointeger(L, 5); - float _minDepth = (float)LuaAPI.lua_tonumber(L, 6); - float _maxDepth = (float)LuaAPI.lua_tonumber(L, 7); - - var gen_ret = UnityEngine.Physics2D.CircleCastAll( _origin, _radius, _direction, _distance, _layerMask, _minDepth, _maxDepth ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Physics2D.CircleCastAll!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CircleCastNonAlloc_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 4&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)) - { - UnityEngine.Vector2 _origin;translator.Get(L, 1, out _origin); - float _radius = (float)LuaAPI.lua_tonumber(L, 2); - UnityEngine.Vector2 _direction;translator.Get(L, 3, out _direction); - UnityEngine.RaycastHit2D[] _results = (UnityEngine.RaycastHit2D[])translator.GetObject(L, 4, typeof(UnityEngine.RaycastHit2D[])); - - var gen_ret = UnityEngine.Physics2D.CircleCastNonAlloc( _origin, _radius, _direction, _results ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 5&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - UnityEngine.Vector2 _origin;translator.Get(L, 1, out _origin); - float _radius = (float)LuaAPI.lua_tonumber(L, 2); - UnityEngine.Vector2 _direction;translator.Get(L, 3, out _direction); - UnityEngine.RaycastHit2D[] _results = (UnityEngine.RaycastHit2D[])translator.GetObject(L, 4, typeof(UnityEngine.RaycastHit2D[])); - float _distance = (float)LuaAPI.lua_tonumber(L, 5); - - var gen_ret = UnityEngine.Physics2D.CircleCastNonAlloc( _origin, _radius, _direction, _results, _distance ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 6&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)) - { - UnityEngine.Vector2 _origin;translator.Get(L, 1, out _origin); - float _radius = (float)LuaAPI.lua_tonumber(L, 2); - UnityEngine.Vector2 _direction;translator.Get(L, 3, out _direction); - UnityEngine.RaycastHit2D[] _results = (UnityEngine.RaycastHit2D[])translator.GetObject(L, 4, typeof(UnityEngine.RaycastHit2D[])); - float _distance = (float)LuaAPI.lua_tonumber(L, 5); - int _layerMask = LuaAPI.xlua_tointeger(L, 6); - - var gen_ret = UnityEngine.Physics2D.CircleCastNonAlloc( _origin, _radius, _direction, _results, _distance, _layerMask ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 7&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 7)) - { - UnityEngine.Vector2 _origin;translator.Get(L, 1, out _origin); - float _radius = (float)LuaAPI.lua_tonumber(L, 2); - UnityEngine.Vector2 _direction;translator.Get(L, 3, out _direction); - UnityEngine.RaycastHit2D[] _results = (UnityEngine.RaycastHit2D[])translator.GetObject(L, 4, typeof(UnityEngine.RaycastHit2D[])); - float _distance = (float)LuaAPI.lua_tonumber(L, 5); - int _layerMask = LuaAPI.xlua_tointeger(L, 6); - float _minDepth = (float)LuaAPI.lua_tonumber(L, 7); - - var gen_ret = UnityEngine.Physics2D.CircleCastNonAlloc( _origin, _radius, _direction, _results, _distance, _layerMask, _minDepth ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 8&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 7)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 8)) - { - UnityEngine.Vector2 _origin;translator.Get(L, 1, out _origin); - float _radius = (float)LuaAPI.lua_tonumber(L, 2); - UnityEngine.Vector2 _direction;translator.Get(L, 3, out _direction); - UnityEngine.RaycastHit2D[] _results = (UnityEngine.RaycastHit2D[])translator.GetObject(L, 4, typeof(UnityEngine.RaycastHit2D[])); - float _distance = (float)LuaAPI.lua_tonumber(L, 5); - int _layerMask = LuaAPI.xlua_tointeger(L, 6); - float _minDepth = (float)LuaAPI.lua_tonumber(L, 7); - float _maxDepth = (float)LuaAPI.lua_tonumber(L, 8); - - var gen_ret = UnityEngine.Physics2D.CircleCastNonAlloc( _origin, _radius, _direction, _results, _distance, _layerMask, _minDepth, _maxDepth ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Physics2D.CircleCastNonAlloc!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_BoxCast_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 4&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable(L, 4)) - { - UnityEngine.Vector2 _origin;translator.Get(L, 1, out _origin); - UnityEngine.Vector2 _size;translator.Get(L, 2, out _size); - float _angle = (float)LuaAPI.lua_tonumber(L, 3); - UnityEngine.Vector2 _direction;translator.Get(L, 4, out _direction); - - var gen_ret = UnityEngine.Physics2D.BoxCast( _origin, _size, _angle, _direction ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 5&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - UnityEngine.Vector2 _origin;translator.Get(L, 1, out _origin); - UnityEngine.Vector2 _size;translator.Get(L, 2, out _size); - float _angle = (float)LuaAPI.lua_tonumber(L, 3); - UnityEngine.Vector2 _direction;translator.Get(L, 4, out _direction); - float _distance = (float)LuaAPI.lua_tonumber(L, 5); - - var gen_ret = UnityEngine.Physics2D.BoxCast( _origin, _size, _angle, _direction, _distance ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 6&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)) - { - UnityEngine.Vector2 _origin;translator.Get(L, 1, out _origin); - UnityEngine.Vector2 _size;translator.Get(L, 2, out _size); - float _angle = (float)LuaAPI.lua_tonumber(L, 3); - UnityEngine.Vector2 _direction;translator.Get(L, 4, out _direction); - float _distance = (float)LuaAPI.lua_tonumber(L, 5); - int _layerMask = LuaAPI.xlua_tointeger(L, 6); - - var gen_ret = UnityEngine.Physics2D.BoxCast( _origin, _size, _angle, _direction, _distance, _layerMask ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 7&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 7)) - { - UnityEngine.Vector2 _origin;translator.Get(L, 1, out _origin); - UnityEngine.Vector2 _size;translator.Get(L, 2, out _size); - float _angle = (float)LuaAPI.lua_tonumber(L, 3); - UnityEngine.Vector2 _direction;translator.Get(L, 4, out _direction); - float _distance = (float)LuaAPI.lua_tonumber(L, 5); - int _layerMask = LuaAPI.xlua_tointeger(L, 6); - float _minDepth = (float)LuaAPI.lua_tonumber(L, 7); - - var gen_ret = UnityEngine.Physics2D.BoxCast( _origin, _size, _angle, _direction, _distance, _layerMask, _minDepth ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 8&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 7)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 8)) - { - UnityEngine.Vector2 _origin;translator.Get(L, 1, out _origin); - UnityEngine.Vector2 _size;translator.Get(L, 2, out _size); - float _angle = (float)LuaAPI.lua_tonumber(L, 3); - UnityEngine.Vector2 _direction;translator.Get(L, 4, out _direction); - float _distance = (float)LuaAPI.lua_tonumber(L, 5); - int _layerMask = LuaAPI.xlua_tointeger(L, 6); - float _minDepth = (float)LuaAPI.lua_tonumber(L, 7); - float _maxDepth = (float)LuaAPI.lua_tonumber(L, 8); - - var gen_ret = UnityEngine.Physics2D.BoxCast( _origin, _size, _angle, _direction, _distance, _layerMask, _minDepth, _maxDepth ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 6&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable(L, 4)&& translator.Assignable(L, 5)&& translator.Assignable(L, 6)) - { - UnityEngine.Vector2 _origin;translator.Get(L, 1, out _origin); - UnityEngine.Vector2 _size;translator.Get(L, 2, out _size); - float _angle = (float)LuaAPI.lua_tonumber(L, 3); - UnityEngine.Vector2 _direction;translator.Get(L, 4, out _direction); - UnityEngine.ContactFilter2D _contactFilter;translator.Get(L, 5, out _contactFilter); - UnityEngine.RaycastHit2D[] _results = (UnityEngine.RaycastHit2D[])translator.GetObject(L, 6, typeof(UnityEngine.RaycastHit2D[])); - - var gen_ret = UnityEngine.Physics2D.BoxCast( _origin, _size, _angle, _direction, _contactFilter, _results ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 7&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable(L, 4)&& translator.Assignable(L, 5)&& translator.Assignable(L, 6)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 7)) - { - UnityEngine.Vector2 _origin;translator.Get(L, 1, out _origin); - UnityEngine.Vector2 _size;translator.Get(L, 2, out _size); - float _angle = (float)LuaAPI.lua_tonumber(L, 3); - UnityEngine.Vector2 _direction;translator.Get(L, 4, out _direction); - UnityEngine.ContactFilter2D _contactFilter;translator.Get(L, 5, out _contactFilter); - UnityEngine.RaycastHit2D[] _results = (UnityEngine.RaycastHit2D[])translator.GetObject(L, 6, typeof(UnityEngine.RaycastHit2D[])); - float _distance = (float)LuaAPI.lua_tonumber(L, 7); - - var gen_ret = UnityEngine.Physics2D.BoxCast( _origin, _size, _angle, _direction, _contactFilter, _results, _distance ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 7&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable(L, 4)&& translator.Assignable(L, 5)&& translator.Assignable>(L, 6)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 7)) - { - UnityEngine.Vector2 _origin;translator.Get(L, 1, out _origin); - UnityEngine.Vector2 _size;translator.Get(L, 2, out _size); - float _angle = (float)LuaAPI.lua_tonumber(L, 3); - UnityEngine.Vector2 _direction;translator.Get(L, 4, out _direction); - UnityEngine.ContactFilter2D _contactFilter;translator.Get(L, 5, out _contactFilter); - System.Collections.Generic.List _results = (System.Collections.Generic.List)translator.GetObject(L, 6, typeof(System.Collections.Generic.List)); - float _distance = (float)LuaAPI.lua_tonumber(L, 7); - - var gen_ret = UnityEngine.Physics2D.BoxCast( _origin, _size, _angle, _direction, _contactFilter, _results, _distance ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 6&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable(L, 4)&& translator.Assignable(L, 5)&& translator.Assignable>(L, 6)) - { - UnityEngine.Vector2 _origin;translator.Get(L, 1, out _origin); - UnityEngine.Vector2 _size;translator.Get(L, 2, out _size); - float _angle = (float)LuaAPI.lua_tonumber(L, 3); - UnityEngine.Vector2 _direction;translator.Get(L, 4, out _direction); - UnityEngine.ContactFilter2D _contactFilter;translator.Get(L, 5, out _contactFilter); - System.Collections.Generic.List _results = (System.Collections.Generic.List)translator.GetObject(L, 6, typeof(System.Collections.Generic.List)); - - var gen_ret = UnityEngine.Physics2D.BoxCast( _origin, _size, _angle, _direction, _contactFilter, _results ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Physics2D.BoxCast!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_BoxCastAll_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 4&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable(L, 4)) - { - UnityEngine.Vector2 _origin;translator.Get(L, 1, out _origin); - UnityEngine.Vector2 _size;translator.Get(L, 2, out _size); - float _angle = (float)LuaAPI.lua_tonumber(L, 3); - UnityEngine.Vector2 _direction;translator.Get(L, 4, out _direction); - - var gen_ret = UnityEngine.Physics2D.BoxCastAll( _origin, _size, _angle, _direction ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 5&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - UnityEngine.Vector2 _origin;translator.Get(L, 1, out _origin); - UnityEngine.Vector2 _size;translator.Get(L, 2, out _size); - float _angle = (float)LuaAPI.lua_tonumber(L, 3); - UnityEngine.Vector2 _direction;translator.Get(L, 4, out _direction); - float _distance = (float)LuaAPI.lua_tonumber(L, 5); - - var gen_ret = UnityEngine.Physics2D.BoxCastAll( _origin, _size, _angle, _direction, _distance ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 6&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)) - { - UnityEngine.Vector2 _origin;translator.Get(L, 1, out _origin); - UnityEngine.Vector2 _size;translator.Get(L, 2, out _size); - float _angle = (float)LuaAPI.lua_tonumber(L, 3); - UnityEngine.Vector2 _direction;translator.Get(L, 4, out _direction); - float _distance = (float)LuaAPI.lua_tonumber(L, 5); - int _layerMask = LuaAPI.xlua_tointeger(L, 6); - - var gen_ret = UnityEngine.Physics2D.BoxCastAll( _origin, _size, _angle, _direction, _distance, _layerMask ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 7&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 7)) - { - UnityEngine.Vector2 _origin;translator.Get(L, 1, out _origin); - UnityEngine.Vector2 _size;translator.Get(L, 2, out _size); - float _angle = (float)LuaAPI.lua_tonumber(L, 3); - UnityEngine.Vector2 _direction;translator.Get(L, 4, out _direction); - float _distance = (float)LuaAPI.lua_tonumber(L, 5); - int _layerMask = LuaAPI.xlua_tointeger(L, 6); - float _minDepth = (float)LuaAPI.lua_tonumber(L, 7); - - var gen_ret = UnityEngine.Physics2D.BoxCastAll( _origin, _size, _angle, _direction, _distance, _layerMask, _minDepth ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 8&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 7)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 8)) - { - UnityEngine.Vector2 _origin;translator.Get(L, 1, out _origin); - UnityEngine.Vector2 _size;translator.Get(L, 2, out _size); - float _angle = (float)LuaAPI.lua_tonumber(L, 3); - UnityEngine.Vector2 _direction;translator.Get(L, 4, out _direction); - float _distance = (float)LuaAPI.lua_tonumber(L, 5); - int _layerMask = LuaAPI.xlua_tointeger(L, 6); - float _minDepth = (float)LuaAPI.lua_tonumber(L, 7); - float _maxDepth = (float)LuaAPI.lua_tonumber(L, 8); - - var gen_ret = UnityEngine.Physics2D.BoxCastAll( _origin, _size, _angle, _direction, _distance, _layerMask, _minDepth, _maxDepth ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Physics2D.BoxCastAll!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_BoxCastNonAlloc_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 5&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable(L, 4)&& translator.Assignable(L, 5)) - { - UnityEngine.Vector2 _origin;translator.Get(L, 1, out _origin); - UnityEngine.Vector2 _size;translator.Get(L, 2, out _size); - float _angle = (float)LuaAPI.lua_tonumber(L, 3); - UnityEngine.Vector2 _direction;translator.Get(L, 4, out _direction); - UnityEngine.RaycastHit2D[] _results = (UnityEngine.RaycastHit2D[])translator.GetObject(L, 5, typeof(UnityEngine.RaycastHit2D[])); - - var gen_ret = UnityEngine.Physics2D.BoxCastNonAlloc( _origin, _size, _angle, _direction, _results ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 6&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable(L, 4)&& translator.Assignable(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)) - { - UnityEngine.Vector2 _origin;translator.Get(L, 1, out _origin); - UnityEngine.Vector2 _size;translator.Get(L, 2, out _size); - float _angle = (float)LuaAPI.lua_tonumber(L, 3); - UnityEngine.Vector2 _direction;translator.Get(L, 4, out _direction); - UnityEngine.RaycastHit2D[] _results = (UnityEngine.RaycastHit2D[])translator.GetObject(L, 5, typeof(UnityEngine.RaycastHit2D[])); - float _distance = (float)LuaAPI.lua_tonumber(L, 6); - - var gen_ret = UnityEngine.Physics2D.BoxCastNonAlloc( _origin, _size, _angle, _direction, _results, _distance ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 7&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable(L, 4)&& translator.Assignable(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 7)) - { - UnityEngine.Vector2 _origin;translator.Get(L, 1, out _origin); - UnityEngine.Vector2 _size;translator.Get(L, 2, out _size); - float _angle = (float)LuaAPI.lua_tonumber(L, 3); - UnityEngine.Vector2 _direction;translator.Get(L, 4, out _direction); - UnityEngine.RaycastHit2D[] _results = (UnityEngine.RaycastHit2D[])translator.GetObject(L, 5, typeof(UnityEngine.RaycastHit2D[])); - float _distance = (float)LuaAPI.lua_tonumber(L, 6); - int _layerMask = LuaAPI.xlua_tointeger(L, 7); - - var gen_ret = UnityEngine.Physics2D.BoxCastNonAlloc( _origin, _size, _angle, _direction, _results, _distance, _layerMask ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 8&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable(L, 4)&& translator.Assignable(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 7)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 8)) - { - UnityEngine.Vector2 _origin;translator.Get(L, 1, out _origin); - UnityEngine.Vector2 _size;translator.Get(L, 2, out _size); - float _angle = (float)LuaAPI.lua_tonumber(L, 3); - UnityEngine.Vector2 _direction;translator.Get(L, 4, out _direction); - UnityEngine.RaycastHit2D[] _results = (UnityEngine.RaycastHit2D[])translator.GetObject(L, 5, typeof(UnityEngine.RaycastHit2D[])); - float _distance = (float)LuaAPI.lua_tonumber(L, 6); - int _layerMask = LuaAPI.xlua_tointeger(L, 7); - float _minDepth = (float)LuaAPI.lua_tonumber(L, 8); - - var gen_ret = UnityEngine.Physics2D.BoxCastNonAlloc( _origin, _size, _angle, _direction, _results, _distance, _layerMask, _minDepth ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 9&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable(L, 4)&& translator.Assignable(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 7)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 8)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 9)) - { - UnityEngine.Vector2 _origin;translator.Get(L, 1, out _origin); - UnityEngine.Vector2 _size;translator.Get(L, 2, out _size); - float _angle = (float)LuaAPI.lua_tonumber(L, 3); - UnityEngine.Vector2 _direction;translator.Get(L, 4, out _direction); - UnityEngine.RaycastHit2D[] _results = (UnityEngine.RaycastHit2D[])translator.GetObject(L, 5, typeof(UnityEngine.RaycastHit2D[])); - float _distance = (float)LuaAPI.lua_tonumber(L, 6); - int _layerMask = LuaAPI.xlua_tointeger(L, 7); - float _minDepth = (float)LuaAPI.lua_tonumber(L, 8); - float _maxDepth = (float)LuaAPI.lua_tonumber(L, 9); - - var gen_ret = UnityEngine.Physics2D.BoxCastNonAlloc( _origin, _size, _angle, _direction, _results, _distance, _layerMask, _minDepth, _maxDepth ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Physics2D.BoxCastNonAlloc!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CapsuleCast_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 5&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& translator.Assignable(L, 5)) - { - UnityEngine.Vector2 _origin;translator.Get(L, 1, out _origin); - UnityEngine.Vector2 _size;translator.Get(L, 2, out _size); - UnityEngine.CapsuleDirection2D _capsuleDirection;translator.Get(L, 3, out _capsuleDirection); - float _angle = (float)LuaAPI.lua_tonumber(L, 4); - UnityEngine.Vector2 _direction;translator.Get(L, 5, out _direction); - - var gen_ret = UnityEngine.Physics2D.CapsuleCast( _origin, _size, _capsuleDirection, _angle, _direction ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 6&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& translator.Assignable(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)) - { - UnityEngine.Vector2 _origin;translator.Get(L, 1, out _origin); - UnityEngine.Vector2 _size;translator.Get(L, 2, out _size); - UnityEngine.CapsuleDirection2D _capsuleDirection;translator.Get(L, 3, out _capsuleDirection); - float _angle = (float)LuaAPI.lua_tonumber(L, 4); - UnityEngine.Vector2 _direction;translator.Get(L, 5, out _direction); - float _distance = (float)LuaAPI.lua_tonumber(L, 6); - - var gen_ret = UnityEngine.Physics2D.CapsuleCast( _origin, _size, _capsuleDirection, _angle, _direction, _distance ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 7&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& translator.Assignable(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 7)) - { - UnityEngine.Vector2 _origin;translator.Get(L, 1, out _origin); - UnityEngine.Vector2 _size;translator.Get(L, 2, out _size); - UnityEngine.CapsuleDirection2D _capsuleDirection;translator.Get(L, 3, out _capsuleDirection); - float _angle = (float)LuaAPI.lua_tonumber(L, 4); - UnityEngine.Vector2 _direction;translator.Get(L, 5, out _direction); - float _distance = (float)LuaAPI.lua_tonumber(L, 6); - int _layerMask = LuaAPI.xlua_tointeger(L, 7); - - var gen_ret = UnityEngine.Physics2D.CapsuleCast( _origin, _size, _capsuleDirection, _angle, _direction, _distance, _layerMask ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 8&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& translator.Assignable(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 7)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 8)) - { - UnityEngine.Vector2 _origin;translator.Get(L, 1, out _origin); - UnityEngine.Vector2 _size;translator.Get(L, 2, out _size); - UnityEngine.CapsuleDirection2D _capsuleDirection;translator.Get(L, 3, out _capsuleDirection); - float _angle = (float)LuaAPI.lua_tonumber(L, 4); - UnityEngine.Vector2 _direction;translator.Get(L, 5, out _direction); - float _distance = (float)LuaAPI.lua_tonumber(L, 6); - int _layerMask = LuaAPI.xlua_tointeger(L, 7); - float _minDepth = (float)LuaAPI.lua_tonumber(L, 8); - - var gen_ret = UnityEngine.Physics2D.CapsuleCast( _origin, _size, _capsuleDirection, _angle, _direction, _distance, _layerMask, _minDepth ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 9&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& translator.Assignable(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 7)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 8)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 9)) - { - UnityEngine.Vector2 _origin;translator.Get(L, 1, out _origin); - UnityEngine.Vector2 _size;translator.Get(L, 2, out _size); - UnityEngine.CapsuleDirection2D _capsuleDirection;translator.Get(L, 3, out _capsuleDirection); - float _angle = (float)LuaAPI.lua_tonumber(L, 4); - UnityEngine.Vector2 _direction;translator.Get(L, 5, out _direction); - float _distance = (float)LuaAPI.lua_tonumber(L, 6); - int _layerMask = LuaAPI.xlua_tointeger(L, 7); - float _minDepth = (float)LuaAPI.lua_tonumber(L, 8); - float _maxDepth = (float)LuaAPI.lua_tonumber(L, 9); - - var gen_ret = UnityEngine.Physics2D.CapsuleCast( _origin, _size, _capsuleDirection, _angle, _direction, _distance, _layerMask, _minDepth, _maxDepth ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 7&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& translator.Assignable(L, 5)&& translator.Assignable(L, 6)&& translator.Assignable(L, 7)) - { - UnityEngine.Vector2 _origin;translator.Get(L, 1, out _origin); - UnityEngine.Vector2 _size;translator.Get(L, 2, out _size); - UnityEngine.CapsuleDirection2D _capsuleDirection;translator.Get(L, 3, out _capsuleDirection); - float _angle = (float)LuaAPI.lua_tonumber(L, 4); - UnityEngine.Vector2 _direction;translator.Get(L, 5, out _direction); - UnityEngine.ContactFilter2D _contactFilter;translator.Get(L, 6, out _contactFilter); - UnityEngine.RaycastHit2D[] _results = (UnityEngine.RaycastHit2D[])translator.GetObject(L, 7, typeof(UnityEngine.RaycastHit2D[])); - - var gen_ret = UnityEngine.Physics2D.CapsuleCast( _origin, _size, _capsuleDirection, _angle, _direction, _contactFilter, _results ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 8&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& translator.Assignable(L, 5)&& translator.Assignable(L, 6)&& translator.Assignable(L, 7)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 8)) - { - UnityEngine.Vector2 _origin;translator.Get(L, 1, out _origin); - UnityEngine.Vector2 _size;translator.Get(L, 2, out _size); - UnityEngine.CapsuleDirection2D _capsuleDirection;translator.Get(L, 3, out _capsuleDirection); - float _angle = (float)LuaAPI.lua_tonumber(L, 4); - UnityEngine.Vector2 _direction;translator.Get(L, 5, out _direction); - UnityEngine.ContactFilter2D _contactFilter;translator.Get(L, 6, out _contactFilter); - UnityEngine.RaycastHit2D[] _results = (UnityEngine.RaycastHit2D[])translator.GetObject(L, 7, typeof(UnityEngine.RaycastHit2D[])); - float _distance = (float)LuaAPI.lua_tonumber(L, 8); - - var gen_ret = UnityEngine.Physics2D.CapsuleCast( _origin, _size, _capsuleDirection, _angle, _direction, _contactFilter, _results, _distance ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 8&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& translator.Assignable(L, 5)&& translator.Assignable(L, 6)&& translator.Assignable>(L, 7)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 8)) - { - UnityEngine.Vector2 _origin;translator.Get(L, 1, out _origin); - UnityEngine.Vector2 _size;translator.Get(L, 2, out _size); - UnityEngine.CapsuleDirection2D _capsuleDirection;translator.Get(L, 3, out _capsuleDirection); - float _angle = (float)LuaAPI.lua_tonumber(L, 4); - UnityEngine.Vector2 _direction;translator.Get(L, 5, out _direction); - UnityEngine.ContactFilter2D _contactFilter;translator.Get(L, 6, out _contactFilter); - System.Collections.Generic.List _results = (System.Collections.Generic.List)translator.GetObject(L, 7, typeof(System.Collections.Generic.List)); - float _distance = (float)LuaAPI.lua_tonumber(L, 8); - - var gen_ret = UnityEngine.Physics2D.CapsuleCast( _origin, _size, _capsuleDirection, _angle, _direction, _contactFilter, _results, _distance ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 7&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& translator.Assignable(L, 5)&& translator.Assignable(L, 6)&& translator.Assignable>(L, 7)) - { - UnityEngine.Vector2 _origin;translator.Get(L, 1, out _origin); - UnityEngine.Vector2 _size;translator.Get(L, 2, out _size); - UnityEngine.CapsuleDirection2D _capsuleDirection;translator.Get(L, 3, out _capsuleDirection); - float _angle = (float)LuaAPI.lua_tonumber(L, 4); - UnityEngine.Vector2 _direction;translator.Get(L, 5, out _direction); - UnityEngine.ContactFilter2D _contactFilter;translator.Get(L, 6, out _contactFilter); - System.Collections.Generic.List _results = (System.Collections.Generic.List)translator.GetObject(L, 7, typeof(System.Collections.Generic.List)); - - var gen_ret = UnityEngine.Physics2D.CapsuleCast( _origin, _size, _capsuleDirection, _angle, _direction, _contactFilter, _results ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Physics2D.CapsuleCast!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CapsuleCastAll_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 5&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& translator.Assignable(L, 5)) - { - UnityEngine.Vector2 _origin;translator.Get(L, 1, out _origin); - UnityEngine.Vector2 _size;translator.Get(L, 2, out _size); - UnityEngine.CapsuleDirection2D _capsuleDirection;translator.Get(L, 3, out _capsuleDirection); - float _angle = (float)LuaAPI.lua_tonumber(L, 4); - UnityEngine.Vector2 _direction;translator.Get(L, 5, out _direction); - - var gen_ret = UnityEngine.Physics2D.CapsuleCastAll( _origin, _size, _capsuleDirection, _angle, _direction ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 6&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& translator.Assignable(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)) - { - UnityEngine.Vector2 _origin;translator.Get(L, 1, out _origin); - UnityEngine.Vector2 _size;translator.Get(L, 2, out _size); - UnityEngine.CapsuleDirection2D _capsuleDirection;translator.Get(L, 3, out _capsuleDirection); - float _angle = (float)LuaAPI.lua_tonumber(L, 4); - UnityEngine.Vector2 _direction;translator.Get(L, 5, out _direction); - float _distance = (float)LuaAPI.lua_tonumber(L, 6); - - var gen_ret = UnityEngine.Physics2D.CapsuleCastAll( _origin, _size, _capsuleDirection, _angle, _direction, _distance ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 7&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& translator.Assignable(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 7)) - { - UnityEngine.Vector2 _origin;translator.Get(L, 1, out _origin); - UnityEngine.Vector2 _size;translator.Get(L, 2, out _size); - UnityEngine.CapsuleDirection2D _capsuleDirection;translator.Get(L, 3, out _capsuleDirection); - float _angle = (float)LuaAPI.lua_tonumber(L, 4); - UnityEngine.Vector2 _direction;translator.Get(L, 5, out _direction); - float _distance = (float)LuaAPI.lua_tonumber(L, 6); - int _layerMask = LuaAPI.xlua_tointeger(L, 7); - - var gen_ret = UnityEngine.Physics2D.CapsuleCastAll( _origin, _size, _capsuleDirection, _angle, _direction, _distance, _layerMask ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 8&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& translator.Assignable(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 7)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 8)) - { - UnityEngine.Vector2 _origin;translator.Get(L, 1, out _origin); - UnityEngine.Vector2 _size;translator.Get(L, 2, out _size); - UnityEngine.CapsuleDirection2D _capsuleDirection;translator.Get(L, 3, out _capsuleDirection); - float _angle = (float)LuaAPI.lua_tonumber(L, 4); - UnityEngine.Vector2 _direction;translator.Get(L, 5, out _direction); - float _distance = (float)LuaAPI.lua_tonumber(L, 6); - int _layerMask = LuaAPI.xlua_tointeger(L, 7); - float _minDepth = (float)LuaAPI.lua_tonumber(L, 8); - - var gen_ret = UnityEngine.Physics2D.CapsuleCastAll( _origin, _size, _capsuleDirection, _angle, _direction, _distance, _layerMask, _minDepth ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 9&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& translator.Assignable(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 7)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 8)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 9)) - { - UnityEngine.Vector2 _origin;translator.Get(L, 1, out _origin); - UnityEngine.Vector2 _size;translator.Get(L, 2, out _size); - UnityEngine.CapsuleDirection2D _capsuleDirection;translator.Get(L, 3, out _capsuleDirection); - float _angle = (float)LuaAPI.lua_tonumber(L, 4); - UnityEngine.Vector2 _direction;translator.Get(L, 5, out _direction); - float _distance = (float)LuaAPI.lua_tonumber(L, 6); - int _layerMask = LuaAPI.xlua_tointeger(L, 7); - float _minDepth = (float)LuaAPI.lua_tonumber(L, 8); - float _maxDepth = (float)LuaAPI.lua_tonumber(L, 9); - - var gen_ret = UnityEngine.Physics2D.CapsuleCastAll( _origin, _size, _capsuleDirection, _angle, _direction, _distance, _layerMask, _minDepth, _maxDepth ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Physics2D.CapsuleCastAll!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CapsuleCastNonAlloc_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 6&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& translator.Assignable(L, 5)&& translator.Assignable(L, 6)) - { - UnityEngine.Vector2 _origin;translator.Get(L, 1, out _origin); - UnityEngine.Vector2 _size;translator.Get(L, 2, out _size); - UnityEngine.CapsuleDirection2D _capsuleDirection;translator.Get(L, 3, out _capsuleDirection); - float _angle = (float)LuaAPI.lua_tonumber(L, 4); - UnityEngine.Vector2 _direction;translator.Get(L, 5, out _direction); - UnityEngine.RaycastHit2D[] _results = (UnityEngine.RaycastHit2D[])translator.GetObject(L, 6, typeof(UnityEngine.RaycastHit2D[])); - - var gen_ret = UnityEngine.Physics2D.CapsuleCastNonAlloc( _origin, _size, _capsuleDirection, _angle, _direction, _results ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 7&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& translator.Assignable(L, 5)&& translator.Assignable(L, 6)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 7)) - { - UnityEngine.Vector2 _origin;translator.Get(L, 1, out _origin); - UnityEngine.Vector2 _size;translator.Get(L, 2, out _size); - UnityEngine.CapsuleDirection2D _capsuleDirection;translator.Get(L, 3, out _capsuleDirection); - float _angle = (float)LuaAPI.lua_tonumber(L, 4); - UnityEngine.Vector2 _direction;translator.Get(L, 5, out _direction); - UnityEngine.RaycastHit2D[] _results = (UnityEngine.RaycastHit2D[])translator.GetObject(L, 6, typeof(UnityEngine.RaycastHit2D[])); - float _distance = (float)LuaAPI.lua_tonumber(L, 7); - - var gen_ret = UnityEngine.Physics2D.CapsuleCastNonAlloc( _origin, _size, _capsuleDirection, _angle, _direction, _results, _distance ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 8&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& translator.Assignable(L, 5)&& translator.Assignable(L, 6)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 7)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 8)) - { - UnityEngine.Vector2 _origin;translator.Get(L, 1, out _origin); - UnityEngine.Vector2 _size;translator.Get(L, 2, out _size); - UnityEngine.CapsuleDirection2D _capsuleDirection;translator.Get(L, 3, out _capsuleDirection); - float _angle = (float)LuaAPI.lua_tonumber(L, 4); - UnityEngine.Vector2 _direction;translator.Get(L, 5, out _direction); - UnityEngine.RaycastHit2D[] _results = (UnityEngine.RaycastHit2D[])translator.GetObject(L, 6, typeof(UnityEngine.RaycastHit2D[])); - float _distance = (float)LuaAPI.lua_tonumber(L, 7); - int _layerMask = LuaAPI.xlua_tointeger(L, 8); - - var gen_ret = UnityEngine.Physics2D.CapsuleCastNonAlloc( _origin, _size, _capsuleDirection, _angle, _direction, _results, _distance, _layerMask ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 9&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& translator.Assignable(L, 5)&& translator.Assignable(L, 6)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 7)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 8)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 9)) - { - UnityEngine.Vector2 _origin;translator.Get(L, 1, out _origin); - UnityEngine.Vector2 _size;translator.Get(L, 2, out _size); - UnityEngine.CapsuleDirection2D _capsuleDirection;translator.Get(L, 3, out _capsuleDirection); - float _angle = (float)LuaAPI.lua_tonumber(L, 4); - UnityEngine.Vector2 _direction;translator.Get(L, 5, out _direction); - UnityEngine.RaycastHit2D[] _results = (UnityEngine.RaycastHit2D[])translator.GetObject(L, 6, typeof(UnityEngine.RaycastHit2D[])); - float _distance = (float)LuaAPI.lua_tonumber(L, 7); - int _layerMask = LuaAPI.xlua_tointeger(L, 8); - float _minDepth = (float)LuaAPI.lua_tonumber(L, 9); - - var gen_ret = UnityEngine.Physics2D.CapsuleCastNonAlloc( _origin, _size, _capsuleDirection, _angle, _direction, _results, _distance, _layerMask, _minDepth ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 10&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& translator.Assignable(L, 5)&& translator.Assignable(L, 6)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 7)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 8)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 9)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 10)) - { - UnityEngine.Vector2 _origin;translator.Get(L, 1, out _origin); - UnityEngine.Vector2 _size;translator.Get(L, 2, out _size); - UnityEngine.CapsuleDirection2D _capsuleDirection;translator.Get(L, 3, out _capsuleDirection); - float _angle = (float)LuaAPI.lua_tonumber(L, 4); - UnityEngine.Vector2 _direction;translator.Get(L, 5, out _direction); - UnityEngine.RaycastHit2D[] _results = (UnityEngine.RaycastHit2D[])translator.GetObject(L, 6, typeof(UnityEngine.RaycastHit2D[])); - float _distance = (float)LuaAPI.lua_tonumber(L, 7); - int _layerMask = LuaAPI.xlua_tointeger(L, 8); - float _minDepth = (float)LuaAPI.lua_tonumber(L, 9); - float _maxDepth = (float)LuaAPI.lua_tonumber(L, 10); - - var gen_ret = UnityEngine.Physics2D.CapsuleCastNonAlloc( _origin, _size, _capsuleDirection, _angle, _direction, _results, _distance, _layerMask, _minDepth, _maxDepth ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Physics2D.CapsuleCastNonAlloc!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetRayIntersection_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1&& translator.Assignable(L, 1)) - { - UnityEngine.Ray _ray;translator.Get(L, 1, out _ray); - - var gen_ret = UnityEngine.Physics2D.GetRayIntersection( _ray ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - UnityEngine.Ray _ray;translator.Get(L, 1, out _ray); - float _distance = (float)LuaAPI.lua_tonumber(L, 2); - - var gen_ret = UnityEngine.Physics2D.GetRayIntersection( _ray, _distance ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - UnityEngine.Ray _ray;translator.Get(L, 1, out _ray); - float _distance = (float)LuaAPI.lua_tonumber(L, 2); - int _layerMask = LuaAPI.xlua_tointeger(L, 3); - - var gen_ret = UnityEngine.Physics2D.GetRayIntersection( _ray, _distance, _layerMask ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Physics2D.GetRayIntersection!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetRayIntersectionAll_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1&& translator.Assignable(L, 1)) - { - UnityEngine.Ray _ray;translator.Get(L, 1, out _ray); - - var gen_ret = UnityEngine.Physics2D.GetRayIntersectionAll( _ray ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - UnityEngine.Ray _ray;translator.Get(L, 1, out _ray); - float _distance = (float)LuaAPI.lua_tonumber(L, 2); - - var gen_ret = UnityEngine.Physics2D.GetRayIntersectionAll( _ray, _distance ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - UnityEngine.Ray _ray;translator.Get(L, 1, out _ray); - float _distance = (float)LuaAPI.lua_tonumber(L, 2); - int _layerMask = LuaAPI.xlua_tointeger(L, 3); - - var gen_ret = UnityEngine.Physics2D.GetRayIntersectionAll( _ray, _distance, _layerMask ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Physics2D.GetRayIntersectionAll!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetRayIntersectionNonAlloc_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)) - { - UnityEngine.Ray _ray;translator.Get(L, 1, out _ray); - UnityEngine.RaycastHit2D[] _results = (UnityEngine.RaycastHit2D[])translator.GetObject(L, 2, typeof(UnityEngine.RaycastHit2D[])); - - var gen_ret = UnityEngine.Physics2D.GetRayIntersectionNonAlloc( _ray, _results ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - UnityEngine.Ray _ray;translator.Get(L, 1, out _ray); - UnityEngine.RaycastHit2D[] _results = (UnityEngine.RaycastHit2D[])translator.GetObject(L, 2, typeof(UnityEngine.RaycastHit2D[])); - float _distance = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = UnityEngine.Physics2D.GetRayIntersectionNonAlloc( _ray, _results, _distance ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - UnityEngine.Ray _ray;translator.Get(L, 1, out _ray); - UnityEngine.RaycastHit2D[] _results = (UnityEngine.RaycastHit2D[])translator.GetObject(L, 2, typeof(UnityEngine.RaycastHit2D[])); - float _distance = (float)LuaAPI.lua_tonumber(L, 3); - int _layerMask = LuaAPI.xlua_tointeger(L, 4); - - var gen_ret = UnityEngine.Physics2D.GetRayIntersectionNonAlloc( _ray, _results, _distance, _layerMask ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Physics2D.GetRayIntersectionNonAlloc!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OverlapPoint_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1&& translator.Assignable(L, 1)) - { - UnityEngine.Vector2 _point;translator.Get(L, 1, out _point); - - var gen_ret = UnityEngine.Physics2D.OverlapPoint( _point ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - UnityEngine.Vector2 _point;translator.Get(L, 1, out _point); - int _layerMask = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = UnityEngine.Physics2D.OverlapPoint( _point, _layerMask ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - UnityEngine.Vector2 _point;translator.Get(L, 1, out _point); - int _layerMask = LuaAPI.xlua_tointeger(L, 2); - float _minDepth = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = UnityEngine.Physics2D.OverlapPoint( _point, _layerMask, _minDepth ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - UnityEngine.Vector2 _point;translator.Get(L, 1, out _point); - int _layerMask = LuaAPI.xlua_tointeger(L, 2); - float _minDepth = (float)LuaAPI.lua_tonumber(L, 3); - float _maxDepth = (float)LuaAPI.lua_tonumber(L, 4); - - var gen_ret = UnityEngine.Physics2D.OverlapPoint( _point, _layerMask, _minDepth, _maxDepth ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)) - { - UnityEngine.Vector2 _point;translator.Get(L, 1, out _point); - UnityEngine.ContactFilter2D _contactFilter;translator.Get(L, 2, out _contactFilter); - UnityEngine.Collider2D[] _results = (UnityEngine.Collider2D[])translator.GetObject(L, 3, typeof(UnityEngine.Collider2D[])); - - var gen_ret = UnityEngine.Physics2D.OverlapPoint( _point, _contactFilter, _results ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable>(L, 3)) - { - UnityEngine.Vector2 _point;translator.Get(L, 1, out _point); - UnityEngine.ContactFilter2D _contactFilter;translator.Get(L, 2, out _contactFilter); - System.Collections.Generic.List _results = (System.Collections.Generic.List)translator.GetObject(L, 3, typeof(System.Collections.Generic.List)); - - var gen_ret = UnityEngine.Physics2D.OverlapPoint( _point, _contactFilter, _results ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Physics2D.OverlapPoint!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OverlapPointAll_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1&& translator.Assignable(L, 1)) - { - UnityEngine.Vector2 _point;translator.Get(L, 1, out _point); - - var gen_ret = UnityEngine.Physics2D.OverlapPointAll( _point ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - UnityEngine.Vector2 _point;translator.Get(L, 1, out _point); - int _layerMask = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = UnityEngine.Physics2D.OverlapPointAll( _point, _layerMask ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - UnityEngine.Vector2 _point;translator.Get(L, 1, out _point); - int _layerMask = LuaAPI.xlua_tointeger(L, 2); - float _minDepth = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = UnityEngine.Physics2D.OverlapPointAll( _point, _layerMask, _minDepth ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - UnityEngine.Vector2 _point;translator.Get(L, 1, out _point); - int _layerMask = LuaAPI.xlua_tointeger(L, 2); - float _minDepth = (float)LuaAPI.lua_tonumber(L, 3); - float _maxDepth = (float)LuaAPI.lua_tonumber(L, 4); - - var gen_ret = UnityEngine.Physics2D.OverlapPointAll( _point, _layerMask, _minDepth, _maxDepth ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Physics2D.OverlapPointAll!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OverlapPointNonAlloc_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)) - { - UnityEngine.Vector2 _point;translator.Get(L, 1, out _point); - UnityEngine.Collider2D[] _results = (UnityEngine.Collider2D[])translator.GetObject(L, 2, typeof(UnityEngine.Collider2D[])); - - var gen_ret = UnityEngine.Physics2D.OverlapPointNonAlloc( _point, _results ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - UnityEngine.Vector2 _point;translator.Get(L, 1, out _point); - UnityEngine.Collider2D[] _results = (UnityEngine.Collider2D[])translator.GetObject(L, 2, typeof(UnityEngine.Collider2D[])); - int _layerMask = LuaAPI.xlua_tointeger(L, 3); - - var gen_ret = UnityEngine.Physics2D.OverlapPointNonAlloc( _point, _results, _layerMask ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - UnityEngine.Vector2 _point;translator.Get(L, 1, out _point); - UnityEngine.Collider2D[] _results = (UnityEngine.Collider2D[])translator.GetObject(L, 2, typeof(UnityEngine.Collider2D[])); - int _layerMask = LuaAPI.xlua_tointeger(L, 3); - float _minDepth = (float)LuaAPI.lua_tonumber(L, 4); - - var gen_ret = UnityEngine.Physics2D.OverlapPointNonAlloc( _point, _results, _layerMask, _minDepth ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 5&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - UnityEngine.Vector2 _point;translator.Get(L, 1, out _point); - UnityEngine.Collider2D[] _results = (UnityEngine.Collider2D[])translator.GetObject(L, 2, typeof(UnityEngine.Collider2D[])); - int _layerMask = LuaAPI.xlua_tointeger(L, 3); - float _minDepth = (float)LuaAPI.lua_tonumber(L, 4); - float _maxDepth = (float)LuaAPI.lua_tonumber(L, 5); - - var gen_ret = UnityEngine.Physics2D.OverlapPointNonAlloc( _point, _results, _layerMask, _minDepth, _maxDepth ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Physics2D.OverlapPointNonAlloc!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OverlapCircle_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - UnityEngine.Vector2 _point;translator.Get(L, 1, out _point); - float _radius = (float)LuaAPI.lua_tonumber(L, 2); - - var gen_ret = UnityEngine.Physics2D.OverlapCircle( _point, _radius ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - UnityEngine.Vector2 _point;translator.Get(L, 1, out _point); - float _radius = (float)LuaAPI.lua_tonumber(L, 2); - int _layerMask = LuaAPI.xlua_tointeger(L, 3); - - var gen_ret = UnityEngine.Physics2D.OverlapCircle( _point, _radius, _layerMask ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - UnityEngine.Vector2 _point;translator.Get(L, 1, out _point); - float _radius = (float)LuaAPI.lua_tonumber(L, 2); - int _layerMask = LuaAPI.xlua_tointeger(L, 3); - float _minDepth = (float)LuaAPI.lua_tonumber(L, 4); - - var gen_ret = UnityEngine.Physics2D.OverlapCircle( _point, _radius, _layerMask, _minDepth ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 5&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - UnityEngine.Vector2 _point;translator.Get(L, 1, out _point); - float _radius = (float)LuaAPI.lua_tonumber(L, 2); - int _layerMask = LuaAPI.xlua_tointeger(L, 3); - float _minDepth = (float)LuaAPI.lua_tonumber(L, 4); - float _maxDepth = (float)LuaAPI.lua_tonumber(L, 5); - - var gen_ret = UnityEngine.Physics2D.OverlapCircle( _point, _radius, _layerMask, _minDepth, _maxDepth ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)) - { - UnityEngine.Vector2 _point;translator.Get(L, 1, out _point); - float _radius = (float)LuaAPI.lua_tonumber(L, 2); - UnityEngine.ContactFilter2D _contactFilter;translator.Get(L, 3, out _contactFilter); - UnityEngine.Collider2D[] _results = (UnityEngine.Collider2D[])translator.GetObject(L, 4, typeof(UnityEngine.Collider2D[])); - - var gen_ret = UnityEngine.Physics2D.OverlapCircle( _point, _radius, _contactFilter, _results ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable>(L, 4)) - { - UnityEngine.Vector2 _point;translator.Get(L, 1, out _point); - float _radius = (float)LuaAPI.lua_tonumber(L, 2); - UnityEngine.ContactFilter2D _contactFilter;translator.Get(L, 3, out _contactFilter); - System.Collections.Generic.List _results = (System.Collections.Generic.List)translator.GetObject(L, 4, typeof(System.Collections.Generic.List)); - - var gen_ret = UnityEngine.Physics2D.OverlapCircle( _point, _radius, _contactFilter, _results ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Physics2D.OverlapCircle!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OverlapCircleAll_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - UnityEngine.Vector2 _point;translator.Get(L, 1, out _point); - float _radius = (float)LuaAPI.lua_tonumber(L, 2); - - var gen_ret = UnityEngine.Physics2D.OverlapCircleAll( _point, _radius ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - UnityEngine.Vector2 _point;translator.Get(L, 1, out _point); - float _radius = (float)LuaAPI.lua_tonumber(L, 2); - int _layerMask = LuaAPI.xlua_tointeger(L, 3); - - var gen_ret = UnityEngine.Physics2D.OverlapCircleAll( _point, _radius, _layerMask ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - UnityEngine.Vector2 _point;translator.Get(L, 1, out _point); - float _radius = (float)LuaAPI.lua_tonumber(L, 2); - int _layerMask = LuaAPI.xlua_tointeger(L, 3); - float _minDepth = (float)LuaAPI.lua_tonumber(L, 4); - - var gen_ret = UnityEngine.Physics2D.OverlapCircleAll( _point, _radius, _layerMask, _minDepth ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 5&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - UnityEngine.Vector2 _point;translator.Get(L, 1, out _point); - float _radius = (float)LuaAPI.lua_tonumber(L, 2); - int _layerMask = LuaAPI.xlua_tointeger(L, 3); - float _minDepth = (float)LuaAPI.lua_tonumber(L, 4); - float _maxDepth = (float)LuaAPI.lua_tonumber(L, 5); - - var gen_ret = UnityEngine.Physics2D.OverlapCircleAll( _point, _radius, _layerMask, _minDepth, _maxDepth ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Physics2D.OverlapCircleAll!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OverlapCircleNonAlloc_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)) - { - UnityEngine.Vector2 _point;translator.Get(L, 1, out _point); - float _radius = (float)LuaAPI.lua_tonumber(L, 2); - UnityEngine.Collider2D[] _results = (UnityEngine.Collider2D[])translator.GetObject(L, 3, typeof(UnityEngine.Collider2D[])); - - var gen_ret = UnityEngine.Physics2D.OverlapCircleNonAlloc( _point, _radius, _results ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - UnityEngine.Vector2 _point;translator.Get(L, 1, out _point); - float _radius = (float)LuaAPI.lua_tonumber(L, 2); - UnityEngine.Collider2D[] _results = (UnityEngine.Collider2D[])translator.GetObject(L, 3, typeof(UnityEngine.Collider2D[])); - int _layerMask = LuaAPI.xlua_tointeger(L, 4); - - var gen_ret = UnityEngine.Physics2D.OverlapCircleNonAlloc( _point, _radius, _results, _layerMask ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 5&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - UnityEngine.Vector2 _point;translator.Get(L, 1, out _point); - float _radius = (float)LuaAPI.lua_tonumber(L, 2); - UnityEngine.Collider2D[] _results = (UnityEngine.Collider2D[])translator.GetObject(L, 3, typeof(UnityEngine.Collider2D[])); - int _layerMask = LuaAPI.xlua_tointeger(L, 4); - float _minDepth = (float)LuaAPI.lua_tonumber(L, 5); - - var gen_ret = UnityEngine.Physics2D.OverlapCircleNonAlloc( _point, _radius, _results, _layerMask, _minDepth ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 6&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)) - { - UnityEngine.Vector2 _point;translator.Get(L, 1, out _point); - float _radius = (float)LuaAPI.lua_tonumber(L, 2); - UnityEngine.Collider2D[] _results = (UnityEngine.Collider2D[])translator.GetObject(L, 3, typeof(UnityEngine.Collider2D[])); - int _layerMask = LuaAPI.xlua_tointeger(L, 4); - float _minDepth = (float)LuaAPI.lua_tonumber(L, 5); - float _maxDepth = (float)LuaAPI.lua_tonumber(L, 6); - - var gen_ret = UnityEngine.Physics2D.OverlapCircleNonAlloc( _point, _radius, _results, _layerMask, _minDepth, _maxDepth ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Physics2D.OverlapCircleNonAlloc!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OverlapBox_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - UnityEngine.Vector2 _point;translator.Get(L, 1, out _point); - UnityEngine.Vector2 _size;translator.Get(L, 2, out _size); - float _angle = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = UnityEngine.Physics2D.OverlapBox( _point, _size, _angle ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - UnityEngine.Vector2 _point;translator.Get(L, 1, out _point); - UnityEngine.Vector2 _size;translator.Get(L, 2, out _size); - float _angle = (float)LuaAPI.lua_tonumber(L, 3); - int _layerMask = LuaAPI.xlua_tointeger(L, 4); - - var gen_ret = UnityEngine.Physics2D.OverlapBox( _point, _size, _angle, _layerMask ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 5&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - UnityEngine.Vector2 _point;translator.Get(L, 1, out _point); - UnityEngine.Vector2 _size;translator.Get(L, 2, out _size); - float _angle = (float)LuaAPI.lua_tonumber(L, 3); - int _layerMask = LuaAPI.xlua_tointeger(L, 4); - float _minDepth = (float)LuaAPI.lua_tonumber(L, 5); - - var gen_ret = UnityEngine.Physics2D.OverlapBox( _point, _size, _angle, _layerMask, _minDepth ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 6&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)) - { - UnityEngine.Vector2 _point;translator.Get(L, 1, out _point); - UnityEngine.Vector2 _size;translator.Get(L, 2, out _size); - float _angle = (float)LuaAPI.lua_tonumber(L, 3); - int _layerMask = LuaAPI.xlua_tointeger(L, 4); - float _minDepth = (float)LuaAPI.lua_tonumber(L, 5); - float _maxDepth = (float)LuaAPI.lua_tonumber(L, 6); - - var gen_ret = UnityEngine.Physics2D.OverlapBox( _point, _size, _angle, _layerMask, _minDepth, _maxDepth ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 5&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable(L, 4)&& translator.Assignable(L, 5)) - { - UnityEngine.Vector2 _point;translator.Get(L, 1, out _point); - UnityEngine.Vector2 _size;translator.Get(L, 2, out _size); - float _angle = (float)LuaAPI.lua_tonumber(L, 3); - UnityEngine.ContactFilter2D _contactFilter;translator.Get(L, 4, out _contactFilter); - UnityEngine.Collider2D[] _results = (UnityEngine.Collider2D[])translator.GetObject(L, 5, typeof(UnityEngine.Collider2D[])); - - var gen_ret = UnityEngine.Physics2D.OverlapBox( _point, _size, _angle, _contactFilter, _results ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 5&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable(L, 4)&& translator.Assignable>(L, 5)) - { - UnityEngine.Vector2 _point;translator.Get(L, 1, out _point); - UnityEngine.Vector2 _size;translator.Get(L, 2, out _size); - float _angle = (float)LuaAPI.lua_tonumber(L, 3); - UnityEngine.ContactFilter2D _contactFilter;translator.Get(L, 4, out _contactFilter); - System.Collections.Generic.List _results = (System.Collections.Generic.List)translator.GetObject(L, 5, typeof(System.Collections.Generic.List)); - - var gen_ret = UnityEngine.Physics2D.OverlapBox( _point, _size, _angle, _contactFilter, _results ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Physics2D.OverlapBox!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OverlapBoxAll_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - UnityEngine.Vector2 _point;translator.Get(L, 1, out _point); - UnityEngine.Vector2 _size;translator.Get(L, 2, out _size); - float _angle = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = UnityEngine.Physics2D.OverlapBoxAll( _point, _size, _angle ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - UnityEngine.Vector2 _point;translator.Get(L, 1, out _point); - UnityEngine.Vector2 _size;translator.Get(L, 2, out _size); - float _angle = (float)LuaAPI.lua_tonumber(L, 3); - int _layerMask = LuaAPI.xlua_tointeger(L, 4); - - var gen_ret = UnityEngine.Physics2D.OverlapBoxAll( _point, _size, _angle, _layerMask ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 5&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - UnityEngine.Vector2 _point;translator.Get(L, 1, out _point); - UnityEngine.Vector2 _size;translator.Get(L, 2, out _size); - float _angle = (float)LuaAPI.lua_tonumber(L, 3); - int _layerMask = LuaAPI.xlua_tointeger(L, 4); - float _minDepth = (float)LuaAPI.lua_tonumber(L, 5); - - var gen_ret = UnityEngine.Physics2D.OverlapBoxAll( _point, _size, _angle, _layerMask, _minDepth ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 6&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)) - { - UnityEngine.Vector2 _point;translator.Get(L, 1, out _point); - UnityEngine.Vector2 _size;translator.Get(L, 2, out _size); - float _angle = (float)LuaAPI.lua_tonumber(L, 3); - int _layerMask = LuaAPI.xlua_tointeger(L, 4); - float _minDepth = (float)LuaAPI.lua_tonumber(L, 5); - float _maxDepth = (float)LuaAPI.lua_tonumber(L, 6); - - var gen_ret = UnityEngine.Physics2D.OverlapBoxAll( _point, _size, _angle, _layerMask, _minDepth, _maxDepth ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Physics2D.OverlapBoxAll!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OverlapBoxNonAlloc_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 4&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable(L, 4)) - { - UnityEngine.Vector2 _point;translator.Get(L, 1, out _point); - UnityEngine.Vector2 _size;translator.Get(L, 2, out _size); - float _angle = (float)LuaAPI.lua_tonumber(L, 3); - UnityEngine.Collider2D[] _results = (UnityEngine.Collider2D[])translator.GetObject(L, 4, typeof(UnityEngine.Collider2D[])); - - var gen_ret = UnityEngine.Physics2D.OverlapBoxNonAlloc( _point, _size, _angle, _results ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 5&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - UnityEngine.Vector2 _point;translator.Get(L, 1, out _point); - UnityEngine.Vector2 _size;translator.Get(L, 2, out _size); - float _angle = (float)LuaAPI.lua_tonumber(L, 3); - UnityEngine.Collider2D[] _results = (UnityEngine.Collider2D[])translator.GetObject(L, 4, typeof(UnityEngine.Collider2D[])); - int _layerMask = LuaAPI.xlua_tointeger(L, 5); - - var gen_ret = UnityEngine.Physics2D.OverlapBoxNonAlloc( _point, _size, _angle, _results, _layerMask ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 6&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)) - { - UnityEngine.Vector2 _point;translator.Get(L, 1, out _point); - UnityEngine.Vector2 _size;translator.Get(L, 2, out _size); - float _angle = (float)LuaAPI.lua_tonumber(L, 3); - UnityEngine.Collider2D[] _results = (UnityEngine.Collider2D[])translator.GetObject(L, 4, typeof(UnityEngine.Collider2D[])); - int _layerMask = LuaAPI.xlua_tointeger(L, 5); - float _minDepth = (float)LuaAPI.lua_tonumber(L, 6); - - var gen_ret = UnityEngine.Physics2D.OverlapBoxNonAlloc( _point, _size, _angle, _results, _layerMask, _minDepth ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 7&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 7)) - { - UnityEngine.Vector2 _point;translator.Get(L, 1, out _point); - UnityEngine.Vector2 _size;translator.Get(L, 2, out _size); - float _angle = (float)LuaAPI.lua_tonumber(L, 3); - UnityEngine.Collider2D[] _results = (UnityEngine.Collider2D[])translator.GetObject(L, 4, typeof(UnityEngine.Collider2D[])); - int _layerMask = LuaAPI.xlua_tointeger(L, 5); - float _minDepth = (float)LuaAPI.lua_tonumber(L, 6); - float _maxDepth = (float)LuaAPI.lua_tonumber(L, 7); - - var gen_ret = UnityEngine.Physics2D.OverlapBoxNonAlloc( _point, _size, _angle, _results, _layerMask, _minDepth, _maxDepth ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Physics2D.OverlapBoxNonAlloc!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OverlapArea_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)) - { - UnityEngine.Vector2 _pointA;translator.Get(L, 1, out _pointA); - UnityEngine.Vector2 _pointB;translator.Get(L, 2, out _pointB); - - var gen_ret = UnityEngine.Physics2D.OverlapArea( _pointA, _pointB ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - UnityEngine.Vector2 _pointA;translator.Get(L, 1, out _pointA); - UnityEngine.Vector2 _pointB;translator.Get(L, 2, out _pointB); - int _layerMask = LuaAPI.xlua_tointeger(L, 3); - - var gen_ret = UnityEngine.Physics2D.OverlapArea( _pointA, _pointB, _layerMask ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - UnityEngine.Vector2 _pointA;translator.Get(L, 1, out _pointA); - UnityEngine.Vector2 _pointB;translator.Get(L, 2, out _pointB); - int _layerMask = LuaAPI.xlua_tointeger(L, 3); - float _minDepth = (float)LuaAPI.lua_tonumber(L, 4); - - var gen_ret = UnityEngine.Physics2D.OverlapArea( _pointA, _pointB, _layerMask, _minDepth ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 5&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - UnityEngine.Vector2 _pointA;translator.Get(L, 1, out _pointA); - UnityEngine.Vector2 _pointB;translator.Get(L, 2, out _pointB); - int _layerMask = LuaAPI.xlua_tointeger(L, 3); - float _minDepth = (float)LuaAPI.lua_tonumber(L, 4); - float _maxDepth = (float)LuaAPI.lua_tonumber(L, 5); - - var gen_ret = UnityEngine.Physics2D.OverlapArea( _pointA, _pointB, _layerMask, _minDepth, _maxDepth ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)) - { - UnityEngine.Vector2 _pointA;translator.Get(L, 1, out _pointA); - UnityEngine.Vector2 _pointB;translator.Get(L, 2, out _pointB); - UnityEngine.ContactFilter2D _contactFilter;translator.Get(L, 3, out _contactFilter); - UnityEngine.Collider2D[] _results = (UnityEngine.Collider2D[])translator.GetObject(L, 4, typeof(UnityEngine.Collider2D[])); - - var gen_ret = UnityEngine.Physics2D.OverlapArea( _pointA, _pointB, _contactFilter, _results ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable>(L, 4)) - { - UnityEngine.Vector2 _pointA;translator.Get(L, 1, out _pointA); - UnityEngine.Vector2 _pointB;translator.Get(L, 2, out _pointB); - UnityEngine.ContactFilter2D _contactFilter;translator.Get(L, 3, out _contactFilter); - System.Collections.Generic.List _results = (System.Collections.Generic.List)translator.GetObject(L, 4, typeof(System.Collections.Generic.List)); - - var gen_ret = UnityEngine.Physics2D.OverlapArea( _pointA, _pointB, _contactFilter, _results ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Physics2D.OverlapArea!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OverlapAreaAll_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)) - { - UnityEngine.Vector2 _pointA;translator.Get(L, 1, out _pointA); - UnityEngine.Vector2 _pointB;translator.Get(L, 2, out _pointB); - - var gen_ret = UnityEngine.Physics2D.OverlapAreaAll( _pointA, _pointB ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - UnityEngine.Vector2 _pointA;translator.Get(L, 1, out _pointA); - UnityEngine.Vector2 _pointB;translator.Get(L, 2, out _pointB); - int _layerMask = LuaAPI.xlua_tointeger(L, 3); - - var gen_ret = UnityEngine.Physics2D.OverlapAreaAll( _pointA, _pointB, _layerMask ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - UnityEngine.Vector2 _pointA;translator.Get(L, 1, out _pointA); - UnityEngine.Vector2 _pointB;translator.Get(L, 2, out _pointB); - int _layerMask = LuaAPI.xlua_tointeger(L, 3); - float _minDepth = (float)LuaAPI.lua_tonumber(L, 4); - - var gen_ret = UnityEngine.Physics2D.OverlapAreaAll( _pointA, _pointB, _layerMask, _minDepth ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 5&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - UnityEngine.Vector2 _pointA;translator.Get(L, 1, out _pointA); - UnityEngine.Vector2 _pointB;translator.Get(L, 2, out _pointB); - int _layerMask = LuaAPI.xlua_tointeger(L, 3); - float _minDepth = (float)LuaAPI.lua_tonumber(L, 4); - float _maxDepth = (float)LuaAPI.lua_tonumber(L, 5); - - var gen_ret = UnityEngine.Physics2D.OverlapAreaAll( _pointA, _pointB, _layerMask, _minDepth, _maxDepth ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Physics2D.OverlapAreaAll!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OverlapAreaNonAlloc_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)) - { - UnityEngine.Vector2 _pointA;translator.Get(L, 1, out _pointA); - UnityEngine.Vector2 _pointB;translator.Get(L, 2, out _pointB); - UnityEngine.Collider2D[] _results = (UnityEngine.Collider2D[])translator.GetObject(L, 3, typeof(UnityEngine.Collider2D[])); - - var gen_ret = UnityEngine.Physics2D.OverlapAreaNonAlloc( _pointA, _pointB, _results ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - UnityEngine.Vector2 _pointA;translator.Get(L, 1, out _pointA); - UnityEngine.Vector2 _pointB;translator.Get(L, 2, out _pointB); - UnityEngine.Collider2D[] _results = (UnityEngine.Collider2D[])translator.GetObject(L, 3, typeof(UnityEngine.Collider2D[])); - int _layerMask = LuaAPI.xlua_tointeger(L, 4); - - var gen_ret = UnityEngine.Physics2D.OverlapAreaNonAlloc( _pointA, _pointB, _results, _layerMask ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 5&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - UnityEngine.Vector2 _pointA;translator.Get(L, 1, out _pointA); - UnityEngine.Vector2 _pointB;translator.Get(L, 2, out _pointB); - UnityEngine.Collider2D[] _results = (UnityEngine.Collider2D[])translator.GetObject(L, 3, typeof(UnityEngine.Collider2D[])); - int _layerMask = LuaAPI.xlua_tointeger(L, 4); - float _minDepth = (float)LuaAPI.lua_tonumber(L, 5); - - var gen_ret = UnityEngine.Physics2D.OverlapAreaNonAlloc( _pointA, _pointB, _results, _layerMask, _minDepth ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 6&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)) - { - UnityEngine.Vector2 _pointA;translator.Get(L, 1, out _pointA); - UnityEngine.Vector2 _pointB;translator.Get(L, 2, out _pointB); - UnityEngine.Collider2D[] _results = (UnityEngine.Collider2D[])translator.GetObject(L, 3, typeof(UnityEngine.Collider2D[])); - int _layerMask = LuaAPI.xlua_tointeger(L, 4); - float _minDepth = (float)LuaAPI.lua_tonumber(L, 5); - float _maxDepth = (float)LuaAPI.lua_tonumber(L, 6); - - var gen_ret = UnityEngine.Physics2D.OverlapAreaNonAlloc( _pointA, _pointB, _results, _layerMask, _minDepth, _maxDepth ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Physics2D.OverlapAreaNonAlloc!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OverlapCapsule_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 4&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - UnityEngine.Vector2 _point;translator.Get(L, 1, out _point); - UnityEngine.Vector2 _size;translator.Get(L, 2, out _size); - UnityEngine.CapsuleDirection2D _direction;translator.Get(L, 3, out _direction); - float _angle = (float)LuaAPI.lua_tonumber(L, 4); - - var gen_ret = UnityEngine.Physics2D.OverlapCapsule( _point, _size, _direction, _angle ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 5&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - UnityEngine.Vector2 _point;translator.Get(L, 1, out _point); - UnityEngine.Vector2 _size;translator.Get(L, 2, out _size); - UnityEngine.CapsuleDirection2D _direction;translator.Get(L, 3, out _direction); - float _angle = (float)LuaAPI.lua_tonumber(L, 4); - int _layerMask = LuaAPI.xlua_tointeger(L, 5); - - var gen_ret = UnityEngine.Physics2D.OverlapCapsule( _point, _size, _direction, _angle, _layerMask ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 6&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)) - { - UnityEngine.Vector2 _point;translator.Get(L, 1, out _point); - UnityEngine.Vector2 _size;translator.Get(L, 2, out _size); - UnityEngine.CapsuleDirection2D _direction;translator.Get(L, 3, out _direction); - float _angle = (float)LuaAPI.lua_tonumber(L, 4); - int _layerMask = LuaAPI.xlua_tointeger(L, 5); - float _minDepth = (float)LuaAPI.lua_tonumber(L, 6); - - var gen_ret = UnityEngine.Physics2D.OverlapCapsule( _point, _size, _direction, _angle, _layerMask, _minDepth ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 7&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 7)) - { - UnityEngine.Vector2 _point;translator.Get(L, 1, out _point); - UnityEngine.Vector2 _size;translator.Get(L, 2, out _size); - UnityEngine.CapsuleDirection2D _direction;translator.Get(L, 3, out _direction); - float _angle = (float)LuaAPI.lua_tonumber(L, 4); - int _layerMask = LuaAPI.xlua_tointeger(L, 5); - float _minDepth = (float)LuaAPI.lua_tonumber(L, 6); - float _maxDepth = (float)LuaAPI.lua_tonumber(L, 7); - - var gen_ret = UnityEngine.Physics2D.OverlapCapsule( _point, _size, _direction, _angle, _layerMask, _minDepth, _maxDepth ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 6&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& translator.Assignable(L, 5)&& translator.Assignable(L, 6)) - { - UnityEngine.Vector2 _point;translator.Get(L, 1, out _point); - UnityEngine.Vector2 _size;translator.Get(L, 2, out _size); - UnityEngine.CapsuleDirection2D _direction;translator.Get(L, 3, out _direction); - float _angle = (float)LuaAPI.lua_tonumber(L, 4); - UnityEngine.ContactFilter2D _contactFilter;translator.Get(L, 5, out _contactFilter); - UnityEngine.Collider2D[] _results = (UnityEngine.Collider2D[])translator.GetObject(L, 6, typeof(UnityEngine.Collider2D[])); - - var gen_ret = UnityEngine.Physics2D.OverlapCapsule( _point, _size, _direction, _angle, _contactFilter, _results ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 6&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& translator.Assignable(L, 5)&& translator.Assignable>(L, 6)) - { - UnityEngine.Vector2 _point;translator.Get(L, 1, out _point); - UnityEngine.Vector2 _size;translator.Get(L, 2, out _size); - UnityEngine.CapsuleDirection2D _direction;translator.Get(L, 3, out _direction); - float _angle = (float)LuaAPI.lua_tonumber(L, 4); - UnityEngine.ContactFilter2D _contactFilter;translator.Get(L, 5, out _contactFilter); - System.Collections.Generic.List _results = (System.Collections.Generic.List)translator.GetObject(L, 6, typeof(System.Collections.Generic.List)); - - var gen_ret = UnityEngine.Physics2D.OverlapCapsule( _point, _size, _direction, _angle, _contactFilter, _results ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Physics2D.OverlapCapsule!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OverlapCapsuleAll_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 4&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - UnityEngine.Vector2 _point;translator.Get(L, 1, out _point); - UnityEngine.Vector2 _size;translator.Get(L, 2, out _size); - UnityEngine.CapsuleDirection2D _direction;translator.Get(L, 3, out _direction); - float _angle = (float)LuaAPI.lua_tonumber(L, 4); - - var gen_ret = UnityEngine.Physics2D.OverlapCapsuleAll( _point, _size, _direction, _angle ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 5&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - UnityEngine.Vector2 _point;translator.Get(L, 1, out _point); - UnityEngine.Vector2 _size;translator.Get(L, 2, out _size); - UnityEngine.CapsuleDirection2D _direction;translator.Get(L, 3, out _direction); - float _angle = (float)LuaAPI.lua_tonumber(L, 4); - int _layerMask = LuaAPI.xlua_tointeger(L, 5); - - var gen_ret = UnityEngine.Physics2D.OverlapCapsuleAll( _point, _size, _direction, _angle, _layerMask ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 6&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)) - { - UnityEngine.Vector2 _point;translator.Get(L, 1, out _point); - UnityEngine.Vector2 _size;translator.Get(L, 2, out _size); - UnityEngine.CapsuleDirection2D _direction;translator.Get(L, 3, out _direction); - float _angle = (float)LuaAPI.lua_tonumber(L, 4); - int _layerMask = LuaAPI.xlua_tointeger(L, 5); - float _minDepth = (float)LuaAPI.lua_tonumber(L, 6); - - var gen_ret = UnityEngine.Physics2D.OverlapCapsuleAll( _point, _size, _direction, _angle, _layerMask, _minDepth ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 7&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 7)) - { - UnityEngine.Vector2 _point;translator.Get(L, 1, out _point); - UnityEngine.Vector2 _size;translator.Get(L, 2, out _size); - UnityEngine.CapsuleDirection2D _direction;translator.Get(L, 3, out _direction); - float _angle = (float)LuaAPI.lua_tonumber(L, 4); - int _layerMask = LuaAPI.xlua_tointeger(L, 5); - float _minDepth = (float)LuaAPI.lua_tonumber(L, 6); - float _maxDepth = (float)LuaAPI.lua_tonumber(L, 7); - - var gen_ret = UnityEngine.Physics2D.OverlapCapsuleAll( _point, _size, _direction, _angle, _layerMask, _minDepth, _maxDepth ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Physics2D.OverlapCapsuleAll!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OverlapCapsuleNonAlloc_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 5&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& translator.Assignable(L, 5)) - { - UnityEngine.Vector2 _point;translator.Get(L, 1, out _point); - UnityEngine.Vector2 _size;translator.Get(L, 2, out _size); - UnityEngine.CapsuleDirection2D _direction;translator.Get(L, 3, out _direction); - float _angle = (float)LuaAPI.lua_tonumber(L, 4); - UnityEngine.Collider2D[] _results = (UnityEngine.Collider2D[])translator.GetObject(L, 5, typeof(UnityEngine.Collider2D[])); - - var gen_ret = UnityEngine.Physics2D.OverlapCapsuleNonAlloc( _point, _size, _direction, _angle, _results ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 6&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& translator.Assignable(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)) - { - UnityEngine.Vector2 _point;translator.Get(L, 1, out _point); - UnityEngine.Vector2 _size;translator.Get(L, 2, out _size); - UnityEngine.CapsuleDirection2D _direction;translator.Get(L, 3, out _direction); - float _angle = (float)LuaAPI.lua_tonumber(L, 4); - UnityEngine.Collider2D[] _results = (UnityEngine.Collider2D[])translator.GetObject(L, 5, typeof(UnityEngine.Collider2D[])); - int _layerMask = LuaAPI.xlua_tointeger(L, 6); - - var gen_ret = UnityEngine.Physics2D.OverlapCapsuleNonAlloc( _point, _size, _direction, _angle, _results, _layerMask ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 7&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& translator.Assignable(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 7)) - { - UnityEngine.Vector2 _point;translator.Get(L, 1, out _point); - UnityEngine.Vector2 _size;translator.Get(L, 2, out _size); - UnityEngine.CapsuleDirection2D _direction;translator.Get(L, 3, out _direction); - float _angle = (float)LuaAPI.lua_tonumber(L, 4); - UnityEngine.Collider2D[] _results = (UnityEngine.Collider2D[])translator.GetObject(L, 5, typeof(UnityEngine.Collider2D[])); - int _layerMask = LuaAPI.xlua_tointeger(L, 6); - float _minDepth = (float)LuaAPI.lua_tonumber(L, 7); - - var gen_ret = UnityEngine.Physics2D.OverlapCapsuleNonAlloc( _point, _size, _direction, _angle, _results, _layerMask, _minDepth ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 8&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& translator.Assignable(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 7)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 8)) - { - UnityEngine.Vector2 _point;translator.Get(L, 1, out _point); - UnityEngine.Vector2 _size;translator.Get(L, 2, out _size); - UnityEngine.CapsuleDirection2D _direction;translator.Get(L, 3, out _direction); - float _angle = (float)LuaAPI.lua_tonumber(L, 4); - UnityEngine.Collider2D[] _results = (UnityEngine.Collider2D[])translator.GetObject(L, 5, typeof(UnityEngine.Collider2D[])); - int _layerMask = LuaAPI.xlua_tointeger(L, 6); - float _minDepth = (float)LuaAPI.lua_tonumber(L, 7); - float _maxDepth = (float)LuaAPI.lua_tonumber(L, 8); - - var gen_ret = UnityEngine.Physics2D.OverlapCapsuleNonAlloc( _point, _size, _direction, _angle, _results, _layerMask, _minDepth, _maxDepth ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Physics2D.OverlapCapsuleNonAlloc!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OverlapCollider_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)) - { - UnityEngine.Collider2D _collider = (UnityEngine.Collider2D)translator.GetObject(L, 1, typeof(UnityEngine.Collider2D)); - UnityEngine.ContactFilter2D _contactFilter;translator.Get(L, 2, out _contactFilter); - UnityEngine.Collider2D[] _results = (UnityEngine.Collider2D[])translator.GetObject(L, 3, typeof(UnityEngine.Collider2D[])); - - var gen_ret = UnityEngine.Physics2D.OverlapCollider( _collider, _contactFilter, _results ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable>(L, 3)) - { - UnityEngine.Collider2D _collider = (UnityEngine.Collider2D)translator.GetObject(L, 1, typeof(UnityEngine.Collider2D)); - UnityEngine.ContactFilter2D _contactFilter;translator.Get(L, 2, out _contactFilter); - System.Collections.Generic.List _results = (System.Collections.Generic.List)translator.GetObject(L, 3, typeof(System.Collections.Generic.List)); - - var gen_ret = UnityEngine.Physics2D.OverlapCollider( _collider, _contactFilter, _results ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Physics2D.OverlapCollider!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetContacts_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)) - { - UnityEngine.Collider2D _collider = (UnityEngine.Collider2D)translator.GetObject(L, 1, typeof(UnityEngine.Collider2D)); - UnityEngine.ContactPoint2D[] _contacts = (UnityEngine.ContactPoint2D[])translator.GetObject(L, 2, typeof(UnityEngine.ContactPoint2D[])); - - var gen_ret = UnityEngine.Physics2D.GetContacts( _collider, _contacts ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)) - { - UnityEngine.Collider2D _collider = (UnityEngine.Collider2D)translator.GetObject(L, 1, typeof(UnityEngine.Collider2D)); - UnityEngine.Collider2D[] _colliders = (UnityEngine.Collider2D[])translator.GetObject(L, 2, typeof(UnityEngine.Collider2D[])); - - var gen_ret = UnityEngine.Physics2D.GetContacts( _collider, _colliders ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)) - { - UnityEngine.Rigidbody2D _rigidbody = (UnityEngine.Rigidbody2D)translator.GetObject(L, 1, typeof(UnityEngine.Rigidbody2D)); - UnityEngine.ContactPoint2D[] _contacts = (UnityEngine.ContactPoint2D[])translator.GetObject(L, 2, typeof(UnityEngine.ContactPoint2D[])); - - var gen_ret = UnityEngine.Physics2D.GetContacts( _rigidbody, _contacts ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)) - { - UnityEngine.Rigidbody2D _rigidbody = (UnityEngine.Rigidbody2D)translator.GetObject(L, 1, typeof(UnityEngine.Rigidbody2D)); - UnityEngine.Collider2D[] _colliders = (UnityEngine.Collider2D[])translator.GetObject(L, 2, typeof(UnityEngine.Collider2D[])); - - var gen_ret = UnityEngine.Physics2D.GetContacts( _rigidbody, _colliders ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 1)&& translator.Assignable>(L, 2)) - { - UnityEngine.Collider2D _collider = (UnityEngine.Collider2D)translator.GetObject(L, 1, typeof(UnityEngine.Collider2D)); - System.Collections.Generic.List _contacts = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - - var gen_ret = UnityEngine.Physics2D.GetContacts( _collider, _contacts ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 1)&& translator.Assignable>(L, 2)) - { - UnityEngine.Collider2D _collider = (UnityEngine.Collider2D)translator.GetObject(L, 1, typeof(UnityEngine.Collider2D)); - System.Collections.Generic.List _colliders = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - - var gen_ret = UnityEngine.Physics2D.GetContacts( _collider, _colliders ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 1)&& translator.Assignable>(L, 2)) - { - UnityEngine.Rigidbody2D _rigidbody = (UnityEngine.Rigidbody2D)translator.GetObject(L, 1, typeof(UnityEngine.Rigidbody2D)); - System.Collections.Generic.List _contacts = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - - var gen_ret = UnityEngine.Physics2D.GetContacts( _rigidbody, _contacts ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 1)&& translator.Assignable>(L, 2)) - { - UnityEngine.Rigidbody2D _rigidbody = (UnityEngine.Rigidbody2D)translator.GetObject(L, 1, typeof(UnityEngine.Rigidbody2D)); - System.Collections.Generic.List _colliders = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - - var gen_ret = UnityEngine.Physics2D.GetContacts( _rigidbody, _colliders ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)) - { - UnityEngine.Collider2D _collider = (UnityEngine.Collider2D)translator.GetObject(L, 1, typeof(UnityEngine.Collider2D)); - UnityEngine.ContactFilter2D _contactFilter;translator.Get(L, 2, out _contactFilter); - UnityEngine.ContactPoint2D[] _contacts = (UnityEngine.ContactPoint2D[])translator.GetObject(L, 3, typeof(UnityEngine.ContactPoint2D[])); - - var gen_ret = UnityEngine.Physics2D.GetContacts( _collider, _contactFilter, _contacts ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)) - { - UnityEngine.Collider2D _collider = (UnityEngine.Collider2D)translator.GetObject(L, 1, typeof(UnityEngine.Collider2D)); - UnityEngine.ContactFilter2D _contactFilter;translator.Get(L, 2, out _contactFilter); - UnityEngine.Collider2D[] _colliders = (UnityEngine.Collider2D[])translator.GetObject(L, 3, typeof(UnityEngine.Collider2D[])); - - var gen_ret = UnityEngine.Physics2D.GetContacts( _collider, _contactFilter, _colliders ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)) - { - UnityEngine.Rigidbody2D _rigidbody = (UnityEngine.Rigidbody2D)translator.GetObject(L, 1, typeof(UnityEngine.Rigidbody2D)); - UnityEngine.ContactFilter2D _contactFilter;translator.Get(L, 2, out _contactFilter); - UnityEngine.ContactPoint2D[] _contacts = (UnityEngine.ContactPoint2D[])translator.GetObject(L, 3, typeof(UnityEngine.ContactPoint2D[])); - - var gen_ret = UnityEngine.Physics2D.GetContacts( _rigidbody, _contactFilter, _contacts ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)) - { - UnityEngine.Rigidbody2D _rigidbody = (UnityEngine.Rigidbody2D)translator.GetObject(L, 1, typeof(UnityEngine.Rigidbody2D)); - UnityEngine.ContactFilter2D _contactFilter;translator.Get(L, 2, out _contactFilter); - UnityEngine.Collider2D[] _colliders = (UnityEngine.Collider2D[])translator.GetObject(L, 3, typeof(UnityEngine.Collider2D[])); - - var gen_ret = UnityEngine.Physics2D.GetContacts( _rigidbody, _contactFilter, _colliders ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable>(L, 3)) - { - UnityEngine.Collider2D _collider = (UnityEngine.Collider2D)translator.GetObject(L, 1, typeof(UnityEngine.Collider2D)); - UnityEngine.ContactFilter2D _contactFilter;translator.Get(L, 2, out _contactFilter); - System.Collections.Generic.List _contacts = (System.Collections.Generic.List)translator.GetObject(L, 3, typeof(System.Collections.Generic.List)); - - var gen_ret = UnityEngine.Physics2D.GetContacts( _collider, _contactFilter, _contacts ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable>(L, 3)) - { - UnityEngine.Collider2D _collider = (UnityEngine.Collider2D)translator.GetObject(L, 1, typeof(UnityEngine.Collider2D)); - UnityEngine.ContactFilter2D _contactFilter;translator.Get(L, 2, out _contactFilter); - System.Collections.Generic.List _colliders = (System.Collections.Generic.List)translator.GetObject(L, 3, typeof(System.Collections.Generic.List)); - - var gen_ret = UnityEngine.Physics2D.GetContacts( _collider, _contactFilter, _colliders ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable>(L, 3)) - { - UnityEngine.Rigidbody2D _rigidbody = (UnityEngine.Rigidbody2D)translator.GetObject(L, 1, typeof(UnityEngine.Rigidbody2D)); - UnityEngine.ContactFilter2D _contactFilter;translator.Get(L, 2, out _contactFilter); - System.Collections.Generic.List _contacts = (System.Collections.Generic.List)translator.GetObject(L, 3, typeof(System.Collections.Generic.List)); - - var gen_ret = UnityEngine.Physics2D.GetContacts( _rigidbody, _contactFilter, _contacts ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable>(L, 3)) - { - UnityEngine.Rigidbody2D _rigidbody = (UnityEngine.Rigidbody2D)translator.GetObject(L, 1, typeof(UnityEngine.Rigidbody2D)); - UnityEngine.ContactFilter2D _contactFilter;translator.Get(L, 2, out _contactFilter); - System.Collections.Generic.List _colliders = (System.Collections.Generic.List)translator.GetObject(L, 3, typeof(System.Collections.Generic.List)); - - var gen_ret = UnityEngine.Physics2D.GetContacts( _rigidbody, _contactFilter, _colliders ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)) - { - UnityEngine.Collider2D _collider1 = (UnityEngine.Collider2D)translator.GetObject(L, 1, typeof(UnityEngine.Collider2D)); - UnityEngine.Collider2D _collider2 = (UnityEngine.Collider2D)translator.GetObject(L, 2, typeof(UnityEngine.Collider2D)); - UnityEngine.ContactFilter2D _contactFilter;translator.Get(L, 3, out _contactFilter); - UnityEngine.ContactPoint2D[] _contacts = (UnityEngine.ContactPoint2D[])translator.GetObject(L, 4, typeof(UnityEngine.ContactPoint2D[])); - - var gen_ret = UnityEngine.Physics2D.GetContacts( _collider1, _collider2, _contactFilter, _contacts ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable>(L, 4)) - { - UnityEngine.Collider2D _collider1 = (UnityEngine.Collider2D)translator.GetObject(L, 1, typeof(UnityEngine.Collider2D)); - UnityEngine.Collider2D _collider2 = (UnityEngine.Collider2D)translator.GetObject(L, 2, typeof(UnityEngine.Collider2D)); - UnityEngine.ContactFilter2D _contactFilter;translator.Get(L, 3, out _contactFilter); - System.Collections.Generic.List _contacts = (System.Collections.Generic.List)translator.GetObject(L, 4, typeof(System.Collections.Generic.List)); - - var gen_ret = UnityEngine.Physics2D.GetContacts( _collider1, _collider2, _contactFilter, _contacts ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Physics2D.GetContacts!"); - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_defaultPhysicsScene(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, UnityEngine.Physics2D.defaultPhysicsScene); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_velocityIterations(RealStatePtr L) - { - try { - - LuaAPI.xlua_pushinteger(L, UnityEngine.Physics2D.velocityIterations); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_positionIterations(RealStatePtr L) - { - try { - - LuaAPI.xlua_pushinteger(L, UnityEngine.Physics2D.positionIterations); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_gravity(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.PushUnityEngineVector2(L, UnityEngine.Physics2D.gravity); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_queriesHitTriggers(RealStatePtr L) - { - try { - - LuaAPI.lua_pushboolean(L, UnityEngine.Physics2D.queriesHitTriggers); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_queriesStartInColliders(RealStatePtr L) - { - try { - - LuaAPI.lua_pushboolean(L, UnityEngine.Physics2D.queriesStartInColliders); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_callbacksOnDisable(RealStatePtr L) - { - try { - - LuaAPI.lua_pushboolean(L, UnityEngine.Physics2D.callbacksOnDisable); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_reuseCollisionCallbacks(RealStatePtr L) - { - try { - - LuaAPI.lua_pushboolean(L, UnityEngine.Physics2D.reuseCollisionCallbacks); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_autoSyncTransforms(RealStatePtr L) - { - try { - - LuaAPI.lua_pushboolean(L, UnityEngine.Physics2D.autoSyncTransforms); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_simulationMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, UnityEngine.Physics2D.simulationMode); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_jobOptions(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, UnityEngine.Physics2D.jobOptions); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_velocityThreshold(RealStatePtr L) - { - try { - - LuaAPI.lua_pushnumber(L, UnityEngine.Physics2D.velocityThreshold); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_maxLinearCorrection(RealStatePtr L) - { - try { - - LuaAPI.lua_pushnumber(L, UnityEngine.Physics2D.maxLinearCorrection); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_maxAngularCorrection(RealStatePtr L) - { - try { - - LuaAPI.lua_pushnumber(L, UnityEngine.Physics2D.maxAngularCorrection); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_maxTranslationSpeed(RealStatePtr L) - { - try { - - LuaAPI.lua_pushnumber(L, UnityEngine.Physics2D.maxTranslationSpeed); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_maxRotationSpeed(RealStatePtr L) - { - try { - - LuaAPI.lua_pushnumber(L, UnityEngine.Physics2D.maxRotationSpeed); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_defaultContactOffset(RealStatePtr L) - { - try { - - LuaAPI.lua_pushnumber(L, UnityEngine.Physics2D.defaultContactOffset); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_baumgarteScale(RealStatePtr L) - { - try { - - LuaAPI.lua_pushnumber(L, UnityEngine.Physics2D.baumgarteScale); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_baumgarteTOIScale(RealStatePtr L) - { - try { - - LuaAPI.lua_pushnumber(L, UnityEngine.Physics2D.baumgarteTOIScale); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_timeToSleep(RealStatePtr L) - { - try { - - LuaAPI.lua_pushnumber(L, UnityEngine.Physics2D.timeToSleep); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_linearSleepTolerance(RealStatePtr L) - { - try { - - LuaAPI.lua_pushnumber(L, UnityEngine.Physics2D.linearSleepTolerance); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_angularSleepTolerance(RealStatePtr L) - { - try { - - LuaAPI.lua_pushnumber(L, UnityEngine.Physics2D.angularSleepTolerance); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_alwaysShowColliders(RealStatePtr L) - { - try { - - LuaAPI.lua_pushboolean(L, UnityEngine.Physics2D.alwaysShowColliders); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_showColliderSleep(RealStatePtr L) - { - try { - - LuaAPI.lua_pushboolean(L, UnityEngine.Physics2D.showColliderSleep); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_showColliderContacts(RealStatePtr L) - { - try { - - LuaAPI.lua_pushboolean(L, UnityEngine.Physics2D.showColliderContacts); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_showColliderAABB(RealStatePtr L) - { - try { - - LuaAPI.lua_pushboolean(L, UnityEngine.Physics2D.showColliderAABB); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_contactArrowScale(RealStatePtr L) - { - try { - - LuaAPI.lua_pushnumber(L, UnityEngine.Physics2D.contactArrowScale); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_colliderAwakeColor(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.PushUnityEngineColor(L, UnityEngine.Physics2D.colliderAwakeColor); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_colliderAsleepColor(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.PushUnityEngineColor(L, UnityEngine.Physics2D.colliderAsleepColor); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_colliderContactColor(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.PushUnityEngineColor(L, UnityEngine.Physics2D.colliderContactColor); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_colliderAABBColor(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.PushUnityEngineColor(L, UnityEngine.Physics2D.colliderAABBColor); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_velocityIterations(RealStatePtr L) - { - try { - - UnityEngine.Physics2D.velocityIterations = LuaAPI.xlua_tointeger(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_positionIterations(RealStatePtr L) - { - try { - - UnityEngine.Physics2D.positionIterations = LuaAPI.xlua_tointeger(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_gravity(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - UnityEngine.Vector2 gen_value;translator.Get(L, 1, out gen_value); - UnityEngine.Physics2D.gravity = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_queriesHitTriggers(RealStatePtr L) - { - try { - - UnityEngine.Physics2D.queriesHitTriggers = LuaAPI.lua_toboolean(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_queriesStartInColliders(RealStatePtr L) - { - try { - - UnityEngine.Physics2D.queriesStartInColliders = LuaAPI.lua_toboolean(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_callbacksOnDisable(RealStatePtr L) - { - try { - - UnityEngine.Physics2D.callbacksOnDisable = LuaAPI.lua_toboolean(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_reuseCollisionCallbacks(RealStatePtr L) - { - try { - - UnityEngine.Physics2D.reuseCollisionCallbacks = LuaAPI.lua_toboolean(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_autoSyncTransforms(RealStatePtr L) - { - try { - - UnityEngine.Physics2D.autoSyncTransforms = LuaAPI.lua_toboolean(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_simulationMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - UnityEngine.SimulationMode2D gen_value;translator.Get(L, 1, out gen_value); - UnityEngine.Physics2D.simulationMode = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_jobOptions(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - UnityEngine.PhysicsJobOptions2D gen_value;translator.Get(L, 1, out gen_value); - UnityEngine.Physics2D.jobOptions = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_velocityThreshold(RealStatePtr L) - { - try { - - UnityEngine.Physics2D.velocityThreshold = (float)LuaAPI.lua_tonumber(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_maxLinearCorrection(RealStatePtr L) - { - try { - - UnityEngine.Physics2D.maxLinearCorrection = (float)LuaAPI.lua_tonumber(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_maxAngularCorrection(RealStatePtr L) - { - try { - - UnityEngine.Physics2D.maxAngularCorrection = (float)LuaAPI.lua_tonumber(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_maxTranslationSpeed(RealStatePtr L) - { - try { - - UnityEngine.Physics2D.maxTranslationSpeed = (float)LuaAPI.lua_tonumber(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_maxRotationSpeed(RealStatePtr L) - { - try { - - UnityEngine.Physics2D.maxRotationSpeed = (float)LuaAPI.lua_tonumber(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_defaultContactOffset(RealStatePtr L) - { - try { - - UnityEngine.Physics2D.defaultContactOffset = (float)LuaAPI.lua_tonumber(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_baumgarteScale(RealStatePtr L) - { - try { - - UnityEngine.Physics2D.baumgarteScale = (float)LuaAPI.lua_tonumber(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_baumgarteTOIScale(RealStatePtr L) - { - try { - - UnityEngine.Physics2D.baumgarteTOIScale = (float)LuaAPI.lua_tonumber(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_timeToSleep(RealStatePtr L) - { - try { - - UnityEngine.Physics2D.timeToSleep = (float)LuaAPI.lua_tonumber(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_linearSleepTolerance(RealStatePtr L) - { - try { - - UnityEngine.Physics2D.linearSleepTolerance = (float)LuaAPI.lua_tonumber(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_angularSleepTolerance(RealStatePtr L) - { - try { - - UnityEngine.Physics2D.angularSleepTolerance = (float)LuaAPI.lua_tonumber(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_alwaysShowColliders(RealStatePtr L) - { - try { - - UnityEngine.Physics2D.alwaysShowColliders = LuaAPI.lua_toboolean(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_showColliderSleep(RealStatePtr L) - { - try { - - UnityEngine.Physics2D.showColliderSleep = LuaAPI.lua_toboolean(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_showColliderContacts(RealStatePtr L) - { - try { - - UnityEngine.Physics2D.showColliderContacts = LuaAPI.lua_toboolean(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_showColliderAABB(RealStatePtr L) - { - try { - - UnityEngine.Physics2D.showColliderAABB = LuaAPI.lua_toboolean(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_contactArrowScale(RealStatePtr L) - { - try { - - UnityEngine.Physics2D.contactArrowScale = (float)LuaAPI.lua_tonumber(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_colliderAwakeColor(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - UnityEngine.Color gen_value;translator.Get(L, 1, out gen_value); - UnityEngine.Physics2D.colliderAwakeColor = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_colliderAsleepColor(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - UnityEngine.Color gen_value;translator.Get(L, 1, out gen_value); - UnityEngine.Physics2D.colliderAsleepColor = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_colliderContactColor(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - UnityEngine.Color gen_value;translator.Get(L, 1, out gen_value); - UnityEngine.Physics2D.colliderContactColor = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_colliderAABBColor(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - UnityEngine.Color gen_value;translator.Get(L, 1, out gen_value); - UnityEngine.Physics2D.colliderAABBColor = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_PhysicsJobOptions2DWrap.cs b/Assets/XLua/Gen/UnityEngine_PhysicsJobOptions2DWrap.cs deleted file mode 100644 index b494e45eb..000000000 --- a/Assets/XLua/Gen/UnityEngine_PhysicsJobOptions2DWrap.cs +++ /dev/null @@ -1,643 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEnginePhysicsJobOptions2DWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.PhysicsJobOptions2D); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 17, 17); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "useMultithreading", _g_get_useMultithreading); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "useConsistencySorting", _g_get_useConsistencySorting); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "interpolationPosesPerJob", _g_get_interpolationPosesPerJob); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "newContactsPerJob", _g_get_newContactsPerJob); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "collideContactsPerJob", _g_get_collideContactsPerJob); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "clearFlagsPerJob", _g_get_clearFlagsPerJob); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "clearBodyForcesPerJob", _g_get_clearBodyForcesPerJob); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "syncDiscreteFixturesPerJob", _g_get_syncDiscreteFixturesPerJob); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "syncContinuousFixturesPerJob", _g_get_syncContinuousFixturesPerJob); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "findNearestContactsPerJob", _g_get_findNearestContactsPerJob); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "updateTriggerContactsPerJob", _g_get_updateTriggerContactsPerJob); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "islandSolverCostThreshold", _g_get_islandSolverCostThreshold); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "islandSolverBodyCostScale", _g_get_islandSolverBodyCostScale); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "islandSolverContactCostScale", _g_get_islandSolverContactCostScale); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "islandSolverJointCostScale", _g_get_islandSolverJointCostScale); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "islandSolverBodiesPerJob", _g_get_islandSolverBodiesPerJob); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "islandSolverContactsPerJob", _g_get_islandSolverContactsPerJob); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "useMultithreading", _s_set_useMultithreading); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "useConsistencySorting", _s_set_useConsistencySorting); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "interpolationPosesPerJob", _s_set_interpolationPosesPerJob); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "newContactsPerJob", _s_set_newContactsPerJob); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "collideContactsPerJob", _s_set_collideContactsPerJob); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "clearFlagsPerJob", _s_set_clearFlagsPerJob); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "clearBodyForcesPerJob", _s_set_clearBodyForcesPerJob); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "syncDiscreteFixturesPerJob", _s_set_syncDiscreteFixturesPerJob); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "syncContinuousFixturesPerJob", _s_set_syncContinuousFixturesPerJob); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "findNearestContactsPerJob", _s_set_findNearestContactsPerJob); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "updateTriggerContactsPerJob", _s_set_updateTriggerContactsPerJob); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "islandSolverCostThreshold", _s_set_islandSolverCostThreshold); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "islandSolverBodyCostScale", _s_set_islandSolverBodyCostScale); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "islandSolverContactCostScale", _s_set_islandSolverContactCostScale); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "islandSolverJointCostScale", _s_set_islandSolverJointCostScale); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "islandSolverBodiesPerJob", _s_set_islandSolverBodiesPerJob); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "islandSolverContactsPerJob", _s_set_islandSolverContactsPerJob); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(UnityEngine.PhysicsJobOptions2D)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.PhysicsJobOptions2D constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_useMultithreading(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.PhysicsJobOptions2D gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.useMultithreading); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_useConsistencySorting(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.PhysicsJobOptions2D gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.useConsistencySorting); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_interpolationPosesPerJob(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.PhysicsJobOptions2D gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.interpolationPosesPerJob); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_newContactsPerJob(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.PhysicsJobOptions2D gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.newContactsPerJob); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_collideContactsPerJob(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.PhysicsJobOptions2D gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.collideContactsPerJob); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_clearFlagsPerJob(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.PhysicsJobOptions2D gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.clearFlagsPerJob); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_clearBodyForcesPerJob(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.PhysicsJobOptions2D gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.clearBodyForcesPerJob); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_syncDiscreteFixturesPerJob(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.PhysicsJobOptions2D gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.syncDiscreteFixturesPerJob); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_syncContinuousFixturesPerJob(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.PhysicsJobOptions2D gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.syncContinuousFixturesPerJob); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_findNearestContactsPerJob(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.PhysicsJobOptions2D gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.findNearestContactsPerJob); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_updateTriggerContactsPerJob(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.PhysicsJobOptions2D gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.updateTriggerContactsPerJob); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_islandSolverCostThreshold(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.PhysicsJobOptions2D gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.islandSolverCostThreshold); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_islandSolverBodyCostScale(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.PhysicsJobOptions2D gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.islandSolverBodyCostScale); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_islandSolverContactCostScale(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.PhysicsJobOptions2D gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.islandSolverContactCostScale); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_islandSolverJointCostScale(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.PhysicsJobOptions2D gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.islandSolverJointCostScale); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_islandSolverBodiesPerJob(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.PhysicsJobOptions2D gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.islandSolverBodiesPerJob); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_islandSolverContactsPerJob(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.PhysicsJobOptions2D gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.islandSolverContactsPerJob); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_useMultithreading(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.PhysicsJobOptions2D gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.useMultithreading = LuaAPI.lua_toboolean(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_useConsistencySorting(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.PhysicsJobOptions2D gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.useConsistencySorting = LuaAPI.lua_toboolean(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_interpolationPosesPerJob(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.PhysicsJobOptions2D gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.interpolationPosesPerJob = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_newContactsPerJob(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.PhysicsJobOptions2D gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.newContactsPerJob = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_collideContactsPerJob(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.PhysicsJobOptions2D gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.collideContactsPerJob = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_clearFlagsPerJob(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.PhysicsJobOptions2D gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.clearFlagsPerJob = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_clearBodyForcesPerJob(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.PhysicsJobOptions2D gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.clearBodyForcesPerJob = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_syncDiscreteFixturesPerJob(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.PhysicsJobOptions2D gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.syncDiscreteFixturesPerJob = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_syncContinuousFixturesPerJob(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.PhysicsJobOptions2D gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.syncContinuousFixturesPerJob = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_findNearestContactsPerJob(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.PhysicsJobOptions2D gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.findNearestContactsPerJob = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_updateTriggerContactsPerJob(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.PhysicsJobOptions2D gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.updateTriggerContactsPerJob = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_islandSolverCostThreshold(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.PhysicsJobOptions2D gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.islandSolverCostThreshold = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_islandSolverBodyCostScale(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.PhysicsJobOptions2D gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.islandSolverBodyCostScale = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_islandSolverContactCostScale(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.PhysicsJobOptions2D gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.islandSolverContactCostScale = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_islandSolverJointCostScale(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.PhysicsJobOptions2D gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.islandSolverJointCostScale = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_islandSolverBodiesPerJob(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.PhysicsJobOptions2D gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.islandSolverBodiesPerJob = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_islandSolverContactsPerJob(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.PhysicsJobOptions2D gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.islandSolverContactsPerJob = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_PhysicsMaterial2DWrap.cs b/Assets/XLua/Gen/UnityEngine_PhysicsMaterial2DWrap.cs deleted file mode 100644 index bde46b75b..000000000 --- a/Assets/XLua/Gen/UnityEngine_PhysicsMaterial2DWrap.cs +++ /dev/null @@ -1,155 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEnginePhysicsMaterial2DWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.PhysicsMaterial2D); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 2, 2); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "bounciness", _g_get_bounciness); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "friction", _g_get_friction); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "bounciness", _s_set_bounciness); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "friction", _s_set_friction); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.PhysicsMaterial2D(); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 2 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _name = LuaAPI.lua_tostring(L, 2); - - var gen_ret = new UnityEngine.PhysicsMaterial2D(_name); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.PhysicsMaterial2D constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_bounciness(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.PhysicsMaterial2D gen_to_be_invoked = (UnityEngine.PhysicsMaterial2D)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.bounciness); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_friction(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.PhysicsMaterial2D gen_to_be_invoked = (UnityEngine.PhysicsMaterial2D)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.friction); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_bounciness(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.PhysicsMaterial2D gen_to_be_invoked = (UnityEngine.PhysicsMaterial2D)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.bounciness = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_friction(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.PhysicsMaterial2D gen_to_be_invoked = (UnityEngine.PhysicsMaterial2D)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.friction = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_PhysicsScene2DWrap.cs b/Assets/XLua/Gen/UnityEngine_PhysicsScene2DWrap.cs deleted file mode 100644 index f7053ba62..000000000 --- a/Assets/XLua/Gen/UnityEngine_PhysicsScene2DWrap.cs +++ /dev/null @@ -1,1853 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEnginePhysicsScene2DWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.PhysicsScene2D); - Utils.BeginObjectRegister(type, L, translator, 1, 17, 0, 0); - Utils.RegisterFunc(L, Utils.OBJ_META_IDX, "__eq", __EqMeta); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ToString", _m_ToString); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetHashCode", _m_GetHashCode); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Equals", _m_Equals); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsValid", _m_IsValid); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsEmpty", _m_IsEmpty); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Simulate", _m_Simulate); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Linecast", _m_Linecast); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Raycast", _m_Raycast); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "CircleCast", _m_CircleCast); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "BoxCast", _m_BoxCast); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "CapsuleCast", _m_CapsuleCast); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetRayIntersection", _m_GetRayIntersection); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OverlapPoint", _m_OverlapPoint); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OverlapCircle", _m_OverlapCircle); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OverlapBox", _m_OverlapBox); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OverlapArea", _m_OverlapArea); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OverlapCapsule", _m_OverlapCapsule); - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 2, 0, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "OverlapCollider", _m_OverlapCollider_xlua_st_); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(UnityEngine.PhysicsScene2D)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.PhysicsScene2D constructor!"); - - } - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __EqMeta(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - if (translator.Assignable(L, 1) && translator.Assignable(L, 2)) - { - UnityEngine.PhysicsScene2D leftside;translator.Get(L, 1, out leftside); - UnityEngine.PhysicsScene2D rightside;translator.Get(L, 2, out rightside); - - LuaAPI.lua_pushboolean(L, leftside == rightside); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to right hand of == operator, need UnityEngine.PhysicsScene2D!"); - - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ToString(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.PhysicsScene2D gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - - var gen_ret = gen_to_be_invoked.ToString( ); - LuaAPI.lua_pushstring(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetHashCode(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.PhysicsScene2D gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - - var gen_ret = gen_to_be_invoked.GetHashCode( ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Equals(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.PhysicsScene2D gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - object _other = translator.GetObject(L, 2, typeof(object)); - - var gen_ret = gen_to_be_invoked.Equals( _other ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.PhysicsScene2D _other;translator.Get(L, 2, out _other); - - var gen_ret = gen_to_be_invoked.Equals( _other ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.PhysicsScene2D.Equals!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_IsValid(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.PhysicsScene2D gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - - var gen_ret = gen_to_be_invoked.IsValid( ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_IsEmpty(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.PhysicsScene2D gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - - var gen_ret = gen_to_be_invoked.IsEmpty( ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Simulate(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.PhysicsScene2D gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - float _step = (float)LuaAPI.lua_tonumber(L, 2); - - var gen_ret = gen_to_be_invoked.Simulate( _step ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Linecast(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.PhysicsScene2D gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 4&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - UnityEngine.Vector2 _start;translator.Get(L, 2, out _start); - UnityEngine.Vector2 _end;translator.Get(L, 3, out _end); - int _layerMask = LuaAPI.xlua_tointeger(L, 4); - - var gen_ret = gen_to_be_invoked.Linecast( _start, _end, _layerMask ); - translator.Push(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)) - { - UnityEngine.Vector2 _start;translator.Get(L, 2, out _start); - UnityEngine.Vector2 _end;translator.Get(L, 3, out _end); - - var gen_ret = gen_to_be_invoked.Linecast( _start, _end ); - translator.Push(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)) - { - UnityEngine.Vector2 _start;translator.Get(L, 2, out _start); - UnityEngine.Vector2 _end;translator.Get(L, 3, out _end); - UnityEngine.ContactFilter2D _contactFilter;translator.Get(L, 4, out _contactFilter); - - var gen_ret = gen_to_be_invoked.Linecast( _start, _end, _contactFilter ); - translator.Push(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 5&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - UnityEngine.Vector2 _start;translator.Get(L, 2, out _start); - UnityEngine.Vector2 _end;translator.Get(L, 3, out _end); - UnityEngine.RaycastHit2D[] _results = (UnityEngine.RaycastHit2D[])translator.GetObject(L, 4, typeof(UnityEngine.RaycastHit2D[])); - int _layerMask = LuaAPI.xlua_tointeger(L, 5); - - var gen_ret = gen_to_be_invoked.Linecast( _start, _end, _results, _layerMask ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)) - { - UnityEngine.Vector2 _start;translator.Get(L, 2, out _start); - UnityEngine.Vector2 _end;translator.Get(L, 3, out _end); - UnityEngine.RaycastHit2D[] _results = (UnityEngine.RaycastHit2D[])translator.GetObject(L, 4, typeof(UnityEngine.RaycastHit2D[])); - - var gen_ret = gen_to_be_invoked.Linecast( _start, _end, _results ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 5&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)&& translator.Assignable(L, 5)) - { - UnityEngine.Vector2 _start;translator.Get(L, 2, out _start); - UnityEngine.Vector2 _end;translator.Get(L, 3, out _end); - UnityEngine.ContactFilter2D _contactFilter;translator.Get(L, 4, out _contactFilter); - UnityEngine.RaycastHit2D[] _results = (UnityEngine.RaycastHit2D[])translator.GetObject(L, 5, typeof(UnityEngine.RaycastHit2D[])); - - var gen_ret = gen_to_be_invoked.Linecast( _start, _end, _contactFilter, _results ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 5&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)&& translator.Assignable>(L, 5)) - { - UnityEngine.Vector2 _start;translator.Get(L, 2, out _start); - UnityEngine.Vector2 _end;translator.Get(L, 3, out _end); - UnityEngine.ContactFilter2D _contactFilter;translator.Get(L, 4, out _contactFilter); - System.Collections.Generic.List _results = (System.Collections.Generic.List)translator.GetObject(L, 5, typeof(System.Collections.Generic.List)); - - var gen_ret = gen_to_be_invoked.Linecast( _start, _end, _contactFilter, _results ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.PhysicsScene2D.Linecast!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Raycast(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.PhysicsScene2D gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 5&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - UnityEngine.Vector2 _origin;translator.Get(L, 2, out _origin); - UnityEngine.Vector2 _direction;translator.Get(L, 3, out _direction); - float _distance = (float)LuaAPI.lua_tonumber(L, 4); - int _layerMask = LuaAPI.xlua_tointeger(L, 5); - - var gen_ret = gen_to_be_invoked.Raycast( _origin, _direction, _distance, _layerMask ); - translator.Push(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - UnityEngine.Vector2 _origin;translator.Get(L, 2, out _origin); - UnityEngine.Vector2 _direction;translator.Get(L, 3, out _direction); - float _distance = (float)LuaAPI.lua_tonumber(L, 4); - - var gen_ret = gen_to_be_invoked.Raycast( _origin, _direction, _distance ); - translator.Push(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 5&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& translator.Assignable(L, 5)) - { - UnityEngine.Vector2 _origin;translator.Get(L, 2, out _origin); - UnityEngine.Vector2 _direction;translator.Get(L, 3, out _direction); - float _distance = (float)LuaAPI.lua_tonumber(L, 4); - UnityEngine.ContactFilter2D _contactFilter;translator.Get(L, 5, out _contactFilter); - - var gen_ret = gen_to_be_invoked.Raycast( _origin, _direction, _distance, _contactFilter ); - translator.Push(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 6&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& translator.Assignable(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)) - { - UnityEngine.Vector2 _origin;translator.Get(L, 2, out _origin); - UnityEngine.Vector2 _direction;translator.Get(L, 3, out _direction); - float _distance = (float)LuaAPI.lua_tonumber(L, 4); - UnityEngine.RaycastHit2D[] _results = (UnityEngine.RaycastHit2D[])translator.GetObject(L, 5, typeof(UnityEngine.RaycastHit2D[])); - int _layerMask = LuaAPI.xlua_tointeger(L, 6); - - var gen_ret = gen_to_be_invoked.Raycast( _origin, _direction, _distance, _results, _layerMask ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 5&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& translator.Assignable(L, 5)) - { - UnityEngine.Vector2 _origin;translator.Get(L, 2, out _origin); - UnityEngine.Vector2 _direction;translator.Get(L, 3, out _direction); - float _distance = (float)LuaAPI.lua_tonumber(L, 4); - UnityEngine.RaycastHit2D[] _results = (UnityEngine.RaycastHit2D[])translator.GetObject(L, 5, typeof(UnityEngine.RaycastHit2D[])); - - var gen_ret = gen_to_be_invoked.Raycast( _origin, _direction, _distance, _results ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 6&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& translator.Assignable(L, 5)&& translator.Assignable(L, 6)) - { - UnityEngine.Vector2 _origin;translator.Get(L, 2, out _origin); - UnityEngine.Vector2 _direction;translator.Get(L, 3, out _direction); - float _distance = (float)LuaAPI.lua_tonumber(L, 4); - UnityEngine.ContactFilter2D _contactFilter;translator.Get(L, 5, out _contactFilter); - UnityEngine.RaycastHit2D[] _results = (UnityEngine.RaycastHit2D[])translator.GetObject(L, 6, typeof(UnityEngine.RaycastHit2D[])); - - var gen_ret = gen_to_be_invoked.Raycast( _origin, _direction, _distance, _contactFilter, _results ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 6&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& translator.Assignable(L, 5)&& translator.Assignable>(L, 6)) - { - UnityEngine.Vector2 _origin;translator.Get(L, 2, out _origin); - UnityEngine.Vector2 _direction;translator.Get(L, 3, out _direction); - float _distance = (float)LuaAPI.lua_tonumber(L, 4); - UnityEngine.ContactFilter2D _contactFilter;translator.Get(L, 5, out _contactFilter); - System.Collections.Generic.List _results = (System.Collections.Generic.List)translator.GetObject(L, 6, typeof(System.Collections.Generic.List)); - - var gen_ret = gen_to_be_invoked.Raycast( _origin, _direction, _distance, _contactFilter, _results ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.PhysicsScene2D.Raycast!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CircleCast(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.PhysicsScene2D gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 6&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)) - { - UnityEngine.Vector2 _origin;translator.Get(L, 2, out _origin); - float _radius = (float)LuaAPI.lua_tonumber(L, 3); - UnityEngine.Vector2 _direction;translator.Get(L, 4, out _direction); - float _distance = (float)LuaAPI.lua_tonumber(L, 5); - int _layerMask = LuaAPI.xlua_tointeger(L, 6); - - var gen_ret = gen_to_be_invoked.CircleCast( _origin, _radius, _direction, _distance, _layerMask ); - translator.Push(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 5&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - UnityEngine.Vector2 _origin;translator.Get(L, 2, out _origin); - float _radius = (float)LuaAPI.lua_tonumber(L, 3); - UnityEngine.Vector2 _direction;translator.Get(L, 4, out _direction); - float _distance = (float)LuaAPI.lua_tonumber(L, 5); - - var gen_ret = gen_to_be_invoked.CircleCast( _origin, _radius, _direction, _distance ); - translator.Push(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 6&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& translator.Assignable(L, 6)) - { - UnityEngine.Vector2 _origin;translator.Get(L, 2, out _origin); - float _radius = (float)LuaAPI.lua_tonumber(L, 3); - UnityEngine.Vector2 _direction;translator.Get(L, 4, out _direction); - float _distance = (float)LuaAPI.lua_tonumber(L, 5); - UnityEngine.ContactFilter2D _contactFilter;translator.Get(L, 6, out _contactFilter); - - var gen_ret = gen_to_be_invoked.CircleCast( _origin, _radius, _direction, _distance, _contactFilter ); - translator.Push(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 7&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& translator.Assignable(L, 6)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 7)) - { - UnityEngine.Vector2 _origin;translator.Get(L, 2, out _origin); - float _radius = (float)LuaAPI.lua_tonumber(L, 3); - UnityEngine.Vector2 _direction;translator.Get(L, 4, out _direction); - float _distance = (float)LuaAPI.lua_tonumber(L, 5); - UnityEngine.RaycastHit2D[] _results = (UnityEngine.RaycastHit2D[])translator.GetObject(L, 6, typeof(UnityEngine.RaycastHit2D[])); - int _layerMask = LuaAPI.xlua_tointeger(L, 7); - - var gen_ret = gen_to_be_invoked.CircleCast( _origin, _radius, _direction, _distance, _results, _layerMask ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 6&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& translator.Assignable(L, 6)) - { - UnityEngine.Vector2 _origin;translator.Get(L, 2, out _origin); - float _radius = (float)LuaAPI.lua_tonumber(L, 3); - UnityEngine.Vector2 _direction;translator.Get(L, 4, out _direction); - float _distance = (float)LuaAPI.lua_tonumber(L, 5); - UnityEngine.RaycastHit2D[] _results = (UnityEngine.RaycastHit2D[])translator.GetObject(L, 6, typeof(UnityEngine.RaycastHit2D[])); - - var gen_ret = gen_to_be_invoked.CircleCast( _origin, _radius, _direction, _distance, _results ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 7&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& translator.Assignable(L, 6)&& translator.Assignable(L, 7)) - { - UnityEngine.Vector2 _origin;translator.Get(L, 2, out _origin); - float _radius = (float)LuaAPI.lua_tonumber(L, 3); - UnityEngine.Vector2 _direction;translator.Get(L, 4, out _direction); - float _distance = (float)LuaAPI.lua_tonumber(L, 5); - UnityEngine.ContactFilter2D _contactFilter;translator.Get(L, 6, out _contactFilter); - UnityEngine.RaycastHit2D[] _results = (UnityEngine.RaycastHit2D[])translator.GetObject(L, 7, typeof(UnityEngine.RaycastHit2D[])); - - var gen_ret = gen_to_be_invoked.CircleCast( _origin, _radius, _direction, _distance, _contactFilter, _results ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 7&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& translator.Assignable(L, 6)&& translator.Assignable>(L, 7)) - { - UnityEngine.Vector2 _origin;translator.Get(L, 2, out _origin); - float _radius = (float)LuaAPI.lua_tonumber(L, 3); - UnityEngine.Vector2 _direction;translator.Get(L, 4, out _direction); - float _distance = (float)LuaAPI.lua_tonumber(L, 5); - UnityEngine.ContactFilter2D _contactFilter;translator.Get(L, 6, out _contactFilter); - System.Collections.Generic.List _results = (System.Collections.Generic.List)translator.GetObject(L, 7, typeof(System.Collections.Generic.List)); - - var gen_ret = gen_to_be_invoked.CircleCast( _origin, _radius, _direction, _distance, _contactFilter, _results ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.PhysicsScene2D.CircleCast!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_BoxCast(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.PhysicsScene2D gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 7&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& translator.Assignable(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 7)) - { - UnityEngine.Vector2 _origin;translator.Get(L, 2, out _origin); - UnityEngine.Vector2 _size;translator.Get(L, 3, out _size); - float _angle = (float)LuaAPI.lua_tonumber(L, 4); - UnityEngine.Vector2 _direction;translator.Get(L, 5, out _direction); - float _distance = (float)LuaAPI.lua_tonumber(L, 6); - int _layerMask = LuaAPI.xlua_tointeger(L, 7); - - var gen_ret = gen_to_be_invoked.BoxCast( _origin, _size, _angle, _direction, _distance, _layerMask ); - translator.Push(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 6&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& translator.Assignable(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)) - { - UnityEngine.Vector2 _origin;translator.Get(L, 2, out _origin); - UnityEngine.Vector2 _size;translator.Get(L, 3, out _size); - float _angle = (float)LuaAPI.lua_tonumber(L, 4); - UnityEngine.Vector2 _direction;translator.Get(L, 5, out _direction); - float _distance = (float)LuaAPI.lua_tonumber(L, 6); - - var gen_ret = gen_to_be_invoked.BoxCast( _origin, _size, _angle, _direction, _distance ); - translator.Push(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 7&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& translator.Assignable(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)&& translator.Assignable(L, 7)) - { - UnityEngine.Vector2 _origin;translator.Get(L, 2, out _origin); - UnityEngine.Vector2 _size;translator.Get(L, 3, out _size); - float _angle = (float)LuaAPI.lua_tonumber(L, 4); - UnityEngine.Vector2 _direction;translator.Get(L, 5, out _direction); - float _distance = (float)LuaAPI.lua_tonumber(L, 6); - UnityEngine.ContactFilter2D _contactFilter;translator.Get(L, 7, out _contactFilter); - - var gen_ret = gen_to_be_invoked.BoxCast( _origin, _size, _angle, _direction, _distance, _contactFilter ); - translator.Push(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 8&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& translator.Assignable(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)&& translator.Assignable(L, 7)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 8)) - { - UnityEngine.Vector2 _origin;translator.Get(L, 2, out _origin); - UnityEngine.Vector2 _size;translator.Get(L, 3, out _size); - float _angle = (float)LuaAPI.lua_tonumber(L, 4); - UnityEngine.Vector2 _direction;translator.Get(L, 5, out _direction); - float _distance = (float)LuaAPI.lua_tonumber(L, 6); - UnityEngine.RaycastHit2D[] _results = (UnityEngine.RaycastHit2D[])translator.GetObject(L, 7, typeof(UnityEngine.RaycastHit2D[])); - int _layerMask = LuaAPI.xlua_tointeger(L, 8); - - var gen_ret = gen_to_be_invoked.BoxCast( _origin, _size, _angle, _direction, _distance, _results, _layerMask ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 7&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& translator.Assignable(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)&& translator.Assignable(L, 7)) - { - UnityEngine.Vector2 _origin;translator.Get(L, 2, out _origin); - UnityEngine.Vector2 _size;translator.Get(L, 3, out _size); - float _angle = (float)LuaAPI.lua_tonumber(L, 4); - UnityEngine.Vector2 _direction;translator.Get(L, 5, out _direction); - float _distance = (float)LuaAPI.lua_tonumber(L, 6); - UnityEngine.RaycastHit2D[] _results = (UnityEngine.RaycastHit2D[])translator.GetObject(L, 7, typeof(UnityEngine.RaycastHit2D[])); - - var gen_ret = gen_to_be_invoked.BoxCast( _origin, _size, _angle, _direction, _distance, _results ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 8&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& translator.Assignable(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)&& translator.Assignable(L, 7)&& translator.Assignable(L, 8)) - { - UnityEngine.Vector2 _origin;translator.Get(L, 2, out _origin); - UnityEngine.Vector2 _size;translator.Get(L, 3, out _size); - float _angle = (float)LuaAPI.lua_tonumber(L, 4); - UnityEngine.Vector2 _direction;translator.Get(L, 5, out _direction); - float _distance = (float)LuaAPI.lua_tonumber(L, 6); - UnityEngine.ContactFilter2D _contactFilter;translator.Get(L, 7, out _contactFilter); - UnityEngine.RaycastHit2D[] _results = (UnityEngine.RaycastHit2D[])translator.GetObject(L, 8, typeof(UnityEngine.RaycastHit2D[])); - - var gen_ret = gen_to_be_invoked.BoxCast( _origin, _size, _angle, _direction, _distance, _contactFilter, _results ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 8&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& translator.Assignable(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)&& translator.Assignable(L, 7)&& translator.Assignable>(L, 8)) - { - UnityEngine.Vector2 _origin;translator.Get(L, 2, out _origin); - UnityEngine.Vector2 _size;translator.Get(L, 3, out _size); - float _angle = (float)LuaAPI.lua_tonumber(L, 4); - UnityEngine.Vector2 _direction;translator.Get(L, 5, out _direction); - float _distance = (float)LuaAPI.lua_tonumber(L, 6); - UnityEngine.ContactFilter2D _contactFilter;translator.Get(L, 7, out _contactFilter); - System.Collections.Generic.List _results = (System.Collections.Generic.List)translator.GetObject(L, 8, typeof(System.Collections.Generic.List)); - - var gen_ret = gen_to_be_invoked.BoxCast( _origin, _size, _angle, _direction, _distance, _contactFilter, _results ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.PhysicsScene2D.BoxCast!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CapsuleCast(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.PhysicsScene2D gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 8&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& translator.Assignable(L, 6)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 7)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 8)) - { - UnityEngine.Vector2 _origin;translator.Get(L, 2, out _origin); - UnityEngine.Vector2 _size;translator.Get(L, 3, out _size); - UnityEngine.CapsuleDirection2D _capsuleDirection;translator.Get(L, 4, out _capsuleDirection); - float _angle = (float)LuaAPI.lua_tonumber(L, 5); - UnityEngine.Vector2 _direction;translator.Get(L, 6, out _direction); - float _distance = (float)LuaAPI.lua_tonumber(L, 7); - int _layerMask = LuaAPI.xlua_tointeger(L, 8); - - var gen_ret = gen_to_be_invoked.CapsuleCast( _origin, _size, _capsuleDirection, _angle, _direction, _distance, _layerMask ); - translator.Push(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 7&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& translator.Assignable(L, 6)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 7)) - { - UnityEngine.Vector2 _origin;translator.Get(L, 2, out _origin); - UnityEngine.Vector2 _size;translator.Get(L, 3, out _size); - UnityEngine.CapsuleDirection2D _capsuleDirection;translator.Get(L, 4, out _capsuleDirection); - float _angle = (float)LuaAPI.lua_tonumber(L, 5); - UnityEngine.Vector2 _direction;translator.Get(L, 6, out _direction); - float _distance = (float)LuaAPI.lua_tonumber(L, 7); - - var gen_ret = gen_to_be_invoked.CapsuleCast( _origin, _size, _capsuleDirection, _angle, _direction, _distance ); - translator.Push(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 8&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& translator.Assignable(L, 6)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 7)&& translator.Assignable(L, 8)) - { - UnityEngine.Vector2 _origin;translator.Get(L, 2, out _origin); - UnityEngine.Vector2 _size;translator.Get(L, 3, out _size); - UnityEngine.CapsuleDirection2D _capsuleDirection;translator.Get(L, 4, out _capsuleDirection); - float _angle = (float)LuaAPI.lua_tonumber(L, 5); - UnityEngine.Vector2 _direction;translator.Get(L, 6, out _direction); - float _distance = (float)LuaAPI.lua_tonumber(L, 7); - UnityEngine.ContactFilter2D _contactFilter;translator.Get(L, 8, out _contactFilter); - - var gen_ret = gen_to_be_invoked.CapsuleCast( _origin, _size, _capsuleDirection, _angle, _direction, _distance, _contactFilter ); - translator.Push(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 9&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& translator.Assignable(L, 6)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 7)&& translator.Assignable(L, 8)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 9)) - { - UnityEngine.Vector2 _origin;translator.Get(L, 2, out _origin); - UnityEngine.Vector2 _size;translator.Get(L, 3, out _size); - UnityEngine.CapsuleDirection2D _capsuleDirection;translator.Get(L, 4, out _capsuleDirection); - float _angle = (float)LuaAPI.lua_tonumber(L, 5); - UnityEngine.Vector2 _direction;translator.Get(L, 6, out _direction); - float _distance = (float)LuaAPI.lua_tonumber(L, 7); - UnityEngine.RaycastHit2D[] _results = (UnityEngine.RaycastHit2D[])translator.GetObject(L, 8, typeof(UnityEngine.RaycastHit2D[])); - int _layerMask = LuaAPI.xlua_tointeger(L, 9); - - var gen_ret = gen_to_be_invoked.CapsuleCast( _origin, _size, _capsuleDirection, _angle, _direction, _distance, _results, _layerMask ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 8&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& translator.Assignable(L, 6)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 7)&& translator.Assignable(L, 8)) - { - UnityEngine.Vector2 _origin;translator.Get(L, 2, out _origin); - UnityEngine.Vector2 _size;translator.Get(L, 3, out _size); - UnityEngine.CapsuleDirection2D _capsuleDirection;translator.Get(L, 4, out _capsuleDirection); - float _angle = (float)LuaAPI.lua_tonumber(L, 5); - UnityEngine.Vector2 _direction;translator.Get(L, 6, out _direction); - float _distance = (float)LuaAPI.lua_tonumber(L, 7); - UnityEngine.RaycastHit2D[] _results = (UnityEngine.RaycastHit2D[])translator.GetObject(L, 8, typeof(UnityEngine.RaycastHit2D[])); - - var gen_ret = gen_to_be_invoked.CapsuleCast( _origin, _size, _capsuleDirection, _angle, _direction, _distance, _results ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 9&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& translator.Assignable(L, 6)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 7)&& translator.Assignable(L, 8)&& translator.Assignable(L, 9)) - { - UnityEngine.Vector2 _origin;translator.Get(L, 2, out _origin); - UnityEngine.Vector2 _size;translator.Get(L, 3, out _size); - UnityEngine.CapsuleDirection2D _capsuleDirection;translator.Get(L, 4, out _capsuleDirection); - float _angle = (float)LuaAPI.lua_tonumber(L, 5); - UnityEngine.Vector2 _direction;translator.Get(L, 6, out _direction); - float _distance = (float)LuaAPI.lua_tonumber(L, 7); - UnityEngine.ContactFilter2D _contactFilter;translator.Get(L, 8, out _contactFilter); - UnityEngine.RaycastHit2D[] _results = (UnityEngine.RaycastHit2D[])translator.GetObject(L, 9, typeof(UnityEngine.RaycastHit2D[])); - - var gen_ret = gen_to_be_invoked.CapsuleCast( _origin, _size, _capsuleDirection, _angle, _direction, _distance, _contactFilter, _results ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 9&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& translator.Assignable(L, 6)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 7)&& translator.Assignable(L, 8)&& translator.Assignable>(L, 9)) - { - UnityEngine.Vector2 _origin;translator.Get(L, 2, out _origin); - UnityEngine.Vector2 _size;translator.Get(L, 3, out _size); - UnityEngine.CapsuleDirection2D _capsuleDirection;translator.Get(L, 4, out _capsuleDirection); - float _angle = (float)LuaAPI.lua_tonumber(L, 5); - UnityEngine.Vector2 _direction;translator.Get(L, 6, out _direction); - float _distance = (float)LuaAPI.lua_tonumber(L, 7); - UnityEngine.ContactFilter2D _contactFilter;translator.Get(L, 8, out _contactFilter); - System.Collections.Generic.List _results = (System.Collections.Generic.List)translator.GetObject(L, 9, typeof(System.Collections.Generic.List)); - - var gen_ret = gen_to_be_invoked.CapsuleCast( _origin, _size, _capsuleDirection, _angle, _direction, _distance, _contactFilter, _results ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.PhysicsScene2D.CapsuleCast!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetRayIntersection(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.PhysicsScene2D gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 4&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - UnityEngine.Ray _ray;translator.Get(L, 2, out _ray); - float _distance = (float)LuaAPI.lua_tonumber(L, 3); - int _layerMask = LuaAPI.xlua_tointeger(L, 4); - - var gen_ret = gen_to_be_invoked.GetRayIntersection( _ray, _distance, _layerMask ); - translator.Push(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - UnityEngine.Ray _ray;translator.Get(L, 2, out _ray); - float _distance = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = gen_to_be_invoked.GetRayIntersection( _ray, _distance ); - translator.Push(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 5&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - UnityEngine.Ray _ray;translator.Get(L, 2, out _ray); - float _distance = (float)LuaAPI.lua_tonumber(L, 3); - UnityEngine.RaycastHit2D[] _results = (UnityEngine.RaycastHit2D[])translator.GetObject(L, 4, typeof(UnityEngine.RaycastHit2D[])); - int _layerMask = LuaAPI.xlua_tointeger(L, 5); - - var gen_ret = gen_to_be_invoked.GetRayIntersection( _ray, _distance, _results, _layerMask ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable(L, 4)) - { - UnityEngine.Ray _ray;translator.Get(L, 2, out _ray); - float _distance = (float)LuaAPI.lua_tonumber(L, 3); - UnityEngine.RaycastHit2D[] _results = (UnityEngine.RaycastHit2D[])translator.GetObject(L, 4, typeof(UnityEngine.RaycastHit2D[])); - - var gen_ret = gen_to_be_invoked.GetRayIntersection( _ray, _distance, _results ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.PhysicsScene2D.GetRayIntersection!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OverlapPoint(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.PhysicsScene2D gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - UnityEngine.Vector2 _point;translator.Get(L, 2, out _point); - int _layerMask = LuaAPI.xlua_tointeger(L, 3); - - var gen_ret = gen_to_be_invoked.OverlapPoint( _point, _layerMask ); - translator.Push(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.Vector2 _point;translator.Get(L, 2, out _point); - - var gen_ret = gen_to_be_invoked.OverlapPoint( _point ); - translator.Push(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)) - { - UnityEngine.Vector2 _point;translator.Get(L, 2, out _point); - UnityEngine.ContactFilter2D _contactFilter;translator.Get(L, 3, out _contactFilter); - - var gen_ret = gen_to_be_invoked.OverlapPoint( _point, _contactFilter ); - translator.Push(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - UnityEngine.Vector2 _point;translator.Get(L, 2, out _point); - UnityEngine.Collider2D[] _results = (UnityEngine.Collider2D[])translator.GetObject(L, 3, typeof(UnityEngine.Collider2D[])); - int _layerMask = LuaAPI.xlua_tointeger(L, 4); - - var gen_ret = gen_to_be_invoked.OverlapPoint( _point, _results, _layerMask ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)) - { - UnityEngine.Vector2 _point;translator.Get(L, 2, out _point); - UnityEngine.Collider2D[] _results = (UnityEngine.Collider2D[])translator.GetObject(L, 3, typeof(UnityEngine.Collider2D[])); - - var gen_ret = gen_to_be_invoked.OverlapPoint( _point, _results ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)) - { - UnityEngine.Vector2 _point;translator.Get(L, 2, out _point); - UnityEngine.ContactFilter2D _contactFilter;translator.Get(L, 3, out _contactFilter); - UnityEngine.Collider2D[] _results = (UnityEngine.Collider2D[])translator.GetObject(L, 4, typeof(UnityEngine.Collider2D[])); - - var gen_ret = gen_to_be_invoked.OverlapPoint( _point, _contactFilter, _results ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable>(L, 4)) - { - UnityEngine.Vector2 _point;translator.Get(L, 2, out _point); - UnityEngine.ContactFilter2D _contactFilter;translator.Get(L, 3, out _contactFilter); - System.Collections.Generic.List _results = (System.Collections.Generic.List)translator.GetObject(L, 4, typeof(System.Collections.Generic.List)); - - var gen_ret = gen_to_be_invoked.OverlapPoint( _point, _contactFilter, _results ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.PhysicsScene2D.OverlapPoint!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OverlapCircle(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.PhysicsScene2D gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 4&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - UnityEngine.Vector2 _point;translator.Get(L, 2, out _point); - float _radius = (float)LuaAPI.lua_tonumber(L, 3); - int _layerMask = LuaAPI.xlua_tointeger(L, 4); - - var gen_ret = gen_to_be_invoked.OverlapCircle( _point, _radius, _layerMask ); - translator.Push(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - UnityEngine.Vector2 _point;translator.Get(L, 2, out _point); - float _radius = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = gen_to_be_invoked.OverlapCircle( _point, _radius ); - translator.Push(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable(L, 4)) - { - UnityEngine.Vector2 _point;translator.Get(L, 2, out _point); - float _radius = (float)LuaAPI.lua_tonumber(L, 3); - UnityEngine.ContactFilter2D _contactFilter;translator.Get(L, 4, out _contactFilter); - - var gen_ret = gen_to_be_invoked.OverlapCircle( _point, _radius, _contactFilter ); - translator.Push(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 5&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - UnityEngine.Vector2 _point;translator.Get(L, 2, out _point); - float _radius = (float)LuaAPI.lua_tonumber(L, 3); - UnityEngine.Collider2D[] _results = (UnityEngine.Collider2D[])translator.GetObject(L, 4, typeof(UnityEngine.Collider2D[])); - int _layerMask = LuaAPI.xlua_tointeger(L, 5); - - var gen_ret = gen_to_be_invoked.OverlapCircle( _point, _radius, _results, _layerMask ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable(L, 4)) - { - UnityEngine.Vector2 _point;translator.Get(L, 2, out _point); - float _radius = (float)LuaAPI.lua_tonumber(L, 3); - UnityEngine.Collider2D[] _results = (UnityEngine.Collider2D[])translator.GetObject(L, 4, typeof(UnityEngine.Collider2D[])); - - var gen_ret = gen_to_be_invoked.OverlapCircle( _point, _radius, _results ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 5&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable(L, 4)&& translator.Assignable(L, 5)) - { - UnityEngine.Vector2 _point;translator.Get(L, 2, out _point); - float _radius = (float)LuaAPI.lua_tonumber(L, 3); - UnityEngine.ContactFilter2D _contactFilter;translator.Get(L, 4, out _contactFilter); - UnityEngine.Collider2D[] _results = (UnityEngine.Collider2D[])translator.GetObject(L, 5, typeof(UnityEngine.Collider2D[])); - - var gen_ret = gen_to_be_invoked.OverlapCircle( _point, _radius, _contactFilter, _results ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 5&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable(L, 4)&& translator.Assignable>(L, 5)) - { - UnityEngine.Vector2 _point;translator.Get(L, 2, out _point); - float _radius = (float)LuaAPI.lua_tonumber(L, 3); - UnityEngine.ContactFilter2D _contactFilter;translator.Get(L, 4, out _contactFilter); - System.Collections.Generic.List _results = (System.Collections.Generic.List)translator.GetObject(L, 5, typeof(System.Collections.Generic.List)); - - var gen_ret = gen_to_be_invoked.OverlapCircle( _point, _radius, _contactFilter, _results ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.PhysicsScene2D.OverlapCircle!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OverlapBox(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.PhysicsScene2D gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 5&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - UnityEngine.Vector2 _point;translator.Get(L, 2, out _point); - UnityEngine.Vector2 _size;translator.Get(L, 3, out _size); - float _angle = (float)LuaAPI.lua_tonumber(L, 4); - int _layerMask = LuaAPI.xlua_tointeger(L, 5); - - var gen_ret = gen_to_be_invoked.OverlapBox( _point, _size, _angle, _layerMask ); - translator.Push(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - UnityEngine.Vector2 _point;translator.Get(L, 2, out _point); - UnityEngine.Vector2 _size;translator.Get(L, 3, out _size); - float _angle = (float)LuaAPI.lua_tonumber(L, 4); - - var gen_ret = gen_to_be_invoked.OverlapBox( _point, _size, _angle ); - translator.Push(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 5&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& translator.Assignable(L, 5)) - { - UnityEngine.Vector2 _point;translator.Get(L, 2, out _point); - UnityEngine.Vector2 _size;translator.Get(L, 3, out _size); - float _angle = (float)LuaAPI.lua_tonumber(L, 4); - UnityEngine.ContactFilter2D _contactFilter;translator.Get(L, 5, out _contactFilter); - - var gen_ret = gen_to_be_invoked.OverlapBox( _point, _size, _angle, _contactFilter ); - translator.Push(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 6&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& translator.Assignable(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)) - { - UnityEngine.Vector2 _point;translator.Get(L, 2, out _point); - UnityEngine.Vector2 _size;translator.Get(L, 3, out _size); - float _angle = (float)LuaAPI.lua_tonumber(L, 4); - UnityEngine.Collider2D[] _results = (UnityEngine.Collider2D[])translator.GetObject(L, 5, typeof(UnityEngine.Collider2D[])); - int _layerMask = LuaAPI.xlua_tointeger(L, 6); - - var gen_ret = gen_to_be_invoked.OverlapBox( _point, _size, _angle, _results, _layerMask ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 5&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& translator.Assignable(L, 5)) - { - UnityEngine.Vector2 _point;translator.Get(L, 2, out _point); - UnityEngine.Vector2 _size;translator.Get(L, 3, out _size); - float _angle = (float)LuaAPI.lua_tonumber(L, 4); - UnityEngine.Collider2D[] _results = (UnityEngine.Collider2D[])translator.GetObject(L, 5, typeof(UnityEngine.Collider2D[])); - - var gen_ret = gen_to_be_invoked.OverlapBox( _point, _size, _angle, _results ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 6&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& translator.Assignable(L, 5)&& translator.Assignable(L, 6)) - { - UnityEngine.Vector2 _point;translator.Get(L, 2, out _point); - UnityEngine.Vector2 _size;translator.Get(L, 3, out _size); - float _angle = (float)LuaAPI.lua_tonumber(L, 4); - UnityEngine.ContactFilter2D _contactFilter;translator.Get(L, 5, out _contactFilter); - UnityEngine.Collider2D[] _results = (UnityEngine.Collider2D[])translator.GetObject(L, 6, typeof(UnityEngine.Collider2D[])); - - var gen_ret = gen_to_be_invoked.OverlapBox( _point, _size, _angle, _contactFilter, _results ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 6&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& translator.Assignable(L, 5)&& translator.Assignable>(L, 6)) - { - UnityEngine.Vector2 _point;translator.Get(L, 2, out _point); - UnityEngine.Vector2 _size;translator.Get(L, 3, out _size); - float _angle = (float)LuaAPI.lua_tonumber(L, 4); - UnityEngine.ContactFilter2D _contactFilter;translator.Get(L, 5, out _contactFilter); - System.Collections.Generic.List _results = (System.Collections.Generic.List)translator.GetObject(L, 6, typeof(System.Collections.Generic.List)); - - var gen_ret = gen_to_be_invoked.OverlapBox( _point, _size, _angle, _contactFilter, _results ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.PhysicsScene2D.OverlapBox!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OverlapArea(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.PhysicsScene2D gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 4&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - UnityEngine.Vector2 _pointA;translator.Get(L, 2, out _pointA); - UnityEngine.Vector2 _pointB;translator.Get(L, 3, out _pointB); - int _layerMask = LuaAPI.xlua_tointeger(L, 4); - - var gen_ret = gen_to_be_invoked.OverlapArea( _pointA, _pointB, _layerMask ); - translator.Push(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)) - { - UnityEngine.Vector2 _pointA;translator.Get(L, 2, out _pointA); - UnityEngine.Vector2 _pointB;translator.Get(L, 3, out _pointB); - - var gen_ret = gen_to_be_invoked.OverlapArea( _pointA, _pointB ); - translator.Push(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)) - { - UnityEngine.Vector2 _pointA;translator.Get(L, 2, out _pointA); - UnityEngine.Vector2 _pointB;translator.Get(L, 3, out _pointB); - UnityEngine.ContactFilter2D _contactFilter;translator.Get(L, 4, out _contactFilter); - - var gen_ret = gen_to_be_invoked.OverlapArea( _pointA, _pointB, _contactFilter ); - translator.Push(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 5&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - UnityEngine.Vector2 _pointA;translator.Get(L, 2, out _pointA); - UnityEngine.Vector2 _pointB;translator.Get(L, 3, out _pointB); - UnityEngine.Collider2D[] _results = (UnityEngine.Collider2D[])translator.GetObject(L, 4, typeof(UnityEngine.Collider2D[])); - int _layerMask = LuaAPI.xlua_tointeger(L, 5); - - var gen_ret = gen_to_be_invoked.OverlapArea( _pointA, _pointB, _results, _layerMask ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)) - { - UnityEngine.Vector2 _pointA;translator.Get(L, 2, out _pointA); - UnityEngine.Vector2 _pointB;translator.Get(L, 3, out _pointB); - UnityEngine.Collider2D[] _results = (UnityEngine.Collider2D[])translator.GetObject(L, 4, typeof(UnityEngine.Collider2D[])); - - var gen_ret = gen_to_be_invoked.OverlapArea( _pointA, _pointB, _results ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 5&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)&& translator.Assignable(L, 5)) - { - UnityEngine.Vector2 _pointA;translator.Get(L, 2, out _pointA); - UnityEngine.Vector2 _pointB;translator.Get(L, 3, out _pointB); - UnityEngine.ContactFilter2D _contactFilter;translator.Get(L, 4, out _contactFilter); - UnityEngine.Collider2D[] _results = (UnityEngine.Collider2D[])translator.GetObject(L, 5, typeof(UnityEngine.Collider2D[])); - - var gen_ret = gen_to_be_invoked.OverlapArea( _pointA, _pointB, _contactFilter, _results ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 5&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)&& translator.Assignable>(L, 5)) - { - UnityEngine.Vector2 _pointA;translator.Get(L, 2, out _pointA); - UnityEngine.Vector2 _pointB;translator.Get(L, 3, out _pointB); - UnityEngine.ContactFilter2D _contactFilter;translator.Get(L, 4, out _contactFilter); - System.Collections.Generic.List _results = (System.Collections.Generic.List)translator.GetObject(L, 5, typeof(System.Collections.Generic.List)); - - var gen_ret = gen_to_be_invoked.OverlapArea( _pointA, _pointB, _contactFilter, _results ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.PhysicsScene2D.OverlapArea!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OverlapCapsule(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.PhysicsScene2D gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 6&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)) - { - UnityEngine.Vector2 _point;translator.Get(L, 2, out _point); - UnityEngine.Vector2 _size;translator.Get(L, 3, out _size); - UnityEngine.CapsuleDirection2D _direction;translator.Get(L, 4, out _direction); - float _angle = (float)LuaAPI.lua_tonumber(L, 5); - int _layerMask = LuaAPI.xlua_tointeger(L, 6); - - var gen_ret = gen_to_be_invoked.OverlapCapsule( _point, _size, _direction, _angle, _layerMask ); - translator.Push(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 5&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - UnityEngine.Vector2 _point;translator.Get(L, 2, out _point); - UnityEngine.Vector2 _size;translator.Get(L, 3, out _size); - UnityEngine.CapsuleDirection2D _direction;translator.Get(L, 4, out _direction); - float _angle = (float)LuaAPI.lua_tonumber(L, 5); - - var gen_ret = gen_to_be_invoked.OverlapCapsule( _point, _size, _direction, _angle ); - translator.Push(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 6&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& translator.Assignable(L, 6)) - { - UnityEngine.Vector2 _point;translator.Get(L, 2, out _point); - UnityEngine.Vector2 _size;translator.Get(L, 3, out _size); - UnityEngine.CapsuleDirection2D _direction;translator.Get(L, 4, out _direction); - float _angle = (float)LuaAPI.lua_tonumber(L, 5); - UnityEngine.ContactFilter2D _contactFilter;translator.Get(L, 6, out _contactFilter); - - var gen_ret = gen_to_be_invoked.OverlapCapsule( _point, _size, _direction, _angle, _contactFilter ); - translator.Push(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 7&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& translator.Assignable(L, 6)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 7)) - { - UnityEngine.Vector2 _point;translator.Get(L, 2, out _point); - UnityEngine.Vector2 _size;translator.Get(L, 3, out _size); - UnityEngine.CapsuleDirection2D _direction;translator.Get(L, 4, out _direction); - float _angle = (float)LuaAPI.lua_tonumber(L, 5); - UnityEngine.Collider2D[] _results = (UnityEngine.Collider2D[])translator.GetObject(L, 6, typeof(UnityEngine.Collider2D[])); - int _layerMask = LuaAPI.xlua_tointeger(L, 7); - - var gen_ret = gen_to_be_invoked.OverlapCapsule( _point, _size, _direction, _angle, _results, _layerMask ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 6&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& translator.Assignable(L, 6)) - { - UnityEngine.Vector2 _point;translator.Get(L, 2, out _point); - UnityEngine.Vector2 _size;translator.Get(L, 3, out _size); - UnityEngine.CapsuleDirection2D _direction;translator.Get(L, 4, out _direction); - float _angle = (float)LuaAPI.lua_tonumber(L, 5); - UnityEngine.Collider2D[] _results = (UnityEngine.Collider2D[])translator.GetObject(L, 6, typeof(UnityEngine.Collider2D[])); - - var gen_ret = gen_to_be_invoked.OverlapCapsule( _point, _size, _direction, _angle, _results ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 7&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& translator.Assignable(L, 6)&& translator.Assignable(L, 7)) - { - UnityEngine.Vector2 _point;translator.Get(L, 2, out _point); - UnityEngine.Vector2 _size;translator.Get(L, 3, out _size); - UnityEngine.CapsuleDirection2D _direction;translator.Get(L, 4, out _direction); - float _angle = (float)LuaAPI.lua_tonumber(L, 5); - UnityEngine.ContactFilter2D _contactFilter;translator.Get(L, 6, out _contactFilter); - UnityEngine.Collider2D[] _results = (UnityEngine.Collider2D[])translator.GetObject(L, 7, typeof(UnityEngine.Collider2D[])); - - var gen_ret = gen_to_be_invoked.OverlapCapsule( _point, _size, _direction, _angle, _contactFilter, _results ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 7&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& translator.Assignable(L, 6)&& translator.Assignable>(L, 7)) - { - UnityEngine.Vector2 _point;translator.Get(L, 2, out _point); - UnityEngine.Vector2 _size;translator.Get(L, 3, out _size); - UnityEngine.CapsuleDirection2D _direction;translator.Get(L, 4, out _direction); - float _angle = (float)LuaAPI.lua_tonumber(L, 5); - UnityEngine.ContactFilter2D _contactFilter;translator.Get(L, 6, out _contactFilter); - System.Collections.Generic.List _results = (System.Collections.Generic.List)translator.GetObject(L, 7, typeof(System.Collections.Generic.List)); - - var gen_ret = gen_to_be_invoked.OverlapCapsule( _point, _size, _direction, _angle, _contactFilter, _results ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.PhysicsScene2D.OverlapCapsule!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OverlapCollider_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - UnityEngine.Collider2D _collider = (UnityEngine.Collider2D)translator.GetObject(L, 1, typeof(UnityEngine.Collider2D)); - UnityEngine.Collider2D[] _results = (UnityEngine.Collider2D[])translator.GetObject(L, 2, typeof(UnityEngine.Collider2D[])); - int _layerMask = LuaAPI.xlua_tointeger(L, 3); - - var gen_ret = UnityEngine.PhysicsScene2D.OverlapCollider( _collider, _results, _layerMask ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)) - { - UnityEngine.Collider2D _collider = (UnityEngine.Collider2D)translator.GetObject(L, 1, typeof(UnityEngine.Collider2D)); - UnityEngine.Collider2D[] _results = (UnityEngine.Collider2D[])translator.GetObject(L, 2, typeof(UnityEngine.Collider2D[])); - - var gen_ret = UnityEngine.PhysicsScene2D.OverlapCollider( _collider, _results ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)) - { - UnityEngine.Collider2D _collider = (UnityEngine.Collider2D)translator.GetObject(L, 1, typeof(UnityEngine.Collider2D)); - UnityEngine.ContactFilter2D _contactFilter;translator.Get(L, 2, out _contactFilter); - UnityEngine.Collider2D[] _results = (UnityEngine.Collider2D[])translator.GetObject(L, 3, typeof(UnityEngine.Collider2D[])); - - var gen_ret = UnityEngine.PhysicsScene2D.OverlapCollider( _collider, _contactFilter, _results ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable>(L, 3)) - { - UnityEngine.Collider2D _collider = (UnityEngine.Collider2D)translator.GetObject(L, 1, typeof(UnityEngine.Collider2D)); - UnityEngine.ContactFilter2D _contactFilter;translator.Get(L, 2, out _contactFilter); - System.Collections.Generic.List _results = (System.Collections.Generic.List)translator.GetObject(L, 3, typeof(System.Collections.Generic.List)); - - var gen_ret = UnityEngine.PhysicsScene2D.OverlapCollider( _collider, _contactFilter, _results ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.PhysicsScene2D.OverlapCollider!"); - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_PhysicsSceneExtensions2DWrap.cs b/Assets/XLua/Gen/UnityEngine_PhysicsSceneExtensions2DWrap.cs deleted file mode 100644 index e1b440583..000000000 --- a/Assets/XLua/Gen/UnityEngine_PhysicsSceneExtensions2DWrap.cs +++ /dev/null @@ -1,67 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEnginePhysicsSceneExtensions2DWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.PhysicsSceneExtensions2D); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "UnityEngine.PhysicsSceneExtensions2D does not have a constructor!"); - } - - - - - - - - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_PhysicsSceneExtensionsWrap.cs b/Assets/XLua/Gen/UnityEngine_PhysicsSceneExtensionsWrap.cs deleted file mode 100644 index 4362c8151..000000000 --- a/Assets/XLua/Gen/UnityEngine_PhysicsSceneExtensionsWrap.cs +++ /dev/null @@ -1,67 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEnginePhysicsSceneExtensionsWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.PhysicsSceneExtensions); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "UnityEngine.PhysicsSceneExtensions does not have a constructor!"); - } - - - - - - - - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_PhysicsSceneWrap.cs b/Assets/XLua/Gen/UnityEngine_PhysicsSceneWrap.cs deleted file mode 100644 index dc257de05..000000000 --- a/Assets/XLua/Gen/UnityEngine_PhysicsSceneWrap.cs +++ /dev/null @@ -1,1300 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEnginePhysicsSceneWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.PhysicsScene); - Utils.BeginObjectRegister(type, L, translator, 1, 13, 0, 0); - Utils.RegisterFunc(L, Utils.OBJ_META_IDX, "__eq", __EqMeta); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ToString", _m_ToString); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetHashCode", _m_GetHashCode); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Equals", _m_Equals); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsValid", _m_IsValid); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsEmpty", _m_IsEmpty); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Simulate", _m_Simulate); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Raycast", _m_Raycast); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "CapsuleCast", _m_CapsuleCast); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OverlapCapsule", _m_OverlapCapsule); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SphereCast", _m_SphereCast); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OverlapSphere", _m_OverlapSphere); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "BoxCast", _m_BoxCast); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OverlapBox", _m_OverlapBox); - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(UnityEngine.PhysicsScene)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.PhysicsScene constructor!"); - - } - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __EqMeta(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - if (translator.Assignable(L, 1) && translator.Assignable(L, 2)) - { - UnityEngine.PhysicsScene leftside;translator.Get(L, 1, out leftside); - UnityEngine.PhysicsScene rightside;translator.Get(L, 2, out rightside); - - LuaAPI.lua_pushboolean(L, leftside == rightside); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to right hand of == operator, need UnityEngine.PhysicsScene!"); - - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ToString(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.PhysicsScene gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - - var gen_ret = gen_to_be_invoked.ToString( ); - LuaAPI.lua_pushstring(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetHashCode(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.PhysicsScene gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - - var gen_ret = gen_to_be_invoked.GetHashCode( ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Equals(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.PhysicsScene gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - object _other = translator.GetObject(L, 2, typeof(object)); - - var gen_ret = gen_to_be_invoked.Equals( _other ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.PhysicsScene _other;translator.Get(L, 2, out _other); - - var gen_ret = gen_to_be_invoked.Equals( _other ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.PhysicsScene.Equals!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_IsValid(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.PhysicsScene gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - - var gen_ret = gen_to_be_invoked.IsValid( ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_IsEmpty(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.PhysicsScene gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - - var gen_ret = gen_to_be_invoked.IsEmpty( ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Simulate(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.PhysicsScene gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - float _step = (float)LuaAPI.lua_tonumber(L, 2); - - gen_to_be_invoked.Simulate( _step ); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Raycast(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.PhysicsScene gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 6&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& translator.Assignable(L, 6)) - { - UnityEngine.Vector3 _origin;translator.Get(L, 2, out _origin); - UnityEngine.Vector3 _direction;translator.Get(L, 3, out _direction); - float _maxDistance = (float)LuaAPI.lua_tonumber(L, 4); - int _layerMask = LuaAPI.xlua_tointeger(L, 5); - UnityEngine.QueryTriggerInteraction _queryTriggerInteraction;translator.Get(L, 6, out _queryTriggerInteraction); - - var gen_ret = gen_to_be_invoked.Raycast( _origin, _direction, _maxDistance, _layerMask, _queryTriggerInteraction ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 5&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - UnityEngine.Vector3 _origin;translator.Get(L, 2, out _origin); - UnityEngine.Vector3 _direction;translator.Get(L, 3, out _direction); - float _maxDistance = (float)LuaAPI.lua_tonumber(L, 4); - int _layerMask = LuaAPI.xlua_tointeger(L, 5); - - var gen_ret = gen_to_be_invoked.Raycast( _origin, _direction, _maxDistance, _layerMask ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - UnityEngine.Vector3 _origin;translator.Get(L, 2, out _origin); - UnityEngine.Vector3 _direction;translator.Get(L, 3, out _direction); - float _maxDistance = (float)LuaAPI.lua_tonumber(L, 4); - - var gen_ret = gen_to_be_invoked.Raycast( _origin, _direction, _maxDistance ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)) - { - UnityEngine.Vector3 _origin;translator.Get(L, 2, out _origin); - UnityEngine.Vector3 _direction;translator.Get(L, 3, out _direction); - - var gen_ret = gen_to_be_invoked.Raycast( _origin, _direction ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 6&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& translator.Assignable(L, 6)) - { - UnityEngine.Vector3 _origin;translator.Get(L, 2, out _origin); - UnityEngine.Vector3 _direction;translator.Get(L, 3, out _direction); - UnityEngine.RaycastHit _hitInfo; - float _maxDistance = (float)LuaAPI.lua_tonumber(L, 4); - int _layerMask = LuaAPI.xlua_tointeger(L, 5); - UnityEngine.QueryTriggerInteraction _queryTriggerInteraction;translator.Get(L, 6, out _queryTriggerInteraction); - - var gen_ret = gen_to_be_invoked.Raycast( _origin, _direction, out _hitInfo, _maxDistance, _layerMask, _queryTriggerInteraction ); - LuaAPI.lua_pushboolean(L, gen_ret); - translator.Push(L, _hitInfo); - - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 2; - } - if(gen_param_count == 5&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - UnityEngine.Vector3 _origin;translator.Get(L, 2, out _origin); - UnityEngine.Vector3 _direction;translator.Get(L, 3, out _direction); - UnityEngine.RaycastHit _hitInfo; - float _maxDistance = (float)LuaAPI.lua_tonumber(L, 4); - int _layerMask = LuaAPI.xlua_tointeger(L, 5); - - var gen_ret = gen_to_be_invoked.Raycast( _origin, _direction, out _hitInfo, _maxDistance, _layerMask ); - LuaAPI.lua_pushboolean(L, gen_ret); - translator.Push(L, _hitInfo); - - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 2; - } - if(gen_param_count == 4&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - UnityEngine.Vector3 _origin;translator.Get(L, 2, out _origin); - UnityEngine.Vector3 _direction;translator.Get(L, 3, out _direction); - UnityEngine.RaycastHit _hitInfo; - float _maxDistance = (float)LuaAPI.lua_tonumber(L, 4); - - var gen_ret = gen_to_be_invoked.Raycast( _origin, _direction, out _hitInfo, _maxDistance ); - LuaAPI.lua_pushboolean(L, gen_ret); - translator.Push(L, _hitInfo); - - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 2; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)) - { - UnityEngine.Vector3 _origin;translator.Get(L, 2, out _origin); - UnityEngine.Vector3 _direction;translator.Get(L, 3, out _direction); - UnityEngine.RaycastHit _hitInfo; - - var gen_ret = gen_to_be_invoked.Raycast( _origin, _direction, out _hitInfo ); - LuaAPI.lua_pushboolean(L, gen_ret); - translator.Push(L, _hitInfo); - - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 2; - } - if(gen_param_count == 7&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)&& translator.Assignable(L, 7)) - { - UnityEngine.Vector3 _origin;translator.Get(L, 2, out _origin); - UnityEngine.Vector3 _direction;translator.Get(L, 3, out _direction); - UnityEngine.RaycastHit[] _raycastHits = (UnityEngine.RaycastHit[])translator.GetObject(L, 4, typeof(UnityEngine.RaycastHit[])); - float _maxDistance = (float)LuaAPI.lua_tonumber(L, 5); - int _layerMask = LuaAPI.xlua_tointeger(L, 6); - UnityEngine.QueryTriggerInteraction _queryTriggerInteraction;translator.Get(L, 7, out _queryTriggerInteraction); - - var gen_ret = gen_to_be_invoked.Raycast( _origin, _direction, _raycastHits, _maxDistance, _layerMask, _queryTriggerInteraction ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 6&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)) - { - UnityEngine.Vector3 _origin;translator.Get(L, 2, out _origin); - UnityEngine.Vector3 _direction;translator.Get(L, 3, out _direction); - UnityEngine.RaycastHit[] _raycastHits = (UnityEngine.RaycastHit[])translator.GetObject(L, 4, typeof(UnityEngine.RaycastHit[])); - float _maxDistance = (float)LuaAPI.lua_tonumber(L, 5); - int _layerMask = LuaAPI.xlua_tointeger(L, 6); - - var gen_ret = gen_to_be_invoked.Raycast( _origin, _direction, _raycastHits, _maxDistance, _layerMask ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 5&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - UnityEngine.Vector3 _origin;translator.Get(L, 2, out _origin); - UnityEngine.Vector3 _direction;translator.Get(L, 3, out _direction); - UnityEngine.RaycastHit[] _raycastHits = (UnityEngine.RaycastHit[])translator.GetObject(L, 4, typeof(UnityEngine.RaycastHit[])); - float _maxDistance = (float)LuaAPI.lua_tonumber(L, 5); - - var gen_ret = gen_to_be_invoked.Raycast( _origin, _direction, _raycastHits, _maxDistance ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)) - { - UnityEngine.Vector3 _origin;translator.Get(L, 2, out _origin); - UnityEngine.Vector3 _direction;translator.Get(L, 3, out _direction); - UnityEngine.RaycastHit[] _raycastHits = (UnityEngine.RaycastHit[])translator.GetObject(L, 4, typeof(UnityEngine.RaycastHit[])); - - var gen_ret = gen_to_be_invoked.Raycast( _origin, _direction, _raycastHits ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.PhysicsScene.Raycast!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CapsuleCast(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.PhysicsScene gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 8&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& translator.Assignable(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 7)&& translator.Assignable(L, 8)) - { - UnityEngine.Vector3 _point1;translator.Get(L, 2, out _point1); - UnityEngine.Vector3 _point2;translator.Get(L, 3, out _point2); - float _radius = (float)LuaAPI.lua_tonumber(L, 4); - UnityEngine.Vector3 _direction;translator.Get(L, 5, out _direction); - UnityEngine.RaycastHit _hitInfo; - float _maxDistance = (float)LuaAPI.lua_tonumber(L, 6); - int _layerMask = LuaAPI.xlua_tointeger(L, 7); - UnityEngine.QueryTriggerInteraction _queryTriggerInteraction;translator.Get(L, 8, out _queryTriggerInteraction); - - var gen_ret = gen_to_be_invoked.CapsuleCast( _point1, _point2, _radius, _direction, out _hitInfo, _maxDistance, _layerMask, _queryTriggerInteraction ); - LuaAPI.lua_pushboolean(L, gen_ret); - translator.Push(L, _hitInfo); - - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 2; - } - if(gen_param_count == 7&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& translator.Assignable(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 7)) - { - UnityEngine.Vector3 _point1;translator.Get(L, 2, out _point1); - UnityEngine.Vector3 _point2;translator.Get(L, 3, out _point2); - float _radius = (float)LuaAPI.lua_tonumber(L, 4); - UnityEngine.Vector3 _direction;translator.Get(L, 5, out _direction); - UnityEngine.RaycastHit _hitInfo; - float _maxDistance = (float)LuaAPI.lua_tonumber(L, 6); - int _layerMask = LuaAPI.xlua_tointeger(L, 7); - - var gen_ret = gen_to_be_invoked.CapsuleCast( _point1, _point2, _radius, _direction, out _hitInfo, _maxDistance, _layerMask ); - LuaAPI.lua_pushboolean(L, gen_ret); - translator.Push(L, _hitInfo); - - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 2; - } - if(gen_param_count == 6&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& translator.Assignable(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)) - { - UnityEngine.Vector3 _point1;translator.Get(L, 2, out _point1); - UnityEngine.Vector3 _point2;translator.Get(L, 3, out _point2); - float _radius = (float)LuaAPI.lua_tonumber(L, 4); - UnityEngine.Vector3 _direction;translator.Get(L, 5, out _direction); - UnityEngine.RaycastHit _hitInfo; - float _maxDistance = (float)LuaAPI.lua_tonumber(L, 6); - - var gen_ret = gen_to_be_invoked.CapsuleCast( _point1, _point2, _radius, _direction, out _hitInfo, _maxDistance ); - LuaAPI.lua_pushboolean(L, gen_ret); - translator.Push(L, _hitInfo); - - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 2; - } - if(gen_param_count == 5&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& translator.Assignable(L, 5)) - { - UnityEngine.Vector3 _point1;translator.Get(L, 2, out _point1); - UnityEngine.Vector3 _point2;translator.Get(L, 3, out _point2); - float _radius = (float)LuaAPI.lua_tonumber(L, 4); - UnityEngine.Vector3 _direction;translator.Get(L, 5, out _direction); - UnityEngine.RaycastHit _hitInfo; - - var gen_ret = gen_to_be_invoked.CapsuleCast( _point1, _point2, _radius, _direction, out _hitInfo ); - LuaAPI.lua_pushboolean(L, gen_ret); - translator.Push(L, _hitInfo); - - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 2; - } - if(gen_param_count == 9&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& translator.Assignable(L, 5)&& translator.Assignable(L, 6)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 7)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 8)&& translator.Assignable(L, 9)) - { - UnityEngine.Vector3 _point1;translator.Get(L, 2, out _point1); - UnityEngine.Vector3 _point2;translator.Get(L, 3, out _point2); - float _radius = (float)LuaAPI.lua_tonumber(L, 4); - UnityEngine.Vector3 _direction;translator.Get(L, 5, out _direction); - UnityEngine.RaycastHit[] _results = (UnityEngine.RaycastHit[])translator.GetObject(L, 6, typeof(UnityEngine.RaycastHit[])); - float _maxDistance = (float)LuaAPI.lua_tonumber(L, 7); - int _layerMask = LuaAPI.xlua_tointeger(L, 8); - UnityEngine.QueryTriggerInteraction _queryTriggerInteraction;translator.Get(L, 9, out _queryTriggerInteraction); - - var gen_ret = gen_to_be_invoked.CapsuleCast( _point1, _point2, _radius, _direction, _results, _maxDistance, _layerMask, _queryTriggerInteraction ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 8&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& translator.Assignable(L, 5)&& translator.Assignable(L, 6)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 7)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 8)) - { - UnityEngine.Vector3 _point1;translator.Get(L, 2, out _point1); - UnityEngine.Vector3 _point2;translator.Get(L, 3, out _point2); - float _radius = (float)LuaAPI.lua_tonumber(L, 4); - UnityEngine.Vector3 _direction;translator.Get(L, 5, out _direction); - UnityEngine.RaycastHit[] _results = (UnityEngine.RaycastHit[])translator.GetObject(L, 6, typeof(UnityEngine.RaycastHit[])); - float _maxDistance = (float)LuaAPI.lua_tonumber(L, 7); - int _layerMask = LuaAPI.xlua_tointeger(L, 8); - - var gen_ret = gen_to_be_invoked.CapsuleCast( _point1, _point2, _radius, _direction, _results, _maxDistance, _layerMask ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 7&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& translator.Assignable(L, 5)&& translator.Assignable(L, 6)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 7)) - { - UnityEngine.Vector3 _point1;translator.Get(L, 2, out _point1); - UnityEngine.Vector3 _point2;translator.Get(L, 3, out _point2); - float _radius = (float)LuaAPI.lua_tonumber(L, 4); - UnityEngine.Vector3 _direction;translator.Get(L, 5, out _direction); - UnityEngine.RaycastHit[] _results = (UnityEngine.RaycastHit[])translator.GetObject(L, 6, typeof(UnityEngine.RaycastHit[])); - float _maxDistance = (float)LuaAPI.lua_tonumber(L, 7); - - var gen_ret = gen_to_be_invoked.CapsuleCast( _point1, _point2, _radius, _direction, _results, _maxDistance ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 6&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& translator.Assignable(L, 5)&& translator.Assignable(L, 6)) - { - UnityEngine.Vector3 _point1;translator.Get(L, 2, out _point1); - UnityEngine.Vector3 _point2;translator.Get(L, 3, out _point2); - float _radius = (float)LuaAPI.lua_tonumber(L, 4); - UnityEngine.Vector3 _direction;translator.Get(L, 5, out _direction); - UnityEngine.RaycastHit[] _results = (UnityEngine.RaycastHit[])translator.GetObject(L, 6, typeof(UnityEngine.RaycastHit[])); - - var gen_ret = gen_to_be_invoked.CapsuleCast( _point1, _point2, _radius, _direction, _results ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.PhysicsScene.CapsuleCast!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OverlapCapsule(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.PhysicsScene gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 7&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& translator.Assignable(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)&& translator.Assignable(L, 7)) - { - UnityEngine.Vector3 _point0;translator.Get(L, 2, out _point0); - UnityEngine.Vector3 _point1;translator.Get(L, 3, out _point1); - float _radius = (float)LuaAPI.lua_tonumber(L, 4); - UnityEngine.Collider[] _results = (UnityEngine.Collider[])translator.GetObject(L, 5, typeof(UnityEngine.Collider[])); - int _layerMask = LuaAPI.xlua_tointeger(L, 6); - UnityEngine.QueryTriggerInteraction _queryTriggerInteraction;translator.Get(L, 7, out _queryTriggerInteraction); - - var gen_ret = gen_to_be_invoked.OverlapCapsule( _point0, _point1, _radius, _results, _layerMask, _queryTriggerInteraction ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 6&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& translator.Assignable(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)) - { - UnityEngine.Vector3 _point0;translator.Get(L, 2, out _point0); - UnityEngine.Vector3 _point1;translator.Get(L, 3, out _point1); - float _radius = (float)LuaAPI.lua_tonumber(L, 4); - UnityEngine.Collider[] _results = (UnityEngine.Collider[])translator.GetObject(L, 5, typeof(UnityEngine.Collider[])); - int _layerMask = LuaAPI.xlua_tointeger(L, 6); - - var gen_ret = gen_to_be_invoked.OverlapCapsule( _point0, _point1, _radius, _results, _layerMask ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 5&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& translator.Assignable(L, 5)) - { - UnityEngine.Vector3 _point0;translator.Get(L, 2, out _point0); - UnityEngine.Vector3 _point1;translator.Get(L, 3, out _point1); - float _radius = (float)LuaAPI.lua_tonumber(L, 4); - UnityEngine.Collider[] _results = (UnityEngine.Collider[])translator.GetObject(L, 5, typeof(UnityEngine.Collider[])); - - var gen_ret = gen_to_be_invoked.OverlapCapsule( _point0, _point1, _radius, _results ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.PhysicsScene.OverlapCapsule!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SphereCast(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.PhysicsScene gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 7&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)&& translator.Assignable(L, 7)) - { - UnityEngine.Vector3 _origin;translator.Get(L, 2, out _origin); - float _radius = (float)LuaAPI.lua_tonumber(L, 3); - UnityEngine.Vector3 _direction;translator.Get(L, 4, out _direction); - UnityEngine.RaycastHit _hitInfo; - float _maxDistance = (float)LuaAPI.lua_tonumber(L, 5); - int _layerMask = LuaAPI.xlua_tointeger(L, 6); - UnityEngine.QueryTriggerInteraction _queryTriggerInteraction;translator.Get(L, 7, out _queryTriggerInteraction); - - var gen_ret = gen_to_be_invoked.SphereCast( _origin, _radius, _direction, out _hitInfo, _maxDistance, _layerMask, _queryTriggerInteraction ); - LuaAPI.lua_pushboolean(L, gen_ret); - translator.Push(L, _hitInfo); - - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 2; - } - if(gen_param_count == 6&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)) - { - UnityEngine.Vector3 _origin;translator.Get(L, 2, out _origin); - float _radius = (float)LuaAPI.lua_tonumber(L, 3); - UnityEngine.Vector3 _direction;translator.Get(L, 4, out _direction); - UnityEngine.RaycastHit _hitInfo; - float _maxDistance = (float)LuaAPI.lua_tonumber(L, 5); - int _layerMask = LuaAPI.xlua_tointeger(L, 6); - - var gen_ret = gen_to_be_invoked.SphereCast( _origin, _radius, _direction, out _hitInfo, _maxDistance, _layerMask ); - LuaAPI.lua_pushboolean(L, gen_ret); - translator.Push(L, _hitInfo); - - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 2; - } - if(gen_param_count == 5&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - UnityEngine.Vector3 _origin;translator.Get(L, 2, out _origin); - float _radius = (float)LuaAPI.lua_tonumber(L, 3); - UnityEngine.Vector3 _direction;translator.Get(L, 4, out _direction); - UnityEngine.RaycastHit _hitInfo; - float _maxDistance = (float)LuaAPI.lua_tonumber(L, 5); - - var gen_ret = gen_to_be_invoked.SphereCast( _origin, _radius, _direction, out _hitInfo, _maxDistance ); - LuaAPI.lua_pushboolean(L, gen_ret); - translator.Push(L, _hitInfo); - - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 2; - } - if(gen_param_count == 4&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable(L, 4)) - { - UnityEngine.Vector3 _origin;translator.Get(L, 2, out _origin); - float _radius = (float)LuaAPI.lua_tonumber(L, 3); - UnityEngine.Vector3 _direction;translator.Get(L, 4, out _direction); - UnityEngine.RaycastHit _hitInfo; - - var gen_ret = gen_to_be_invoked.SphereCast( _origin, _radius, _direction, out _hitInfo ); - LuaAPI.lua_pushboolean(L, gen_ret); - translator.Push(L, _hitInfo); - - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 2; - } - if(gen_param_count == 8&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable(L, 4)&& translator.Assignable(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 7)&& translator.Assignable(L, 8)) - { - UnityEngine.Vector3 _origin;translator.Get(L, 2, out _origin); - float _radius = (float)LuaAPI.lua_tonumber(L, 3); - UnityEngine.Vector3 _direction;translator.Get(L, 4, out _direction); - UnityEngine.RaycastHit[] _results = (UnityEngine.RaycastHit[])translator.GetObject(L, 5, typeof(UnityEngine.RaycastHit[])); - float _maxDistance = (float)LuaAPI.lua_tonumber(L, 6); - int _layerMask = LuaAPI.xlua_tointeger(L, 7); - UnityEngine.QueryTriggerInteraction _queryTriggerInteraction;translator.Get(L, 8, out _queryTriggerInteraction); - - var gen_ret = gen_to_be_invoked.SphereCast( _origin, _radius, _direction, _results, _maxDistance, _layerMask, _queryTriggerInteraction ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 7&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable(L, 4)&& translator.Assignable(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 7)) - { - UnityEngine.Vector3 _origin;translator.Get(L, 2, out _origin); - float _radius = (float)LuaAPI.lua_tonumber(L, 3); - UnityEngine.Vector3 _direction;translator.Get(L, 4, out _direction); - UnityEngine.RaycastHit[] _results = (UnityEngine.RaycastHit[])translator.GetObject(L, 5, typeof(UnityEngine.RaycastHit[])); - float _maxDistance = (float)LuaAPI.lua_tonumber(L, 6); - int _layerMask = LuaAPI.xlua_tointeger(L, 7); - - var gen_ret = gen_to_be_invoked.SphereCast( _origin, _radius, _direction, _results, _maxDistance, _layerMask ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 6&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable(L, 4)&& translator.Assignable(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)) - { - UnityEngine.Vector3 _origin;translator.Get(L, 2, out _origin); - float _radius = (float)LuaAPI.lua_tonumber(L, 3); - UnityEngine.Vector3 _direction;translator.Get(L, 4, out _direction); - UnityEngine.RaycastHit[] _results = (UnityEngine.RaycastHit[])translator.GetObject(L, 5, typeof(UnityEngine.RaycastHit[])); - float _maxDistance = (float)LuaAPI.lua_tonumber(L, 6); - - var gen_ret = gen_to_be_invoked.SphereCast( _origin, _radius, _direction, _results, _maxDistance ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 5&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable(L, 4)&& translator.Assignable(L, 5)) - { - UnityEngine.Vector3 _origin;translator.Get(L, 2, out _origin); - float _radius = (float)LuaAPI.lua_tonumber(L, 3); - UnityEngine.Vector3 _direction;translator.Get(L, 4, out _direction); - UnityEngine.RaycastHit[] _results = (UnityEngine.RaycastHit[])translator.GetObject(L, 5, typeof(UnityEngine.RaycastHit[])); - - var gen_ret = gen_to_be_invoked.SphereCast( _origin, _radius, _direction, _results ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.PhysicsScene.SphereCast!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OverlapSphere(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.PhysicsScene gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - UnityEngine.Vector3 _position;translator.Get(L, 2, out _position); - float _radius = (float)LuaAPI.lua_tonumber(L, 3); - UnityEngine.Collider[] _results = (UnityEngine.Collider[])translator.GetObject(L, 4, typeof(UnityEngine.Collider[])); - int _layerMask = LuaAPI.xlua_tointeger(L, 5); - UnityEngine.QueryTriggerInteraction _queryTriggerInteraction;translator.Get(L, 6, out _queryTriggerInteraction); - - var gen_ret = gen_to_be_invoked.OverlapSphere( _position, _radius, _results, _layerMask, _queryTriggerInteraction ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_BoxCast(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.PhysicsScene gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 4&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)) - { - UnityEngine.Vector3 _center;translator.Get(L, 2, out _center); - UnityEngine.Vector3 _halfExtents;translator.Get(L, 3, out _halfExtents); - UnityEngine.Vector3 _direction;translator.Get(L, 4, out _direction); - UnityEngine.RaycastHit _hitInfo; - - var gen_ret = gen_to_be_invoked.BoxCast( _center, _halfExtents, _direction, out _hitInfo ); - LuaAPI.lua_pushboolean(L, gen_ret); - translator.Push(L, _hitInfo); - - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 2; - } - if(gen_param_count == 5&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)&& translator.Assignable(L, 5)) - { - UnityEngine.Vector3 _center;translator.Get(L, 2, out _center); - UnityEngine.Vector3 _halfExtents;translator.Get(L, 3, out _halfExtents); - UnityEngine.Vector3 _direction;translator.Get(L, 4, out _direction); - UnityEngine.RaycastHit[] _results = (UnityEngine.RaycastHit[])translator.GetObject(L, 5, typeof(UnityEngine.RaycastHit[])); - - var gen_ret = gen_to_be_invoked.BoxCast( _center, _halfExtents, _direction, _results ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 8&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)&& translator.Assignable(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 7)&& translator.Assignable(L, 8)) - { - UnityEngine.Vector3 _center;translator.Get(L, 2, out _center); - UnityEngine.Vector3 _halfExtents;translator.Get(L, 3, out _halfExtents); - UnityEngine.Vector3 _direction;translator.Get(L, 4, out _direction); - UnityEngine.RaycastHit _hitInfo; - UnityEngine.Quaternion _orientation;translator.Get(L, 5, out _orientation); - float _maxDistance = (float)LuaAPI.lua_tonumber(L, 6); - int _layerMask = LuaAPI.xlua_tointeger(L, 7); - UnityEngine.QueryTriggerInteraction _queryTriggerInteraction;translator.Get(L, 8, out _queryTriggerInteraction); - - var gen_ret = gen_to_be_invoked.BoxCast( _center, _halfExtents, _direction, out _hitInfo, _orientation, _maxDistance, _layerMask, _queryTriggerInteraction ); - LuaAPI.lua_pushboolean(L, gen_ret); - translator.Push(L, _hitInfo); - - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 2; - } - if(gen_param_count == 7&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)&& translator.Assignable(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 7)) - { - UnityEngine.Vector3 _center;translator.Get(L, 2, out _center); - UnityEngine.Vector3 _halfExtents;translator.Get(L, 3, out _halfExtents); - UnityEngine.Vector3 _direction;translator.Get(L, 4, out _direction); - UnityEngine.RaycastHit _hitInfo; - UnityEngine.Quaternion _orientation;translator.Get(L, 5, out _orientation); - float _maxDistance = (float)LuaAPI.lua_tonumber(L, 6); - int _layerMask = LuaAPI.xlua_tointeger(L, 7); - - var gen_ret = gen_to_be_invoked.BoxCast( _center, _halfExtents, _direction, out _hitInfo, _orientation, _maxDistance, _layerMask ); - LuaAPI.lua_pushboolean(L, gen_ret); - translator.Push(L, _hitInfo); - - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 2; - } - if(gen_param_count == 6&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)&& translator.Assignable(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)) - { - UnityEngine.Vector3 _center;translator.Get(L, 2, out _center); - UnityEngine.Vector3 _halfExtents;translator.Get(L, 3, out _halfExtents); - UnityEngine.Vector3 _direction;translator.Get(L, 4, out _direction); - UnityEngine.RaycastHit _hitInfo; - UnityEngine.Quaternion _orientation;translator.Get(L, 5, out _orientation); - float _maxDistance = (float)LuaAPI.lua_tonumber(L, 6); - - var gen_ret = gen_to_be_invoked.BoxCast( _center, _halfExtents, _direction, out _hitInfo, _orientation, _maxDistance ); - LuaAPI.lua_pushboolean(L, gen_ret); - translator.Push(L, _hitInfo); - - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 2; - } - if(gen_param_count == 5&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)&& translator.Assignable(L, 5)) - { - UnityEngine.Vector3 _center;translator.Get(L, 2, out _center); - UnityEngine.Vector3 _halfExtents;translator.Get(L, 3, out _halfExtents); - UnityEngine.Vector3 _direction;translator.Get(L, 4, out _direction); - UnityEngine.RaycastHit _hitInfo; - UnityEngine.Quaternion _orientation;translator.Get(L, 5, out _orientation); - - var gen_ret = gen_to_be_invoked.BoxCast( _center, _halfExtents, _direction, out _hitInfo, _orientation ); - LuaAPI.lua_pushboolean(L, gen_ret); - translator.Push(L, _hitInfo); - - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 2; - } - if(gen_param_count == 9&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)&& translator.Assignable(L, 5)&& translator.Assignable(L, 6)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 7)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 8)&& translator.Assignable(L, 9)) - { - UnityEngine.Vector3 _center;translator.Get(L, 2, out _center); - UnityEngine.Vector3 _halfExtents;translator.Get(L, 3, out _halfExtents); - UnityEngine.Vector3 _direction;translator.Get(L, 4, out _direction); - UnityEngine.RaycastHit[] _results = (UnityEngine.RaycastHit[])translator.GetObject(L, 5, typeof(UnityEngine.RaycastHit[])); - UnityEngine.Quaternion _orientation;translator.Get(L, 6, out _orientation); - float _maxDistance = (float)LuaAPI.lua_tonumber(L, 7); - int _layerMask = LuaAPI.xlua_tointeger(L, 8); - UnityEngine.QueryTriggerInteraction _queryTriggerInteraction;translator.Get(L, 9, out _queryTriggerInteraction); - - var gen_ret = gen_to_be_invoked.BoxCast( _center, _halfExtents, _direction, _results, _orientation, _maxDistance, _layerMask, _queryTriggerInteraction ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 8&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)&& translator.Assignable(L, 5)&& translator.Assignable(L, 6)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 7)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 8)) - { - UnityEngine.Vector3 _center;translator.Get(L, 2, out _center); - UnityEngine.Vector3 _halfExtents;translator.Get(L, 3, out _halfExtents); - UnityEngine.Vector3 _direction;translator.Get(L, 4, out _direction); - UnityEngine.RaycastHit[] _results = (UnityEngine.RaycastHit[])translator.GetObject(L, 5, typeof(UnityEngine.RaycastHit[])); - UnityEngine.Quaternion _orientation;translator.Get(L, 6, out _orientation); - float _maxDistance = (float)LuaAPI.lua_tonumber(L, 7); - int _layerMask = LuaAPI.xlua_tointeger(L, 8); - - var gen_ret = gen_to_be_invoked.BoxCast( _center, _halfExtents, _direction, _results, _orientation, _maxDistance, _layerMask ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 7&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)&& translator.Assignable(L, 5)&& translator.Assignable(L, 6)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 7)) - { - UnityEngine.Vector3 _center;translator.Get(L, 2, out _center); - UnityEngine.Vector3 _halfExtents;translator.Get(L, 3, out _halfExtents); - UnityEngine.Vector3 _direction;translator.Get(L, 4, out _direction); - UnityEngine.RaycastHit[] _results = (UnityEngine.RaycastHit[])translator.GetObject(L, 5, typeof(UnityEngine.RaycastHit[])); - UnityEngine.Quaternion _orientation;translator.Get(L, 6, out _orientation); - float _maxDistance = (float)LuaAPI.lua_tonumber(L, 7); - - var gen_ret = gen_to_be_invoked.BoxCast( _center, _halfExtents, _direction, _results, _orientation, _maxDistance ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 6&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)&& translator.Assignable(L, 5)&& translator.Assignable(L, 6)) - { - UnityEngine.Vector3 _center;translator.Get(L, 2, out _center); - UnityEngine.Vector3 _halfExtents;translator.Get(L, 3, out _halfExtents); - UnityEngine.Vector3 _direction;translator.Get(L, 4, out _direction); - UnityEngine.RaycastHit[] _results = (UnityEngine.RaycastHit[])translator.GetObject(L, 5, typeof(UnityEngine.RaycastHit[])); - UnityEngine.Quaternion _orientation;translator.Get(L, 6, out _orientation); - - var gen_ret = gen_to_be_invoked.BoxCast( _center, _halfExtents, _direction, _results, _orientation ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.PhysicsScene.BoxCast!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OverlapBox(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.PhysicsScene gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 4&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)) - { - UnityEngine.Vector3 _center;translator.Get(L, 2, out _center); - UnityEngine.Vector3 _halfExtents;translator.Get(L, 3, out _halfExtents); - UnityEngine.Collider[] _results = (UnityEngine.Collider[])translator.GetObject(L, 4, typeof(UnityEngine.Collider[])); - - var gen_ret = gen_to_be_invoked.OverlapBox( _center, _halfExtents, _results ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 7&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)&& translator.Assignable(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)&& translator.Assignable(L, 7)) - { - UnityEngine.Vector3 _center;translator.Get(L, 2, out _center); - UnityEngine.Vector3 _halfExtents;translator.Get(L, 3, out _halfExtents); - UnityEngine.Collider[] _results = (UnityEngine.Collider[])translator.GetObject(L, 4, typeof(UnityEngine.Collider[])); - UnityEngine.Quaternion _orientation;translator.Get(L, 5, out _orientation); - int _layerMask = LuaAPI.xlua_tointeger(L, 6); - UnityEngine.QueryTriggerInteraction _queryTriggerInteraction;translator.Get(L, 7, out _queryTriggerInteraction); - - var gen_ret = gen_to_be_invoked.OverlapBox( _center, _halfExtents, _results, _orientation, _layerMask, _queryTriggerInteraction ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 6&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)&& translator.Assignable(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)) - { - UnityEngine.Vector3 _center;translator.Get(L, 2, out _center); - UnityEngine.Vector3 _halfExtents;translator.Get(L, 3, out _halfExtents); - UnityEngine.Collider[] _results = (UnityEngine.Collider[])translator.GetObject(L, 4, typeof(UnityEngine.Collider[])); - UnityEngine.Quaternion _orientation;translator.Get(L, 5, out _orientation); - int _layerMask = LuaAPI.xlua_tointeger(L, 6); - - var gen_ret = gen_to_be_invoked.OverlapBox( _center, _halfExtents, _results, _orientation, _layerMask ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 5&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)&& translator.Assignable(L, 5)) - { - UnityEngine.Vector3 _center;translator.Get(L, 2, out _center); - UnityEngine.Vector3 _halfExtents;translator.Get(L, 3, out _halfExtents); - UnityEngine.Collider[] _results = (UnityEngine.Collider[])translator.GetObject(L, 4, typeof(UnityEngine.Collider[])); - UnityEngine.Quaternion _orientation;translator.Get(L, 5, out _orientation); - - var gen_ret = gen_to_be_invoked.OverlapBox( _center, _halfExtents, _results, _orientation ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.PhysicsScene.OverlapBox!"); - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_PhysicsUpdateBehaviour2DWrap.cs b/Assets/XLua/Gen/UnityEngine_PhysicsUpdateBehaviour2DWrap.cs deleted file mode 100644 index 885c64235..000000000 --- a/Assets/XLua/Gen/UnityEngine_PhysicsUpdateBehaviour2DWrap.cs +++ /dev/null @@ -1,84 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEnginePhysicsUpdateBehaviour2DWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.PhysicsUpdateBehaviour2D); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.PhysicsUpdateBehaviour2D(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.PhysicsUpdateBehaviour2D constructor!"); - - } - - - - - - - - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_PlaneWrap.cs b/Assets/XLua/Gen/UnityEngine_PlaneWrap.cs deleted file mode 100644 index 86fd91341..000000000 --- a/Assets/XLua/Gen/UnityEngine_PlaneWrap.cs +++ /dev/null @@ -1,576 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEnginePlaneWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.Plane); - Utils.BeginObjectRegister(type, L, translator, 0, 10, 3, 2); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetNormalAndPosition", _m_SetNormalAndPosition); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Set3Points", _m_Set3Points); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Flip", _m_Flip); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Translate", _m_Translate); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ClosestPointOnPlane", _m_ClosestPointOnPlane); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetDistanceToPoint", _m_GetDistanceToPoint); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetSide", _m_GetSide); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SameSide", _m_SameSide); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Raycast", _m_Raycast); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ToString", _m_ToString); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "normal", _g_get_normal); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "distance", _g_get_distance); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "flipped", _g_get_flipped); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "normal", _s_set_normal); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "distance", _s_set_distance); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 2, 0, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Translate", _m_Translate_xlua_st_); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 3 && translator.Assignable(L, 2) && translator.Assignable(L, 3)) - { - UnityEngine.Vector3 _inNormal;translator.Get(L, 2, out _inNormal); - UnityEngine.Vector3 _inPoint;translator.Get(L, 3, out _inPoint); - - var gen_ret = new UnityEngine.Plane(_inNormal, _inPoint); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 3 && translator.Assignable(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - UnityEngine.Vector3 _inNormal;translator.Get(L, 2, out _inNormal); - float _d = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = new UnityEngine.Plane(_inNormal, _d); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 4 && translator.Assignable(L, 2) && translator.Assignable(L, 3) && translator.Assignable(L, 4)) - { - UnityEngine.Vector3 _a;translator.Get(L, 2, out _a); - UnityEngine.Vector3 _b;translator.Get(L, 3, out _b); - UnityEngine.Vector3 _c;translator.Get(L, 4, out _c); - - var gen_ret = new UnityEngine.Plane(_a, _b, _c); - translator.Push(L, gen_ret); - - return 1; - } - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(UnityEngine.Plane)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Plane constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetNormalAndPosition(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Plane gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - UnityEngine.Vector3 _inNormal;translator.Get(L, 2, out _inNormal); - UnityEngine.Vector3 _inPoint;translator.Get(L, 3, out _inPoint); - - gen_to_be_invoked.SetNormalAndPosition( _inNormal, _inPoint ); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Set3Points(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Plane gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - UnityEngine.Vector3 _a;translator.Get(L, 2, out _a); - UnityEngine.Vector3 _b;translator.Get(L, 3, out _b); - UnityEngine.Vector3 _c;translator.Get(L, 4, out _c); - - gen_to_be_invoked.Set3Points( _a, _b, _c ); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Flip(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Plane gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - - gen_to_be_invoked.Flip( ); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Translate(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Plane gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - UnityEngine.Vector3 _translation;translator.Get(L, 2, out _translation); - - gen_to_be_invoked.Translate( _translation ); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Translate_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Plane _plane;translator.Get(L, 1, out _plane); - UnityEngine.Vector3 _translation;translator.Get(L, 2, out _translation); - - var gen_ret = UnityEngine.Plane.Translate( _plane, _translation ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ClosestPointOnPlane(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Plane gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - UnityEngine.Vector3 _point;translator.Get(L, 2, out _point); - - var gen_ret = gen_to_be_invoked.ClosestPointOnPlane( _point ); - translator.PushUnityEngineVector3(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetDistanceToPoint(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Plane gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - UnityEngine.Vector3 _point;translator.Get(L, 2, out _point); - - var gen_ret = gen_to_be_invoked.GetDistanceToPoint( _point ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetSide(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Plane gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - UnityEngine.Vector3 _point;translator.Get(L, 2, out _point); - - var gen_ret = gen_to_be_invoked.GetSide( _point ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SameSide(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Plane gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - UnityEngine.Vector3 _inPt0;translator.Get(L, 2, out _inPt0); - UnityEngine.Vector3 _inPt1;translator.Get(L, 3, out _inPt1); - - var gen_ret = gen_to_be_invoked.SameSide( _inPt0, _inPt1 ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Raycast(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Plane gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - UnityEngine.Ray _ray;translator.Get(L, 2, out _ray); - float _enter; - - var gen_ret = gen_to_be_invoked.Raycast( _ray, out _enter ); - LuaAPI.lua_pushboolean(L, gen_ret); - LuaAPI.lua_pushnumber(L, _enter); - - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 2; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ToString(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Plane gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - var gen_ret = gen_to_be_invoked.ToString( ); - LuaAPI.lua_pushstring(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _format = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.ToString( _format ); - LuaAPI.lua_pushstring(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 3)) - { - string _format = LuaAPI.lua_tostring(L, 2); - System.IFormatProvider _formatProvider = (System.IFormatProvider)translator.GetObject(L, 3, typeof(System.IFormatProvider)); - - var gen_ret = gen_to_be_invoked.ToString( _format, _formatProvider ); - LuaAPI.lua_pushstring(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Plane.ToString!"); - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_normal(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Plane gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.normal); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_distance(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Plane gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.distance); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_flipped(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Plane gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.flipped); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_normal(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Plane gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Vector3 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.normal = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_distance(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Plane gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.distance = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_PlatformEffector2DWrap.cs b/Assets/XLua/Gen/UnityEngine_PlatformEffector2DWrap.cs deleted file mode 100644 index a9f97c5c2..000000000 --- a/Assets/XLua/Gen/UnityEngine_PlatformEffector2DWrap.cs +++ /dev/null @@ -1,301 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEnginePlatformEffector2DWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.PlatformEffector2D); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 7, 7); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "useOneWay", _g_get_useOneWay); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "useOneWayGrouping", _g_get_useOneWayGrouping); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "useSideFriction", _g_get_useSideFriction); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "useSideBounce", _g_get_useSideBounce); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "surfaceArc", _g_get_surfaceArc); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "sideArc", _g_get_sideArc); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "rotationalOffset", _g_get_rotationalOffset); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "useOneWay", _s_set_useOneWay); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "useOneWayGrouping", _s_set_useOneWayGrouping); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "useSideFriction", _s_set_useSideFriction); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "useSideBounce", _s_set_useSideBounce); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "surfaceArc", _s_set_surfaceArc); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "sideArc", _s_set_sideArc); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "rotationalOffset", _s_set_rotationalOffset); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.PlatformEffector2D(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.PlatformEffector2D constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_useOneWay(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.PlatformEffector2D gen_to_be_invoked = (UnityEngine.PlatformEffector2D)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.useOneWay); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_useOneWayGrouping(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.PlatformEffector2D gen_to_be_invoked = (UnityEngine.PlatformEffector2D)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.useOneWayGrouping); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_useSideFriction(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.PlatformEffector2D gen_to_be_invoked = (UnityEngine.PlatformEffector2D)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.useSideFriction); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_useSideBounce(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.PlatformEffector2D gen_to_be_invoked = (UnityEngine.PlatformEffector2D)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.useSideBounce); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_surfaceArc(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.PlatformEffector2D gen_to_be_invoked = (UnityEngine.PlatformEffector2D)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.surfaceArc); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_sideArc(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.PlatformEffector2D gen_to_be_invoked = (UnityEngine.PlatformEffector2D)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.sideArc); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_rotationalOffset(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.PlatformEffector2D gen_to_be_invoked = (UnityEngine.PlatformEffector2D)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.rotationalOffset); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_useOneWay(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.PlatformEffector2D gen_to_be_invoked = (UnityEngine.PlatformEffector2D)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.useOneWay = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_useOneWayGrouping(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.PlatformEffector2D gen_to_be_invoked = (UnityEngine.PlatformEffector2D)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.useOneWayGrouping = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_useSideFriction(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.PlatformEffector2D gen_to_be_invoked = (UnityEngine.PlatformEffector2D)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.useSideFriction = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_useSideBounce(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.PlatformEffector2D gen_to_be_invoked = (UnityEngine.PlatformEffector2D)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.useSideBounce = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_surfaceArc(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.PlatformEffector2D gen_to_be_invoked = (UnityEngine.PlatformEffector2D)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.surfaceArc = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_sideArc(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.PlatformEffector2D gen_to_be_invoked = (UnityEngine.PlatformEffector2D)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.sideArc = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_rotationalOffset(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.PlatformEffector2D gen_to_be_invoked = (UnityEngine.PlatformEffector2D)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.rotationalOffset = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_PlayerPrefsExceptionWrap.cs b/Assets/XLua/Gen/UnityEngine_PlayerPrefsExceptionWrap.cs deleted file mode 100644 index 33cde82f1..000000000 --- a/Assets/XLua/Gen/UnityEngine_PlayerPrefsExceptionWrap.cs +++ /dev/null @@ -1,85 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEnginePlayerPrefsExceptionWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.PlayerPrefsException); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 2 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _error = LuaAPI.lua_tostring(L, 2); - - var gen_ret = new UnityEngine.PlayerPrefsException(_error); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.PlayerPrefsException constructor!"); - - } - - - - - - - - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_PointEffector2DWrap.cs b/Assets/XLua/Gen/UnityEngine_PointEffector2DWrap.cs deleted file mode 100644 index 5cf51cd21..000000000 --- a/Assets/XLua/Gen/UnityEngine_PointEffector2DWrap.cs +++ /dev/null @@ -1,335 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEnginePointEffector2DWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.PointEffector2D); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 8, 8); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "forceMagnitude", _g_get_forceMagnitude); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "forceVariation", _g_get_forceVariation); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "distanceScale", _g_get_distanceScale); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "drag", _g_get_drag); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "angularDrag", _g_get_angularDrag); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "forceSource", _g_get_forceSource); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "forceTarget", _g_get_forceTarget); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "forceMode", _g_get_forceMode); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "forceMagnitude", _s_set_forceMagnitude); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "forceVariation", _s_set_forceVariation); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "distanceScale", _s_set_distanceScale); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "drag", _s_set_drag); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "angularDrag", _s_set_angularDrag); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "forceSource", _s_set_forceSource); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "forceTarget", _s_set_forceTarget); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "forceMode", _s_set_forceMode); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.PointEffector2D(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.PointEffector2D constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_forceMagnitude(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.PointEffector2D gen_to_be_invoked = (UnityEngine.PointEffector2D)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.forceMagnitude); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_forceVariation(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.PointEffector2D gen_to_be_invoked = (UnityEngine.PointEffector2D)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.forceVariation); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_distanceScale(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.PointEffector2D gen_to_be_invoked = (UnityEngine.PointEffector2D)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.distanceScale); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_drag(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.PointEffector2D gen_to_be_invoked = (UnityEngine.PointEffector2D)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.drag); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_angularDrag(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.PointEffector2D gen_to_be_invoked = (UnityEngine.PointEffector2D)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.angularDrag); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_forceSource(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.PointEffector2D gen_to_be_invoked = (UnityEngine.PointEffector2D)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.forceSource); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_forceTarget(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.PointEffector2D gen_to_be_invoked = (UnityEngine.PointEffector2D)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.forceTarget); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_forceMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.PointEffector2D gen_to_be_invoked = (UnityEngine.PointEffector2D)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.forceMode); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_forceMagnitude(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.PointEffector2D gen_to_be_invoked = (UnityEngine.PointEffector2D)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.forceMagnitude = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_forceVariation(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.PointEffector2D gen_to_be_invoked = (UnityEngine.PointEffector2D)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.forceVariation = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_distanceScale(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.PointEffector2D gen_to_be_invoked = (UnityEngine.PointEffector2D)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.distanceScale = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_drag(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.PointEffector2D gen_to_be_invoked = (UnityEngine.PointEffector2D)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.drag = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_angularDrag(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.PointEffector2D gen_to_be_invoked = (UnityEngine.PointEffector2D)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.angularDrag = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_forceSource(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.PointEffector2D gen_to_be_invoked = (UnityEngine.PointEffector2D)translator.FastGetCSObj(L, 1); - UnityEngine.EffectorSelection2D gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.forceSource = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_forceTarget(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.PointEffector2D gen_to_be_invoked = (UnityEngine.PointEffector2D)translator.FastGetCSObj(L, 1); - UnityEngine.EffectorSelection2D gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.forceTarget = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_forceMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.PointEffector2D gen_to_be_invoked = (UnityEngine.PointEffector2D)translator.FastGetCSObj(L, 1); - UnityEngine.EffectorForceMode2D gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.forceMode = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_PolygonCollider2DWrap.cs b/Assets/XLua/Gen/UnityEngine_PolygonCollider2DWrap.cs deleted file mode 100644 index 84ff37d3a..000000000 --- a/Assets/XLua/Gen/UnityEngine_PolygonCollider2DWrap.cs +++ /dev/null @@ -1,353 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEnginePolygonCollider2DWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.PolygonCollider2D); - Utils.BeginObjectRegister(type, L, translator, 0, 4, 3, 3); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetTotalPointCount", _m_GetTotalPointCount); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetPath", _m_GetPath); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetPath", _m_SetPath); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "CreatePrimitive", _m_CreatePrimitive); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "autoTiling", _g_get_autoTiling); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "points", _g_get_points); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "pathCount", _g_get_pathCount); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "autoTiling", _s_set_autoTiling); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "points", _s_set_points); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "pathCount", _s_set_pathCount); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.PolygonCollider2D(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.PolygonCollider2D constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetTotalPointCount(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.PolygonCollider2D gen_to_be_invoked = (UnityEngine.PolygonCollider2D)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.GetTotalPointCount( ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetPath(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.PolygonCollider2D gen_to_be_invoked = (UnityEngine.PolygonCollider2D)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - int _index = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.GetPath( _index ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable>(L, 3)) - { - int _index = LuaAPI.xlua_tointeger(L, 2); - System.Collections.Generic.List _points = (System.Collections.Generic.List)translator.GetObject(L, 3, typeof(System.Collections.Generic.List)); - - var gen_ret = gen_to_be_invoked.GetPath( _index, _points ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.PolygonCollider2D.GetPath!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetPath(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.PolygonCollider2D gen_to_be_invoked = (UnityEngine.PolygonCollider2D)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)) - { - int _index = LuaAPI.xlua_tointeger(L, 2); - UnityEngine.Vector2[] _points = (UnityEngine.Vector2[])translator.GetObject(L, 3, typeof(UnityEngine.Vector2[])); - - gen_to_be_invoked.SetPath( _index, _points ); - - - - return 0; - } - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable>(L, 3)) - { - int _index = LuaAPI.xlua_tointeger(L, 2); - System.Collections.Generic.List _points = (System.Collections.Generic.List)translator.GetObject(L, 3, typeof(System.Collections.Generic.List)); - - gen_to_be_invoked.SetPath( _index, _points ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.PolygonCollider2D.SetPath!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CreatePrimitive(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.PolygonCollider2D gen_to_be_invoked = (UnityEngine.PolygonCollider2D)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - int _sides = LuaAPI.xlua_tointeger(L, 2); - - gen_to_be_invoked.CreatePrimitive( _sides ); - - - - return 0; - } - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)) - { - int _sides = LuaAPI.xlua_tointeger(L, 2); - UnityEngine.Vector2 _scale;translator.Get(L, 3, out _scale); - - gen_to_be_invoked.CreatePrimitive( _sides, _scale ); - - - - return 0; - } - if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)) - { - int _sides = LuaAPI.xlua_tointeger(L, 2); - UnityEngine.Vector2 _scale;translator.Get(L, 3, out _scale); - UnityEngine.Vector2 _offset;translator.Get(L, 4, out _offset); - - gen_to_be_invoked.CreatePrimitive( _sides, _scale, _offset ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.PolygonCollider2D.CreatePrimitive!"); - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_autoTiling(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.PolygonCollider2D gen_to_be_invoked = (UnityEngine.PolygonCollider2D)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.autoTiling); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_points(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.PolygonCollider2D gen_to_be_invoked = (UnityEngine.PolygonCollider2D)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.points); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_pathCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.PolygonCollider2D gen_to_be_invoked = (UnityEngine.PolygonCollider2D)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.pathCount); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_autoTiling(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.PolygonCollider2D gen_to_be_invoked = (UnityEngine.PolygonCollider2D)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.autoTiling = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_points(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.PolygonCollider2D gen_to_be_invoked = (UnityEngine.PolygonCollider2D)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.points = (UnityEngine.Vector2[])translator.GetObject(L, 2, typeof(UnityEngine.Vector2[])); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_pathCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.PolygonCollider2D gen_to_be_invoked = (UnityEngine.PolygonCollider2D)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.pathCount = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_PoseWrap.cs b/Assets/XLua/Gen/UnityEngine_PoseWrap.cs deleted file mode 100644 index d67d7ad03..000000000 --- a/Assets/XLua/Gen/UnityEngine_PoseWrap.cs +++ /dev/null @@ -1,422 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEnginePoseWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.Pose); - Utils.BeginObjectRegister(type, L, translator, 1, 4, 5, 2); - Utils.RegisterFunc(L, Utils.OBJ_META_IDX, "__eq", __EqMeta); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ToString", _m_ToString); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetTransformedBy", _m_GetTransformedBy); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Equals", _m_Equals); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetHashCode", _m_GetHashCode); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "forward", _g_get_forward); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "right", _g_get_right); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "up", _g_get_up); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "position", _g_get_position); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "rotation", _g_get_rotation); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "position", _s_set_position); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "rotation", _s_set_rotation); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 1, 0); - - - - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "identity", _g_get_identity); - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 3 && translator.Assignable(L, 2) && translator.Assignable(L, 3)) - { - UnityEngine.Vector3 _position;translator.Get(L, 2, out _position); - UnityEngine.Quaternion _rotation;translator.Get(L, 3, out _rotation); - - var gen_ret = new UnityEngine.Pose(_position, _rotation); - translator.Push(L, gen_ret); - - return 1; - } - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(UnityEngine.Pose)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Pose constructor!"); - - } - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __EqMeta(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - if (translator.Assignable(L, 1) && translator.Assignable(L, 2)) - { - UnityEngine.Pose leftside;translator.Get(L, 1, out leftside); - UnityEngine.Pose rightside;translator.Get(L, 2, out rightside); - - LuaAPI.lua_pushboolean(L, leftside == rightside); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to right hand of == operator, need UnityEngine.Pose!"); - - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ToString(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Pose gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - var gen_ret = gen_to_be_invoked.ToString( ); - LuaAPI.lua_pushstring(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _format = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.ToString( _format ); - LuaAPI.lua_pushstring(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Pose.ToString!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetTransformedBy(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Pose gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.Pose _lhs;translator.Get(L, 2, out _lhs); - - var gen_ret = gen_to_be_invoked.GetTransformedBy( _lhs ); - translator.Push(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.Transform _lhs = (UnityEngine.Transform)translator.GetObject(L, 2, typeof(UnityEngine.Transform)); - - var gen_ret = gen_to_be_invoked.GetTransformedBy( _lhs ); - translator.Push(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Pose.GetTransformedBy!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Equals(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Pose gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - object _obj = translator.GetObject(L, 2, typeof(object)); - - var gen_ret = gen_to_be_invoked.Equals( _obj ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.Pose _other;translator.Get(L, 2, out _other); - - var gen_ret = gen_to_be_invoked.Equals( _other ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Pose.Equals!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetHashCode(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Pose gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - - var gen_ret = gen_to_be_invoked.GetHashCode( ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_forward(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Pose gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.forward); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_right(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Pose gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.right); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_up(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Pose gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.up); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_identity(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, UnityEngine.Pose.identity); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_position(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Pose gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.position); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_rotation(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Pose gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineQuaternion(L, gen_to_be_invoked.rotation); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_position(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Pose gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Vector3 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.position = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_rotation(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Pose gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Quaternion gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.rotation = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_PreferBinarySerializationWrap.cs b/Assets/XLua/Gen/UnityEngine_PreferBinarySerializationWrap.cs deleted file mode 100644 index f53170128..000000000 --- a/Assets/XLua/Gen/UnityEngine_PreferBinarySerializationWrap.cs +++ /dev/null @@ -1,84 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEnginePreferBinarySerializationWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.PreferBinarySerialization); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.PreferBinarySerialization(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.PreferBinarySerialization constructor!"); - - } - - - - - - - - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_ProjectorWrap.cs b/Assets/XLua/Gen/UnityEngine_ProjectorWrap.cs deleted file mode 100644 index e920190bb..000000000 --- a/Assets/XLua/Gen/UnityEngine_ProjectorWrap.cs +++ /dev/null @@ -1,332 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineProjectorWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.Projector); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 8, 8); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "nearClipPlane", _g_get_nearClipPlane); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "farClipPlane", _g_get_farClipPlane); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "fieldOfView", _g_get_fieldOfView); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "aspectRatio", _g_get_aspectRatio); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "orthographic", _g_get_orthographic); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "orthographicSize", _g_get_orthographicSize); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "ignoreLayers", _g_get_ignoreLayers); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "material", _g_get_material); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "nearClipPlane", _s_set_nearClipPlane); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "farClipPlane", _s_set_farClipPlane); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "fieldOfView", _s_set_fieldOfView); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "aspectRatio", _s_set_aspectRatio); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "orthographic", _s_set_orthographic); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "orthographicSize", _s_set_orthographicSize); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "ignoreLayers", _s_set_ignoreLayers); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "material", _s_set_material); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.Projector(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Projector constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_nearClipPlane(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Projector gen_to_be_invoked = (UnityEngine.Projector)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.nearClipPlane); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_farClipPlane(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Projector gen_to_be_invoked = (UnityEngine.Projector)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.farClipPlane); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_fieldOfView(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Projector gen_to_be_invoked = (UnityEngine.Projector)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.fieldOfView); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_aspectRatio(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Projector gen_to_be_invoked = (UnityEngine.Projector)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.aspectRatio); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_orthographic(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Projector gen_to_be_invoked = (UnityEngine.Projector)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.orthographic); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_orthographicSize(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Projector gen_to_be_invoked = (UnityEngine.Projector)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.orthographicSize); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_ignoreLayers(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Projector gen_to_be_invoked = (UnityEngine.Projector)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.ignoreLayers); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_material(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Projector gen_to_be_invoked = (UnityEngine.Projector)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.material); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_nearClipPlane(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Projector gen_to_be_invoked = (UnityEngine.Projector)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.nearClipPlane = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_farClipPlane(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Projector gen_to_be_invoked = (UnityEngine.Projector)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.farClipPlane = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_fieldOfView(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Projector gen_to_be_invoked = (UnityEngine.Projector)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.fieldOfView = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_aspectRatio(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Projector gen_to_be_invoked = (UnityEngine.Projector)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.aspectRatio = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_orthographic(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Projector gen_to_be_invoked = (UnityEngine.Projector)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.orthographic = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_orthographicSize(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Projector gen_to_be_invoked = (UnityEngine.Projector)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.orthographicSize = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_ignoreLayers(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Projector gen_to_be_invoked = (UnityEngine.Projector)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.ignoreLayers = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_material(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Projector gen_to_be_invoked = (UnityEngine.Projector)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.material = (UnityEngine.Material)translator.GetObject(L, 2, typeof(UnityEngine.Material)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_PropertyNameWrap.cs b/Assets/XLua/Gen/UnityEngine_PropertyNameWrap.cs deleted file mode 100644 index c0fc5bfc2..000000000 --- a/Assets/XLua/Gen/UnityEngine_PropertyNameWrap.cs +++ /dev/null @@ -1,275 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEnginePropertyNameWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.PropertyName); - Utils.BeginObjectRegister(type, L, translator, 1, 3, 0, 0); - Utils.RegisterFunc(L, Utils.OBJ_META_IDX, "__eq", __EqMeta); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetHashCode", _m_GetHashCode); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Equals", _m_Equals); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ToString", _m_ToString); - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 2, 0, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "IsNullOrEmpty", _m_IsNullOrEmpty_xlua_st_); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 2 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _name = LuaAPI.lua_tostring(L, 2); - - var gen_ret = new UnityEngine.PropertyName(_name); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 2 && translator.Assignable(L, 2)) - { - UnityEngine.PropertyName _other;translator.Get(L, 2, out _other); - - var gen_ret = new UnityEngine.PropertyName(_other); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 2 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - int _id = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = new UnityEngine.PropertyName(_id); - translator.Push(L, gen_ret); - - return 1; - } - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(UnityEngine.PropertyName)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.PropertyName constructor!"); - - } - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __EqMeta(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - if (translator.Assignable(L, 1) && translator.Assignable(L, 2)) - { - UnityEngine.PropertyName leftside;translator.Get(L, 1, out leftside); - UnityEngine.PropertyName rightside;translator.Get(L, 2, out rightside); - - LuaAPI.lua_pushboolean(L, leftside == rightside); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to right hand of == operator, need UnityEngine.PropertyName!"); - - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_IsNullOrEmpty_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.PropertyName _prop;translator.Get(L, 1, out _prop); - - var gen_ret = UnityEngine.PropertyName.IsNullOrEmpty( _prop ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetHashCode(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.PropertyName gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - - var gen_ret = gen_to_be_invoked.GetHashCode( ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Equals(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.PropertyName gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - object _other = translator.GetObject(L, 2, typeof(object)); - - var gen_ret = gen_to_be_invoked.Equals( _other ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.PropertyName _other;translator.Get(L, 2, out _other); - - var gen_ret = gen_to_be_invoked.Equals( _other ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.PropertyName.Equals!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ToString(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.PropertyName gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - - var gen_ret = gen_to_be_invoked.ToString( ); - LuaAPI.lua_pushstring(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_QualitySettingsWrap.cs b/Assets/XLua/Gen/UnityEngine_QualitySettingsWrap.cs deleted file mode 100644 index 4c39015be..000000000 --- a/Assets/XLua/Gen/UnityEngine_QualitySettingsWrap.cs +++ /dev/null @@ -1,1200 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineQualitySettingsWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.QualitySettings); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 6, 37, 34); - Utils.RegisterFunc(L, Utils.CLS_IDX, "IncreaseLevel", _m_IncreaseLevel_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "DecreaseLevel", _m_DecreaseLevel_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "SetQualityLevel", _m_SetQualityLevel_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetRenderPipelineAssetAt", _m_GetRenderPipelineAssetAt_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetQualityLevel", _m_GetQualityLevel_xlua_st_); - - - - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "pixelLightCount", _g_get_pixelLightCount); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "shadows", _g_get_shadows); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "shadowProjection", _g_get_shadowProjection); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "shadowCascades", _g_get_shadowCascades); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "shadowDistance", _g_get_shadowDistance); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "shadowResolution", _g_get_shadowResolution); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "shadowmaskMode", _g_get_shadowmaskMode); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "shadowNearPlaneOffset", _g_get_shadowNearPlaneOffset); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "shadowCascade2Split", _g_get_shadowCascade2Split); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "shadowCascade4Split", _g_get_shadowCascade4Split); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "lodBias", _g_get_lodBias); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "anisotropicFiltering", _g_get_anisotropicFiltering); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "masterTextureLimit", _g_get_masterTextureLimit); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "maximumLODLevel", _g_get_maximumLODLevel); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "particleRaycastBudget", _g_get_particleRaycastBudget); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "softParticles", _g_get_softParticles); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "softVegetation", _g_get_softVegetation); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "vSyncCount", _g_get_vSyncCount); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "antiAliasing", _g_get_antiAliasing); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "asyncUploadTimeSlice", _g_get_asyncUploadTimeSlice); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "asyncUploadBufferSize", _g_get_asyncUploadBufferSize); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "asyncUploadPersistentBuffer", _g_get_asyncUploadPersistentBuffer); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "realtimeReflectionProbes", _g_get_realtimeReflectionProbes); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "billboardsFaceCameraPosition", _g_get_billboardsFaceCameraPosition); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "resolutionScalingFixedDPIFactor", _g_get_resolutionScalingFixedDPIFactor); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "renderPipeline", _g_get_renderPipeline); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "skinWeights", _g_get_skinWeights); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "streamingMipmapsActive", _g_get_streamingMipmapsActive); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "streamingMipmapsMemoryBudget", _g_get_streamingMipmapsMemoryBudget); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "streamingMipmapsRenderersPerFrame", _g_get_streamingMipmapsRenderersPerFrame); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "streamingMipmapsMaxLevelReduction", _g_get_streamingMipmapsMaxLevelReduction); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "streamingMipmapsAddAllCameras", _g_get_streamingMipmapsAddAllCameras); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "streamingMipmapsMaxFileIORequests", _g_get_streamingMipmapsMaxFileIORequests); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "maxQueuedFrames", _g_get_maxQueuedFrames); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "names", _g_get_names); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "desiredColorSpace", _g_get_desiredColorSpace); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "activeColorSpace", _g_get_activeColorSpace); - - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "pixelLightCount", _s_set_pixelLightCount); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "shadows", _s_set_shadows); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "shadowProjection", _s_set_shadowProjection); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "shadowCascades", _s_set_shadowCascades); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "shadowDistance", _s_set_shadowDistance); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "shadowResolution", _s_set_shadowResolution); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "shadowmaskMode", _s_set_shadowmaskMode); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "shadowNearPlaneOffset", _s_set_shadowNearPlaneOffset); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "shadowCascade2Split", _s_set_shadowCascade2Split); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "shadowCascade4Split", _s_set_shadowCascade4Split); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "lodBias", _s_set_lodBias); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "anisotropicFiltering", _s_set_anisotropicFiltering); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "masterTextureLimit", _s_set_masterTextureLimit); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "maximumLODLevel", _s_set_maximumLODLevel); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "particleRaycastBudget", _s_set_particleRaycastBudget); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "softParticles", _s_set_softParticles); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "softVegetation", _s_set_softVegetation); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "vSyncCount", _s_set_vSyncCount); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "antiAliasing", _s_set_antiAliasing); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "asyncUploadTimeSlice", _s_set_asyncUploadTimeSlice); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "asyncUploadBufferSize", _s_set_asyncUploadBufferSize); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "asyncUploadPersistentBuffer", _s_set_asyncUploadPersistentBuffer); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "realtimeReflectionProbes", _s_set_realtimeReflectionProbes); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "billboardsFaceCameraPosition", _s_set_billboardsFaceCameraPosition); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "resolutionScalingFixedDPIFactor", _s_set_resolutionScalingFixedDPIFactor); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "renderPipeline", _s_set_renderPipeline); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "skinWeights", _s_set_skinWeights); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "streamingMipmapsActive", _s_set_streamingMipmapsActive); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "streamingMipmapsMemoryBudget", _s_set_streamingMipmapsMemoryBudget); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "streamingMipmapsRenderersPerFrame", _s_set_streamingMipmapsRenderersPerFrame); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "streamingMipmapsMaxLevelReduction", _s_set_streamingMipmapsMaxLevelReduction); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "streamingMipmapsAddAllCameras", _s_set_streamingMipmapsAddAllCameras); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "streamingMipmapsMaxFileIORequests", _s_set_streamingMipmapsMaxFileIORequests); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "maxQueuedFrames", _s_set_maxQueuedFrames); - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "UnityEngine.QualitySettings does not have a constructor!"); - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_IncreaseLevel_xlua_st_(RealStatePtr L) - { - try { - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 0) - { - - UnityEngine.QualitySettings.IncreaseLevel( ); - - - - return 0; - } - if(gen_param_count == 1&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 1)) - { - bool _applyExpensiveChanges = LuaAPI.lua_toboolean(L, 1); - - UnityEngine.QualitySettings.IncreaseLevel( _applyExpensiveChanges ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.QualitySettings.IncreaseLevel!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DecreaseLevel_xlua_st_(RealStatePtr L) - { - try { - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 0) - { - - UnityEngine.QualitySettings.DecreaseLevel( ); - - - - return 0; - } - if(gen_param_count == 1&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 1)) - { - bool _applyExpensiveChanges = LuaAPI.lua_toboolean(L, 1); - - UnityEngine.QualitySettings.DecreaseLevel( _applyExpensiveChanges ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.QualitySettings.DecreaseLevel!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetQualityLevel_xlua_st_(RealStatePtr L) - { - try { - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - int _index = LuaAPI.xlua_tointeger(L, 1); - - UnityEngine.QualitySettings.SetQualityLevel( _index ); - - - - return 0; - } - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)) - { - int _index = LuaAPI.xlua_tointeger(L, 1); - bool _applyExpensiveChanges = LuaAPI.lua_toboolean(L, 2); - - UnityEngine.QualitySettings.SetQualityLevel( _index, _applyExpensiveChanges ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.QualitySettings.SetQualityLevel!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetRenderPipelineAssetAt_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - int _index = LuaAPI.xlua_tointeger(L, 1); - - var gen_ret = UnityEngine.QualitySettings.GetRenderPipelineAssetAt( _index ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetQualityLevel_xlua_st_(RealStatePtr L) - { - try { - - - - - { - - var gen_ret = UnityEngine.QualitySettings.GetQualityLevel( ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_pixelLightCount(RealStatePtr L) - { - try { - - LuaAPI.xlua_pushinteger(L, UnityEngine.QualitySettings.pixelLightCount); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_shadows(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, UnityEngine.QualitySettings.shadows); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_shadowProjection(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, UnityEngine.QualitySettings.shadowProjection); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_shadowCascades(RealStatePtr L) - { - try { - - LuaAPI.xlua_pushinteger(L, UnityEngine.QualitySettings.shadowCascades); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_shadowDistance(RealStatePtr L) - { - try { - - LuaAPI.lua_pushnumber(L, UnityEngine.QualitySettings.shadowDistance); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_shadowResolution(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, UnityEngine.QualitySettings.shadowResolution); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_shadowmaskMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, UnityEngine.QualitySettings.shadowmaskMode); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_shadowNearPlaneOffset(RealStatePtr L) - { - try { - - LuaAPI.lua_pushnumber(L, UnityEngine.QualitySettings.shadowNearPlaneOffset); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_shadowCascade2Split(RealStatePtr L) - { - try { - - LuaAPI.lua_pushnumber(L, UnityEngine.QualitySettings.shadowCascade2Split); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_shadowCascade4Split(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.PushUnityEngineVector3(L, UnityEngine.QualitySettings.shadowCascade4Split); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_lodBias(RealStatePtr L) - { - try { - - LuaAPI.lua_pushnumber(L, UnityEngine.QualitySettings.lodBias); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_anisotropicFiltering(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, UnityEngine.QualitySettings.anisotropicFiltering); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_masterTextureLimit(RealStatePtr L) - { - try { - - LuaAPI.xlua_pushinteger(L, UnityEngine.QualitySettings.masterTextureLimit); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_maximumLODLevel(RealStatePtr L) - { - try { - - LuaAPI.xlua_pushinteger(L, UnityEngine.QualitySettings.maximumLODLevel); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_particleRaycastBudget(RealStatePtr L) - { - try { - - LuaAPI.xlua_pushinteger(L, UnityEngine.QualitySettings.particleRaycastBudget); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_softParticles(RealStatePtr L) - { - try { - - LuaAPI.lua_pushboolean(L, UnityEngine.QualitySettings.softParticles); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_softVegetation(RealStatePtr L) - { - try { - - LuaAPI.lua_pushboolean(L, UnityEngine.QualitySettings.softVegetation); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_vSyncCount(RealStatePtr L) - { - try { - - LuaAPI.xlua_pushinteger(L, UnityEngine.QualitySettings.vSyncCount); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_antiAliasing(RealStatePtr L) - { - try { - - LuaAPI.xlua_pushinteger(L, UnityEngine.QualitySettings.antiAliasing); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_asyncUploadTimeSlice(RealStatePtr L) - { - try { - - LuaAPI.xlua_pushinteger(L, UnityEngine.QualitySettings.asyncUploadTimeSlice); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_asyncUploadBufferSize(RealStatePtr L) - { - try { - - LuaAPI.xlua_pushinteger(L, UnityEngine.QualitySettings.asyncUploadBufferSize); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_asyncUploadPersistentBuffer(RealStatePtr L) - { - try { - - LuaAPI.lua_pushboolean(L, UnityEngine.QualitySettings.asyncUploadPersistentBuffer); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_realtimeReflectionProbes(RealStatePtr L) - { - try { - - LuaAPI.lua_pushboolean(L, UnityEngine.QualitySettings.realtimeReflectionProbes); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_billboardsFaceCameraPosition(RealStatePtr L) - { - try { - - LuaAPI.lua_pushboolean(L, UnityEngine.QualitySettings.billboardsFaceCameraPosition); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_resolutionScalingFixedDPIFactor(RealStatePtr L) - { - try { - - LuaAPI.lua_pushnumber(L, UnityEngine.QualitySettings.resolutionScalingFixedDPIFactor); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_renderPipeline(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, UnityEngine.QualitySettings.renderPipeline); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_skinWeights(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, UnityEngine.QualitySettings.skinWeights); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_streamingMipmapsActive(RealStatePtr L) - { - try { - - LuaAPI.lua_pushboolean(L, UnityEngine.QualitySettings.streamingMipmapsActive); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_streamingMipmapsMemoryBudget(RealStatePtr L) - { - try { - - LuaAPI.lua_pushnumber(L, UnityEngine.QualitySettings.streamingMipmapsMemoryBudget); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_streamingMipmapsRenderersPerFrame(RealStatePtr L) - { - try { - - LuaAPI.xlua_pushinteger(L, UnityEngine.QualitySettings.streamingMipmapsRenderersPerFrame); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_streamingMipmapsMaxLevelReduction(RealStatePtr L) - { - try { - - LuaAPI.xlua_pushinteger(L, UnityEngine.QualitySettings.streamingMipmapsMaxLevelReduction); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_streamingMipmapsAddAllCameras(RealStatePtr L) - { - try { - - LuaAPI.lua_pushboolean(L, UnityEngine.QualitySettings.streamingMipmapsAddAllCameras); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_streamingMipmapsMaxFileIORequests(RealStatePtr L) - { - try { - - LuaAPI.xlua_pushinteger(L, UnityEngine.QualitySettings.streamingMipmapsMaxFileIORequests); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_maxQueuedFrames(RealStatePtr L) - { - try { - - LuaAPI.xlua_pushinteger(L, UnityEngine.QualitySettings.maxQueuedFrames); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_names(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, UnityEngine.QualitySettings.names); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_desiredColorSpace(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, UnityEngine.QualitySettings.desiredColorSpace); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_activeColorSpace(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, UnityEngine.QualitySettings.activeColorSpace); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_pixelLightCount(RealStatePtr L) - { - try { - - UnityEngine.QualitySettings.pixelLightCount = LuaAPI.xlua_tointeger(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_shadows(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - UnityEngine.ShadowQuality gen_value;translator.Get(L, 1, out gen_value); - UnityEngine.QualitySettings.shadows = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_shadowProjection(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - UnityEngine.ShadowProjection gen_value;translator.Get(L, 1, out gen_value); - UnityEngine.QualitySettings.shadowProjection = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_shadowCascades(RealStatePtr L) - { - try { - - UnityEngine.QualitySettings.shadowCascades = LuaAPI.xlua_tointeger(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_shadowDistance(RealStatePtr L) - { - try { - - UnityEngine.QualitySettings.shadowDistance = (float)LuaAPI.lua_tonumber(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_shadowResolution(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - UnityEngine.ShadowResolution gen_value;translator.Get(L, 1, out gen_value); - UnityEngine.QualitySettings.shadowResolution = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_shadowmaskMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - UnityEngine.ShadowmaskMode gen_value;translator.Get(L, 1, out gen_value); - UnityEngine.QualitySettings.shadowmaskMode = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_shadowNearPlaneOffset(RealStatePtr L) - { - try { - - UnityEngine.QualitySettings.shadowNearPlaneOffset = (float)LuaAPI.lua_tonumber(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_shadowCascade2Split(RealStatePtr L) - { - try { - - UnityEngine.QualitySettings.shadowCascade2Split = (float)LuaAPI.lua_tonumber(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_shadowCascade4Split(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - UnityEngine.Vector3 gen_value;translator.Get(L, 1, out gen_value); - UnityEngine.QualitySettings.shadowCascade4Split = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_lodBias(RealStatePtr L) - { - try { - - UnityEngine.QualitySettings.lodBias = (float)LuaAPI.lua_tonumber(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_anisotropicFiltering(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - UnityEngine.AnisotropicFiltering gen_value;translator.Get(L, 1, out gen_value); - UnityEngine.QualitySettings.anisotropicFiltering = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_masterTextureLimit(RealStatePtr L) - { - try { - - UnityEngine.QualitySettings.masterTextureLimit = LuaAPI.xlua_tointeger(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_maximumLODLevel(RealStatePtr L) - { - try { - - UnityEngine.QualitySettings.maximumLODLevel = LuaAPI.xlua_tointeger(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_particleRaycastBudget(RealStatePtr L) - { - try { - - UnityEngine.QualitySettings.particleRaycastBudget = LuaAPI.xlua_tointeger(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_softParticles(RealStatePtr L) - { - try { - - UnityEngine.QualitySettings.softParticles = LuaAPI.lua_toboolean(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_softVegetation(RealStatePtr L) - { - try { - - UnityEngine.QualitySettings.softVegetation = LuaAPI.lua_toboolean(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_vSyncCount(RealStatePtr L) - { - try { - - UnityEngine.QualitySettings.vSyncCount = LuaAPI.xlua_tointeger(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_antiAliasing(RealStatePtr L) - { - try { - - UnityEngine.QualitySettings.antiAliasing = LuaAPI.xlua_tointeger(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_asyncUploadTimeSlice(RealStatePtr L) - { - try { - - UnityEngine.QualitySettings.asyncUploadTimeSlice = LuaAPI.xlua_tointeger(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_asyncUploadBufferSize(RealStatePtr L) - { - try { - - UnityEngine.QualitySettings.asyncUploadBufferSize = LuaAPI.xlua_tointeger(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_asyncUploadPersistentBuffer(RealStatePtr L) - { - try { - - UnityEngine.QualitySettings.asyncUploadPersistentBuffer = LuaAPI.lua_toboolean(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_realtimeReflectionProbes(RealStatePtr L) - { - try { - - UnityEngine.QualitySettings.realtimeReflectionProbes = LuaAPI.lua_toboolean(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_billboardsFaceCameraPosition(RealStatePtr L) - { - try { - - UnityEngine.QualitySettings.billboardsFaceCameraPosition = LuaAPI.lua_toboolean(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_resolutionScalingFixedDPIFactor(RealStatePtr L) - { - try { - - UnityEngine.QualitySettings.resolutionScalingFixedDPIFactor = (float)LuaAPI.lua_tonumber(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_renderPipeline(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - UnityEngine.QualitySettings.renderPipeline = (UnityEngine.Rendering.RenderPipelineAsset)translator.GetObject(L, 1, typeof(UnityEngine.Rendering.RenderPipelineAsset)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_skinWeights(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - UnityEngine.SkinWeights gen_value;translator.Get(L, 1, out gen_value); - UnityEngine.QualitySettings.skinWeights = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_streamingMipmapsActive(RealStatePtr L) - { - try { - - UnityEngine.QualitySettings.streamingMipmapsActive = LuaAPI.lua_toboolean(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_streamingMipmapsMemoryBudget(RealStatePtr L) - { - try { - - UnityEngine.QualitySettings.streamingMipmapsMemoryBudget = (float)LuaAPI.lua_tonumber(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_streamingMipmapsRenderersPerFrame(RealStatePtr L) - { - try { - - UnityEngine.QualitySettings.streamingMipmapsRenderersPerFrame = LuaAPI.xlua_tointeger(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_streamingMipmapsMaxLevelReduction(RealStatePtr L) - { - try { - - UnityEngine.QualitySettings.streamingMipmapsMaxLevelReduction = LuaAPI.xlua_tointeger(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_streamingMipmapsAddAllCameras(RealStatePtr L) - { - try { - - UnityEngine.QualitySettings.streamingMipmapsAddAllCameras = LuaAPI.lua_toboolean(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_streamingMipmapsMaxFileIORequests(RealStatePtr L) - { - try { - - UnityEngine.QualitySettings.streamingMipmapsMaxFileIORequests = LuaAPI.xlua_tointeger(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_maxQueuedFrames(RealStatePtr L) - { - try { - - UnityEngine.QualitySettings.maxQueuedFrames = LuaAPI.xlua_tointeger(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_RandomWrap.cs b/Assets/XLua/Gen/UnityEngine_RandomWrap.cs deleted file mode 100644 index f3f892930..000000000 --- a/Assets/XLua/Gen/UnityEngine_RandomWrap.cs +++ /dev/null @@ -1,332 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineRandomWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.Random); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 4, 7, 1); - Utils.RegisterFunc(L, Utils.CLS_IDX, "InitState", _m_InitState_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Range", _m_Range_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "ColorHSV", _m_ColorHSV_xlua_st_); - - - - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "state", _g_get_state); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "value", _g_get_value); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "insideUnitSphere", _g_get_insideUnitSphere); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "insideUnitCircle", _g_get_insideUnitCircle); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "onUnitSphere", _g_get_onUnitSphere); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "rotation", _g_get_rotation); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "rotationUniform", _g_get_rotationUniform); - - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "state", _s_set_state); - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "UnityEngine.Random does not have a constructor!"); - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_InitState_xlua_st_(RealStatePtr L) - { - try { - - - - - { - int _seed = LuaAPI.xlua_tointeger(L, 1); - - UnityEngine.Random.InitState( _seed ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Range_xlua_st_(RealStatePtr L) - { - try { - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - float _minInclusive = (float)LuaAPI.lua_tonumber(L, 1); - float _maxInclusive = (float)LuaAPI.lua_tonumber(L, 2); - - var gen_ret = UnityEngine.Random.Range( _minInclusive, _maxInclusive ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - int _minInclusive = LuaAPI.xlua_tointeger(L, 1); - int _maxExclusive = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = UnityEngine.Random.Range( _minInclusive, _maxExclusive ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Random.Range!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ColorHSV_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 0) - { - - var gen_ret = UnityEngine.Random.ColorHSV( ); - translator.PushUnityEngineColor(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - float _hueMin = (float)LuaAPI.lua_tonumber(L, 1); - float _hueMax = (float)LuaAPI.lua_tonumber(L, 2); - - var gen_ret = UnityEngine.Random.ColorHSV( _hueMin, _hueMax ); - translator.PushUnityEngineColor(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - float _hueMin = (float)LuaAPI.lua_tonumber(L, 1); - float _hueMax = (float)LuaAPI.lua_tonumber(L, 2); - float _saturationMin = (float)LuaAPI.lua_tonumber(L, 3); - float _saturationMax = (float)LuaAPI.lua_tonumber(L, 4); - - var gen_ret = UnityEngine.Random.ColorHSV( _hueMin, _hueMax, _saturationMin, _saturationMax ); - translator.PushUnityEngineColor(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 6&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)) - { - float _hueMin = (float)LuaAPI.lua_tonumber(L, 1); - float _hueMax = (float)LuaAPI.lua_tonumber(L, 2); - float _saturationMin = (float)LuaAPI.lua_tonumber(L, 3); - float _saturationMax = (float)LuaAPI.lua_tonumber(L, 4); - float _valueMin = (float)LuaAPI.lua_tonumber(L, 5); - float _valueMax = (float)LuaAPI.lua_tonumber(L, 6); - - var gen_ret = UnityEngine.Random.ColorHSV( _hueMin, _hueMax, _saturationMin, _saturationMax, _valueMin, _valueMax ); - translator.PushUnityEngineColor(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 8&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 7)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 8)) - { - float _hueMin = (float)LuaAPI.lua_tonumber(L, 1); - float _hueMax = (float)LuaAPI.lua_tonumber(L, 2); - float _saturationMin = (float)LuaAPI.lua_tonumber(L, 3); - float _saturationMax = (float)LuaAPI.lua_tonumber(L, 4); - float _valueMin = (float)LuaAPI.lua_tonumber(L, 5); - float _valueMax = (float)LuaAPI.lua_tonumber(L, 6); - float _alphaMin = (float)LuaAPI.lua_tonumber(L, 7); - float _alphaMax = (float)LuaAPI.lua_tonumber(L, 8); - - var gen_ret = UnityEngine.Random.ColorHSV( _hueMin, _hueMax, _saturationMin, _saturationMax, _valueMin, _valueMax, _alphaMin, _alphaMax ); - translator.PushUnityEngineColor(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Random.ColorHSV!"); - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_state(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, UnityEngine.Random.state); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_value(RealStatePtr L) - { - try { - - LuaAPI.lua_pushnumber(L, UnityEngine.Random.value); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_insideUnitSphere(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.PushUnityEngineVector3(L, UnityEngine.Random.insideUnitSphere); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_insideUnitCircle(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.PushUnityEngineVector2(L, UnityEngine.Random.insideUnitCircle); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_onUnitSphere(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.PushUnityEngineVector3(L, UnityEngine.Random.onUnitSphere); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_rotation(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.PushUnityEngineQuaternion(L, UnityEngine.Random.rotation); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_rotationUniform(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.PushUnityEngineQuaternion(L, UnityEngine.Random.rotationUniform); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_state(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - UnityEngine.Random.State gen_value;translator.Get(L, 1, out gen_value); - UnityEngine.Random.state = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_Random_StateWrap.cs b/Assets/XLua/Gen/UnityEngine_Random_StateWrap.cs deleted file mode 100644 index c51148f86..000000000 --- a/Assets/XLua/Gen/UnityEngine_Random_StateWrap.cs +++ /dev/null @@ -1,82 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineRandomStateWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.Random.State); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(UnityEngine.Random.State)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Random.State constructor!"); - - } - - - - - - - - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_RangeIntWrap.cs b/Assets/XLua/Gen/UnityEngine_RangeIntWrap.cs deleted file mode 100644 index c3cb8896b..000000000 --- a/Assets/XLua/Gen/UnityEngine_RangeIntWrap.cs +++ /dev/null @@ -1,173 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineRangeIntWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.RangeInt); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 3, 2); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "end", _g_get_end); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "start", _g_get_start); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "length", _g_get_length); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "start", _s_set_start); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "length", _s_set_length); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 3 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - int _start = LuaAPI.xlua_tointeger(L, 2); - int _length = LuaAPI.xlua_tointeger(L, 3); - - var gen_ret = new UnityEngine.RangeInt(_start, _length); - translator.Push(L, gen_ret); - - return 1; - } - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(UnityEngine.RangeInt)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.RangeInt constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_end(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RangeInt gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.end); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_start(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RangeInt gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.start); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_length(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RangeInt gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.length); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_start(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RangeInt gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.start = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_length(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RangeInt gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.length = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_RaycastCommandWrap.cs b/Assets/XLua/Gen/UnityEngine_RaycastCommandWrap.cs deleted file mode 100644 index b08594dc2..000000000 --- a/Assets/XLua/Gen/UnityEngine_RaycastCommandWrap.cs +++ /dev/null @@ -1,343 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineRaycastCommandWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.RaycastCommand); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 5, 5); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "from", _g_get_from); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "direction", _g_get_direction); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "distance", _g_get_distance); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "layerMask", _g_get_layerMask); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "maxHits", _g_get_maxHits); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "from", _s_set_from); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "direction", _s_set_direction); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "distance", _s_set_distance); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "layerMask", _s_set_layerMask); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "maxHits", _s_set_maxHits); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 2, 0, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "ScheduleBatch", _m_ScheduleBatch_xlua_st_); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 6 && translator.Assignable(L, 2) && translator.Assignable(L, 3) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)) - { - UnityEngine.Vector3 _from;translator.Get(L, 2, out _from); - UnityEngine.Vector3 _direction;translator.Get(L, 3, out _direction); - float _distance = (float)LuaAPI.lua_tonumber(L, 4); - int _layerMask = LuaAPI.xlua_tointeger(L, 5); - int _maxHits = LuaAPI.xlua_tointeger(L, 6); - - var gen_ret = new UnityEngine.RaycastCommand(_from, _direction, _distance, _layerMask, _maxHits); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 5 && translator.Assignable(L, 2) && translator.Assignable(L, 3) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - UnityEngine.Vector3 _from;translator.Get(L, 2, out _from); - UnityEngine.Vector3 _direction;translator.Get(L, 3, out _direction); - float _distance = (float)LuaAPI.lua_tonumber(L, 4); - int _layerMask = LuaAPI.xlua_tointeger(L, 5); - - var gen_ret = new UnityEngine.RaycastCommand(_from, _direction, _distance, _layerMask); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 4 && translator.Assignable(L, 2) && translator.Assignable(L, 3) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - UnityEngine.Vector3 _from;translator.Get(L, 2, out _from); - UnityEngine.Vector3 _direction;translator.Get(L, 3, out _direction); - float _distance = (float)LuaAPI.lua_tonumber(L, 4); - - var gen_ret = new UnityEngine.RaycastCommand(_from, _direction, _distance); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 3 && translator.Assignable(L, 2) && translator.Assignable(L, 3)) - { - UnityEngine.Vector3 _from;translator.Get(L, 2, out _from); - UnityEngine.Vector3 _direction;translator.Get(L, 3, out _direction); - - var gen_ret = new UnityEngine.RaycastCommand(_from, _direction); - translator.Push(L, gen_ret); - - return 1; - } - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(UnityEngine.RaycastCommand)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.RaycastCommand constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ScheduleBatch_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 4&& translator.Assignable>(L, 1)&& translator.Assignable>(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable(L, 4)) - { - Unity.Collections.NativeArray _commands;translator.Get(L, 1, out _commands); - Unity.Collections.NativeArray _results;translator.Get(L, 2, out _results); - int _minCommandsPerJob = LuaAPI.xlua_tointeger(L, 3); - Unity.Jobs.JobHandle _dependsOn;translator.Get(L, 4, out _dependsOn); - - var gen_ret = UnityEngine.RaycastCommand.ScheduleBatch( _commands, _results, _minCommandsPerJob, _dependsOn ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable>(L, 1)&& translator.Assignable>(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - Unity.Collections.NativeArray _commands;translator.Get(L, 1, out _commands); - Unity.Collections.NativeArray _results;translator.Get(L, 2, out _results); - int _minCommandsPerJob = LuaAPI.xlua_tointeger(L, 3); - - var gen_ret = UnityEngine.RaycastCommand.ScheduleBatch( _commands, _results, _minCommandsPerJob ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.RaycastCommand.ScheduleBatch!"); - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_from(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RaycastCommand gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.from); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_direction(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RaycastCommand gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.direction); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_distance(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RaycastCommand gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.distance); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_layerMask(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RaycastCommand gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.layerMask); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_maxHits(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RaycastCommand gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.maxHits); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_from(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RaycastCommand gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Vector3 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.from = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_direction(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RaycastCommand gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Vector3 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.direction = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_distance(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RaycastCommand gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.distance = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_layerMask(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RaycastCommand gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.layerMask = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_maxHits(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RaycastCommand gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.maxHits = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_RaycastHit2DWrap.cs b/Assets/XLua/Gen/UnityEngine_RaycastHit2DWrap.cs deleted file mode 100644 index 2db14c1a1..000000000 --- a/Assets/XLua/Gen/UnityEngine_RaycastHit2DWrap.cs +++ /dev/null @@ -1,327 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineRaycastHit2DWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.RaycastHit2D); - Utils.BeginObjectRegister(type, L, translator, 0, 1, 8, 5); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "CompareTo", _m_CompareTo); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "centroid", _g_get_centroid); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "point", _g_get_point); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "normal", _g_get_normal); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "distance", _g_get_distance); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "fraction", _g_get_fraction); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "collider", _g_get_collider); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "rigidbody", _g_get_rigidbody); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "transform", _g_get_transform); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "centroid", _s_set_centroid); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "point", _s_set_point); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "normal", _s_set_normal); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "distance", _s_set_distance); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "fraction", _s_set_fraction); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(UnityEngine.RaycastHit2D)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.RaycastHit2D constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CompareTo(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.RaycastHit2D gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - UnityEngine.RaycastHit2D _other;translator.Get(L, 2, out _other); - - var gen_ret = gen_to_be_invoked.CompareTo( _other ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_centroid(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RaycastHit2D gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineVector2(L, gen_to_be_invoked.centroid); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_point(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RaycastHit2D gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineVector2(L, gen_to_be_invoked.point); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_normal(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RaycastHit2D gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineVector2(L, gen_to_be_invoked.normal); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_distance(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RaycastHit2D gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.distance); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_fraction(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RaycastHit2D gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.fraction); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_collider(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RaycastHit2D gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.collider); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_rigidbody(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RaycastHit2D gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.rigidbody); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_transform(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RaycastHit2D gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.transform); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_centroid(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RaycastHit2D gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Vector2 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.centroid = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_point(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RaycastHit2D gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Vector2 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.point = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_normal(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RaycastHit2D gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Vector2 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.normal = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_distance(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RaycastHit2D gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.distance = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_fraction(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RaycastHit2D gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.fraction = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_RectIntWrap.cs b/Assets/XLua/Gen/UnityEngine_RectIntWrap.cs deleted file mode 100644 index a2e371f57..000000000 --- a/Assets/XLua/Gen/UnityEngine_RectIntWrap.cs +++ /dev/null @@ -1,755 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineRectIntWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.RectInt); - Utils.BeginObjectRegister(type, L, translator, 0, 6, 14, 12); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetMinMax", _m_SetMinMax); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ClampToBounds", _m_ClampToBounds); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Contains", _m_Contains); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Overlaps", _m_Overlaps); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ToString", _m_ToString); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Equals", _m_Equals); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "x", _g_get_x); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "y", _g_get_y); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "center", _g_get_center); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "min", _g_get_min); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "max", _g_get_max); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "width", _g_get_width); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "height", _g_get_height); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "xMin", _g_get_xMin); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "yMin", _g_get_yMin); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "xMax", _g_get_xMax); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "yMax", _g_get_yMax); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "position", _g_get_position); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "size", _g_get_size); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "allPositionsWithin", _g_get_allPositionsWithin); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "x", _s_set_x); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "y", _s_set_y); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "min", _s_set_min); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "max", _s_set_max); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "width", _s_set_width); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "height", _s_set_height); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "xMin", _s_set_xMin); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "yMin", _s_set_yMin); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "xMax", _s_set_xMax); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "yMax", _s_set_yMax); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "position", _s_set_position); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "size", _s_set_size); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 5 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - int _xMin = LuaAPI.xlua_tointeger(L, 2); - int _yMin = LuaAPI.xlua_tointeger(L, 3); - int _width = LuaAPI.xlua_tointeger(L, 4); - int _height = LuaAPI.xlua_tointeger(L, 5); - - var gen_ret = new UnityEngine.RectInt(_xMin, _yMin, _width, _height); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 3 && translator.Assignable(L, 2) && translator.Assignable(L, 3)) - { - UnityEngine.Vector2Int _position;translator.Get(L, 2, out _position); - UnityEngine.Vector2Int _size;translator.Get(L, 3, out _size); - - var gen_ret = new UnityEngine.RectInt(_position, _size); - translator.Push(L, gen_ret); - - return 1; - } - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(UnityEngine.RectInt)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.RectInt constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetMinMax(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.RectInt gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - UnityEngine.Vector2Int _minPosition;translator.Get(L, 2, out _minPosition); - UnityEngine.Vector2Int _maxPosition;translator.Get(L, 3, out _maxPosition); - - gen_to_be_invoked.SetMinMax( _minPosition, _maxPosition ); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ClampToBounds(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.RectInt gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - UnityEngine.RectInt _bounds;translator.Get(L, 2, out _bounds); - - gen_to_be_invoked.ClampToBounds( _bounds ); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Contains(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.RectInt gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - UnityEngine.Vector2Int _position;translator.Get(L, 2, out _position); - - var gen_ret = gen_to_be_invoked.Contains( _position ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Overlaps(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.RectInt gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - UnityEngine.RectInt _other;translator.Get(L, 2, out _other); - - var gen_ret = gen_to_be_invoked.Overlaps( _other ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ToString(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.RectInt gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - var gen_ret = gen_to_be_invoked.ToString( ); - LuaAPI.lua_pushstring(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _format = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.ToString( _format ); - LuaAPI.lua_pushstring(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 3)) - { - string _format = LuaAPI.lua_tostring(L, 2); - System.IFormatProvider _formatProvider = (System.IFormatProvider)translator.GetObject(L, 3, typeof(System.IFormatProvider)); - - var gen_ret = gen_to_be_invoked.ToString( _format, _formatProvider ); - LuaAPI.lua_pushstring(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.RectInt.ToString!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Equals(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.RectInt gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - UnityEngine.RectInt _other;translator.Get(L, 2, out _other); - - var gen_ret = gen_to_be_invoked.Equals( _other ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_x(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RectInt gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.x); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_y(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RectInt gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.y); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_center(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RectInt gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineVector2(L, gen_to_be_invoked.center); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_min(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RectInt gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.min); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_max(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RectInt gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.max); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_width(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RectInt gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.width); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_height(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RectInt gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.height); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_xMin(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RectInt gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.xMin); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_yMin(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RectInt gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.yMin); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_xMax(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RectInt gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.xMax); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_yMax(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RectInt gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.yMax); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_position(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RectInt gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.position); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_size(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RectInt gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.size); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_allPositionsWithin(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RectInt gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.allPositionsWithin); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_x(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RectInt gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.x = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_y(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RectInt gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.y = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_min(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RectInt gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Vector2Int gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.min = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_max(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RectInt gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Vector2Int gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.max = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_width(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RectInt gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.width = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_height(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RectInt gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.height = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_xMin(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RectInt gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.xMin = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_yMin(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RectInt gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.yMin = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_xMax(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RectInt gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.xMax = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_yMax(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RectInt gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.yMax = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_position(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RectInt gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Vector2Int gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.position = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_size(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RectInt gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Vector2Int gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.size = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_RectOffsetWrap.cs b/Assets/XLua/Gen/UnityEngine_RectOffsetWrap.cs deleted file mode 100644 index e973ff97c..000000000 --- a/Assets/XLua/Gen/UnityEngine_RectOffsetWrap.cs +++ /dev/null @@ -1,366 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineRectOffsetWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.RectOffset); - Utils.BeginObjectRegister(type, L, translator, 0, 3, 6, 4); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ToString", _m_ToString); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Add", _m_Add); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Remove", _m_Remove); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "left", _g_get_left); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "right", _g_get_right); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "top", _g_get_top); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "bottom", _g_get_bottom); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "horizontal", _g_get_horizontal); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "vertical", _g_get_vertical); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "left", _s_set_left); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "right", _s_set_right); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "top", _s_set_top); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "bottom", _s_set_bottom); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.RectOffset(); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 5 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - int _left = LuaAPI.xlua_tointeger(L, 2); - int _right = LuaAPI.xlua_tointeger(L, 3); - int _top = LuaAPI.xlua_tointeger(L, 4); - int _bottom = LuaAPI.xlua_tointeger(L, 5); - - var gen_ret = new UnityEngine.RectOffset(_left, _right, _top, _bottom); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.RectOffset constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ToString(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.RectOffset gen_to_be_invoked = (UnityEngine.RectOffset)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - var gen_ret = gen_to_be_invoked.ToString( ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _format = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.ToString( _format ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 3)) - { - string _format = LuaAPI.lua_tostring(L, 2); - System.IFormatProvider _formatProvider = (System.IFormatProvider)translator.GetObject(L, 3, typeof(System.IFormatProvider)); - - var gen_ret = gen_to_be_invoked.ToString( _format, _formatProvider ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.RectOffset.ToString!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Add(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.RectOffset gen_to_be_invoked = (UnityEngine.RectOffset)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Rect _rect;translator.Get(L, 2, out _rect); - - var gen_ret = gen_to_be_invoked.Add( _rect ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Remove(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.RectOffset gen_to_be_invoked = (UnityEngine.RectOffset)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Rect _rect;translator.Get(L, 2, out _rect); - - var gen_ret = gen_to_be_invoked.Remove( _rect ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_left(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RectOffset gen_to_be_invoked = (UnityEngine.RectOffset)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.left); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_right(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RectOffset gen_to_be_invoked = (UnityEngine.RectOffset)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.right); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_top(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RectOffset gen_to_be_invoked = (UnityEngine.RectOffset)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.top); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_bottom(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RectOffset gen_to_be_invoked = (UnityEngine.RectOffset)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.bottom); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_horizontal(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RectOffset gen_to_be_invoked = (UnityEngine.RectOffset)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.horizontal); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_vertical(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RectOffset gen_to_be_invoked = (UnityEngine.RectOffset)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.vertical); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_left(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RectOffset gen_to_be_invoked = (UnityEngine.RectOffset)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.left = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_right(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RectOffset gen_to_be_invoked = (UnityEngine.RectOffset)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.right = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_top(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RectOffset gen_to_be_invoked = (UnityEngine.RectOffset)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.top = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_bottom(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RectOffset gen_to_be_invoked = (UnityEngine.RectOffset)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.bottom = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_RectTransformUtilityWrap.cs b/Assets/XLua/Gen/UnityEngine_RectTransformUtilityWrap.cs deleted file mode 100644 index 1f36a8904..000000000 --- a/Assets/XLua/Gen/UnityEngine_RectTransformUtilityWrap.cs +++ /dev/null @@ -1,413 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineRectTransformUtilityWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.RectTransformUtility); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 11, 0, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "PixelAdjustPoint", _m_PixelAdjustPoint_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "PixelAdjustRect", _m_PixelAdjustRect_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "RectangleContainsScreenPoint", _m_RectangleContainsScreenPoint_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "ScreenPointToWorldPointInRectangle", _m_ScreenPointToWorldPointInRectangle_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "ScreenPointToLocalPointInRectangle", _m_ScreenPointToLocalPointInRectangle_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "ScreenPointToRay", _m_ScreenPointToRay_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "WorldToScreenPoint", _m_WorldToScreenPoint_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "CalculateRelativeRectTransformBounds", _m_CalculateRelativeRectTransformBounds_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "FlipLayoutOnAxis", _m_FlipLayoutOnAxis_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "FlipLayoutAxes", _m_FlipLayoutAxes_xlua_st_); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "UnityEngine.RectTransformUtility does not have a constructor!"); - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_PixelAdjustPoint_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Vector2 _point;translator.Get(L, 1, out _point); - UnityEngine.Transform _elementTransform = (UnityEngine.Transform)translator.GetObject(L, 2, typeof(UnityEngine.Transform)); - UnityEngine.Canvas _canvas = (UnityEngine.Canvas)translator.GetObject(L, 3, typeof(UnityEngine.Canvas)); - - var gen_ret = UnityEngine.RectTransformUtility.PixelAdjustPoint( _point, _elementTransform, _canvas ); - translator.PushUnityEngineVector2(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_PixelAdjustRect_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.RectTransform _rectTransform = (UnityEngine.RectTransform)translator.GetObject(L, 1, typeof(UnityEngine.RectTransform)); - UnityEngine.Canvas _canvas = (UnityEngine.Canvas)translator.GetObject(L, 2, typeof(UnityEngine.Canvas)); - - var gen_ret = UnityEngine.RectTransformUtility.PixelAdjustRect( _rectTransform, _canvas ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RectangleContainsScreenPoint_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)) - { - UnityEngine.RectTransform _rect = (UnityEngine.RectTransform)translator.GetObject(L, 1, typeof(UnityEngine.RectTransform)); - UnityEngine.Vector2 _screenPoint;translator.Get(L, 2, out _screenPoint); - - var gen_ret = UnityEngine.RectTransformUtility.RectangleContainsScreenPoint( _rect, _screenPoint ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)) - { - UnityEngine.RectTransform _rect = (UnityEngine.RectTransform)translator.GetObject(L, 1, typeof(UnityEngine.RectTransform)); - UnityEngine.Vector2 _screenPoint;translator.Get(L, 2, out _screenPoint); - UnityEngine.Camera _cam = (UnityEngine.Camera)translator.GetObject(L, 3, typeof(UnityEngine.Camera)); - - var gen_ret = UnityEngine.RectTransformUtility.RectangleContainsScreenPoint( _rect, _screenPoint, _cam ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)) - { - UnityEngine.RectTransform _rect = (UnityEngine.RectTransform)translator.GetObject(L, 1, typeof(UnityEngine.RectTransform)); - UnityEngine.Vector2 _screenPoint;translator.Get(L, 2, out _screenPoint); - UnityEngine.Camera _cam = (UnityEngine.Camera)translator.GetObject(L, 3, typeof(UnityEngine.Camera)); - UnityEngine.Vector4 _offset;translator.Get(L, 4, out _offset); - - var gen_ret = UnityEngine.RectTransformUtility.RectangleContainsScreenPoint( _rect, _screenPoint, _cam, _offset ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.RectTransformUtility.RectangleContainsScreenPoint!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ScreenPointToWorldPointInRectangle_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.RectTransform _rect = (UnityEngine.RectTransform)translator.GetObject(L, 1, typeof(UnityEngine.RectTransform)); - UnityEngine.Vector2 _screenPoint;translator.Get(L, 2, out _screenPoint); - UnityEngine.Camera _cam = (UnityEngine.Camera)translator.GetObject(L, 3, typeof(UnityEngine.Camera)); - UnityEngine.Vector3 _worldPoint; - - var gen_ret = UnityEngine.RectTransformUtility.ScreenPointToWorldPointInRectangle( _rect, _screenPoint, _cam, out _worldPoint ); - LuaAPI.lua_pushboolean(L, gen_ret); - translator.PushUnityEngineVector3(L, _worldPoint); - - - - - return 2; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ScreenPointToLocalPointInRectangle_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.RectTransform _rect = (UnityEngine.RectTransform)translator.GetObject(L, 1, typeof(UnityEngine.RectTransform)); - UnityEngine.Vector2 _screenPoint;translator.Get(L, 2, out _screenPoint); - UnityEngine.Camera _cam = (UnityEngine.Camera)translator.GetObject(L, 3, typeof(UnityEngine.Camera)); - UnityEngine.Vector2 _localPoint; - - var gen_ret = UnityEngine.RectTransformUtility.ScreenPointToLocalPointInRectangle( _rect, _screenPoint, _cam, out _localPoint ); - LuaAPI.lua_pushboolean(L, gen_ret); - translator.PushUnityEngineVector2(L, _localPoint); - - - - - return 2; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ScreenPointToRay_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Camera _cam = (UnityEngine.Camera)translator.GetObject(L, 1, typeof(UnityEngine.Camera)); - UnityEngine.Vector2 _screenPos;translator.Get(L, 2, out _screenPos); - - var gen_ret = UnityEngine.RectTransformUtility.ScreenPointToRay( _cam, _screenPos ); - translator.PushUnityEngineRay(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_WorldToScreenPoint_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Camera _cam = (UnityEngine.Camera)translator.GetObject(L, 1, typeof(UnityEngine.Camera)); - UnityEngine.Vector3 _worldPoint;translator.Get(L, 2, out _worldPoint); - - var gen_ret = UnityEngine.RectTransformUtility.WorldToScreenPoint( _cam, _worldPoint ); - translator.PushUnityEngineVector2(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CalculateRelativeRectTransformBounds_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1&& translator.Assignable(L, 1)) - { - UnityEngine.Transform _trans = (UnityEngine.Transform)translator.GetObject(L, 1, typeof(UnityEngine.Transform)); - - var gen_ret = UnityEngine.RectTransformUtility.CalculateRelativeRectTransformBounds( _trans ); - translator.PushUnityEngineBounds(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)) - { - UnityEngine.Transform _root = (UnityEngine.Transform)translator.GetObject(L, 1, typeof(UnityEngine.Transform)); - UnityEngine.Transform _child = (UnityEngine.Transform)translator.GetObject(L, 2, typeof(UnityEngine.Transform)); - - var gen_ret = UnityEngine.RectTransformUtility.CalculateRelativeRectTransformBounds( _root, _child ); - translator.PushUnityEngineBounds(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.RectTransformUtility.CalculateRelativeRectTransformBounds!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_FlipLayoutOnAxis_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.RectTransform _rect = (UnityEngine.RectTransform)translator.GetObject(L, 1, typeof(UnityEngine.RectTransform)); - int _axis = LuaAPI.xlua_tointeger(L, 2); - bool _keepPositioning = LuaAPI.lua_toboolean(L, 3); - bool _recursive = LuaAPI.lua_toboolean(L, 4); - - UnityEngine.RectTransformUtility.FlipLayoutOnAxis( _rect, _axis, _keepPositioning, _recursive ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_FlipLayoutAxes_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.RectTransform _rect = (UnityEngine.RectTransform)translator.GetObject(L, 1, typeof(UnityEngine.RectTransform)); - bool _keepPositioning = LuaAPI.lua_toboolean(L, 2); - bool _recursive = LuaAPI.lua_toboolean(L, 3); - - UnityEngine.RectTransformUtility.FlipLayoutAxes( _rect, _keepPositioning, _recursive ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_RelativeJoint2DWrap.cs b/Assets/XLua/Gen/UnityEngine_RelativeJoint2DWrap.cs deleted file mode 100644 index dc833d69b..000000000 --- a/Assets/XLua/Gen/UnityEngine_RelativeJoint2DWrap.cs +++ /dev/null @@ -1,286 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineRelativeJoint2DWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.RelativeJoint2D); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 7, 6); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "maxForce", _g_get_maxForce); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "maxTorque", _g_get_maxTorque); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "correctionScale", _g_get_correctionScale); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "autoConfigureOffset", _g_get_autoConfigureOffset); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "linearOffset", _g_get_linearOffset); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "angularOffset", _g_get_angularOffset); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "target", _g_get_target); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "maxForce", _s_set_maxForce); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "maxTorque", _s_set_maxTorque); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "correctionScale", _s_set_correctionScale); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "autoConfigureOffset", _s_set_autoConfigureOffset); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "linearOffset", _s_set_linearOffset); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "angularOffset", _s_set_angularOffset); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.RelativeJoint2D(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.RelativeJoint2D constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_maxForce(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RelativeJoint2D gen_to_be_invoked = (UnityEngine.RelativeJoint2D)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.maxForce); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_maxTorque(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RelativeJoint2D gen_to_be_invoked = (UnityEngine.RelativeJoint2D)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.maxTorque); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_correctionScale(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RelativeJoint2D gen_to_be_invoked = (UnityEngine.RelativeJoint2D)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.correctionScale); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_autoConfigureOffset(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RelativeJoint2D gen_to_be_invoked = (UnityEngine.RelativeJoint2D)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.autoConfigureOffset); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_linearOffset(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RelativeJoint2D gen_to_be_invoked = (UnityEngine.RelativeJoint2D)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector2(L, gen_to_be_invoked.linearOffset); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_angularOffset(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RelativeJoint2D gen_to_be_invoked = (UnityEngine.RelativeJoint2D)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.angularOffset); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_target(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RelativeJoint2D gen_to_be_invoked = (UnityEngine.RelativeJoint2D)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector2(L, gen_to_be_invoked.target); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_maxForce(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RelativeJoint2D gen_to_be_invoked = (UnityEngine.RelativeJoint2D)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.maxForce = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_maxTorque(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RelativeJoint2D gen_to_be_invoked = (UnityEngine.RelativeJoint2D)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.maxTorque = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_correctionScale(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RelativeJoint2D gen_to_be_invoked = (UnityEngine.RelativeJoint2D)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.correctionScale = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_autoConfigureOffset(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RelativeJoint2D gen_to_be_invoked = (UnityEngine.RelativeJoint2D)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.autoConfigureOffset = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_linearOffset(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RelativeJoint2D gen_to_be_invoked = (UnityEngine.RelativeJoint2D)translator.FastGetCSObj(L, 1); - UnityEngine.Vector2 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.linearOffset = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_angularOffset(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RelativeJoint2D gen_to_be_invoked = (UnityEngine.RelativeJoint2D)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.angularOffset = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_RemoteConfigSettingsWrap.cs b/Assets/XLua/Gen/UnityEngine_RemoteConfigSettingsWrap.cs deleted file mode 100644 index ed98060b8..000000000 --- a/Assets/XLua/Gen/UnityEngine_RemoteConfigSettingsWrap.cs +++ /dev/null @@ -1,735 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineRemoteConfigSettingsWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.RemoteConfigSettings); - Utils.BeginObjectRegister(type, L, translator, 0, 14, 0, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Dispose", _m_Dispose); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ForceUpdate", _m_ForceUpdate); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "WasLastUpdatedFromServer", _m_WasLastUpdatedFromServer); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetInt", _m_GetInt); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetLong", _m_GetLong); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetFloat", _m_GetFloat); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetString", _m_GetString); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetBool", _m_GetBool); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "HasKey", _m_HasKey); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetCount", _m_GetCount); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetKeys", _m_GetKeys); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetObject", _m_GetObject); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetDictionary", _m_GetDictionary); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Updated", _e_Updated); - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 4, 0, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "QueueConfig", _m_QueueConfig_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "SendDeviceInfoInConfigRequest", _m_SendDeviceInfoInConfigRequest_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "AddSessionTag", _m_AddSessionTag_xlua_st_); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 2 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _configKey = LuaAPI.lua_tostring(L, 2); - - var gen_ret = new UnityEngine.RemoteConfigSettings(_configKey); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.RemoteConfigSettings constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Dispose(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.RemoteConfigSettings gen_to_be_invoked = (UnityEngine.RemoteConfigSettings)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Dispose( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_QueueConfig_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 4&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& (LuaAPI.lua_isnil(L, 4) || LuaAPI.lua_type(L, 4) == LuaTypes.LUA_TSTRING)) - { - string _name = LuaAPI.lua_tostring(L, 1); - object _param = translator.GetObject(L, 2, typeof(object)); - int _ver = LuaAPI.xlua_tointeger(L, 3); - string _prefix = LuaAPI.lua_tostring(L, 4); - - var gen_ret = UnityEngine.RemoteConfigSettings.QueueConfig( _name, _param, _ver, _prefix ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - string _name = LuaAPI.lua_tostring(L, 1); - object _param = translator.GetObject(L, 2, typeof(object)); - int _ver = LuaAPI.xlua_tointeger(L, 3); - - var gen_ret = UnityEngine.RemoteConfigSettings.QueueConfig( _name, _param, _ver ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 2)) - { - string _name = LuaAPI.lua_tostring(L, 1); - object _param = translator.GetObject(L, 2, typeof(object)); - - var gen_ret = UnityEngine.RemoteConfigSettings.QueueConfig( _name, _param ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.RemoteConfigSettings.QueueConfig!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SendDeviceInfoInConfigRequest_xlua_st_(RealStatePtr L) - { - try { - - - - - { - - var gen_ret = UnityEngine.RemoteConfigSettings.SendDeviceInfoInConfigRequest( ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AddSessionTag_xlua_st_(RealStatePtr L) - { - try { - - - - - { - string _tag = LuaAPI.lua_tostring(L, 1); - - UnityEngine.RemoteConfigSettings.AddSessionTag( _tag ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ForceUpdate(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.RemoteConfigSettings gen_to_be_invoked = (UnityEngine.RemoteConfigSettings)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.ForceUpdate( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_WasLastUpdatedFromServer(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.RemoteConfigSettings gen_to_be_invoked = (UnityEngine.RemoteConfigSettings)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.WasLastUpdatedFromServer( ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetInt(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.RemoteConfigSettings gen_to_be_invoked = (UnityEngine.RemoteConfigSettings)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _key = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.GetInt( _key ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - string _key = LuaAPI.lua_tostring(L, 2); - int _defaultValue = LuaAPI.xlua_tointeger(L, 3); - - var gen_ret = gen_to_be_invoked.GetInt( _key, _defaultValue ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.RemoteConfigSettings.GetInt!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetLong(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.RemoteConfigSettings gen_to_be_invoked = (UnityEngine.RemoteConfigSettings)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _key = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.GetLong( _key ); - LuaAPI.lua_pushint64(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& (LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) || LuaAPI.lua_isint64(L, 3))) - { - string _key = LuaAPI.lua_tostring(L, 2); - long _defaultValue = LuaAPI.lua_toint64(L, 3); - - var gen_ret = gen_to_be_invoked.GetLong( _key, _defaultValue ); - LuaAPI.lua_pushint64(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.RemoteConfigSettings.GetLong!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetFloat(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.RemoteConfigSettings gen_to_be_invoked = (UnityEngine.RemoteConfigSettings)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _key = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.GetFloat( _key ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - string _key = LuaAPI.lua_tostring(L, 2); - float _defaultValue = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = gen_to_be_invoked.GetFloat( _key, _defaultValue ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.RemoteConfigSettings.GetFloat!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetString(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.RemoteConfigSettings gen_to_be_invoked = (UnityEngine.RemoteConfigSettings)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _key = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.GetString( _key ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING)) - { - string _key = LuaAPI.lua_tostring(L, 2); - string _defaultValue = LuaAPI.lua_tostring(L, 3); - - var gen_ret = gen_to_be_invoked.GetString( _key, _defaultValue ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.RemoteConfigSettings.GetString!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetBool(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.RemoteConfigSettings gen_to_be_invoked = (UnityEngine.RemoteConfigSettings)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _key = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.GetBool( _key ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) - { - string _key = LuaAPI.lua_tostring(L, 2); - bool _defaultValue = LuaAPI.lua_toboolean(L, 3); - - var gen_ret = gen_to_be_invoked.GetBool( _key, _defaultValue ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.RemoteConfigSettings.GetBool!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_HasKey(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.RemoteConfigSettings gen_to_be_invoked = (UnityEngine.RemoteConfigSettings)translator.FastGetCSObj(L, 1); - - - - { - string _key = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.HasKey( _key ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetCount(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.RemoteConfigSettings gen_to_be_invoked = (UnityEngine.RemoteConfigSettings)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.GetCount( ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetKeys(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.RemoteConfigSettings gen_to_be_invoked = (UnityEngine.RemoteConfigSettings)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.GetKeys( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetObject(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.RemoteConfigSettings gen_to_be_invoked = (UnityEngine.RemoteConfigSettings)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& translator.Assignable(L, 2)&& (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING)) - { - System.Type _type = (System.Type)translator.GetObject(L, 2, typeof(System.Type)); - string _key = LuaAPI.lua_tostring(L, 3); - - var gen_ret = gen_to_be_invoked.GetObject( _type, _key ); - translator.PushAny(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - System.Type _type = (System.Type)translator.GetObject(L, 2, typeof(System.Type)); - - var gen_ret = gen_to_be_invoked.GetObject( _type ); - translator.PushAny(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 3)) - { - string _key = LuaAPI.lua_tostring(L, 2); - object _defaultValue = translator.GetObject(L, 3, typeof(object)); - - var gen_ret = gen_to_be_invoked.GetObject( _key, _defaultValue ); - translator.PushAny(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.RemoteConfigSettings.GetObject!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetDictionary(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.RemoteConfigSettings gen_to_be_invoked = (UnityEngine.RemoteConfigSettings)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _key = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.GetDictionary( _key ); - translator.PushAny(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1) - { - - var gen_ret = gen_to_be_invoked.GetDictionary( ); - translator.PushAny(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.RemoteConfigSettings.GetDictionary!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_Updated(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - UnityEngine.RemoteConfigSettings gen_to_be_invoked = (UnityEngine.RemoteConfigSettings)translator.FastGetCSObj(L, 1); - System.Action gen_delegate = translator.GetDelegate>(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need System.Action!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.Updated += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.Updated -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.RemoteConfigSettings.Updated!"); - return 0; - } - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_RemoteSettingsWrap.cs b/Assets/XLua/Gen/UnityEngine_RemoteSettingsWrap.cs deleted file mode 100644 index d06065354..000000000 --- a/Assets/XLua/Gen/UnityEngine_RemoteSettingsWrap.cs +++ /dev/null @@ -1,592 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineRemoteSettingsWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.RemoteSettings); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 16, 0, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "ForceUpdate", _m_ForceUpdate_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "WasLastUpdatedFromServer", _m_WasLastUpdatedFromServer_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetInt", _m_GetInt_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetLong", _m_GetLong_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetFloat", _m_GetFloat_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetString", _m_GetString_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetBool", _m_GetBool_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "HasKey", _m_HasKey_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetCount", _m_GetCount_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetKeys", _m_GetKeys_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetObject", _m_GetObject_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetDictionary", _m_GetDictionary_xlua_st_); - - Utils.RegisterFunc(L, Utils.CLS_IDX, "Updated", _e_Updated); - Utils.RegisterFunc(L, Utils.CLS_IDX, "BeforeFetchFromServer", _e_BeforeFetchFromServer); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Completed", _e_Completed); - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "UnityEngine.RemoteSettings does not have a constructor!"); - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ForceUpdate_xlua_st_(RealStatePtr L) - { - try { - - - - - { - - UnityEngine.RemoteSettings.ForceUpdate( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_WasLastUpdatedFromServer_xlua_st_(RealStatePtr L) - { - try { - - - - - { - - var gen_ret = UnityEngine.RemoteSettings.WasLastUpdatedFromServer( ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetInt_xlua_st_(RealStatePtr L) - { - try { - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)) - { - string _key = LuaAPI.lua_tostring(L, 1); - - var gen_ret = UnityEngine.RemoteSettings.GetInt( _key ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - string _key = LuaAPI.lua_tostring(L, 1); - int _defaultValue = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = UnityEngine.RemoteSettings.GetInt( _key, _defaultValue ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.RemoteSettings.GetInt!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetLong_xlua_st_(RealStatePtr L) - { - try { - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)) - { - string _key = LuaAPI.lua_tostring(L, 1); - - var gen_ret = UnityEngine.RemoteSettings.GetLong( _key ); - LuaAPI.lua_pushint64(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& (LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) || LuaAPI.lua_isint64(L, 2))) - { - string _key = LuaAPI.lua_tostring(L, 1); - long _defaultValue = LuaAPI.lua_toint64(L, 2); - - var gen_ret = UnityEngine.RemoteSettings.GetLong( _key, _defaultValue ); - LuaAPI.lua_pushint64(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.RemoteSettings.GetLong!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetFloat_xlua_st_(RealStatePtr L) - { - try { - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)) - { - string _key = LuaAPI.lua_tostring(L, 1); - - var gen_ret = UnityEngine.RemoteSettings.GetFloat( _key ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - string _key = LuaAPI.lua_tostring(L, 1); - float _defaultValue = (float)LuaAPI.lua_tonumber(L, 2); - - var gen_ret = UnityEngine.RemoteSettings.GetFloat( _key, _defaultValue ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.RemoteSettings.GetFloat!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetString_xlua_st_(RealStatePtr L) - { - try { - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)) - { - string _key = LuaAPI.lua_tostring(L, 1); - - var gen_ret = UnityEngine.RemoteSettings.GetString( _key ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _key = LuaAPI.lua_tostring(L, 1); - string _defaultValue = LuaAPI.lua_tostring(L, 2); - - var gen_ret = UnityEngine.RemoteSettings.GetString( _key, _defaultValue ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.RemoteSettings.GetString!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetBool_xlua_st_(RealStatePtr L) - { - try { - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)) - { - string _key = LuaAPI.lua_tostring(L, 1); - - var gen_ret = UnityEngine.RemoteSettings.GetBool( _key ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)) - { - string _key = LuaAPI.lua_tostring(L, 1); - bool _defaultValue = LuaAPI.lua_toboolean(L, 2); - - var gen_ret = UnityEngine.RemoteSettings.GetBool( _key, _defaultValue ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.RemoteSettings.GetBool!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_HasKey_xlua_st_(RealStatePtr L) - { - try { - - - - - { - string _key = LuaAPI.lua_tostring(L, 1); - - var gen_ret = UnityEngine.RemoteSettings.HasKey( _key ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetCount_xlua_st_(RealStatePtr L) - { - try { - - - - - { - - var gen_ret = UnityEngine.RemoteSettings.GetCount( ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetKeys_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - - var gen_ret = UnityEngine.RemoteSettings.GetKeys( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetObject_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 1)&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - System.Type _type = (System.Type)translator.GetObject(L, 1, typeof(System.Type)); - string _key = LuaAPI.lua_tostring(L, 2); - - var gen_ret = UnityEngine.RemoteSettings.GetObject( _type, _key ); - translator.PushAny(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& translator.Assignable(L, 1)) - { - System.Type _type = (System.Type)translator.GetObject(L, 1, typeof(System.Type)); - - var gen_ret = UnityEngine.RemoteSettings.GetObject( _type ); - translator.PushAny(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 2)) - { - string _key = LuaAPI.lua_tostring(L, 1); - object _defaultValue = translator.GetObject(L, 2, typeof(object)); - - var gen_ret = UnityEngine.RemoteSettings.GetObject( _key, _defaultValue ); - translator.PushAny(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.RemoteSettings.GetObject!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetDictionary_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)) - { - string _key = LuaAPI.lua_tostring(L, 1); - - var gen_ret = UnityEngine.RemoteSettings.GetDictionary( _key ); - translator.PushAny(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 0) - { - - var gen_ret = UnityEngine.RemoteSettings.GetDictionary( ); - translator.PushAny(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.RemoteSettings.GetDictionary!"); - - } - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_Updated(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - UnityEngine.RemoteSettings.UpdatedEventHandler gen_delegate = translator.GetDelegate(L, 2); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#2 need UnityEngine.RemoteSettings.UpdatedEventHandler!"); - } - - - if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "+")) { - UnityEngine.RemoteSettings.Updated += gen_delegate; - return 0; - } - - - if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "-")) { - UnityEngine.RemoteSettings.Updated -= gen_delegate; - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.RemoteSettings.Updated!"); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_BeforeFetchFromServer(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - System.Action gen_delegate = translator.GetDelegate(L, 2); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#2 need System.Action!"); - } - - - if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "+")) { - UnityEngine.RemoteSettings.BeforeFetchFromServer += gen_delegate; - return 0; - } - - - if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "-")) { - UnityEngine.RemoteSettings.BeforeFetchFromServer -= gen_delegate; - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.RemoteSettings.BeforeFetchFromServer!"); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_Completed(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - System.Action gen_delegate = translator.GetDelegate>(L, 2); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#2 need System.Action!"); - } - - - if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "+")) { - UnityEngine.RemoteSettings.Completed += gen_delegate; - return 0; - } - - - if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "-")) { - UnityEngine.RemoteSettings.Completed -= gen_delegate; - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.RemoteSettings.Completed!"); - } - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_RenderBufferWrap.cs b/Assets/XLua/Gen/UnityEngine_RenderBufferWrap.cs deleted file mode 100644 index cf45fafa1..000000000 --- a/Assets/XLua/Gen/UnityEngine_RenderBufferWrap.cs +++ /dev/null @@ -1,113 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineRenderBufferWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.RenderBuffer); - Utils.BeginObjectRegister(type, L, translator, 0, 1, 0, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetNativeRenderBufferPtr", _m_GetNativeRenderBufferPtr); - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(UnityEngine.RenderBuffer)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.RenderBuffer constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetNativeRenderBufferPtr(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.RenderBuffer gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - - var gen_ret = gen_to_be_invoked.GetNativeRenderBufferPtr( ); - LuaAPI.lua_pushlightuserdata(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_RenderTargetSetupWrap.cs b/Assets/XLua/Gen/UnityEngine_RenderTargetSetupWrap.cs deleted file mode 100644 index 74f3ae50a..000000000 --- a/Assets/XLua/Gen/UnityEngine_RenderTargetSetupWrap.cs +++ /dev/null @@ -1,478 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineRenderTargetSetupWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.RenderTargetSetup); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 9, 9); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "color", _g_get_color); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "depth", _g_get_depth); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "mipLevel", _g_get_mipLevel); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "cubemapFace", _g_get_cubemapFace); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "depthSlice", _g_get_depthSlice); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "colorLoad", _g_get_colorLoad); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "colorStore", _g_get_colorStore); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "depthLoad", _g_get_depthLoad); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "depthStore", _g_get_depthStore); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "color", _s_set_color); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "depth", _s_set_depth); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "mipLevel", _s_set_mipLevel); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "cubemapFace", _s_set_cubemapFace); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "depthSlice", _s_set_depthSlice); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "colorLoad", _s_set_colorLoad); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "colorStore", _s_set_colorStore); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "depthLoad", _s_set_depthLoad); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "depthStore", _s_set_depthStore); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 9 && translator.Assignable(L, 2) && translator.Assignable(L, 3) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4) && translator.Assignable(L, 5) && translator.Assignable(L, 6) && translator.Assignable(L, 7) && translator.Assignable(L, 8) && translator.Assignable(L, 9)) - { - UnityEngine.RenderBuffer[] _color = (UnityEngine.RenderBuffer[])translator.GetObject(L, 2, typeof(UnityEngine.RenderBuffer[])); - UnityEngine.RenderBuffer _depth;translator.Get(L, 3, out _depth); - int _mip = LuaAPI.xlua_tointeger(L, 4); - UnityEngine.CubemapFace _face;translator.Get(L, 5, out _face); - UnityEngine.Rendering.RenderBufferLoadAction[] _colorLoad = (UnityEngine.Rendering.RenderBufferLoadAction[])translator.GetObject(L, 6, typeof(UnityEngine.Rendering.RenderBufferLoadAction[])); - UnityEngine.Rendering.RenderBufferStoreAction[] _colorStore = (UnityEngine.Rendering.RenderBufferStoreAction[])translator.GetObject(L, 7, typeof(UnityEngine.Rendering.RenderBufferStoreAction[])); - UnityEngine.Rendering.RenderBufferLoadAction _depthLoad;translator.Get(L, 8, out _depthLoad); - UnityEngine.Rendering.RenderBufferStoreAction _depthStore;translator.Get(L, 9, out _depthStore); - - var gen_ret = new UnityEngine.RenderTargetSetup(_color, _depth, _mip, _face, _colorLoad, _colorStore, _depthLoad, _depthStore); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 3 && translator.Assignable(L, 2) && translator.Assignable(L, 3)) - { - UnityEngine.RenderBuffer _color;translator.Get(L, 2, out _color); - UnityEngine.RenderBuffer _depth;translator.Get(L, 3, out _depth); - - var gen_ret = new UnityEngine.RenderTargetSetup(_color, _depth); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 4 && translator.Assignable(L, 2) && translator.Assignable(L, 3) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - UnityEngine.RenderBuffer _color;translator.Get(L, 2, out _color); - UnityEngine.RenderBuffer _depth;translator.Get(L, 3, out _depth); - int _mipLevel = LuaAPI.xlua_tointeger(L, 4); - - var gen_ret = new UnityEngine.RenderTargetSetup(_color, _depth, _mipLevel); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 5 && translator.Assignable(L, 2) && translator.Assignable(L, 3) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4) && translator.Assignable(L, 5)) - { - UnityEngine.RenderBuffer _color;translator.Get(L, 2, out _color); - UnityEngine.RenderBuffer _depth;translator.Get(L, 3, out _depth); - int _mipLevel = LuaAPI.xlua_tointeger(L, 4); - UnityEngine.CubemapFace _face;translator.Get(L, 5, out _face); - - var gen_ret = new UnityEngine.RenderTargetSetup(_color, _depth, _mipLevel, _face); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 6 && translator.Assignable(L, 2) && translator.Assignable(L, 3) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4) && translator.Assignable(L, 5) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)) - { - UnityEngine.RenderBuffer _color;translator.Get(L, 2, out _color); - UnityEngine.RenderBuffer _depth;translator.Get(L, 3, out _depth); - int _mipLevel = LuaAPI.xlua_tointeger(L, 4); - UnityEngine.CubemapFace _face;translator.Get(L, 5, out _face); - int _depthSlice = LuaAPI.xlua_tointeger(L, 6); - - var gen_ret = new UnityEngine.RenderTargetSetup(_color, _depth, _mipLevel, _face, _depthSlice); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 3 && translator.Assignable(L, 2) && translator.Assignable(L, 3)) - { - UnityEngine.RenderBuffer[] _color = (UnityEngine.RenderBuffer[])translator.GetObject(L, 2, typeof(UnityEngine.RenderBuffer[])); - UnityEngine.RenderBuffer _depth;translator.Get(L, 3, out _depth); - - var gen_ret = new UnityEngine.RenderTargetSetup(_color, _depth); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 4 && translator.Assignable(L, 2) && translator.Assignable(L, 3) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - UnityEngine.RenderBuffer[] _color = (UnityEngine.RenderBuffer[])translator.GetObject(L, 2, typeof(UnityEngine.RenderBuffer[])); - UnityEngine.RenderBuffer _depth;translator.Get(L, 3, out _depth); - int _mipLevel = LuaAPI.xlua_tointeger(L, 4); - - var gen_ret = new UnityEngine.RenderTargetSetup(_color, _depth, _mipLevel); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 5 && translator.Assignable(L, 2) && translator.Assignable(L, 3) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4) && translator.Assignable(L, 5)) - { - UnityEngine.RenderBuffer[] _color = (UnityEngine.RenderBuffer[])translator.GetObject(L, 2, typeof(UnityEngine.RenderBuffer[])); - UnityEngine.RenderBuffer _depth;translator.Get(L, 3, out _depth); - int _mip = LuaAPI.xlua_tointeger(L, 4); - UnityEngine.CubemapFace _face;translator.Get(L, 5, out _face); - - var gen_ret = new UnityEngine.RenderTargetSetup(_color, _depth, _mip, _face); - translator.Push(L, gen_ret); - - return 1; - } - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(UnityEngine.RenderTargetSetup)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.RenderTargetSetup constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_color(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RenderTargetSetup gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.color); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_depth(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RenderTargetSetup gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.depth); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_mipLevel(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RenderTargetSetup gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.mipLevel); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_cubemapFace(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RenderTargetSetup gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.cubemapFace); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_depthSlice(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RenderTargetSetup gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.depthSlice); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_colorLoad(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RenderTargetSetup gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.colorLoad); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_colorStore(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RenderTargetSetup gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.colorStore); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_depthLoad(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RenderTargetSetup gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.depthLoad); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_depthStore(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RenderTargetSetup gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.depthStore); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_color(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RenderTargetSetup gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.color = (UnityEngine.RenderBuffer[])translator.GetObject(L, 2, typeof(UnityEngine.RenderBuffer[])); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_depth(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RenderTargetSetup gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.RenderBuffer gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.depth = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_mipLevel(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RenderTargetSetup gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.mipLevel = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_cubemapFace(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RenderTargetSetup gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.CubemapFace gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.cubemapFace = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_depthSlice(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RenderTargetSetup gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.depthSlice = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_colorLoad(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RenderTargetSetup gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.colorLoad = (UnityEngine.Rendering.RenderBufferLoadAction[])translator.GetObject(L, 2, typeof(UnityEngine.Rendering.RenderBufferLoadAction[])); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_colorStore(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RenderTargetSetup gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.colorStore = (UnityEngine.Rendering.RenderBufferStoreAction[])translator.GetObject(L, 2, typeof(UnityEngine.Rendering.RenderBufferStoreAction[])); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_depthLoad(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RenderTargetSetup gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Rendering.RenderBufferLoadAction gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.depthLoad = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_depthStore(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RenderTargetSetup gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Rendering.RenderBufferStoreAction gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.depthStore = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_RendererExtensionsWrap.cs b/Assets/XLua/Gen/UnityEngine_RendererExtensionsWrap.cs deleted file mode 100644 index 95cc30864..000000000 --- a/Assets/XLua/Gen/UnityEngine_RendererExtensionsWrap.cs +++ /dev/null @@ -1,67 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineRendererExtensionsWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.RendererExtensions); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "UnityEngine.RendererExtensions does not have a constructor!"); - } - - - - - - - - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_ResourceRequestWrap.cs b/Assets/XLua/Gen/UnityEngine_ResourceRequestWrap.cs deleted file mode 100644 index f20a7f203..000000000 --- a/Assets/XLua/Gen/UnityEngine_ResourceRequestWrap.cs +++ /dev/null @@ -1,99 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineResourceRequestWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.ResourceRequest); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 1, 0); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "asset", _g_get_asset); - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.ResourceRequest(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.ResourceRequest constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_asset(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ResourceRequest gen_to_be_invoked = (UnityEngine.ResourceRequest)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.asset); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_ResourcesAPIWrap.cs b/Assets/XLua/Gen/UnityEngine_ResourcesAPIWrap.cs deleted file mode 100644 index d11251588..000000000 --- a/Assets/XLua/Gen/UnityEngine_ResourcesAPIWrap.cs +++ /dev/null @@ -1,94 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineResourcesAPIWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.ResourcesAPI); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 1, 1); - - - - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "overrideAPI", _g_get_overrideAPI); - - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "overrideAPI", _s_set_overrideAPI); - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "UnityEngine.ResourcesAPI does not have a constructor!"); - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_overrideAPI(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, UnityEngine.ResourcesAPI.overrideAPI); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_overrideAPI(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - UnityEngine.ResourcesAPI.overrideAPI = (UnityEngine.ResourcesAPI)translator.GetObject(L, 1, typeof(UnityEngine.ResourcesAPI)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_Rigidbody2DWrap.cs b/Assets/XLua/Gen/UnityEngine_Rigidbody2DWrap.cs deleted file mode 100644 index eb54f87b2..000000000 --- a/Assets/XLua/Gen/UnityEngine_Rigidbody2DWrap.cs +++ /dev/null @@ -1,1872 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineRigidbody2DWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.Rigidbody2D); - Utils.BeginObjectRegister(type, L, translator, 0, 26, 23, 21); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetRotation", _m_SetRotation); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "MovePosition", _m_MovePosition); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "MoveRotation", _m_MoveRotation); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsSleeping", _m_IsSleeping); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsAwake", _m_IsAwake); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Sleep", _m_Sleep); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "WakeUp", _m_WakeUp); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsTouching", _m_IsTouching); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsTouchingLayers", _m_IsTouchingLayers); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OverlapPoint", _m_OverlapPoint); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Distance", _m_Distance); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ClosestPoint", _m_ClosestPoint); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddForce", _m_AddForce); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddRelativeForce", _m_AddRelativeForce); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddForceAtPosition", _m_AddForceAtPosition); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddTorque", _m_AddTorque); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetPoint", _m_GetPoint); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetRelativePoint", _m_GetRelativePoint); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetVector", _m_GetVector); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetRelativeVector", _m_GetRelativeVector); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetPointVelocity", _m_GetPointVelocity); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetRelativePointVelocity", _m_GetRelativePointVelocity); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OverlapCollider", _m_OverlapCollider); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetContacts", _m_GetContacts); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetAttachedColliders", _m_GetAttachedColliders); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Cast", _m_Cast); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "position", _g_get_position); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "rotation", _g_get_rotation); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "velocity", _g_get_velocity); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "angularVelocity", _g_get_angularVelocity); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "useAutoMass", _g_get_useAutoMass); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "mass", _g_get_mass); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "sharedMaterial", _g_get_sharedMaterial); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "centerOfMass", _g_get_centerOfMass); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "worldCenterOfMass", _g_get_worldCenterOfMass); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "inertia", _g_get_inertia); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "drag", _g_get_drag); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "angularDrag", _g_get_angularDrag); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "gravityScale", _g_get_gravityScale); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "bodyType", _g_get_bodyType); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "useFullKinematicContacts", _g_get_useFullKinematicContacts); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "isKinematic", _g_get_isKinematic); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "freezeRotation", _g_get_freezeRotation); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "constraints", _g_get_constraints); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "simulated", _g_get_simulated); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "interpolation", _g_get_interpolation); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "sleepMode", _g_get_sleepMode); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "collisionDetectionMode", _g_get_collisionDetectionMode); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "attachedColliderCount", _g_get_attachedColliderCount); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "position", _s_set_position); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "rotation", _s_set_rotation); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "velocity", _s_set_velocity); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "angularVelocity", _s_set_angularVelocity); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "useAutoMass", _s_set_useAutoMass); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "mass", _s_set_mass); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "sharedMaterial", _s_set_sharedMaterial); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "centerOfMass", _s_set_centerOfMass); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "inertia", _s_set_inertia); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "drag", _s_set_drag); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "angularDrag", _s_set_angularDrag); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "gravityScale", _s_set_gravityScale); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "bodyType", _s_set_bodyType); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "useFullKinematicContacts", _s_set_useFullKinematicContacts); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "isKinematic", _s_set_isKinematic); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "freezeRotation", _s_set_freezeRotation); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "constraints", _s_set_constraints); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "simulated", _s_set_simulated); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "interpolation", _s_set_interpolation); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "sleepMode", _s_set_sleepMode); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "collisionDetectionMode", _s_set_collisionDetectionMode); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.Rigidbody2D(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Rigidbody2D constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetRotation(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Rigidbody2D gen_to_be_invoked = (UnityEngine.Rigidbody2D)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - float _angle = (float)LuaAPI.lua_tonumber(L, 2); - - gen_to_be_invoked.SetRotation( _angle ); - - - - return 0; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.Quaternion _rotation;translator.Get(L, 2, out _rotation); - - gen_to_be_invoked.SetRotation( _rotation ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Rigidbody2D.SetRotation!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_MovePosition(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Rigidbody2D gen_to_be_invoked = (UnityEngine.Rigidbody2D)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Vector2 _position;translator.Get(L, 2, out _position); - - gen_to_be_invoked.MovePosition( _position ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_MoveRotation(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Rigidbody2D gen_to_be_invoked = (UnityEngine.Rigidbody2D)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - float _angle = (float)LuaAPI.lua_tonumber(L, 2); - - gen_to_be_invoked.MoveRotation( _angle ); - - - - return 0; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.Quaternion _rotation;translator.Get(L, 2, out _rotation); - - gen_to_be_invoked.MoveRotation( _rotation ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Rigidbody2D.MoveRotation!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_IsSleeping(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Rigidbody2D gen_to_be_invoked = (UnityEngine.Rigidbody2D)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.IsSleeping( ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_IsAwake(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Rigidbody2D gen_to_be_invoked = (UnityEngine.Rigidbody2D)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.IsAwake( ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Sleep(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Rigidbody2D gen_to_be_invoked = (UnityEngine.Rigidbody2D)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Sleep( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_WakeUp(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Rigidbody2D gen_to_be_invoked = (UnityEngine.Rigidbody2D)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.WakeUp( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_IsTouching(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Rigidbody2D gen_to_be_invoked = (UnityEngine.Rigidbody2D)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.Collider2D _collider = (UnityEngine.Collider2D)translator.GetObject(L, 2, typeof(UnityEngine.Collider2D)); - - var gen_ret = gen_to_be_invoked.IsTouching( _collider ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.ContactFilter2D _contactFilter;translator.Get(L, 2, out _contactFilter); - - var gen_ret = gen_to_be_invoked.IsTouching( _contactFilter ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)) - { - UnityEngine.Collider2D _collider = (UnityEngine.Collider2D)translator.GetObject(L, 2, typeof(UnityEngine.Collider2D)); - UnityEngine.ContactFilter2D _contactFilter;translator.Get(L, 3, out _contactFilter); - - var gen_ret = gen_to_be_invoked.IsTouching( _collider, _contactFilter ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Rigidbody2D.IsTouching!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_IsTouchingLayers(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Rigidbody2D gen_to_be_invoked = (UnityEngine.Rigidbody2D)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - var gen_ret = gen_to_be_invoked.IsTouchingLayers( ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - int _layerMask = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.IsTouchingLayers( _layerMask ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Rigidbody2D.IsTouchingLayers!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OverlapPoint(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Rigidbody2D gen_to_be_invoked = (UnityEngine.Rigidbody2D)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Vector2 _point;translator.Get(L, 2, out _point); - - var gen_ret = gen_to_be_invoked.OverlapPoint( _point ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Distance(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Rigidbody2D gen_to_be_invoked = (UnityEngine.Rigidbody2D)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Collider2D _collider = (UnityEngine.Collider2D)translator.GetObject(L, 2, typeof(UnityEngine.Collider2D)); - - var gen_ret = gen_to_be_invoked.Distance( _collider ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ClosestPoint(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Rigidbody2D gen_to_be_invoked = (UnityEngine.Rigidbody2D)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Vector2 _position;translator.Get(L, 2, out _position); - - var gen_ret = gen_to_be_invoked.ClosestPoint( _position ); - translator.PushUnityEngineVector2(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AddForce(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Rigidbody2D gen_to_be_invoked = (UnityEngine.Rigidbody2D)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.Vector2 _force;translator.Get(L, 2, out _force); - - gen_to_be_invoked.AddForce( _force ); - - - - return 0; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)) - { - UnityEngine.Vector2 _force;translator.Get(L, 2, out _force); - UnityEngine.ForceMode2D _mode;translator.Get(L, 3, out _mode); - - gen_to_be_invoked.AddForce( _force, _mode ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Rigidbody2D.AddForce!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AddRelativeForce(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Rigidbody2D gen_to_be_invoked = (UnityEngine.Rigidbody2D)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.Vector2 _relativeForce;translator.Get(L, 2, out _relativeForce); - - gen_to_be_invoked.AddRelativeForce( _relativeForce ); - - - - return 0; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)) - { - UnityEngine.Vector2 _relativeForce;translator.Get(L, 2, out _relativeForce); - UnityEngine.ForceMode2D _mode;translator.Get(L, 3, out _mode); - - gen_to_be_invoked.AddRelativeForce( _relativeForce, _mode ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Rigidbody2D.AddRelativeForce!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AddForceAtPosition(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Rigidbody2D gen_to_be_invoked = (UnityEngine.Rigidbody2D)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)) - { - UnityEngine.Vector2 _force;translator.Get(L, 2, out _force); - UnityEngine.Vector2 _position;translator.Get(L, 3, out _position); - - gen_to_be_invoked.AddForceAtPosition( _force, _position ); - - - - return 0; - } - if(gen_param_count == 4&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)) - { - UnityEngine.Vector2 _force;translator.Get(L, 2, out _force); - UnityEngine.Vector2 _position;translator.Get(L, 3, out _position); - UnityEngine.ForceMode2D _mode;translator.Get(L, 4, out _mode); - - gen_to_be_invoked.AddForceAtPosition( _force, _position, _mode ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Rigidbody2D.AddForceAtPosition!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AddTorque(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Rigidbody2D gen_to_be_invoked = (UnityEngine.Rigidbody2D)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - float _torque = (float)LuaAPI.lua_tonumber(L, 2); - - gen_to_be_invoked.AddTorque( _torque ); - - - - return 0; - } - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)) - { - float _torque = (float)LuaAPI.lua_tonumber(L, 2); - UnityEngine.ForceMode2D _mode;translator.Get(L, 3, out _mode); - - gen_to_be_invoked.AddTorque( _torque, _mode ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Rigidbody2D.AddTorque!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetPoint(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Rigidbody2D gen_to_be_invoked = (UnityEngine.Rigidbody2D)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Vector2 _point;translator.Get(L, 2, out _point); - - var gen_ret = gen_to_be_invoked.GetPoint( _point ); - translator.PushUnityEngineVector2(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetRelativePoint(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Rigidbody2D gen_to_be_invoked = (UnityEngine.Rigidbody2D)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Vector2 _relativePoint;translator.Get(L, 2, out _relativePoint); - - var gen_ret = gen_to_be_invoked.GetRelativePoint( _relativePoint ); - translator.PushUnityEngineVector2(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetVector(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Rigidbody2D gen_to_be_invoked = (UnityEngine.Rigidbody2D)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Vector2 _vector;translator.Get(L, 2, out _vector); - - var gen_ret = gen_to_be_invoked.GetVector( _vector ); - translator.PushUnityEngineVector2(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetRelativeVector(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Rigidbody2D gen_to_be_invoked = (UnityEngine.Rigidbody2D)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Vector2 _relativeVector;translator.Get(L, 2, out _relativeVector); - - var gen_ret = gen_to_be_invoked.GetRelativeVector( _relativeVector ); - translator.PushUnityEngineVector2(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetPointVelocity(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Rigidbody2D gen_to_be_invoked = (UnityEngine.Rigidbody2D)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Vector2 _point;translator.Get(L, 2, out _point); - - var gen_ret = gen_to_be_invoked.GetPointVelocity( _point ); - translator.PushUnityEngineVector2(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetRelativePointVelocity(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Rigidbody2D gen_to_be_invoked = (UnityEngine.Rigidbody2D)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Vector2 _relativePoint;translator.Get(L, 2, out _relativePoint); - - var gen_ret = gen_to_be_invoked.GetRelativePointVelocity( _relativePoint ); - translator.PushUnityEngineVector2(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OverlapCollider(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Rigidbody2D gen_to_be_invoked = (UnityEngine.Rigidbody2D)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)) - { - UnityEngine.ContactFilter2D _contactFilter;translator.Get(L, 2, out _contactFilter); - UnityEngine.Collider2D[] _results = (UnityEngine.Collider2D[])translator.GetObject(L, 3, typeof(UnityEngine.Collider2D[])); - - var gen_ret = gen_to_be_invoked.OverlapCollider( _contactFilter, _results ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 2; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& translator.Assignable>(L, 3)) - { - UnityEngine.ContactFilter2D _contactFilter;translator.Get(L, 2, out _contactFilter); - System.Collections.Generic.List _results = (System.Collections.Generic.List)translator.GetObject(L, 3, typeof(System.Collections.Generic.List)); - - var gen_ret = gen_to_be_invoked.OverlapCollider( _contactFilter, _results ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Rigidbody2D.OverlapCollider!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetContacts(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Rigidbody2D gen_to_be_invoked = (UnityEngine.Rigidbody2D)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.ContactPoint2D[] _contacts = (UnityEngine.ContactPoint2D[])translator.GetObject(L, 2, typeof(UnityEngine.ContactPoint2D[])); - - var gen_ret = gen_to_be_invoked.GetContacts( _contacts ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable>(L, 2)) - { - System.Collections.Generic.List _contacts = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - - var gen_ret = gen_to_be_invoked.GetContacts( _contacts ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.Collider2D[] _colliders = (UnityEngine.Collider2D[])translator.GetObject(L, 2, typeof(UnityEngine.Collider2D[])); - - var gen_ret = gen_to_be_invoked.GetContacts( _colliders ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable>(L, 2)) - { - System.Collections.Generic.List _colliders = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - - var gen_ret = gen_to_be_invoked.GetContacts( _colliders ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)) - { - UnityEngine.ContactFilter2D _contactFilter;translator.Get(L, 2, out _contactFilter); - UnityEngine.ContactPoint2D[] _contacts = (UnityEngine.ContactPoint2D[])translator.GetObject(L, 3, typeof(UnityEngine.ContactPoint2D[])); - - var gen_ret = gen_to_be_invoked.GetContacts( _contactFilter, _contacts ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& translator.Assignable>(L, 3)) - { - UnityEngine.ContactFilter2D _contactFilter;translator.Get(L, 2, out _contactFilter); - System.Collections.Generic.List _contacts = (System.Collections.Generic.List)translator.GetObject(L, 3, typeof(System.Collections.Generic.List)); - - var gen_ret = gen_to_be_invoked.GetContacts( _contactFilter, _contacts ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)) - { - UnityEngine.ContactFilter2D _contactFilter;translator.Get(L, 2, out _contactFilter); - UnityEngine.Collider2D[] _colliders = (UnityEngine.Collider2D[])translator.GetObject(L, 3, typeof(UnityEngine.Collider2D[])); - - var gen_ret = gen_to_be_invoked.GetContacts( _contactFilter, _colliders ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& translator.Assignable>(L, 3)) - { - UnityEngine.ContactFilter2D _contactFilter;translator.Get(L, 2, out _contactFilter); - System.Collections.Generic.List _colliders = (System.Collections.Generic.List)translator.GetObject(L, 3, typeof(System.Collections.Generic.List)); - - var gen_ret = gen_to_be_invoked.GetContacts( _contactFilter, _colliders ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Rigidbody2D.GetContacts!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetAttachedColliders(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Rigidbody2D gen_to_be_invoked = (UnityEngine.Rigidbody2D)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.Collider2D[] _results = (UnityEngine.Collider2D[])translator.GetObject(L, 2, typeof(UnityEngine.Collider2D[])); - - var gen_ret = gen_to_be_invoked.GetAttachedColliders( _results ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 2; - } - if(gen_param_count == 2&& translator.Assignable>(L, 2)) - { - System.Collections.Generic.List _results = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - - var gen_ret = gen_to_be_invoked.GetAttachedColliders( _results ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Rigidbody2D.GetAttachedColliders!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Cast(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Rigidbody2D gen_to_be_invoked = (UnityEngine.Rigidbody2D)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)) - { - UnityEngine.Vector2 _direction;translator.Get(L, 2, out _direction); - UnityEngine.RaycastHit2D[] _results = (UnityEngine.RaycastHit2D[])translator.GetObject(L, 3, typeof(UnityEngine.RaycastHit2D[])); - - var gen_ret = gen_to_be_invoked.Cast( _direction, _results ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - UnityEngine.Vector2 _direction;translator.Get(L, 2, out _direction); - UnityEngine.RaycastHit2D[] _results = (UnityEngine.RaycastHit2D[])translator.GetObject(L, 3, typeof(UnityEngine.RaycastHit2D[])); - float _distance = (float)LuaAPI.lua_tonumber(L, 4); - - var gen_ret = gen_to_be_invoked.Cast( _direction, _results, _distance ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable(L, 2)&& translator.Assignable>(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - UnityEngine.Vector2 _direction;translator.Get(L, 2, out _direction); - System.Collections.Generic.List _results = (System.Collections.Generic.List)translator.GetObject(L, 3, typeof(System.Collections.Generic.List)); - float _distance = (float)LuaAPI.lua_tonumber(L, 4); - - var gen_ret = gen_to_be_invoked.Cast( _direction, _results, _distance ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& translator.Assignable>(L, 3)) - { - UnityEngine.Vector2 _direction;translator.Get(L, 2, out _direction); - System.Collections.Generic.List _results = (System.Collections.Generic.List)translator.GetObject(L, 3, typeof(System.Collections.Generic.List)); - - var gen_ret = gen_to_be_invoked.Cast( _direction, _results ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)) - { - UnityEngine.Vector2 _direction;translator.Get(L, 2, out _direction); - UnityEngine.ContactFilter2D _contactFilter;translator.Get(L, 3, out _contactFilter); - UnityEngine.RaycastHit2D[] _results = (UnityEngine.RaycastHit2D[])translator.GetObject(L, 4, typeof(UnityEngine.RaycastHit2D[])); - - var gen_ret = gen_to_be_invoked.Cast( _direction, _contactFilter, _results ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 5&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - UnityEngine.Vector2 _direction;translator.Get(L, 2, out _direction); - UnityEngine.ContactFilter2D _contactFilter;translator.Get(L, 3, out _contactFilter); - UnityEngine.RaycastHit2D[] _results = (UnityEngine.RaycastHit2D[])translator.GetObject(L, 4, typeof(UnityEngine.RaycastHit2D[])); - float _distance = (float)LuaAPI.lua_tonumber(L, 5); - - var gen_ret = gen_to_be_invoked.Cast( _direction, _contactFilter, _results, _distance ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 5&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable>(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - UnityEngine.Vector2 _direction;translator.Get(L, 2, out _direction); - UnityEngine.ContactFilter2D _contactFilter;translator.Get(L, 3, out _contactFilter); - System.Collections.Generic.List _results = (System.Collections.Generic.List)translator.GetObject(L, 4, typeof(System.Collections.Generic.List)); - float _distance = (float)LuaAPI.lua_tonumber(L, 5); - - var gen_ret = gen_to_be_invoked.Cast( _direction, _contactFilter, _results, _distance ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Rigidbody2D.Cast!"); - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_position(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Rigidbody2D gen_to_be_invoked = (UnityEngine.Rigidbody2D)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector2(L, gen_to_be_invoked.position); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_rotation(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Rigidbody2D gen_to_be_invoked = (UnityEngine.Rigidbody2D)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.rotation); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_velocity(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Rigidbody2D gen_to_be_invoked = (UnityEngine.Rigidbody2D)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector2(L, gen_to_be_invoked.velocity); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_angularVelocity(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Rigidbody2D gen_to_be_invoked = (UnityEngine.Rigidbody2D)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.angularVelocity); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_useAutoMass(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Rigidbody2D gen_to_be_invoked = (UnityEngine.Rigidbody2D)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.useAutoMass); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_mass(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Rigidbody2D gen_to_be_invoked = (UnityEngine.Rigidbody2D)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.mass); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_sharedMaterial(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Rigidbody2D gen_to_be_invoked = (UnityEngine.Rigidbody2D)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.sharedMaterial); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_centerOfMass(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Rigidbody2D gen_to_be_invoked = (UnityEngine.Rigidbody2D)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector2(L, gen_to_be_invoked.centerOfMass); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_worldCenterOfMass(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Rigidbody2D gen_to_be_invoked = (UnityEngine.Rigidbody2D)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector2(L, gen_to_be_invoked.worldCenterOfMass); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_inertia(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Rigidbody2D gen_to_be_invoked = (UnityEngine.Rigidbody2D)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.inertia); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_drag(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Rigidbody2D gen_to_be_invoked = (UnityEngine.Rigidbody2D)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.drag); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_angularDrag(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Rigidbody2D gen_to_be_invoked = (UnityEngine.Rigidbody2D)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.angularDrag); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_gravityScale(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Rigidbody2D gen_to_be_invoked = (UnityEngine.Rigidbody2D)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.gravityScale); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_bodyType(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Rigidbody2D gen_to_be_invoked = (UnityEngine.Rigidbody2D)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.bodyType); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_useFullKinematicContacts(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Rigidbody2D gen_to_be_invoked = (UnityEngine.Rigidbody2D)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.useFullKinematicContacts); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_isKinematic(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Rigidbody2D gen_to_be_invoked = (UnityEngine.Rigidbody2D)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.isKinematic); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_freezeRotation(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Rigidbody2D gen_to_be_invoked = (UnityEngine.Rigidbody2D)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.freezeRotation); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_constraints(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Rigidbody2D gen_to_be_invoked = (UnityEngine.Rigidbody2D)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.constraints); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_simulated(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Rigidbody2D gen_to_be_invoked = (UnityEngine.Rigidbody2D)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.simulated); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_interpolation(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Rigidbody2D gen_to_be_invoked = (UnityEngine.Rigidbody2D)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.interpolation); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_sleepMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Rigidbody2D gen_to_be_invoked = (UnityEngine.Rigidbody2D)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.sleepMode); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_collisionDetectionMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Rigidbody2D gen_to_be_invoked = (UnityEngine.Rigidbody2D)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.collisionDetectionMode); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_attachedColliderCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Rigidbody2D gen_to_be_invoked = (UnityEngine.Rigidbody2D)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.attachedColliderCount); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_position(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Rigidbody2D gen_to_be_invoked = (UnityEngine.Rigidbody2D)translator.FastGetCSObj(L, 1); - UnityEngine.Vector2 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.position = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_rotation(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Rigidbody2D gen_to_be_invoked = (UnityEngine.Rigidbody2D)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.rotation = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_velocity(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Rigidbody2D gen_to_be_invoked = (UnityEngine.Rigidbody2D)translator.FastGetCSObj(L, 1); - UnityEngine.Vector2 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.velocity = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_angularVelocity(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Rigidbody2D gen_to_be_invoked = (UnityEngine.Rigidbody2D)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.angularVelocity = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_useAutoMass(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Rigidbody2D gen_to_be_invoked = (UnityEngine.Rigidbody2D)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.useAutoMass = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_mass(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Rigidbody2D gen_to_be_invoked = (UnityEngine.Rigidbody2D)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.mass = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_sharedMaterial(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Rigidbody2D gen_to_be_invoked = (UnityEngine.Rigidbody2D)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.sharedMaterial = (UnityEngine.PhysicsMaterial2D)translator.GetObject(L, 2, typeof(UnityEngine.PhysicsMaterial2D)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_centerOfMass(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Rigidbody2D gen_to_be_invoked = (UnityEngine.Rigidbody2D)translator.FastGetCSObj(L, 1); - UnityEngine.Vector2 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.centerOfMass = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_inertia(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Rigidbody2D gen_to_be_invoked = (UnityEngine.Rigidbody2D)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.inertia = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_drag(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Rigidbody2D gen_to_be_invoked = (UnityEngine.Rigidbody2D)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.drag = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_angularDrag(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Rigidbody2D gen_to_be_invoked = (UnityEngine.Rigidbody2D)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.angularDrag = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_gravityScale(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Rigidbody2D gen_to_be_invoked = (UnityEngine.Rigidbody2D)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.gravityScale = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_bodyType(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Rigidbody2D gen_to_be_invoked = (UnityEngine.Rigidbody2D)translator.FastGetCSObj(L, 1); - UnityEngine.RigidbodyType2D gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.bodyType = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_useFullKinematicContacts(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Rigidbody2D gen_to_be_invoked = (UnityEngine.Rigidbody2D)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.useFullKinematicContacts = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_isKinematic(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Rigidbody2D gen_to_be_invoked = (UnityEngine.Rigidbody2D)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.isKinematic = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_freezeRotation(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Rigidbody2D gen_to_be_invoked = (UnityEngine.Rigidbody2D)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.freezeRotation = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_constraints(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Rigidbody2D gen_to_be_invoked = (UnityEngine.Rigidbody2D)translator.FastGetCSObj(L, 1); - UnityEngine.RigidbodyConstraints2D gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.constraints = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_simulated(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Rigidbody2D gen_to_be_invoked = (UnityEngine.Rigidbody2D)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.simulated = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_interpolation(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Rigidbody2D gen_to_be_invoked = (UnityEngine.Rigidbody2D)translator.FastGetCSObj(L, 1); - UnityEngine.RigidbodyInterpolation2D gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.interpolation = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_sleepMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Rigidbody2D gen_to_be_invoked = (UnityEngine.Rigidbody2D)translator.FastGetCSObj(L, 1); - UnityEngine.RigidbodySleepMode2D gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.sleepMode = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_collisionDetectionMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Rigidbody2D gen_to_be_invoked = (UnityEngine.Rigidbody2D)translator.FastGetCSObj(L, 1); - UnityEngine.CollisionDetectionMode2D gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.collisionDetectionMode = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_ScalableBufferManagerWrap.cs b/Assets/XLua/Gen/UnityEngine_ScalableBufferManagerWrap.cs deleted file mode 100644 index 5eedb7c0e..000000000 --- a/Assets/XLua/Gen/UnityEngine_ScalableBufferManagerWrap.cs +++ /dev/null @@ -1,119 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineScalableBufferManagerWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.ScalableBufferManager); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 2, 2, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "ResizeBuffers", _m_ResizeBuffers_xlua_st_); - - - - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "widthScaleFactor", _g_get_widthScaleFactor); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "heightScaleFactor", _g_get_heightScaleFactor); - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "UnityEngine.ScalableBufferManager does not have a constructor!"); - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ResizeBuffers_xlua_st_(RealStatePtr L) - { - try { - - - - - { - float _widthScale = (float)LuaAPI.lua_tonumber(L, 1); - float _heightScale = (float)LuaAPI.lua_tonumber(L, 2); - - UnityEngine.ScalableBufferManager.ResizeBuffers( _widthScale, _heightScale ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_widthScaleFactor(RealStatePtr L) - { - try { - - LuaAPI.lua_pushnumber(L, UnityEngine.ScalableBufferManager.widthScaleFactor); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_heightScaleFactor(RealStatePtr L) - { - try { - - LuaAPI.lua_pushnumber(L, UnityEngine.ScalableBufferManager.heightScaleFactor); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_ScreenCaptureWrap.cs b/Assets/XLua/Gen/UnityEngine_ScreenCaptureWrap.cs deleted file mode 100644 index 72f0e4b78..000000000 --- a/Assets/XLua/Gen/UnityEngine_ScreenCaptureWrap.cs +++ /dev/null @@ -1,200 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineScreenCaptureWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.ScreenCapture); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 4, 0, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "CaptureScreenshot", _m_CaptureScreenshot_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "CaptureScreenshotAsTexture", _m_CaptureScreenshotAsTexture_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "CaptureScreenshotIntoRenderTexture", _m_CaptureScreenshotIntoRenderTexture_xlua_st_); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "UnityEngine.ScreenCapture does not have a constructor!"); - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CaptureScreenshot_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)) - { - string _filename = LuaAPI.lua_tostring(L, 1); - - UnityEngine.ScreenCapture.CaptureScreenshot( _filename ); - - - - return 0; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - string _filename = LuaAPI.lua_tostring(L, 1); - int _superSize = LuaAPI.xlua_tointeger(L, 2); - - UnityEngine.ScreenCapture.CaptureScreenshot( _filename, _superSize ); - - - - return 0; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 2)) - { - string _filename = LuaAPI.lua_tostring(L, 1); - UnityEngine.ScreenCapture.StereoScreenCaptureMode _stereoCaptureMode;translator.Get(L, 2, out _stereoCaptureMode); - - UnityEngine.ScreenCapture.CaptureScreenshot( _filename, _stereoCaptureMode ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.ScreenCapture.CaptureScreenshot!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CaptureScreenshotAsTexture_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 0) - { - - var gen_ret = UnityEngine.ScreenCapture.CaptureScreenshotAsTexture( ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - int _superSize = LuaAPI.xlua_tointeger(L, 1); - - var gen_ret = UnityEngine.ScreenCapture.CaptureScreenshotAsTexture( _superSize ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& translator.Assignable(L, 1)) - { - UnityEngine.ScreenCapture.StereoScreenCaptureMode _stereoCaptureMode;translator.Get(L, 1, out _stereoCaptureMode); - - var gen_ret = UnityEngine.ScreenCapture.CaptureScreenshotAsTexture( _stereoCaptureMode ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.ScreenCapture.CaptureScreenshotAsTexture!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CaptureScreenshotIntoRenderTexture_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.RenderTexture _renderTexture = (UnityEngine.RenderTexture)translator.GetObject(L, 1, typeof(UnityEngine.RenderTexture)); - - UnityEngine.ScreenCapture.CaptureScreenshotIntoRenderTexture( _renderTexture ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_SecondarySpriteTextureWrap.cs b/Assets/XLua/Gen/UnityEngine_SecondarySpriteTextureWrap.cs deleted file mode 100644 index 8a4825e78..000000000 --- a/Assets/XLua/Gen/UnityEngine_SecondarySpriteTextureWrap.cs +++ /dev/null @@ -1,148 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineSecondarySpriteTextureWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.SecondarySpriteTexture); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 2, 2); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "name", _g_get_name); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "texture", _g_get_texture); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "name", _s_set_name); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "texture", _s_set_texture); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(UnityEngine.SecondarySpriteTexture)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.SecondarySpriteTexture constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_name(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SecondarySpriteTexture gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.name); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_texture(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SecondarySpriteTexture gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.texture); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_name(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SecondarySpriteTexture gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.name = LuaAPI.lua_tostring(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_texture(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SecondarySpriteTexture gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.texture = (UnityEngine.Texture2D)translator.GetObject(L, 2, typeof(UnityEngine.Texture2D)); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_SecurityWrap.cs b/Assets/XLua/Gen/UnityEngine_SecurityWrap.cs deleted file mode 100644 index 27cc53fa2..000000000 --- a/Assets/XLua/Gen/UnityEngine_SecurityWrap.cs +++ /dev/null @@ -1,84 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineSecurityWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.Security); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.Security(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Security constructor!"); - - } - - - - - - - - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_SerializeReferenceWrap.cs b/Assets/XLua/Gen/UnityEngine_SerializeReferenceWrap.cs deleted file mode 100644 index 596ab057e..000000000 --- a/Assets/XLua/Gen/UnityEngine_SerializeReferenceWrap.cs +++ /dev/null @@ -1,84 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineSerializeReferenceWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.SerializeReference); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.SerializeReference(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.SerializeReference constructor!"); - - } - - - - - - - - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_SkeletonBoneWrap.cs b/Assets/XLua/Gen/UnityEngine_SkeletonBoneWrap.cs deleted file mode 100644 index 66f8e6ea0..000000000 --- a/Assets/XLua/Gen/UnityEngine_SkeletonBoneWrap.cs +++ /dev/null @@ -1,217 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineSkeletonBoneWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.SkeletonBone); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 4, 4); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "name", _g_get_name); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "position", _g_get_position); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "rotation", _g_get_rotation); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "scale", _g_get_scale); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "name", _s_set_name); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "position", _s_set_position); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "rotation", _s_set_rotation); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "scale", _s_set_scale); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(UnityEngine.SkeletonBone)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.SkeletonBone constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_name(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SkeletonBone gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.name); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_position(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SkeletonBone gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.position); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_rotation(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SkeletonBone gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineQuaternion(L, gen_to_be_invoked.rotation); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_scale(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SkeletonBone gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.scale); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_name(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SkeletonBone gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.name = LuaAPI.lua_tostring(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_position(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SkeletonBone gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Vector3 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.position = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_rotation(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SkeletonBone gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Quaternion gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.rotation = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_scale(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SkeletonBone gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Vector3 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.scale = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_SkyboxWrap.cs b/Assets/XLua/Gen/UnityEngine_SkyboxWrap.cs deleted file mode 100644 index 07397b917..000000000 --- a/Assets/XLua/Gen/UnityEngine_SkyboxWrap.cs +++ /dev/null @@ -1,115 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineSkyboxWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.Skybox); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 1, 1); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "material", _g_get_material); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "material", _s_set_material); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.Skybox(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Skybox constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_material(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Skybox gen_to_be_invoked = (UnityEngine.Skybox)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.material); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_material(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Skybox gen_to_be_invoked = (UnityEngine.Skybox)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.material = (UnityEngine.Material)translator.GetObject(L, 2, typeof(UnityEngine.Material)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_SleepTimeoutWrap.cs b/Assets/XLua/Gen/UnityEngine_SleepTimeoutWrap.cs deleted file mode 100644 index 1bba1bd5f..000000000 --- a/Assets/XLua/Gen/UnityEngine_SleepTimeoutWrap.cs +++ /dev/null @@ -1,86 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineSleepTimeoutWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.SleepTimeout); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 3, 0, 0); - - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "NeverSleep", UnityEngine.SleepTimeout.NeverSleep); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "SystemSetting", UnityEngine.SleepTimeout.SystemSetting); - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.SleepTimeout(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.SleepTimeout constructor!"); - - } - - - - - - - - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_SliderJoint2DWrap.cs b/Assets/XLua/Gen/UnityEngine_SliderJoint2DWrap.cs deleted file mode 100644 index 0e9d457ba..000000000 --- a/Assets/XLua/Gen/UnityEngine_SliderJoint2DWrap.cs +++ /dev/null @@ -1,362 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineSliderJoint2DWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.SliderJoint2D); - Utils.BeginObjectRegister(type, L, translator, 0, 1, 10, 6); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetMotorForce", _m_GetMotorForce); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "autoConfigureAngle", _g_get_autoConfigureAngle); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "angle", _g_get_angle); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "useMotor", _g_get_useMotor); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "useLimits", _g_get_useLimits); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "motor", _g_get_motor); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "limits", _g_get_limits); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "limitState", _g_get_limitState); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "referenceAngle", _g_get_referenceAngle); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "jointTranslation", _g_get_jointTranslation); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "jointSpeed", _g_get_jointSpeed); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "autoConfigureAngle", _s_set_autoConfigureAngle); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "angle", _s_set_angle); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "useMotor", _s_set_useMotor); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "useLimits", _s_set_useLimits); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "motor", _s_set_motor); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "limits", _s_set_limits); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.SliderJoint2D(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.SliderJoint2D constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetMotorForce(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.SliderJoint2D gen_to_be_invoked = (UnityEngine.SliderJoint2D)translator.FastGetCSObj(L, 1); - - - - { - float _timeStep = (float)LuaAPI.lua_tonumber(L, 2); - - var gen_ret = gen_to_be_invoked.GetMotorForce( _timeStep ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_autoConfigureAngle(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SliderJoint2D gen_to_be_invoked = (UnityEngine.SliderJoint2D)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.autoConfigureAngle); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_angle(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SliderJoint2D gen_to_be_invoked = (UnityEngine.SliderJoint2D)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.angle); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_useMotor(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SliderJoint2D gen_to_be_invoked = (UnityEngine.SliderJoint2D)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.useMotor); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_useLimits(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SliderJoint2D gen_to_be_invoked = (UnityEngine.SliderJoint2D)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.useLimits); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_motor(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SliderJoint2D gen_to_be_invoked = (UnityEngine.SliderJoint2D)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.motor); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_limits(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SliderJoint2D gen_to_be_invoked = (UnityEngine.SliderJoint2D)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.limits); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_limitState(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SliderJoint2D gen_to_be_invoked = (UnityEngine.SliderJoint2D)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.limitState); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_referenceAngle(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SliderJoint2D gen_to_be_invoked = (UnityEngine.SliderJoint2D)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.referenceAngle); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_jointTranslation(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SliderJoint2D gen_to_be_invoked = (UnityEngine.SliderJoint2D)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.jointTranslation); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_jointSpeed(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SliderJoint2D gen_to_be_invoked = (UnityEngine.SliderJoint2D)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.jointSpeed); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_autoConfigureAngle(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SliderJoint2D gen_to_be_invoked = (UnityEngine.SliderJoint2D)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.autoConfigureAngle = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_angle(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SliderJoint2D gen_to_be_invoked = (UnityEngine.SliderJoint2D)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.angle = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_useMotor(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SliderJoint2D gen_to_be_invoked = (UnityEngine.SliderJoint2D)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.useMotor = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_useLimits(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SliderJoint2D gen_to_be_invoked = (UnityEngine.SliderJoint2D)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.useLimits = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_motor(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SliderJoint2D gen_to_be_invoked = (UnityEngine.SliderJoint2D)translator.FastGetCSObj(L, 1); - UnityEngine.JointMotor2D gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.motor = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_limits(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SliderJoint2D gen_to_be_invoked = (UnityEngine.SliderJoint2D)translator.FastGetCSObj(L, 1); - UnityEngine.JointTranslationLimits2D gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.limits = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_SnappingWrap.cs b/Assets/XLua/Gen/UnityEngine_SnappingWrap.cs deleted file mode 100644 index c07d46970..000000000 --- a/Assets/XLua/Gen/UnityEngine_SnappingWrap.cs +++ /dev/null @@ -1,137 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineSnappingWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.Snapping); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 2, 0, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Snap", _m_Snap_xlua_st_); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "UnityEngine.Snapping does not have a constructor!"); - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Snap_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - float _val = (float)LuaAPI.lua_tonumber(L, 1); - float _snap = (float)LuaAPI.lua_tonumber(L, 2); - - var gen_ret = UnityEngine.Snapping.Snap( _val, _snap ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)) - { - UnityEngine.Vector2 _val;translator.Get(L, 1, out _val); - UnityEngine.Vector2 _snap;translator.Get(L, 2, out _snap); - - var gen_ret = UnityEngine.Snapping.Snap( _val, _snap ); - translator.PushUnityEngineVector2(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)) - { - UnityEngine.Vector3 _val;translator.Get(L, 1, out _val); - UnityEngine.Vector3 _snap;translator.Get(L, 2, out _snap); - UnityEngine.SnapAxis _axis;translator.Get(L, 3, out _axis); - - var gen_ret = UnityEngine.Snapping.Snap( _val, _snap, _axis ); - translator.PushUnityEngineVector3(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)) - { - UnityEngine.Vector3 _val;translator.Get(L, 1, out _val); - UnityEngine.Vector3 _snap;translator.Get(L, 2, out _snap); - - var gen_ret = UnityEngine.Snapping.Snap( _val, _snap ); - translator.PushUnityEngineVector3(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Snapping.Snap!"); - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_SoftJointLimitSpringWrap.cs b/Assets/XLua/Gen/UnityEngine_SoftJointLimitSpringWrap.cs deleted file mode 100644 index faf3439a7..000000000 --- a/Assets/XLua/Gen/UnityEngine_SoftJointLimitSpringWrap.cs +++ /dev/null @@ -1,148 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineSoftJointLimitSpringWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.SoftJointLimitSpring); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 2, 2); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "spring", _g_get_spring); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "damper", _g_get_damper); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "spring", _s_set_spring); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "damper", _s_set_damper); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(UnityEngine.SoftJointLimitSpring)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.SoftJointLimitSpring constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_spring(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SoftJointLimitSpring gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.spring); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_damper(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SoftJointLimitSpring gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.damper); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_spring(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SoftJointLimitSpring gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.spring = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_damper(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SoftJointLimitSpring gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.damper = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_SoftJointLimitWrap.cs b/Assets/XLua/Gen/UnityEngine_SoftJointLimitWrap.cs deleted file mode 100644 index 3e97bd096..000000000 --- a/Assets/XLua/Gen/UnityEngine_SoftJointLimitWrap.cs +++ /dev/null @@ -1,181 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineSoftJointLimitWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.SoftJointLimit); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 3, 3); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "limit", _g_get_limit); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "bounciness", _g_get_bounciness); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "contactDistance", _g_get_contactDistance); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "limit", _s_set_limit); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "bounciness", _s_set_bounciness); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "contactDistance", _s_set_contactDistance); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(UnityEngine.SoftJointLimit)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.SoftJointLimit constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_limit(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SoftJointLimit gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.limit); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_bounciness(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SoftJointLimit gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.bounciness); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_contactDistance(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SoftJointLimit gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.contactDistance); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_limit(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SoftJointLimit gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.limit = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_bounciness(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SoftJointLimit gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.bounciness = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_contactDistance(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SoftJointLimit gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.contactDistance = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_SortingLayerWrap.cs b/Assets/XLua/Gen/UnityEngine_SortingLayerWrap.cs deleted file mode 100644 index 14ba076f3..000000000 --- a/Assets/XLua/Gen/UnityEngine_SortingLayerWrap.cs +++ /dev/null @@ -1,270 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineSortingLayerWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.SortingLayer); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 3, 0); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "id", _g_get_id); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "name", _g_get_name); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "value", _g_get_value); - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 6, 1, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetLayerValueFromID", _m_GetLayerValueFromID_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetLayerValueFromName", _m_GetLayerValueFromName_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "NameToID", _m_NameToID_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "IDToName", _m_IDToName_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "IsValid", _m_IsValid_xlua_st_); - - - - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "layers", _g_get_layers); - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(UnityEngine.SortingLayer)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.SortingLayer constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetLayerValueFromID_xlua_st_(RealStatePtr L) - { - try { - - - - - { - int _id = LuaAPI.xlua_tointeger(L, 1); - - var gen_ret = UnityEngine.SortingLayer.GetLayerValueFromID( _id ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetLayerValueFromName_xlua_st_(RealStatePtr L) - { - try { - - - - - { - string _name = LuaAPI.lua_tostring(L, 1); - - var gen_ret = UnityEngine.SortingLayer.GetLayerValueFromName( _name ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_NameToID_xlua_st_(RealStatePtr L) - { - try { - - - - - { - string _name = LuaAPI.lua_tostring(L, 1); - - var gen_ret = UnityEngine.SortingLayer.NameToID( _name ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_IDToName_xlua_st_(RealStatePtr L) - { - try { - - - - - { - int _id = LuaAPI.xlua_tointeger(L, 1); - - var gen_ret = UnityEngine.SortingLayer.IDToName( _id ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_IsValid_xlua_st_(RealStatePtr L) - { - try { - - - - - { - int _id = LuaAPI.xlua_tointeger(L, 1); - - var gen_ret = UnityEngine.SortingLayer.IsValid( _id ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_id(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SortingLayer gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.id); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_name(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SortingLayer gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.name); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_value(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SortingLayer gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.value); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_layers(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, UnityEngine.SortingLayer.layers); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_SparseTextureWrap.cs b/Assets/XLua/Gen/UnityEngine_SparseTextureWrap.cs deleted file mode 100644 index d8a72b96d..000000000 --- a/Assets/XLua/Gen/UnityEngine_SparseTextureWrap.cs +++ /dev/null @@ -1,265 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineSparseTextureWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.SparseTexture); - Utils.BeginObjectRegister(type, L, translator, 0, 3, 3, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "UpdateTile", _m_UpdateTile); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "UpdateTileRaw", _m_UpdateTileRaw); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "UnloadTile", _m_UnloadTile); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "tileWidth", _g_get_tileWidth); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "tileHeight", _g_get_tileHeight); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "isCreated", _g_get_isCreated); - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 5 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && translator.Assignable(L, 4) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - int _width = LuaAPI.xlua_tointeger(L, 2); - int _height = LuaAPI.xlua_tointeger(L, 3); - UnityEngine.Experimental.Rendering.DefaultFormat _format;translator.Get(L, 4, out _format); - int _mipCount = LuaAPI.xlua_tointeger(L, 5); - - var gen_ret = new UnityEngine.SparseTexture(_width, _height, _format, _mipCount); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 5 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && translator.Assignable(L, 4) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - int _width = LuaAPI.xlua_tointeger(L, 2); - int _height = LuaAPI.xlua_tointeger(L, 3); - UnityEngine.Experimental.Rendering.GraphicsFormat _format;translator.Get(L, 4, out _format); - int _mipCount = LuaAPI.xlua_tointeger(L, 5); - - var gen_ret = new UnityEngine.SparseTexture(_width, _height, _format, _mipCount); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 5 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && translator.Assignable(L, 4) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - int _width = LuaAPI.xlua_tointeger(L, 2); - int _height = LuaAPI.xlua_tointeger(L, 3); - UnityEngine.TextureFormat _textureFormat;translator.Get(L, 4, out _textureFormat); - int _mipCount = LuaAPI.xlua_tointeger(L, 5); - - var gen_ret = new UnityEngine.SparseTexture(_width, _height, _textureFormat, _mipCount); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 6 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && translator.Assignable(L, 4) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 6)) - { - int _width = LuaAPI.xlua_tointeger(L, 2); - int _height = LuaAPI.xlua_tointeger(L, 3); - UnityEngine.TextureFormat _textureFormat;translator.Get(L, 4, out _textureFormat); - int _mipCount = LuaAPI.xlua_tointeger(L, 5); - bool _linear = LuaAPI.lua_toboolean(L, 6); - - var gen_ret = new UnityEngine.SparseTexture(_width, _height, _textureFormat, _mipCount, _linear); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.SparseTexture constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_UpdateTile(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.SparseTexture gen_to_be_invoked = (UnityEngine.SparseTexture)translator.FastGetCSObj(L, 1); - - - - { - int _tileX = LuaAPI.xlua_tointeger(L, 2); - int _tileY = LuaAPI.xlua_tointeger(L, 3); - int _miplevel = LuaAPI.xlua_tointeger(L, 4); - UnityEngine.Color32[] _data = (UnityEngine.Color32[])translator.GetObject(L, 5, typeof(UnityEngine.Color32[])); - - gen_to_be_invoked.UpdateTile( _tileX, _tileY, _miplevel, _data ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_UpdateTileRaw(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.SparseTexture gen_to_be_invoked = (UnityEngine.SparseTexture)translator.FastGetCSObj(L, 1); - - - - { - int _tileX = LuaAPI.xlua_tointeger(L, 2); - int _tileY = LuaAPI.xlua_tointeger(L, 3); - int _miplevel = LuaAPI.xlua_tointeger(L, 4); - byte[] _data = LuaAPI.lua_tobytes(L, 5); - - gen_to_be_invoked.UpdateTileRaw( _tileX, _tileY, _miplevel, _data ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_UnloadTile(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.SparseTexture gen_to_be_invoked = (UnityEngine.SparseTexture)translator.FastGetCSObj(L, 1); - - - - { - int _tileX = LuaAPI.xlua_tointeger(L, 2); - int _tileY = LuaAPI.xlua_tointeger(L, 3); - int _miplevel = LuaAPI.xlua_tointeger(L, 4); - - gen_to_be_invoked.UnloadTile( _tileX, _tileY, _miplevel ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_tileWidth(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SparseTexture gen_to_be_invoked = (UnityEngine.SparseTexture)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.tileWidth); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_tileHeight(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SparseTexture gen_to_be_invoked = (UnityEngine.SparseTexture)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.tileHeight); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_isCreated(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SparseTexture gen_to_be_invoked = (UnityEngine.SparseTexture)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.isCreated); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_SpherecastCommandWrap.cs b/Assets/XLua/Gen/UnityEngine_SpherecastCommandWrap.cs deleted file mode 100644 index 8c24acda7..000000000 --- a/Assets/XLua/Gen/UnityEngine_SpherecastCommandWrap.cs +++ /dev/null @@ -1,333 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineSpherecastCommandWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.SpherecastCommand); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 5, 5); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "origin", _g_get_origin); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "radius", _g_get_radius); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "direction", _g_get_direction); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "distance", _g_get_distance); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "layerMask", _g_get_layerMask); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "origin", _s_set_origin); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "radius", _s_set_radius); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "direction", _s_set_direction); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "distance", _s_set_distance); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "layerMask", _s_set_layerMask); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 2, 0, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "ScheduleBatch", _m_ScheduleBatch_xlua_st_); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 6 && translator.Assignable(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && translator.Assignable(L, 4) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)) - { - UnityEngine.Vector3 _origin;translator.Get(L, 2, out _origin); - float _radius = (float)LuaAPI.lua_tonumber(L, 3); - UnityEngine.Vector3 _direction;translator.Get(L, 4, out _direction); - float _distance = (float)LuaAPI.lua_tonumber(L, 5); - int _layerMask = LuaAPI.xlua_tointeger(L, 6); - - var gen_ret = new UnityEngine.SpherecastCommand(_origin, _radius, _direction, _distance, _layerMask); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 5 && translator.Assignable(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && translator.Assignable(L, 4) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - UnityEngine.Vector3 _origin;translator.Get(L, 2, out _origin); - float _radius = (float)LuaAPI.lua_tonumber(L, 3); - UnityEngine.Vector3 _direction;translator.Get(L, 4, out _direction); - float _distance = (float)LuaAPI.lua_tonumber(L, 5); - - var gen_ret = new UnityEngine.SpherecastCommand(_origin, _radius, _direction, _distance); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 4 && translator.Assignable(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && translator.Assignable(L, 4)) - { - UnityEngine.Vector3 _origin;translator.Get(L, 2, out _origin); - float _radius = (float)LuaAPI.lua_tonumber(L, 3); - UnityEngine.Vector3 _direction;translator.Get(L, 4, out _direction); - - var gen_ret = new UnityEngine.SpherecastCommand(_origin, _radius, _direction); - translator.Push(L, gen_ret); - - return 1; - } - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(UnityEngine.SpherecastCommand)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.SpherecastCommand constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ScheduleBatch_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 4&& translator.Assignable>(L, 1)&& translator.Assignable>(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable(L, 4)) - { - Unity.Collections.NativeArray _commands;translator.Get(L, 1, out _commands); - Unity.Collections.NativeArray _results;translator.Get(L, 2, out _results); - int _minCommandsPerJob = LuaAPI.xlua_tointeger(L, 3); - Unity.Jobs.JobHandle _dependsOn;translator.Get(L, 4, out _dependsOn); - - var gen_ret = UnityEngine.SpherecastCommand.ScheduleBatch( _commands, _results, _minCommandsPerJob, _dependsOn ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable>(L, 1)&& translator.Assignable>(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - Unity.Collections.NativeArray _commands;translator.Get(L, 1, out _commands); - Unity.Collections.NativeArray _results;translator.Get(L, 2, out _results); - int _minCommandsPerJob = LuaAPI.xlua_tointeger(L, 3); - - var gen_ret = UnityEngine.SpherecastCommand.ScheduleBatch( _commands, _results, _minCommandsPerJob ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.SpherecastCommand.ScheduleBatch!"); - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_origin(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SpherecastCommand gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.origin); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_radius(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SpherecastCommand gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.radius); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_direction(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SpherecastCommand gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.direction); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_distance(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SpherecastCommand gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.distance); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_layerMask(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SpherecastCommand gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.layerMask); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_origin(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SpherecastCommand gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Vector3 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.origin = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_radius(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SpherecastCommand gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.radius = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_direction(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SpherecastCommand gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Vector3 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.direction = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_distance(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SpherecastCommand gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.distance = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_layerMask(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SpherecastCommand gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.layerMask = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_SpringJoint2DWrap.cs b/Assets/XLua/Gen/UnityEngine_SpringJoint2DWrap.cs deleted file mode 100644 index e80bf93f5..000000000 --- a/Assets/XLua/Gen/UnityEngine_SpringJoint2DWrap.cs +++ /dev/null @@ -1,208 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineSpringJoint2DWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.SpringJoint2D); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 4, 4); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "autoConfigureDistance", _g_get_autoConfigureDistance); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "distance", _g_get_distance); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "dampingRatio", _g_get_dampingRatio); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "frequency", _g_get_frequency); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "autoConfigureDistance", _s_set_autoConfigureDistance); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "distance", _s_set_distance); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "dampingRatio", _s_set_dampingRatio); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "frequency", _s_set_frequency); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.SpringJoint2D(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.SpringJoint2D constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_autoConfigureDistance(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SpringJoint2D gen_to_be_invoked = (UnityEngine.SpringJoint2D)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.autoConfigureDistance); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_distance(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SpringJoint2D gen_to_be_invoked = (UnityEngine.SpringJoint2D)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.distance); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_dampingRatio(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SpringJoint2D gen_to_be_invoked = (UnityEngine.SpringJoint2D)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.dampingRatio); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_frequency(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SpringJoint2D gen_to_be_invoked = (UnityEngine.SpringJoint2D)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.frequency); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_autoConfigureDistance(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SpringJoint2D gen_to_be_invoked = (UnityEngine.SpringJoint2D)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.autoConfigureDistance = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_distance(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SpringJoint2D gen_to_be_invoked = (UnityEngine.SpringJoint2D)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.distance = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_dampingRatio(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SpringJoint2D gen_to_be_invoked = (UnityEngine.SpringJoint2D)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.dampingRatio = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_frequency(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SpringJoint2D gen_to_be_invoked = (UnityEngine.SpringJoint2D)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.frequency = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_SpringJointWrap.cs b/Assets/XLua/Gen/UnityEngine_SpringJointWrap.cs deleted file mode 100644 index 1f78de4d3..000000000 --- a/Assets/XLua/Gen/UnityEngine_SpringJointWrap.cs +++ /dev/null @@ -1,239 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineSpringJointWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.SpringJoint); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 5, 5); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "spring", _g_get_spring); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "damper", _g_get_damper); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "minDistance", _g_get_minDistance); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "maxDistance", _g_get_maxDistance); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "tolerance", _g_get_tolerance); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "spring", _s_set_spring); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "damper", _s_set_damper); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "minDistance", _s_set_minDistance); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "maxDistance", _s_set_maxDistance); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "tolerance", _s_set_tolerance); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.SpringJoint(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.SpringJoint constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_spring(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SpringJoint gen_to_be_invoked = (UnityEngine.SpringJoint)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.spring); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_damper(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SpringJoint gen_to_be_invoked = (UnityEngine.SpringJoint)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.damper); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_minDistance(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SpringJoint gen_to_be_invoked = (UnityEngine.SpringJoint)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.minDistance); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_maxDistance(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SpringJoint gen_to_be_invoked = (UnityEngine.SpringJoint)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.maxDistance); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_tolerance(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SpringJoint gen_to_be_invoked = (UnityEngine.SpringJoint)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.tolerance); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_spring(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SpringJoint gen_to_be_invoked = (UnityEngine.SpringJoint)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.spring = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_damper(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SpringJoint gen_to_be_invoked = (UnityEngine.SpringJoint)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.damper = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_minDistance(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SpringJoint gen_to_be_invoked = (UnityEngine.SpringJoint)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.minDistance = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_maxDistance(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SpringJoint gen_to_be_invoked = (UnityEngine.SpringJoint)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.maxDistance = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_tolerance(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SpringJoint gen_to_be_invoked = (UnityEngine.SpringJoint)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.tolerance = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_SpriteMaskWrap.cs b/Assets/XLua/Gen/UnityEngine_SpriteMaskWrap.cs deleted file mode 100644 index 629870878..000000000 --- a/Assets/XLua/Gen/UnityEngine_SpriteMaskWrap.cs +++ /dev/null @@ -1,333 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineSpriteMaskWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.SpriteMask); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 8, 8); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "frontSortingLayerID", _g_get_frontSortingLayerID); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "frontSortingOrder", _g_get_frontSortingOrder); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "backSortingLayerID", _g_get_backSortingLayerID); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "backSortingOrder", _g_get_backSortingOrder); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "alphaCutoff", _g_get_alphaCutoff); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "sprite", _g_get_sprite); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "isCustomRangeActive", _g_get_isCustomRangeActive); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "spriteSortPoint", _g_get_spriteSortPoint); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "frontSortingLayerID", _s_set_frontSortingLayerID); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "frontSortingOrder", _s_set_frontSortingOrder); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "backSortingLayerID", _s_set_backSortingLayerID); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "backSortingOrder", _s_set_backSortingOrder); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "alphaCutoff", _s_set_alphaCutoff); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "sprite", _s_set_sprite); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "isCustomRangeActive", _s_set_isCustomRangeActive); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "spriteSortPoint", _s_set_spriteSortPoint); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.SpriteMask(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.SpriteMask constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_frontSortingLayerID(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SpriteMask gen_to_be_invoked = (UnityEngine.SpriteMask)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.frontSortingLayerID); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_frontSortingOrder(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SpriteMask gen_to_be_invoked = (UnityEngine.SpriteMask)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.frontSortingOrder); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_backSortingLayerID(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SpriteMask gen_to_be_invoked = (UnityEngine.SpriteMask)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.backSortingLayerID); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_backSortingOrder(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SpriteMask gen_to_be_invoked = (UnityEngine.SpriteMask)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.backSortingOrder); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_alphaCutoff(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SpriteMask gen_to_be_invoked = (UnityEngine.SpriteMask)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.alphaCutoff); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_sprite(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SpriteMask gen_to_be_invoked = (UnityEngine.SpriteMask)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.sprite); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_isCustomRangeActive(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SpriteMask gen_to_be_invoked = (UnityEngine.SpriteMask)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.isCustomRangeActive); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_spriteSortPoint(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SpriteMask gen_to_be_invoked = (UnityEngine.SpriteMask)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.spriteSortPoint); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_frontSortingLayerID(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SpriteMask gen_to_be_invoked = (UnityEngine.SpriteMask)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.frontSortingLayerID = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_frontSortingOrder(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SpriteMask gen_to_be_invoked = (UnityEngine.SpriteMask)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.frontSortingOrder = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_backSortingLayerID(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SpriteMask gen_to_be_invoked = (UnityEngine.SpriteMask)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.backSortingLayerID = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_backSortingOrder(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SpriteMask gen_to_be_invoked = (UnityEngine.SpriteMask)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.backSortingOrder = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_alphaCutoff(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SpriteMask gen_to_be_invoked = (UnityEngine.SpriteMask)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.alphaCutoff = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_sprite(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SpriteMask gen_to_be_invoked = (UnityEngine.SpriteMask)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.sprite = (UnityEngine.Sprite)translator.GetObject(L, 2, typeof(UnityEngine.Sprite)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_isCustomRangeActive(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SpriteMask gen_to_be_invoked = (UnityEngine.SpriteMask)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.isCustomRangeActive = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_spriteSortPoint(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SpriteMask gen_to_be_invoked = (UnityEngine.SpriteMask)translator.FastGetCSObj(L, 1); - UnityEngine.SpriteSortPoint gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.spriteSortPoint = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_StackTraceUtilityWrap.cs b/Assets/XLua/Gen/UnityEngine_StackTraceUtilityWrap.cs deleted file mode 100644 index 1fb05f226..000000000 --- a/Assets/XLua/Gen/UnityEngine_StackTraceUtilityWrap.cs +++ /dev/null @@ -1,120 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineStackTraceUtilityWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.StackTraceUtility); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 3, 0, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "ExtractStackTrace", _m_ExtractStackTrace_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "ExtractStringFromException", _m_ExtractStringFromException_xlua_st_); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "UnityEngine.StackTraceUtility does not have a constructor!"); - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ExtractStackTrace_xlua_st_(RealStatePtr L) - { - try { - - - - - { - - var gen_ret = UnityEngine.StackTraceUtility.ExtractStackTrace( ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ExtractStringFromException_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - object _exception = translator.GetObject(L, 1, typeof(object)); - - var gen_ret = UnityEngine.StackTraceUtility.ExtractStringFromException( _exception ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_StateMachineBehaviourWrap.cs b/Assets/XLua/Gen/UnityEngine_StateMachineBehaviourWrap.cs deleted file mode 100644 index 22e567f6b..000000000 --- a/Assets/XLua/Gen/UnityEngine_StateMachineBehaviourWrap.cs +++ /dev/null @@ -1,399 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineStateMachineBehaviourWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.StateMachineBehaviour); - Utils.BeginObjectRegister(type, L, translator, 0, 7, 0, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnStateEnter", _m_OnStateEnter); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnStateUpdate", _m_OnStateUpdate); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnStateExit", _m_OnStateExit); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnStateMove", _m_OnStateMove); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnStateIK", _m_OnStateIK); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnStateMachineEnter", _m_OnStateMachineEnter); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnStateMachineExit", _m_OnStateMachineExit); - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "UnityEngine.StateMachineBehaviour does not have a constructor!"); - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnStateEnter(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.StateMachineBehaviour gen_to_be_invoked = (UnityEngine.StateMachineBehaviour)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 4&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - UnityEngine.Animator _animator = (UnityEngine.Animator)translator.GetObject(L, 2, typeof(UnityEngine.Animator)); - UnityEngine.AnimatorStateInfo _stateInfo;translator.Get(L, 3, out _stateInfo); - int _layerIndex = LuaAPI.xlua_tointeger(L, 4); - - gen_to_be_invoked.OnStateEnter( _animator, _stateInfo, _layerIndex ); - - - - return 0; - } - if(gen_param_count == 5&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& translator.Assignable(L, 5)) - { - UnityEngine.Animator _animator = (UnityEngine.Animator)translator.GetObject(L, 2, typeof(UnityEngine.Animator)); - UnityEngine.AnimatorStateInfo _stateInfo;translator.Get(L, 3, out _stateInfo); - int _layerIndex = LuaAPI.xlua_tointeger(L, 4); - UnityEngine.Animations.AnimatorControllerPlayable _controller;translator.Get(L, 5, out _controller); - - gen_to_be_invoked.OnStateEnter( _animator, _stateInfo, _layerIndex, _controller ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.StateMachineBehaviour.OnStateEnter!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnStateUpdate(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.StateMachineBehaviour gen_to_be_invoked = (UnityEngine.StateMachineBehaviour)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 4&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - UnityEngine.Animator _animator = (UnityEngine.Animator)translator.GetObject(L, 2, typeof(UnityEngine.Animator)); - UnityEngine.AnimatorStateInfo _stateInfo;translator.Get(L, 3, out _stateInfo); - int _layerIndex = LuaAPI.xlua_tointeger(L, 4); - - gen_to_be_invoked.OnStateUpdate( _animator, _stateInfo, _layerIndex ); - - - - return 0; - } - if(gen_param_count == 5&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& translator.Assignable(L, 5)) - { - UnityEngine.Animator _animator = (UnityEngine.Animator)translator.GetObject(L, 2, typeof(UnityEngine.Animator)); - UnityEngine.AnimatorStateInfo _stateInfo;translator.Get(L, 3, out _stateInfo); - int _layerIndex = LuaAPI.xlua_tointeger(L, 4); - UnityEngine.Animations.AnimatorControllerPlayable _controller;translator.Get(L, 5, out _controller); - - gen_to_be_invoked.OnStateUpdate( _animator, _stateInfo, _layerIndex, _controller ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.StateMachineBehaviour.OnStateUpdate!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnStateExit(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.StateMachineBehaviour gen_to_be_invoked = (UnityEngine.StateMachineBehaviour)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 4&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - UnityEngine.Animator _animator = (UnityEngine.Animator)translator.GetObject(L, 2, typeof(UnityEngine.Animator)); - UnityEngine.AnimatorStateInfo _stateInfo;translator.Get(L, 3, out _stateInfo); - int _layerIndex = LuaAPI.xlua_tointeger(L, 4); - - gen_to_be_invoked.OnStateExit( _animator, _stateInfo, _layerIndex ); - - - - return 0; - } - if(gen_param_count == 5&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& translator.Assignable(L, 5)) - { - UnityEngine.Animator _animator = (UnityEngine.Animator)translator.GetObject(L, 2, typeof(UnityEngine.Animator)); - UnityEngine.AnimatorStateInfo _stateInfo;translator.Get(L, 3, out _stateInfo); - int _layerIndex = LuaAPI.xlua_tointeger(L, 4); - UnityEngine.Animations.AnimatorControllerPlayable _controller;translator.Get(L, 5, out _controller); - - gen_to_be_invoked.OnStateExit( _animator, _stateInfo, _layerIndex, _controller ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.StateMachineBehaviour.OnStateExit!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnStateMove(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.StateMachineBehaviour gen_to_be_invoked = (UnityEngine.StateMachineBehaviour)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 4&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - UnityEngine.Animator _animator = (UnityEngine.Animator)translator.GetObject(L, 2, typeof(UnityEngine.Animator)); - UnityEngine.AnimatorStateInfo _stateInfo;translator.Get(L, 3, out _stateInfo); - int _layerIndex = LuaAPI.xlua_tointeger(L, 4); - - gen_to_be_invoked.OnStateMove( _animator, _stateInfo, _layerIndex ); - - - - return 0; - } - if(gen_param_count == 5&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& translator.Assignable(L, 5)) - { - UnityEngine.Animator _animator = (UnityEngine.Animator)translator.GetObject(L, 2, typeof(UnityEngine.Animator)); - UnityEngine.AnimatorStateInfo _stateInfo;translator.Get(L, 3, out _stateInfo); - int _layerIndex = LuaAPI.xlua_tointeger(L, 4); - UnityEngine.Animations.AnimatorControllerPlayable _controller;translator.Get(L, 5, out _controller); - - gen_to_be_invoked.OnStateMove( _animator, _stateInfo, _layerIndex, _controller ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.StateMachineBehaviour.OnStateMove!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnStateIK(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.StateMachineBehaviour gen_to_be_invoked = (UnityEngine.StateMachineBehaviour)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 4&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - UnityEngine.Animator _animator = (UnityEngine.Animator)translator.GetObject(L, 2, typeof(UnityEngine.Animator)); - UnityEngine.AnimatorStateInfo _stateInfo;translator.Get(L, 3, out _stateInfo); - int _layerIndex = LuaAPI.xlua_tointeger(L, 4); - - gen_to_be_invoked.OnStateIK( _animator, _stateInfo, _layerIndex ); - - - - return 0; - } - if(gen_param_count == 5&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& translator.Assignable(L, 5)) - { - UnityEngine.Animator _animator = (UnityEngine.Animator)translator.GetObject(L, 2, typeof(UnityEngine.Animator)); - UnityEngine.AnimatorStateInfo _stateInfo;translator.Get(L, 3, out _stateInfo); - int _layerIndex = LuaAPI.xlua_tointeger(L, 4); - UnityEngine.Animations.AnimatorControllerPlayable _controller;translator.Get(L, 5, out _controller); - - gen_to_be_invoked.OnStateIK( _animator, _stateInfo, _layerIndex, _controller ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.StateMachineBehaviour.OnStateIK!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnStateMachineEnter(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.StateMachineBehaviour gen_to_be_invoked = (UnityEngine.StateMachineBehaviour)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - UnityEngine.Animator _animator = (UnityEngine.Animator)translator.GetObject(L, 2, typeof(UnityEngine.Animator)); - int _stateMachinePathHash = LuaAPI.xlua_tointeger(L, 3); - - gen_to_be_invoked.OnStateMachineEnter( _animator, _stateMachinePathHash ); - - - - return 0; - } - if(gen_param_count == 4&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable(L, 4)) - { - UnityEngine.Animator _animator = (UnityEngine.Animator)translator.GetObject(L, 2, typeof(UnityEngine.Animator)); - int _stateMachinePathHash = LuaAPI.xlua_tointeger(L, 3); - UnityEngine.Animations.AnimatorControllerPlayable _controller;translator.Get(L, 4, out _controller); - - gen_to_be_invoked.OnStateMachineEnter( _animator, _stateMachinePathHash, _controller ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.StateMachineBehaviour.OnStateMachineEnter!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnStateMachineExit(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.StateMachineBehaviour gen_to_be_invoked = (UnityEngine.StateMachineBehaviour)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - UnityEngine.Animator _animator = (UnityEngine.Animator)translator.GetObject(L, 2, typeof(UnityEngine.Animator)); - int _stateMachinePathHash = LuaAPI.xlua_tointeger(L, 3); - - gen_to_be_invoked.OnStateMachineExit( _animator, _stateMachinePathHash ); - - - - return 0; - } - if(gen_param_count == 4&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable(L, 4)) - { - UnityEngine.Animator _animator = (UnityEngine.Animator)translator.GetObject(L, 2, typeof(UnityEngine.Animator)); - int _stateMachinePathHash = LuaAPI.xlua_tointeger(L, 3); - UnityEngine.Animations.AnimatorControllerPlayable _controller;translator.Get(L, 4, out _controller); - - gen_to_be_invoked.OnStateMachineExit( _animator, _stateMachinePathHash, _controller ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.StateMachineBehaviour.OnStateMachineExit!"); - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_StaticBatchingUtilityWrap.cs b/Assets/XLua/Gen/UnityEngine_StaticBatchingUtilityWrap.cs deleted file mode 100644 index 5fdcc50cc..000000000 --- a/Assets/XLua/Gen/UnityEngine_StaticBatchingUtilityWrap.cs +++ /dev/null @@ -1,126 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineStaticBatchingUtilityWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.StaticBatchingUtility); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 2, 0, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Combine", _m_Combine_xlua_st_); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.StaticBatchingUtility(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.StaticBatchingUtility constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Combine_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1&& translator.Assignable(L, 1)) - { - UnityEngine.GameObject _staticBatchRoot = (UnityEngine.GameObject)translator.GetObject(L, 1, typeof(UnityEngine.GameObject)); - - UnityEngine.StaticBatchingUtility.Combine( _staticBatchRoot ); - - - - return 0; - } - if(gen_param_count == 2&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)) - { - UnityEngine.GameObject[] _gos = (UnityEngine.GameObject[])translator.GetObject(L, 1, typeof(UnityEngine.GameObject[])); - UnityEngine.GameObject _staticBatchRoot = (UnityEngine.GameObject)translator.GetObject(L, 2, typeof(UnityEngine.GameObject)); - - UnityEngine.StaticBatchingUtility.Combine( _gos, _staticBatchRoot ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.StaticBatchingUtility.Combine!"); - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_StreamingControllerWrap.cs b/Assets/XLua/Gen/UnityEngine_StreamingControllerWrap.cs deleted file mode 100644 index 2fefbddd8..000000000 --- a/Assets/XLua/Gen/UnityEngine_StreamingControllerWrap.cs +++ /dev/null @@ -1,237 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineStreamingControllerWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.StreamingController); - Utils.BeginObjectRegister(type, L, translator, 0, 3, 1, 1); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetPreloading", _m_SetPreloading); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "CancelPreloading", _m_CancelPreloading); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsPreloading", _m_IsPreloading); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "streamingMipmapBias", _g_get_streamingMipmapBias); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "streamingMipmapBias", _s_set_streamingMipmapBias); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.StreamingController(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.StreamingController constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetPreloading(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.StreamingController gen_to_be_invoked = (UnityEngine.StreamingController)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)&& translator.Assignable(L, 4)) - { - float _timeoutSeconds = (float)LuaAPI.lua_tonumber(L, 2); - bool _activateCameraOnTimeout = LuaAPI.lua_toboolean(L, 3); - UnityEngine.Camera _disableCameraCuttingFrom = (UnityEngine.Camera)translator.GetObject(L, 4, typeof(UnityEngine.Camera)); - - gen_to_be_invoked.SetPreloading( _timeoutSeconds, _activateCameraOnTimeout, _disableCameraCuttingFrom ); - - - - return 0; - } - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) - { - float _timeoutSeconds = (float)LuaAPI.lua_tonumber(L, 2); - bool _activateCameraOnTimeout = LuaAPI.lua_toboolean(L, 3); - - gen_to_be_invoked.SetPreloading( _timeoutSeconds, _activateCameraOnTimeout ); - - - - return 0; - } - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - float _timeoutSeconds = (float)LuaAPI.lua_tonumber(L, 2); - - gen_to_be_invoked.SetPreloading( _timeoutSeconds ); - - - - return 0; - } - if(gen_param_count == 1) - { - - gen_to_be_invoked.SetPreloading( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.StreamingController.SetPreloading!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CancelPreloading(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.StreamingController gen_to_be_invoked = (UnityEngine.StreamingController)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.CancelPreloading( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_IsPreloading(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.StreamingController gen_to_be_invoked = (UnityEngine.StreamingController)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.IsPreloading( ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_streamingMipmapBias(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.StreamingController gen_to_be_invoked = (UnityEngine.StreamingController)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.streamingMipmapBias); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_streamingMipmapBias(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.StreamingController gen_to_be_invoked = (UnityEngine.StreamingController)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.streamingMipmapBias = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_SubsystemDescriptorWrap.cs b/Assets/XLua/Gen/UnityEngine_SubsystemDescriptorWrap.cs deleted file mode 100644 index 19e10f319..000000000 --- a/Assets/XLua/Gen/UnityEngine_SubsystemDescriptorWrap.cs +++ /dev/null @@ -1,129 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineSubsystemDescriptorWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.SubsystemDescriptor); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 2, 2); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "id", _g_get_id); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "subsystemImplementationType", _g_get_subsystemImplementationType); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "id", _s_set_id); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "subsystemImplementationType", _s_set_subsystemImplementationType); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "UnityEngine.SubsystemDescriptor does not have a constructor!"); - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_id(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SubsystemDescriptor gen_to_be_invoked = (UnityEngine.SubsystemDescriptor)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.id); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_subsystemImplementationType(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SubsystemDescriptor gen_to_be_invoked = (UnityEngine.SubsystemDescriptor)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.subsystemImplementationType); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_id(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SubsystemDescriptor gen_to_be_invoked = (UnityEngine.SubsystemDescriptor)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.id = LuaAPI.lua_tostring(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_subsystemImplementationType(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SubsystemDescriptor gen_to_be_invoked = (UnityEngine.SubsystemDescriptor)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.subsystemImplementationType = (System.Type)translator.GetObject(L, 2, typeof(System.Type)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_SubsystemManagerWrap.cs b/Assets/XLua/Gen/UnityEngine_SubsystemManagerWrap.cs deleted file mode 100644 index 625a50e08..000000000 --- a/Assets/XLua/Gen/UnityEngine_SubsystemManagerWrap.cs +++ /dev/null @@ -1,214 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineSubsystemManagerWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.SubsystemManager); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 6, 0, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetAllSubsystemDescriptors", _m_GetAllSubsystemDescriptors_xlua_st_); - - Utils.RegisterFunc(L, Utils.CLS_IDX, "beforeReloadSubsystems", _e_beforeReloadSubsystems); - Utils.RegisterFunc(L, Utils.CLS_IDX, "afterReloadSubsystems", _e_afterReloadSubsystems); - Utils.RegisterFunc(L, Utils.CLS_IDX, "reloadSubsytemsStarted", _e_reloadSubsytemsStarted); - Utils.RegisterFunc(L, Utils.CLS_IDX, "reloadSubsytemsCompleted", _e_reloadSubsytemsCompleted); - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "UnityEngine.SubsystemManager does not have a constructor!"); - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetAllSubsystemDescriptors_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - System.Collections.Generic.List _descriptors = (System.Collections.Generic.List)translator.GetObject(L, 1, typeof(System.Collections.Generic.List)); - - UnityEngine.SubsystemManager.GetAllSubsystemDescriptors( _descriptors ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_beforeReloadSubsystems(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - System.Action gen_delegate = translator.GetDelegate(L, 2); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#2 need System.Action!"); - } - - - if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "+")) { - UnityEngine.SubsystemManager.beforeReloadSubsystems += gen_delegate; - return 0; - } - - - if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "-")) { - UnityEngine.SubsystemManager.beforeReloadSubsystems -= gen_delegate; - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.SubsystemManager.beforeReloadSubsystems!"); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_afterReloadSubsystems(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - System.Action gen_delegate = translator.GetDelegate(L, 2); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#2 need System.Action!"); - } - - - if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "+")) { - UnityEngine.SubsystemManager.afterReloadSubsystems += gen_delegate; - return 0; - } - - - if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "-")) { - UnityEngine.SubsystemManager.afterReloadSubsystems -= gen_delegate; - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.SubsystemManager.afterReloadSubsystems!"); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_reloadSubsytemsStarted(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - System.Action gen_delegate = translator.GetDelegate(L, 2); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#2 need System.Action!"); - } - - - if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "+")) { - UnityEngine.SubsystemManager.reloadSubsytemsStarted += gen_delegate; - return 0; - } - - - if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "-")) { - UnityEngine.SubsystemManager.reloadSubsytemsStarted -= gen_delegate; - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.SubsystemManager.reloadSubsytemsStarted!"); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_reloadSubsytemsCompleted(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - System.Action gen_delegate = translator.GetDelegate(L, 2); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#2 need System.Action!"); - } - - - if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "+")) { - UnityEngine.SubsystemManager.reloadSubsytemsCompleted += gen_delegate; - return 0; - } - - - if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "-")) { - UnityEngine.SubsystemManager.reloadSubsytemsCompleted -= gen_delegate; - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.SubsystemManager.reloadSubsytemsCompleted!"); - } - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_SubsystemWrap.cs b/Assets/XLua/Gen/UnityEngine_SubsystemWrap.cs deleted file mode 100644 index d35c4cac2..000000000 --- a/Assets/XLua/Gen/UnityEngine_SubsystemWrap.cs +++ /dev/null @@ -1,166 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineSubsystemWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.Subsystem); - Utils.BeginObjectRegister(type, L, translator, 0, 3, 1, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Start", _m_Start); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Stop", _m_Stop); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Destroy", _m_Destroy); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "running", _g_get_running); - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "UnityEngine.Subsystem does not have a constructor!"); - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Start(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Subsystem gen_to_be_invoked = (UnityEngine.Subsystem)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Start( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Stop(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Subsystem gen_to_be_invoked = (UnityEngine.Subsystem)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Stop( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Destroy(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Subsystem gen_to_be_invoked = (UnityEngine.Subsystem)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Destroy( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_running(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Subsystem gen_to_be_invoked = (UnityEngine.Subsystem)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.running); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_SurfaceEffector2DWrap.cs b/Assets/XLua/Gen/UnityEngine_SurfaceEffector2DWrap.cs deleted file mode 100644 index 1ef4d3ac1..000000000 --- a/Assets/XLua/Gen/UnityEngine_SurfaceEffector2DWrap.cs +++ /dev/null @@ -1,270 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineSurfaceEffector2DWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.SurfaceEffector2D); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 6, 6); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "speed", _g_get_speed); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "speedVariation", _g_get_speedVariation); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "forceScale", _g_get_forceScale); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "useContactForce", _g_get_useContactForce); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "useFriction", _g_get_useFriction); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "useBounce", _g_get_useBounce); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "speed", _s_set_speed); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "speedVariation", _s_set_speedVariation); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "forceScale", _s_set_forceScale); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "useContactForce", _s_set_useContactForce); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "useFriction", _s_set_useFriction); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "useBounce", _s_set_useBounce); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.SurfaceEffector2D(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.SurfaceEffector2D constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_speed(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SurfaceEffector2D gen_to_be_invoked = (UnityEngine.SurfaceEffector2D)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.speed); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_speedVariation(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SurfaceEffector2D gen_to_be_invoked = (UnityEngine.SurfaceEffector2D)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.speedVariation); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_forceScale(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SurfaceEffector2D gen_to_be_invoked = (UnityEngine.SurfaceEffector2D)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.forceScale); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_useContactForce(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SurfaceEffector2D gen_to_be_invoked = (UnityEngine.SurfaceEffector2D)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.useContactForce); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_useFriction(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SurfaceEffector2D gen_to_be_invoked = (UnityEngine.SurfaceEffector2D)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.useFriction); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_useBounce(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SurfaceEffector2D gen_to_be_invoked = (UnityEngine.SurfaceEffector2D)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.useBounce); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_speed(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SurfaceEffector2D gen_to_be_invoked = (UnityEngine.SurfaceEffector2D)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.speed = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_speedVariation(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SurfaceEffector2D gen_to_be_invoked = (UnityEngine.SurfaceEffector2D)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.speedVariation = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_forceScale(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SurfaceEffector2D gen_to_be_invoked = (UnityEngine.SurfaceEffector2D)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.forceScale = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_useContactForce(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SurfaceEffector2D gen_to_be_invoked = (UnityEngine.SurfaceEffector2D)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.useContactForce = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_useFriction(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SurfaceEffector2D gen_to_be_invoked = (UnityEngine.SurfaceEffector2D)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.useFriction = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_useBounce(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SurfaceEffector2D gen_to_be_invoked = (UnityEngine.SurfaceEffector2D)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.useBounce = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_TargetJoint2DWrap.cs b/Assets/XLua/Gen/UnityEngine_TargetJoint2DWrap.cs deleted file mode 100644 index fe443ac59..000000000 --- a/Assets/XLua/Gen/UnityEngine_TargetJoint2DWrap.cs +++ /dev/null @@ -1,272 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineTargetJoint2DWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.TargetJoint2D); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 6, 6); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "anchor", _g_get_anchor); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "target", _g_get_target); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "autoConfigureTarget", _g_get_autoConfigureTarget); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "maxForce", _g_get_maxForce); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "dampingRatio", _g_get_dampingRatio); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "frequency", _g_get_frequency); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "anchor", _s_set_anchor); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "target", _s_set_target); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "autoConfigureTarget", _s_set_autoConfigureTarget); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "maxForce", _s_set_maxForce); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "dampingRatio", _s_set_dampingRatio); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "frequency", _s_set_frequency); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.TargetJoint2D(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.TargetJoint2D constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_anchor(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.TargetJoint2D gen_to_be_invoked = (UnityEngine.TargetJoint2D)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector2(L, gen_to_be_invoked.anchor); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_target(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.TargetJoint2D gen_to_be_invoked = (UnityEngine.TargetJoint2D)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector2(L, gen_to_be_invoked.target); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_autoConfigureTarget(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.TargetJoint2D gen_to_be_invoked = (UnityEngine.TargetJoint2D)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.autoConfigureTarget); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_maxForce(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.TargetJoint2D gen_to_be_invoked = (UnityEngine.TargetJoint2D)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.maxForce); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_dampingRatio(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.TargetJoint2D gen_to_be_invoked = (UnityEngine.TargetJoint2D)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.dampingRatio); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_frequency(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.TargetJoint2D gen_to_be_invoked = (UnityEngine.TargetJoint2D)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.frequency); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_anchor(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.TargetJoint2D gen_to_be_invoked = (UnityEngine.TargetJoint2D)translator.FastGetCSObj(L, 1); - UnityEngine.Vector2 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.anchor = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_target(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.TargetJoint2D gen_to_be_invoked = (UnityEngine.TargetJoint2D)translator.FastGetCSObj(L, 1); - UnityEngine.Vector2 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.target = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_autoConfigureTarget(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.TargetJoint2D gen_to_be_invoked = (UnityEngine.TargetJoint2D)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.autoConfigureTarget = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_maxForce(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.TargetJoint2D gen_to_be_invoked = (UnityEngine.TargetJoint2D)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.maxForce = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_dampingRatio(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.TargetJoint2D gen_to_be_invoked = (UnityEngine.TargetJoint2D)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.dampingRatio = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_frequency(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.TargetJoint2D gen_to_be_invoked = (UnityEngine.TargetJoint2D)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.frequency = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_TextGenerationSettingsWrap.cs b/Assets/XLua/Gen/UnityEngine_TextGenerationSettingsWrap.cs deleted file mode 100644 index 6a306440e..000000000 --- a/Assets/XLua/Gen/UnityEngine_TextGenerationSettingsWrap.cs +++ /dev/null @@ -1,715 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineTextGenerationSettingsWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.TextGenerationSettings); - Utils.BeginObjectRegister(type, L, translator, 0, 1, 18, 18); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Equals", _m_Equals); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "font", _g_get_font); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "color", _g_get_color); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "fontSize", _g_get_fontSize); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "lineSpacing", _g_get_lineSpacing); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "richText", _g_get_richText); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "scaleFactor", _g_get_scaleFactor); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "fontStyle", _g_get_fontStyle); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "textAnchor", _g_get_textAnchor); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "alignByGeometry", _g_get_alignByGeometry); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "resizeTextForBestFit", _g_get_resizeTextForBestFit); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "resizeTextMinSize", _g_get_resizeTextMinSize); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "resizeTextMaxSize", _g_get_resizeTextMaxSize); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "updateBounds", _g_get_updateBounds); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "verticalOverflow", _g_get_verticalOverflow); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "horizontalOverflow", _g_get_horizontalOverflow); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "generationExtents", _g_get_generationExtents); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "pivot", _g_get_pivot); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "generateOutOfBounds", _g_get_generateOutOfBounds); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "font", _s_set_font); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "color", _s_set_color); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "fontSize", _s_set_fontSize); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "lineSpacing", _s_set_lineSpacing); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "richText", _s_set_richText); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "scaleFactor", _s_set_scaleFactor); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "fontStyle", _s_set_fontStyle); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "textAnchor", _s_set_textAnchor); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "alignByGeometry", _s_set_alignByGeometry); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "resizeTextForBestFit", _s_set_resizeTextForBestFit); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "resizeTextMinSize", _s_set_resizeTextMinSize); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "resizeTextMaxSize", _s_set_resizeTextMaxSize); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "updateBounds", _s_set_updateBounds); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "verticalOverflow", _s_set_verticalOverflow); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "horizontalOverflow", _s_set_horizontalOverflow); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "generationExtents", _s_set_generationExtents); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "pivot", _s_set_pivot); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "generateOutOfBounds", _s_set_generateOutOfBounds); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(UnityEngine.TextGenerationSettings)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.TextGenerationSettings constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Equals(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.TextGenerationSettings gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - UnityEngine.TextGenerationSettings _other;translator.Get(L, 2, out _other); - - var gen_ret = gen_to_be_invoked.Equals( _other ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_font(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.TextGenerationSettings gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.font); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_color(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.TextGenerationSettings gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineColor(L, gen_to_be_invoked.color); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_fontSize(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.TextGenerationSettings gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.fontSize); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_lineSpacing(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.TextGenerationSettings gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.lineSpacing); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_richText(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.TextGenerationSettings gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.richText); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_scaleFactor(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.TextGenerationSettings gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.scaleFactor); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_fontStyle(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.TextGenerationSettings gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.fontStyle); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_textAnchor(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.TextGenerationSettings gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineTextAnchor(L, gen_to_be_invoked.textAnchor); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_alignByGeometry(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.TextGenerationSettings gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.alignByGeometry); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_resizeTextForBestFit(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.TextGenerationSettings gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.resizeTextForBestFit); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_resizeTextMinSize(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.TextGenerationSettings gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.resizeTextMinSize); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_resizeTextMaxSize(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.TextGenerationSettings gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.resizeTextMaxSize); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_updateBounds(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.TextGenerationSettings gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.updateBounds); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_verticalOverflow(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.TextGenerationSettings gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.verticalOverflow); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_horizontalOverflow(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.TextGenerationSettings gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.horizontalOverflow); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_generationExtents(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.TextGenerationSettings gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineVector2(L, gen_to_be_invoked.generationExtents); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_pivot(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.TextGenerationSettings gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineVector2(L, gen_to_be_invoked.pivot); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_generateOutOfBounds(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.TextGenerationSettings gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.generateOutOfBounds); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_font(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.TextGenerationSettings gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.font = (UnityEngine.Font)translator.GetObject(L, 2, typeof(UnityEngine.Font)); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_color(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.TextGenerationSettings gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Color gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.color = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_fontSize(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.TextGenerationSettings gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.fontSize = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_lineSpacing(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.TextGenerationSettings gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.lineSpacing = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_richText(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.TextGenerationSettings gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.richText = LuaAPI.lua_toboolean(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_scaleFactor(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.TextGenerationSettings gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.scaleFactor = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_fontStyle(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.TextGenerationSettings gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.FontStyle gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.fontStyle = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_textAnchor(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.TextGenerationSettings gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.TextAnchor gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.textAnchor = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_alignByGeometry(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.TextGenerationSettings gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.alignByGeometry = LuaAPI.lua_toboolean(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_resizeTextForBestFit(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.TextGenerationSettings gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.resizeTextForBestFit = LuaAPI.lua_toboolean(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_resizeTextMinSize(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.TextGenerationSettings gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.resizeTextMinSize = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_resizeTextMaxSize(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.TextGenerationSettings gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.resizeTextMaxSize = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_updateBounds(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.TextGenerationSettings gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.updateBounds = LuaAPI.lua_toboolean(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_verticalOverflow(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.TextGenerationSettings gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.VerticalWrapMode gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.verticalOverflow = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_horizontalOverflow(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.TextGenerationSettings gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.HorizontalWrapMode gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.horizontalOverflow = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_generationExtents(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.TextGenerationSettings gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Vector2 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.generationExtents = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_pivot(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.TextGenerationSettings gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Vector2 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.pivot = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_generateOutOfBounds(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.TextGenerationSettings gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.generateOutOfBounds = LuaAPI.lua_toboolean(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_TextMeshWrap.cs b/Assets/XLua/Gen/UnityEngine_TextMeshWrap.cs deleted file mode 100644 index e877f1fa6..000000000 --- a/Assets/XLua/Gen/UnityEngine_TextMeshWrap.cs +++ /dev/null @@ -1,460 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineTextMeshWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.TextMesh); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 12, 12); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "text", _g_get_text); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "font", _g_get_font); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "fontSize", _g_get_fontSize); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "fontStyle", _g_get_fontStyle); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "offsetZ", _g_get_offsetZ); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "alignment", _g_get_alignment); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "anchor", _g_get_anchor); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "characterSize", _g_get_characterSize); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "lineSpacing", _g_get_lineSpacing); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "tabSize", _g_get_tabSize); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "richText", _g_get_richText); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "color", _g_get_color); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "text", _s_set_text); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "font", _s_set_font); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "fontSize", _s_set_fontSize); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "fontStyle", _s_set_fontStyle); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "offsetZ", _s_set_offsetZ); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "alignment", _s_set_alignment); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "anchor", _s_set_anchor); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "characterSize", _s_set_characterSize); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "lineSpacing", _s_set_lineSpacing); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "tabSize", _s_set_tabSize); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "richText", _s_set_richText); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "color", _s_set_color); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.TextMesh(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.TextMesh constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_text(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.TextMesh gen_to_be_invoked = (UnityEngine.TextMesh)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.text); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_font(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.TextMesh gen_to_be_invoked = (UnityEngine.TextMesh)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.font); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_fontSize(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.TextMesh gen_to_be_invoked = (UnityEngine.TextMesh)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.fontSize); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_fontStyle(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.TextMesh gen_to_be_invoked = (UnityEngine.TextMesh)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.fontStyle); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_offsetZ(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.TextMesh gen_to_be_invoked = (UnityEngine.TextMesh)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.offsetZ); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_alignment(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.TextMesh gen_to_be_invoked = (UnityEngine.TextMesh)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.alignment); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_anchor(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.TextMesh gen_to_be_invoked = (UnityEngine.TextMesh)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineTextAnchor(L, gen_to_be_invoked.anchor); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_characterSize(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.TextMesh gen_to_be_invoked = (UnityEngine.TextMesh)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.characterSize); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_lineSpacing(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.TextMesh gen_to_be_invoked = (UnityEngine.TextMesh)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.lineSpacing); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_tabSize(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.TextMesh gen_to_be_invoked = (UnityEngine.TextMesh)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.tabSize); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_richText(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.TextMesh gen_to_be_invoked = (UnityEngine.TextMesh)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.richText); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_color(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.TextMesh gen_to_be_invoked = (UnityEngine.TextMesh)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineColor(L, gen_to_be_invoked.color); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_text(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.TextMesh gen_to_be_invoked = (UnityEngine.TextMesh)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.text = LuaAPI.lua_tostring(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_font(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.TextMesh gen_to_be_invoked = (UnityEngine.TextMesh)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.font = (UnityEngine.Font)translator.GetObject(L, 2, typeof(UnityEngine.Font)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_fontSize(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.TextMesh gen_to_be_invoked = (UnityEngine.TextMesh)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.fontSize = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_fontStyle(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.TextMesh gen_to_be_invoked = (UnityEngine.TextMesh)translator.FastGetCSObj(L, 1); - UnityEngine.FontStyle gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.fontStyle = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_offsetZ(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.TextMesh gen_to_be_invoked = (UnityEngine.TextMesh)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.offsetZ = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_alignment(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.TextMesh gen_to_be_invoked = (UnityEngine.TextMesh)translator.FastGetCSObj(L, 1); - UnityEngine.TextAlignment gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.alignment = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_anchor(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.TextMesh gen_to_be_invoked = (UnityEngine.TextMesh)translator.FastGetCSObj(L, 1); - UnityEngine.TextAnchor gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.anchor = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_characterSize(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.TextMesh gen_to_be_invoked = (UnityEngine.TextMesh)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.characterSize = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_lineSpacing(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.TextMesh gen_to_be_invoked = (UnityEngine.TextMesh)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.lineSpacing = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_tabSize(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.TextMesh gen_to_be_invoked = (UnityEngine.TextMesh)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.tabSize = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_richText(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.TextMesh gen_to_be_invoked = (UnityEngine.TextMesh)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.richText = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_color(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.TextMesh gen_to_be_invoked = (UnityEngine.TextMesh)translator.FastGetCSObj(L, 1); - UnityEngine.Color gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.color = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_Texture2DArrayWrap.cs b/Assets/XLua/Gen/UnityEngine_Texture2DArrayWrap.cs deleted file mode 100644 index 166df02e5..000000000 --- a/Assets/XLua/Gen/UnityEngine_Texture2DArrayWrap.cs +++ /dev/null @@ -1,452 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineTexture2DArrayWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.Texture2DArray); - Utils.BeginObjectRegister(type, L, translator, 0, 5, 3, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetPixels", _m_GetPixels); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetPixels32", _m_GetPixels32); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetPixels", _m_SetPixels); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetPixels32", _m_SetPixels32); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Apply", _m_Apply); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "depth", _g_get_depth); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "format", _g_get_format); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "isReadable", _g_get_isReadable); - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 1, 0); - - - - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "allSlices", _g_get_allSlices); - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 6 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4) && translator.Assignable(L, 5) && translator.Assignable(L, 6)) - { - int _width = LuaAPI.xlua_tointeger(L, 2); - int _height = LuaAPI.xlua_tointeger(L, 3); - int _depth = LuaAPI.xlua_tointeger(L, 4); - UnityEngine.Experimental.Rendering.DefaultFormat _format;translator.Get(L, 5, out _format); - UnityEngine.Experimental.Rendering.TextureCreationFlags _flags;translator.Get(L, 6, out _flags); - - var gen_ret = new UnityEngine.Texture2DArray(_width, _height, _depth, _format, _flags); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 6 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4) && translator.Assignable(L, 5) && translator.Assignable(L, 6)) - { - int _width = LuaAPI.xlua_tointeger(L, 2); - int _height = LuaAPI.xlua_tointeger(L, 3); - int _depth = LuaAPI.xlua_tointeger(L, 4); - UnityEngine.Experimental.Rendering.GraphicsFormat _format;translator.Get(L, 5, out _format); - UnityEngine.Experimental.Rendering.TextureCreationFlags _flags;translator.Get(L, 6, out _flags); - - var gen_ret = new UnityEngine.Texture2DArray(_width, _height, _depth, _format, _flags); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 7 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4) && translator.Assignable(L, 5) && translator.Assignable(L, 6) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 7)) - { - int _width = LuaAPI.xlua_tointeger(L, 2); - int _height = LuaAPI.xlua_tointeger(L, 3); - int _depth = LuaAPI.xlua_tointeger(L, 4); - UnityEngine.Experimental.Rendering.GraphicsFormat _format;translator.Get(L, 5, out _format); - UnityEngine.Experimental.Rendering.TextureCreationFlags _flags;translator.Get(L, 6, out _flags); - int _mipCount = LuaAPI.xlua_tointeger(L, 7); - - var gen_ret = new UnityEngine.Texture2DArray(_width, _height, _depth, _format, _flags, _mipCount); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 7 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4) && translator.Assignable(L, 5) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 7)) - { - int _width = LuaAPI.xlua_tointeger(L, 2); - int _height = LuaAPI.xlua_tointeger(L, 3); - int _depth = LuaAPI.xlua_tointeger(L, 4); - UnityEngine.TextureFormat _textureFormat;translator.Get(L, 5, out _textureFormat); - int _mipCount = LuaAPI.xlua_tointeger(L, 6); - bool _linear = LuaAPI.lua_toboolean(L, 7); - - var gen_ret = new UnityEngine.Texture2DArray(_width, _height, _depth, _textureFormat, _mipCount, _linear); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 7 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4) && translator.Assignable(L, 5) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 6) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 7)) - { - int _width = LuaAPI.xlua_tointeger(L, 2); - int _height = LuaAPI.xlua_tointeger(L, 3); - int _depth = LuaAPI.xlua_tointeger(L, 4); - UnityEngine.TextureFormat _textureFormat;translator.Get(L, 5, out _textureFormat); - bool _mipChain = LuaAPI.lua_toboolean(L, 6); - bool _linear = LuaAPI.lua_toboolean(L, 7); - - var gen_ret = new UnityEngine.Texture2DArray(_width, _height, _depth, _textureFormat, _mipChain, _linear); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 6 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4) && translator.Assignable(L, 5) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 6)) - { - int _width = LuaAPI.xlua_tointeger(L, 2); - int _height = LuaAPI.xlua_tointeger(L, 3); - int _depth = LuaAPI.xlua_tointeger(L, 4); - UnityEngine.TextureFormat _textureFormat;translator.Get(L, 5, out _textureFormat); - bool _mipChain = LuaAPI.lua_toboolean(L, 6); - - var gen_ret = new UnityEngine.Texture2DArray(_width, _height, _depth, _textureFormat, _mipChain); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Texture2DArray constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetPixels(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Texture2DArray gen_to_be_invoked = (UnityEngine.Texture2DArray)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - int _arrayElement = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.GetPixels( _arrayElement ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - int _arrayElement = LuaAPI.xlua_tointeger(L, 2); - int _miplevel = LuaAPI.xlua_tointeger(L, 3); - - var gen_ret = gen_to_be_invoked.GetPixels( _arrayElement, _miplevel ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Texture2DArray.GetPixels!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetPixels32(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Texture2DArray gen_to_be_invoked = (UnityEngine.Texture2DArray)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - int _arrayElement = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.GetPixels32( _arrayElement ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - int _arrayElement = LuaAPI.xlua_tointeger(L, 2); - int _miplevel = LuaAPI.xlua_tointeger(L, 3); - - var gen_ret = gen_to_be_invoked.GetPixels32( _arrayElement, _miplevel ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Texture2DArray.GetPixels32!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetPixels(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Texture2DArray gen_to_be_invoked = (UnityEngine.Texture2DArray)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - UnityEngine.Color[] _colors = (UnityEngine.Color[])translator.GetObject(L, 2, typeof(UnityEngine.Color[])); - int _arrayElement = LuaAPI.xlua_tointeger(L, 3); - - gen_to_be_invoked.SetPixels( _colors, _arrayElement ); - - - - return 0; - } - if(gen_param_count == 4&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - UnityEngine.Color[] _colors = (UnityEngine.Color[])translator.GetObject(L, 2, typeof(UnityEngine.Color[])); - int _arrayElement = LuaAPI.xlua_tointeger(L, 3); - int _miplevel = LuaAPI.xlua_tointeger(L, 4); - - gen_to_be_invoked.SetPixels( _colors, _arrayElement, _miplevel ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Texture2DArray.SetPixels!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetPixels32(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Texture2DArray gen_to_be_invoked = (UnityEngine.Texture2DArray)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - UnityEngine.Color32[] _colors = (UnityEngine.Color32[])translator.GetObject(L, 2, typeof(UnityEngine.Color32[])); - int _arrayElement = LuaAPI.xlua_tointeger(L, 3); - - gen_to_be_invoked.SetPixels32( _colors, _arrayElement ); - - - - return 0; - } - if(gen_param_count == 4&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - UnityEngine.Color32[] _colors = (UnityEngine.Color32[])translator.GetObject(L, 2, typeof(UnityEngine.Color32[])); - int _arrayElement = LuaAPI.xlua_tointeger(L, 3); - int _miplevel = LuaAPI.xlua_tointeger(L, 4); - - gen_to_be_invoked.SetPixels32( _colors, _arrayElement, _miplevel ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Texture2DArray.SetPixels32!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Apply(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Texture2DArray gen_to_be_invoked = (UnityEngine.Texture2DArray)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - gen_to_be_invoked.Apply( ); - - - - return 0; - } - if(gen_param_count == 2&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)) - { - bool _updateMipmaps = LuaAPI.lua_toboolean(L, 2); - - gen_to_be_invoked.Apply( _updateMipmaps ); - - - - return 0; - } - if(gen_param_count == 3&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) - { - bool _updateMipmaps = LuaAPI.lua_toboolean(L, 2); - bool _makeNoLongerReadable = LuaAPI.lua_toboolean(L, 3); - - gen_to_be_invoked.Apply( _updateMipmaps, _makeNoLongerReadable ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Texture2DArray.Apply!"); - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_allSlices(RealStatePtr L) - { - try { - - LuaAPI.xlua_pushinteger(L, UnityEngine.Texture2DArray.allSlices); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_depth(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Texture2DArray gen_to_be_invoked = (UnityEngine.Texture2DArray)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.depth); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_format(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Texture2DArray gen_to_be_invoked = (UnityEngine.Texture2DArray)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.format); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_isReadable(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Texture2DArray gen_to_be_invoked = (UnityEngine.Texture2DArray)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.isReadable); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_Texture3DWrap.cs b/Assets/XLua/Gen/UnityEngine_Texture3DWrap.cs deleted file mode 100644 index c35a9f8ce..000000000 --- a/Assets/XLua/Gen/UnityEngine_Texture3DWrap.cs +++ /dev/null @@ -1,656 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineTexture3DWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.Texture3D); - Utils.BeginObjectRegister(type, L, translator, 0, 9, 3, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "UpdateExternalTexture", _m_UpdateExternalTexture); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetPixels", _m_GetPixels); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetPixels32", _m_GetPixels32); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetPixels", _m_SetPixels); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetPixels32", _m_SetPixels32); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Apply", _m_Apply); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetPixel", _m_SetPixel); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetPixel", _m_GetPixel); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetPixelBilinear", _m_GetPixelBilinear); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "depth", _g_get_depth); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "format", _g_get_format); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "isReadable", _g_get_isReadable); - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 2, 0, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "CreateExternalTexture", _m_CreateExternalTexture_xlua_st_); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 6 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4) && translator.Assignable(L, 5) && translator.Assignable(L, 6)) - { - int _width = LuaAPI.xlua_tointeger(L, 2); - int _height = LuaAPI.xlua_tointeger(L, 3); - int _depth = LuaAPI.xlua_tointeger(L, 4); - UnityEngine.Experimental.Rendering.DefaultFormat _format;translator.Get(L, 5, out _format); - UnityEngine.Experimental.Rendering.TextureCreationFlags _flags;translator.Get(L, 6, out _flags); - - var gen_ret = new UnityEngine.Texture3D(_width, _height, _depth, _format, _flags); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 6 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4) && translator.Assignable(L, 5) && translator.Assignable(L, 6)) - { - int _width = LuaAPI.xlua_tointeger(L, 2); - int _height = LuaAPI.xlua_tointeger(L, 3); - int _depth = LuaAPI.xlua_tointeger(L, 4); - UnityEngine.Experimental.Rendering.GraphicsFormat _format;translator.Get(L, 5, out _format); - UnityEngine.Experimental.Rendering.TextureCreationFlags _flags;translator.Get(L, 6, out _flags); - - var gen_ret = new UnityEngine.Texture3D(_width, _height, _depth, _format, _flags); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 7 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4) && translator.Assignable(L, 5) && translator.Assignable(L, 6) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 7)) - { - int _width = LuaAPI.xlua_tointeger(L, 2); - int _height = LuaAPI.xlua_tointeger(L, 3); - int _depth = LuaAPI.xlua_tointeger(L, 4); - UnityEngine.Experimental.Rendering.GraphicsFormat _format;translator.Get(L, 5, out _format); - UnityEngine.Experimental.Rendering.TextureCreationFlags _flags;translator.Get(L, 6, out _flags); - int _mipCount = LuaAPI.xlua_tointeger(L, 7); - - var gen_ret = new UnityEngine.Texture3D(_width, _height, _depth, _format, _flags, _mipCount); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 6 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4) && translator.Assignable(L, 5) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)) - { - int _width = LuaAPI.xlua_tointeger(L, 2); - int _height = LuaAPI.xlua_tointeger(L, 3); - int _depth = LuaAPI.xlua_tointeger(L, 4); - UnityEngine.TextureFormat _textureFormat;translator.Get(L, 5, out _textureFormat); - int _mipCount = LuaAPI.xlua_tointeger(L, 6); - - var gen_ret = new UnityEngine.Texture3D(_width, _height, _depth, _textureFormat, _mipCount); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 7 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4) && translator.Assignable(L, 5) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6) && LuaTypes.LUA_TLIGHTUSERDATA == LuaAPI.lua_type(L, 7)) - { - int _width = LuaAPI.xlua_tointeger(L, 2); - int _height = LuaAPI.xlua_tointeger(L, 3); - int _depth = LuaAPI.xlua_tointeger(L, 4); - UnityEngine.TextureFormat _textureFormat;translator.Get(L, 5, out _textureFormat); - int _mipCount = LuaAPI.xlua_tointeger(L, 6); - System.IntPtr _nativeTex = LuaAPI.lua_touserdata(L, 7); - - var gen_ret = new UnityEngine.Texture3D(_width, _height, _depth, _textureFormat, _mipCount, _nativeTex); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 6 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4) && translator.Assignable(L, 5) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 6)) - { - int _width = LuaAPI.xlua_tointeger(L, 2); - int _height = LuaAPI.xlua_tointeger(L, 3); - int _depth = LuaAPI.xlua_tointeger(L, 4); - UnityEngine.TextureFormat _textureFormat;translator.Get(L, 5, out _textureFormat); - bool _mipChain = LuaAPI.lua_toboolean(L, 6); - - var gen_ret = new UnityEngine.Texture3D(_width, _height, _depth, _textureFormat, _mipChain); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 7 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4) && translator.Assignable(L, 5) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 6) && LuaTypes.LUA_TLIGHTUSERDATA == LuaAPI.lua_type(L, 7)) - { - int _width = LuaAPI.xlua_tointeger(L, 2); - int _height = LuaAPI.xlua_tointeger(L, 3); - int _depth = LuaAPI.xlua_tointeger(L, 4); - UnityEngine.TextureFormat _textureFormat;translator.Get(L, 5, out _textureFormat); - bool _mipChain = LuaAPI.lua_toboolean(L, 6); - System.IntPtr _nativeTex = LuaAPI.lua_touserdata(L, 7); - - var gen_ret = new UnityEngine.Texture3D(_width, _height, _depth, _textureFormat, _mipChain, _nativeTex); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Texture3D constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_UpdateExternalTexture(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Texture3D gen_to_be_invoked = (UnityEngine.Texture3D)translator.FastGetCSObj(L, 1); - - - - { - System.IntPtr _nativeTex = LuaAPI.lua_touserdata(L, 2); - - gen_to_be_invoked.UpdateExternalTexture( _nativeTex ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetPixels(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Texture3D gen_to_be_invoked = (UnityEngine.Texture3D)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - var gen_ret = gen_to_be_invoked.GetPixels( ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - int _miplevel = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.GetPixels( _miplevel ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Texture3D.GetPixels!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetPixels32(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Texture3D gen_to_be_invoked = (UnityEngine.Texture3D)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - var gen_ret = gen_to_be_invoked.GetPixels32( ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - int _miplevel = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.GetPixels32( _miplevel ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Texture3D.GetPixels32!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetPixels(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Texture3D gen_to_be_invoked = (UnityEngine.Texture3D)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.Color[] _colors = (UnityEngine.Color[])translator.GetObject(L, 2, typeof(UnityEngine.Color[])); - - gen_to_be_invoked.SetPixels( _colors ); - - - - return 0; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - UnityEngine.Color[] _colors = (UnityEngine.Color[])translator.GetObject(L, 2, typeof(UnityEngine.Color[])); - int _miplevel = LuaAPI.xlua_tointeger(L, 3); - - gen_to_be_invoked.SetPixels( _colors, _miplevel ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Texture3D.SetPixels!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetPixels32(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Texture3D gen_to_be_invoked = (UnityEngine.Texture3D)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.Color32[] _colors = (UnityEngine.Color32[])translator.GetObject(L, 2, typeof(UnityEngine.Color32[])); - - gen_to_be_invoked.SetPixels32( _colors ); - - - - return 0; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - UnityEngine.Color32[] _colors = (UnityEngine.Color32[])translator.GetObject(L, 2, typeof(UnityEngine.Color32[])); - int _miplevel = LuaAPI.xlua_tointeger(L, 3); - - gen_to_be_invoked.SetPixels32( _colors, _miplevel ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Texture3D.SetPixels32!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CreateExternalTexture_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - int _width = LuaAPI.xlua_tointeger(L, 1); - int _height = LuaAPI.xlua_tointeger(L, 2); - int _depth = LuaAPI.xlua_tointeger(L, 3); - UnityEngine.TextureFormat _format;translator.Get(L, 4, out _format); - bool _mipChain = LuaAPI.lua_toboolean(L, 5); - System.IntPtr _nativeTex = LuaAPI.lua_touserdata(L, 6); - - var gen_ret = UnityEngine.Texture3D.CreateExternalTexture( _width, _height, _depth, _format, _mipChain, _nativeTex ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Apply(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Texture3D gen_to_be_invoked = (UnityEngine.Texture3D)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - gen_to_be_invoked.Apply( ); - - - - return 0; - } - if(gen_param_count == 2&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)) - { - bool _updateMipmaps = LuaAPI.lua_toboolean(L, 2); - - gen_to_be_invoked.Apply( _updateMipmaps ); - - - - return 0; - } - if(gen_param_count == 3&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) - { - bool _updateMipmaps = LuaAPI.lua_toboolean(L, 2); - bool _makeNoLongerReadable = LuaAPI.lua_toboolean(L, 3); - - gen_to_be_invoked.Apply( _updateMipmaps, _makeNoLongerReadable ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Texture3D.Apply!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetPixel(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Texture3D gen_to_be_invoked = (UnityEngine.Texture3D)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 5&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& translator.Assignable(L, 5)) - { - int _x = LuaAPI.xlua_tointeger(L, 2); - int _y = LuaAPI.xlua_tointeger(L, 3); - int _z = LuaAPI.xlua_tointeger(L, 4); - UnityEngine.Color _color;translator.Get(L, 5, out _color); - - gen_to_be_invoked.SetPixel( _x, _y, _z, _color ); - - - - return 0; - } - if(gen_param_count == 6&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& translator.Assignable(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)) - { - int _x = LuaAPI.xlua_tointeger(L, 2); - int _y = LuaAPI.xlua_tointeger(L, 3); - int _z = LuaAPI.xlua_tointeger(L, 4); - UnityEngine.Color _color;translator.Get(L, 5, out _color); - int _mipLevel = LuaAPI.xlua_tointeger(L, 6); - - gen_to_be_invoked.SetPixel( _x, _y, _z, _color, _mipLevel ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Texture3D.SetPixel!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetPixel(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Texture3D gen_to_be_invoked = (UnityEngine.Texture3D)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - int _x = LuaAPI.xlua_tointeger(L, 2); - int _y = LuaAPI.xlua_tointeger(L, 3); - int _z = LuaAPI.xlua_tointeger(L, 4); - - var gen_ret = gen_to_be_invoked.GetPixel( _x, _y, _z ); - translator.PushUnityEngineColor(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 5&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - int _x = LuaAPI.xlua_tointeger(L, 2); - int _y = LuaAPI.xlua_tointeger(L, 3); - int _z = LuaAPI.xlua_tointeger(L, 4); - int _mipLevel = LuaAPI.xlua_tointeger(L, 5); - - var gen_ret = gen_to_be_invoked.GetPixel( _x, _y, _z, _mipLevel ); - translator.PushUnityEngineColor(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Texture3D.GetPixel!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetPixelBilinear(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Texture3D gen_to_be_invoked = (UnityEngine.Texture3D)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - float _u = (float)LuaAPI.lua_tonumber(L, 2); - float _v = (float)LuaAPI.lua_tonumber(L, 3); - float _w = (float)LuaAPI.lua_tonumber(L, 4); - - var gen_ret = gen_to_be_invoked.GetPixelBilinear( _u, _v, _w ); - translator.PushUnityEngineColor(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 5&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - float _u = (float)LuaAPI.lua_tonumber(L, 2); - float _v = (float)LuaAPI.lua_tonumber(L, 3); - float _w = (float)LuaAPI.lua_tonumber(L, 4); - int _mipLevel = LuaAPI.xlua_tointeger(L, 5); - - var gen_ret = gen_to_be_invoked.GetPixelBilinear( _u, _v, _w, _mipLevel ); - translator.PushUnityEngineColor(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Texture3D.GetPixelBilinear!"); - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_depth(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Texture3D gen_to_be_invoked = (UnityEngine.Texture3D)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.depth); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_format(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Texture3D gen_to_be_invoked = (UnityEngine.Texture3D)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.format); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_isReadable(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Texture3D gen_to_be_invoked = (UnityEngine.Texture3D)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.isReadable); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_TouchWrap.cs b/Assets/XLua/Gen/UnityEngine_TouchWrap.cs deleted file mode 100644 index e88c08262..000000000 --- a/Assets/XLua/Gen/UnityEngine_TouchWrap.cs +++ /dev/null @@ -1,549 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineTouchWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.Touch); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 14, 14); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "fingerId", _g_get_fingerId); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "position", _g_get_position); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "rawPosition", _g_get_rawPosition); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "deltaPosition", _g_get_deltaPosition); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "deltaTime", _g_get_deltaTime); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "tapCount", _g_get_tapCount); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "phase", _g_get_phase); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "pressure", _g_get_pressure); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "maximumPossiblePressure", _g_get_maximumPossiblePressure); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "type", _g_get_type); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "altitudeAngle", _g_get_altitudeAngle); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "azimuthAngle", _g_get_azimuthAngle); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "radius", _g_get_radius); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "radiusVariance", _g_get_radiusVariance); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "fingerId", _s_set_fingerId); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "position", _s_set_position); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "rawPosition", _s_set_rawPosition); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "deltaPosition", _s_set_deltaPosition); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "deltaTime", _s_set_deltaTime); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "tapCount", _s_set_tapCount); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "phase", _s_set_phase); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "pressure", _s_set_pressure); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "maximumPossiblePressure", _s_set_maximumPossiblePressure); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "type", _s_set_type); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "altitudeAngle", _s_set_altitudeAngle); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "azimuthAngle", _s_set_azimuthAngle); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "radius", _s_set_radius); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "radiusVariance", _s_set_radiusVariance); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(UnityEngine.Touch)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Touch constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_fingerId(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Touch gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.fingerId); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_position(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Touch gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineVector2(L, gen_to_be_invoked.position); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_rawPosition(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Touch gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineVector2(L, gen_to_be_invoked.rawPosition); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_deltaPosition(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Touch gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineVector2(L, gen_to_be_invoked.deltaPosition); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_deltaTime(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Touch gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.deltaTime); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_tapCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Touch gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.tapCount); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_phase(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Touch gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.phase); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_pressure(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Touch gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.pressure); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_maximumPossiblePressure(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Touch gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.maximumPossiblePressure); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_type(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Touch gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.type); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_altitudeAngle(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Touch gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.altitudeAngle); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_azimuthAngle(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Touch gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.azimuthAngle); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_radius(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Touch gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.radius); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_radiusVariance(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Touch gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.radiusVariance); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_fingerId(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Touch gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.fingerId = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_position(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Touch gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Vector2 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.position = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_rawPosition(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Touch gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Vector2 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.rawPosition = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_deltaPosition(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Touch gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Vector2 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.deltaPosition = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_deltaTime(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Touch gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.deltaTime = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_tapCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Touch gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.tapCount = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_phase(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Touch gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.TouchPhase gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.phase = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_pressure(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Touch gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.pressure = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_maximumPossiblePressure(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Touch gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.maximumPossiblePressure = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_type(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Touch gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.TouchType gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.type = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_altitudeAngle(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Touch gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.altitudeAngle = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_azimuthAngle(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Touch gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.azimuthAngle = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_radius(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Touch gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.radius = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_radiusVariance(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Touch gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.radiusVariance = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_TrailRendererWrap.cs b/Assets/XLua/Gen/UnityEngine_TrailRendererWrap.cs deleted file mode 100644 index c7903a928..000000000 --- a/Assets/XLua/Gen/UnityEngine_TrailRendererWrap.cs +++ /dev/null @@ -1,1039 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; -using DG.Tweening; - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineTrailRendererWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.TrailRenderer); - Utils.BeginObjectRegister(type, L, translator, 0, 10, 18, 17); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetPosition", _m_SetPosition); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetPosition", _m_GetPosition); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Clear", _m_Clear); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "BakeMesh", _m_BakeMesh); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetPositions", _m_GetPositions); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetPositions", _m_SetPositions); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddPosition", _m_AddPosition); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddPositions", _m_AddPositions); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "DOResize", _m_DOResize); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "DOTime", _m_DOTime); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "time", _g_get_time); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "startWidth", _g_get_startWidth); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "endWidth", _g_get_endWidth); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "widthMultiplier", _g_get_widthMultiplier); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "autodestruct", _g_get_autodestruct); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "emitting", _g_get_emitting); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "numCornerVertices", _g_get_numCornerVertices); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "numCapVertices", _g_get_numCapVertices); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "minVertexDistance", _g_get_minVertexDistance); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "startColor", _g_get_startColor); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "endColor", _g_get_endColor); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "positionCount", _g_get_positionCount); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "shadowBias", _g_get_shadowBias); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "generateLightingData", _g_get_generateLightingData); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "textureMode", _g_get_textureMode); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "alignment", _g_get_alignment); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "widthCurve", _g_get_widthCurve); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "colorGradient", _g_get_colorGradient); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "time", _s_set_time); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "startWidth", _s_set_startWidth); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "endWidth", _s_set_endWidth); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "widthMultiplier", _s_set_widthMultiplier); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "autodestruct", _s_set_autodestruct); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "emitting", _s_set_emitting); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "numCornerVertices", _s_set_numCornerVertices); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "numCapVertices", _s_set_numCapVertices); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "minVertexDistance", _s_set_minVertexDistance); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "startColor", _s_set_startColor); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "endColor", _s_set_endColor); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "shadowBias", _s_set_shadowBias); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "generateLightingData", _s_set_generateLightingData); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "textureMode", _s_set_textureMode); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "alignment", _s_set_alignment); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "widthCurve", _s_set_widthCurve); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "colorGradient", _s_set_colorGradient); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.TrailRenderer(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.TrailRenderer constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetPosition(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.TrailRenderer gen_to_be_invoked = (UnityEngine.TrailRenderer)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - UnityEngine.Vector3 _position;translator.Get(L, 3, out _position); - - gen_to_be_invoked.SetPosition( _index, _position ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetPosition(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.TrailRenderer gen_to_be_invoked = (UnityEngine.TrailRenderer)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.GetPosition( _index ); - translator.PushUnityEngineVector3(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Clear(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.TrailRenderer gen_to_be_invoked = (UnityEngine.TrailRenderer)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Clear( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_BakeMesh(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.TrailRenderer gen_to_be_invoked = (UnityEngine.TrailRenderer)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) - { - UnityEngine.Mesh _mesh = (UnityEngine.Mesh)translator.GetObject(L, 2, typeof(UnityEngine.Mesh)); - bool _useTransform = LuaAPI.lua_toboolean(L, 3); - - gen_to_be_invoked.BakeMesh( _mesh, _useTransform ); - - - - return 0; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.Mesh _mesh = (UnityEngine.Mesh)translator.GetObject(L, 2, typeof(UnityEngine.Mesh)); - - gen_to_be_invoked.BakeMesh( _mesh ); - - - - return 0; - } - if(gen_param_count == 4&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 4)) - { - UnityEngine.Mesh _mesh = (UnityEngine.Mesh)translator.GetObject(L, 2, typeof(UnityEngine.Mesh)); - UnityEngine.Camera _camera = (UnityEngine.Camera)translator.GetObject(L, 3, typeof(UnityEngine.Camera)); - bool _useTransform = LuaAPI.lua_toboolean(L, 4); - - gen_to_be_invoked.BakeMesh( _mesh, _camera, _useTransform ); - - - - return 0; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)) - { - UnityEngine.Mesh _mesh = (UnityEngine.Mesh)translator.GetObject(L, 2, typeof(UnityEngine.Mesh)); - UnityEngine.Camera _camera = (UnityEngine.Camera)translator.GetObject(L, 3, typeof(UnityEngine.Camera)); - - gen_to_be_invoked.BakeMesh( _mesh, _camera ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.TrailRenderer.BakeMesh!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetPositions(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.TrailRenderer gen_to_be_invoked = (UnityEngine.TrailRenderer)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.Vector3[] _positions = (UnityEngine.Vector3[])translator.GetObject(L, 2, typeof(UnityEngine.Vector3[])); - - var gen_ret = gen_to_be_invoked.GetPositions( _positions ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 2; - } - if(gen_param_count == 2&& translator.Assignable>(L, 2)) - { - Unity.Collections.NativeArray _positions;translator.Get(L, 2, out _positions); - - var gen_ret = gen_to_be_invoked.GetPositions( _positions ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 2; - } - if(gen_param_count == 2&& translator.Assignable>(L, 2)) - { - Unity.Collections.NativeSlice _positions;translator.Get(L, 2, out _positions); - - var gen_ret = gen_to_be_invoked.GetPositions( _positions ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 2; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.TrailRenderer.GetPositions!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetPositions(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.TrailRenderer gen_to_be_invoked = (UnityEngine.TrailRenderer)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.Vector3[] _positions = (UnityEngine.Vector3[])translator.GetObject(L, 2, typeof(UnityEngine.Vector3[])); - - gen_to_be_invoked.SetPositions( _positions ); - - - - return 0; - } - if(gen_param_count == 2&& translator.Assignable>(L, 2)) - { - Unity.Collections.NativeArray _positions;translator.Get(L, 2, out _positions); - - gen_to_be_invoked.SetPositions( _positions ); - - - - return 0; - } - if(gen_param_count == 2&& translator.Assignable>(L, 2)) - { - Unity.Collections.NativeSlice _positions;translator.Get(L, 2, out _positions); - - gen_to_be_invoked.SetPositions( _positions ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.TrailRenderer.SetPositions!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AddPosition(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.TrailRenderer gen_to_be_invoked = (UnityEngine.TrailRenderer)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Vector3 _position;translator.Get(L, 2, out _position); - - gen_to_be_invoked.AddPosition( _position ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AddPositions(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.TrailRenderer gen_to_be_invoked = (UnityEngine.TrailRenderer)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable>(L, 2)) - { - Unity.Collections.NativeArray _positions;translator.Get(L, 2, out _positions); - - gen_to_be_invoked.AddPositions( _positions ); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable>(L, 2)) - { - Unity.Collections.NativeSlice _positions;translator.Get(L, 2, out _positions); - - gen_to_be_invoked.AddPositions( _positions ); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.Vector3[] _positions = (UnityEngine.Vector3[])translator.GetObject(L, 2, typeof(UnityEngine.Vector3[])); - - gen_to_be_invoked.AddPositions( _positions ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.TrailRenderer.AddPositions!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DOResize(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.TrailRenderer gen_to_be_invoked = (UnityEngine.TrailRenderer)translator.FastGetCSObj(L, 1); - - - - { - float _toStartWidth = (float)LuaAPI.lua_tonumber(L, 2); - float _toEndWidth = (float)LuaAPI.lua_tonumber(L, 3); - float _duration = (float)LuaAPI.lua_tonumber(L, 4); - - var gen_ret = gen_to_be_invoked.DOResize( _toStartWidth, _toEndWidth, _duration ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DOTime(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.TrailRenderer gen_to_be_invoked = (UnityEngine.TrailRenderer)translator.FastGetCSObj(L, 1); - - - - { - float _endValue = (float)LuaAPI.lua_tonumber(L, 2); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = gen_to_be_invoked.DOTime( _endValue, _duration ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_time(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.TrailRenderer gen_to_be_invoked = (UnityEngine.TrailRenderer)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.time); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_startWidth(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.TrailRenderer gen_to_be_invoked = (UnityEngine.TrailRenderer)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.startWidth); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_endWidth(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.TrailRenderer gen_to_be_invoked = (UnityEngine.TrailRenderer)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.endWidth); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_widthMultiplier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.TrailRenderer gen_to_be_invoked = (UnityEngine.TrailRenderer)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.widthMultiplier); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_autodestruct(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.TrailRenderer gen_to_be_invoked = (UnityEngine.TrailRenderer)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.autodestruct); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_emitting(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.TrailRenderer gen_to_be_invoked = (UnityEngine.TrailRenderer)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.emitting); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_numCornerVertices(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.TrailRenderer gen_to_be_invoked = (UnityEngine.TrailRenderer)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.numCornerVertices); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_numCapVertices(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.TrailRenderer gen_to_be_invoked = (UnityEngine.TrailRenderer)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.numCapVertices); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_minVertexDistance(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.TrailRenderer gen_to_be_invoked = (UnityEngine.TrailRenderer)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.minVertexDistance); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_startColor(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.TrailRenderer gen_to_be_invoked = (UnityEngine.TrailRenderer)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineColor(L, gen_to_be_invoked.startColor); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_endColor(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.TrailRenderer gen_to_be_invoked = (UnityEngine.TrailRenderer)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineColor(L, gen_to_be_invoked.endColor); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_positionCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.TrailRenderer gen_to_be_invoked = (UnityEngine.TrailRenderer)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.positionCount); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_shadowBias(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.TrailRenderer gen_to_be_invoked = (UnityEngine.TrailRenderer)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.shadowBias); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_generateLightingData(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.TrailRenderer gen_to_be_invoked = (UnityEngine.TrailRenderer)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.generateLightingData); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_textureMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.TrailRenderer gen_to_be_invoked = (UnityEngine.TrailRenderer)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.textureMode); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_alignment(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.TrailRenderer gen_to_be_invoked = (UnityEngine.TrailRenderer)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.alignment); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_widthCurve(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.TrailRenderer gen_to_be_invoked = (UnityEngine.TrailRenderer)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.widthCurve); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_colorGradient(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.TrailRenderer gen_to_be_invoked = (UnityEngine.TrailRenderer)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.colorGradient); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_time(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.TrailRenderer gen_to_be_invoked = (UnityEngine.TrailRenderer)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.time = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_startWidth(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.TrailRenderer gen_to_be_invoked = (UnityEngine.TrailRenderer)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.startWidth = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_endWidth(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.TrailRenderer gen_to_be_invoked = (UnityEngine.TrailRenderer)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.endWidth = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_widthMultiplier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.TrailRenderer gen_to_be_invoked = (UnityEngine.TrailRenderer)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.widthMultiplier = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_autodestruct(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.TrailRenderer gen_to_be_invoked = (UnityEngine.TrailRenderer)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.autodestruct = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_emitting(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.TrailRenderer gen_to_be_invoked = (UnityEngine.TrailRenderer)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.emitting = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_numCornerVertices(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.TrailRenderer gen_to_be_invoked = (UnityEngine.TrailRenderer)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.numCornerVertices = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_numCapVertices(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.TrailRenderer gen_to_be_invoked = (UnityEngine.TrailRenderer)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.numCapVertices = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_minVertexDistance(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.TrailRenderer gen_to_be_invoked = (UnityEngine.TrailRenderer)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.minVertexDistance = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_startColor(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.TrailRenderer gen_to_be_invoked = (UnityEngine.TrailRenderer)translator.FastGetCSObj(L, 1); - UnityEngine.Color gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.startColor = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_endColor(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.TrailRenderer gen_to_be_invoked = (UnityEngine.TrailRenderer)translator.FastGetCSObj(L, 1); - UnityEngine.Color gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.endColor = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_shadowBias(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.TrailRenderer gen_to_be_invoked = (UnityEngine.TrailRenderer)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.shadowBias = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_generateLightingData(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.TrailRenderer gen_to_be_invoked = (UnityEngine.TrailRenderer)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.generateLightingData = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_textureMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.TrailRenderer gen_to_be_invoked = (UnityEngine.TrailRenderer)translator.FastGetCSObj(L, 1); - UnityEngine.LineTextureMode gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.textureMode = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_alignment(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.TrailRenderer gen_to_be_invoked = (UnityEngine.TrailRenderer)translator.FastGetCSObj(L, 1); - UnityEngine.LineAlignment gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.alignment = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_widthCurve(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.TrailRenderer gen_to_be_invoked = (UnityEngine.TrailRenderer)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.widthCurve = (UnityEngine.AnimationCurve)translator.GetObject(L, 2, typeof(UnityEngine.AnimationCurve)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_colorGradient(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.TrailRenderer gen_to_be_invoked = (UnityEngine.TrailRenderer)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.colorGradient = (UnityEngine.Gradient)translator.GetObject(L, 2, typeof(UnityEngine.Gradient)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_U2D_AngleRangeInfoWrap.cs b/Assets/XLua/Gen/UnityEngine_U2D_AngleRangeInfoWrap.cs deleted file mode 100644 index 137e48fa6..000000000 --- a/Assets/XLua/Gen/UnityEngine_U2D_AngleRangeInfoWrap.cs +++ /dev/null @@ -1,214 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineU2DAngleRangeInfoWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.U2D.AngleRangeInfo); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 4, 4); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "start", _g_get_start); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "end", _g_get_end); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "order", _g_get_order); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "sprites", _g_get_sprites); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "start", _s_set_start); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "end", _s_set_end); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "order", _s_set_order); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "sprites", _s_set_sprites); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(UnityEngine.U2D.AngleRangeInfo)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.U2D.AngleRangeInfo constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_start(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.U2D.AngleRangeInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.start); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_end(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.U2D.AngleRangeInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.end); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_order(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.U2D.AngleRangeInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushuint(L, gen_to_be_invoked.order); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_sprites(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.U2D.AngleRangeInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.sprites); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_start(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.U2D.AngleRangeInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.start = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_end(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.U2D.AngleRangeInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.end = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_order(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.U2D.AngleRangeInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.order = LuaAPI.xlua_touint(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_sprites(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.U2D.AngleRangeInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.sprites = (int[])translator.GetObject(L, 2, typeof(int[])); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_U2D_PixelPerfectRenderingWrap.cs b/Assets/XLua/Gen/UnityEngine_U2D_PixelPerfectRenderingWrap.cs deleted file mode 100644 index 7b6b50818..000000000 --- a/Assets/XLua/Gen/UnityEngine_U2D_PixelPerfectRenderingWrap.cs +++ /dev/null @@ -1,94 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineU2DPixelPerfectRenderingWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.U2D.PixelPerfectRendering); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 1, 1); - - - - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "pixelSnapSpacing", _g_get_pixelSnapSpacing); - - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "pixelSnapSpacing", _s_set_pixelSnapSpacing); - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "UnityEngine.U2D.PixelPerfectRendering does not have a constructor!"); - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_pixelSnapSpacing(RealStatePtr L) - { - try { - - LuaAPI.lua_pushnumber(L, UnityEngine.U2D.PixelPerfectRendering.pixelSnapSpacing); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_pixelSnapSpacing(RealStatePtr L) - { - try { - - UnityEngine.U2D.PixelPerfectRendering.pixelSnapSpacing = (float)LuaAPI.lua_tonumber(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_U2D_ShapeControlPointWrap.cs b/Assets/XLua/Gen/UnityEngine_U2D_ShapeControlPointWrap.cs deleted file mode 100644 index e5c12dc5b..000000000 --- a/Assets/XLua/Gen/UnityEngine_U2D_ShapeControlPointWrap.cs +++ /dev/null @@ -1,217 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineU2DShapeControlPointWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.U2D.ShapeControlPoint); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 4, 4); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "position", _g_get_position); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "leftTangent", _g_get_leftTangent); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "rightTangent", _g_get_rightTangent); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "mode", _g_get_mode); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "position", _s_set_position); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "leftTangent", _s_set_leftTangent); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "rightTangent", _s_set_rightTangent); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "mode", _s_set_mode); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(UnityEngine.U2D.ShapeControlPoint)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.U2D.ShapeControlPoint constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_position(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.U2D.ShapeControlPoint gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.position); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_leftTangent(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.U2D.ShapeControlPoint gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.leftTangent); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_rightTangent(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.U2D.ShapeControlPoint gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.rightTangent); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_mode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.U2D.ShapeControlPoint gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.mode); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_position(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.U2D.ShapeControlPoint gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Vector3 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.position = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_leftTangent(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.U2D.ShapeControlPoint gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Vector3 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.leftTangent = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_rightTangent(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.U2D.ShapeControlPoint gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Vector3 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.rightTangent = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_mode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.U2D.ShapeControlPoint gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.mode = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_U2D_SpriteAtlasManagerWrap.cs b/Assets/XLua/Gen/UnityEngine_U2D_SpriteAtlasManagerWrap.cs deleted file mode 100644 index 6698911c6..000000000 --- a/Assets/XLua/Gen/UnityEngine_U2D_SpriteAtlasManagerWrap.cs +++ /dev/null @@ -1,144 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineU2DSpriteAtlasManagerWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.U2D.SpriteAtlasManager); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 3, 0, 0); - - Utils.RegisterFunc(L, Utils.CLS_IDX, "atlasRequested", _e_atlasRequested); - Utils.RegisterFunc(L, Utils.CLS_IDX, "atlasRegistered", _e_atlasRegistered); - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.U2D.SpriteAtlasManager(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.U2D.SpriteAtlasManager constructor!"); - - } - - - - - - - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_atlasRequested(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - System.Action> gen_delegate = translator.GetDelegate>>(L, 2); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#2 need System.Action>!"); - } - - - if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "+")) { - UnityEngine.U2D.SpriteAtlasManager.atlasRequested += gen_delegate; - return 0; - } - - - if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "-")) { - UnityEngine.U2D.SpriteAtlasManager.atlasRequested -= gen_delegate; - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.U2D.SpriteAtlasManager.atlasRequested!"); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_atlasRegistered(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - System.Action gen_delegate = translator.GetDelegate>(L, 2); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#2 need System.Action!"); - } - - - if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "+")) { - UnityEngine.U2D.SpriteAtlasManager.atlasRegistered += gen_delegate; - return 0; - } - - - if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "-")) { - UnityEngine.U2D.SpriteAtlasManager.atlasRegistered -= gen_delegate; - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.U2D.SpriteAtlasManager.atlasRegistered!"); - } - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_U2D_SpriteBoneWrap.cs b/Assets/XLua/Gen/UnityEngine_U2D_SpriteBoneWrap.cs deleted file mode 100644 index 0c3268d66..000000000 --- a/Assets/XLua/Gen/UnityEngine_U2D_SpriteBoneWrap.cs +++ /dev/null @@ -1,249 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineU2DSpriteBoneWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.U2D.SpriteBone); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 5, 5); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "name", _g_get_name); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "position", _g_get_position); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "rotation", _g_get_rotation); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "length", _g_get_length); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "parentId", _g_get_parentId); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "name", _s_set_name); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "position", _s_set_position); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "rotation", _s_set_rotation); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "length", _s_set_length); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "parentId", _s_set_parentId); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(UnityEngine.U2D.SpriteBone)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.U2D.SpriteBone constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_name(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.U2D.SpriteBone gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.name); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_position(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.U2D.SpriteBone gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.position); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_rotation(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.U2D.SpriteBone gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineQuaternion(L, gen_to_be_invoked.rotation); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_length(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.U2D.SpriteBone gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.length); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_parentId(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.U2D.SpriteBone gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.parentId); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_name(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.U2D.SpriteBone gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.name = LuaAPI.lua_tostring(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_position(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.U2D.SpriteBone gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Vector3 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.position = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_rotation(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.U2D.SpriteBone gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Quaternion gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.rotation = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_length(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.U2D.SpriteBone gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.length = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_parentId(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.U2D.SpriteBone gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.parentId = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_U2D_SpriteDataAccessExtensionsWrap.cs b/Assets/XLua/Gen/UnityEngine_U2D_SpriteDataAccessExtensionsWrap.cs deleted file mode 100644 index 212f39cfd..000000000 --- a/Assets/XLua/Gen/UnityEngine_U2D_SpriteDataAccessExtensionsWrap.cs +++ /dev/null @@ -1,67 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineU2DSpriteDataAccessExtensionsWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.U2D.SpriteDataAccessExtensions); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "UnityEngine.U2D.SpriteDataAccessExtensions does not have a constructor!"); - } - - - - - - - - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_U2D_SpriteRendererDataAccessExtensionsWrap.cs b/Assets/XLua/Gen/UnityEngine_U2D_SpriteRendererDataAccessExtensionsWrap.cs deleted file mode 100644 index bcd59f73c..000000000 --- a/Assets/XLua/Gen/UnityEngine_U2D_SpriteRendererDataAccessExtensionsWrap.cs +++ /dev/null @@ -1,67 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineU2DSpriteRendererDataAccessExtensionsWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.U2D.SpriteRendererDataAccessExtensions); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "UnityEngine.U2D.SpriteRendererDataAccessExtensions does not have a constructor!"); - } - - - - - - - - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_U2D_SpriteShapeMetaDataWrap.cs b/Assets/XLua/Gen/UnityEngine_U2D_SpriteShapeMetaDataWrap.cs deleted file mode 100644 index da783834a..000000000 --- a/Assets/XLua/Gen/UnityEngine_U2D_SpriteShapeMetaDataWrap.cs +++ /dev/null @@ -1,247 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineU2DSpriteShapeMetaDataWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.U2D.SpriteShapeMetaData); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 5, 5); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "height", _g_get_height); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "bevelCutoff", _g_get_bevelCutoff); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "bevelSize", _g_get_bevelSize); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "spriteIndex", _g_get_spriteIndex); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "corner", _g_get_corner); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "height", _s_set_height); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "bevelCutoff", _s_set_bevelCutoff); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "bevelSize", _s_set_bevelSize); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "spriteIndex", _s_set_spriteIndex); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "corner", _s_set_corner); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(UnityEngine.U2D.SpriteShapeMetaData)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.U2D.SpriteShapeMetaData constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_height(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.U2D.SpriteShapeMetaData gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.height); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_bevelCutoff(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.U2D.SpriteShapeMetaData gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.bevelCutoff); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_bevelSize(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.U2D.SpriteShapeMetaData gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.bevelSize); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_spriteIndex(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.U2D.SpriteShapeMetaData gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushuint(L, gen_to_be_invoked.spriteIndex); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_corner(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.U2D.SpriteShapeMetaData gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.corner); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_height(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.U2D.SpriteShapeMetaData gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.height = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_bevelCutoff(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.U2D.SpriteShapeMetaData gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.bevelCutoff = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_bevelSize(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.U2D.SpriteShapeMetaData gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.bevelSize = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_spriteIndex(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.U2D.SpriteShapeMetaData gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.spriteIndex = LuaAPI.xlua_touint(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_corner(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.U2D.SpriteShapeMetaData gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.corner = LuaAPI.lua_toboolean(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_U2D_SpriteShapeParametersWrap.cs b/Assets/XLua/Gen/UnityEngine_U2D_SpriteShapeParametersWrap.cs deleted file mode 100644 index 3a846c190..000000000 --- a/Assets/XLua/Gen/UnityEngine_U2D_SpriteShapeParametersWrap.cs +++ /dev/null @@ -1,512 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineU2DSpriteShapeParametersWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.U2D.SpriteShapeParameters); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 13, 13); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "transform", _g_get_transform); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "fillTexture", _g_get_fillTexture); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "fillScale", _g_get_fillScale); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "splineDetail", _g_get_splineDetail); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "angleThreshold", _g_get_angleThreshold); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "borderPivot", _g_get_borderPivot); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "bevelCutoff", _g_get_bevelCutoff); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "bevelSize", _g_get_bevelSize); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "carpet", _g_get_carpet); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "smartSprite", _g_get_smartSprite); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "adaptiveUV", _g_get_adaptiveUV); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "spriteBorders", _g_get_spriteBorders); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "stretchUV", _g_get_stretchUV); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "transform", _s_set_transform); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "fillTexture", _s_set_fillTexture); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "fillScale", _s_set_fillScale); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "splineDetail", _s_set_splineDetail); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "angleThreshold", _s_set_angleThreshold); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "borderPivot", _s_set_borderPivot); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "bevelCutoff", _s_set_bevelCutoff); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "bevelSize", _s_set_bevelSize); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "carpet", _s_set_carpet); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "smartSprite", _s_set_smartSprite); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "adaptiveUV", _s_set_adaptiveUV); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "spriteBorders", _s_set_spriteBorders); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "stretchUV", _s_set_stretchUV); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(UnityEngine.U2D.SpriteShapeParameters)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.U2D.SpriteShapeParameters constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_transform(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.U2D.SpriteShapeParameters gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.transform); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_fillTexture(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.U2D.SpriteShapeParameters gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.fillTexture); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_fillScale(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.U2D.SpriteShapeParameters gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushuint(L, gen_to_be_invoked.fillScale); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_splineDetail(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.U2D.SpriteShapeParameters gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushuint(L, gen_to_be_invoked.splineDetail); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_angleThreshold(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.U2D.SpriteShapeParameters gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.angleThreshold); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_borderPivot(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.U2D.SpriteShapeParameters gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.borderPivot); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_bevelCutoff(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.U2D.SpriteShapeParameters gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.bevelCutoff); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_bevelSize(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.U2D.SpriteShapeParameters gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.bevelSize); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_carpet(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.U2D.SpriteShapeParameters gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.carpet); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_smartSprite(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.U2D.SpriteShapeParameters gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.smartSprite); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_adaptiveUV(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.U2D.SpriteShapeParameters gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.adaptiveUV); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_spriteBorders(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.U2D.SpriteShapeParameters gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.spriteBorders); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_stretchUV(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.U2D.SpriteShapeParameters gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.stretchUV); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_transform(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.U2D.SpriteShapeParameters gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Matrix4x4 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.transform = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_fillTexture(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.U2D.SpriteShapeParameters gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.fillTexture = (UnityEngine.Texture2D)translator.GetObject(L, 2, typeof(UnityEngine.Texture2D)); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_fillScale(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.U2D.SpriteShapeParameters gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.fillScale = LuaAPI.xlua_touint(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_splineDetail(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.U2D.SpriteShapeParameters gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.splineDetail = LuaAPI.xlua_touint(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_angleThreshold(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.U2D.SpriteShapeParameters gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.angleThreshold = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_borderPivot(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.U2D.SpriteShapeParameters gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.borderPivot = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_bevelCutoff(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.U2D.SpriteShapeParameters gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.bevelCutoff = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_bevelSize(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.U2D.SpriteShapeParameters gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.bevelSize = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_carpet(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.U2D.SpriteShapeParameters gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.carpet = LuaAPI.lua_toboolean(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_smartSprite(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.U2D.SpriteShapeParameters gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.smartSprite = LuaAPI.lua_toboolean(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_adaptiveUV(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.U2D.SpriteShapeParameters gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.adaptiveUV = LuaAPI.lua_toboolean(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_spriteBorders(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.U2D.SpriteShapeParameters gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.spriteBorders = LuaAPI.lua_toboolean(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_stretchUV(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.U2D.SpriteShapeParameters gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.stretchUV = LuaAPI.lua_toboolean(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_U2D_SpriteShapeRendererWrap.cs b/Assets/XLua/Gen/UnityEngine_U2D_SpriteShapeRendererWrap.cs deleted file mode 100644 index b011f1655..000000000 --- a/Assets/XLua/Gen/UnityEngine_U2D_SpriteShapeRendererWrap.cs +++ /dev/null @@ -1,327 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineU2DSpriteShapeRendererWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.U2D.SpriteShapeRenderer); - Utils.BeginObjectRegister(type, L, translator, 0, 4, 2, 2); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Prepare", _m_Prepare); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetBounds", _m_GetBounds); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetSegments", _m_GetSegments); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetChannels", _m_GetChannels); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "color", _g_get_color); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "maskInteraction", _g_get_maskInteraction); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "color", _s_set_color); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "maskInteraction", _s_set_maskInteraction); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.U2D.SpriteShapeRenderer(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.U2D.SpriteShapeRenderer constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Prepare(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.U2D.SpriteShapeRenderer gen_to_be_invoked = (UnityEngine.U2D.SpriteShapeRenderer)translator.FastGetCSObj(L, 1); - - - - { - Unity.Jobs.JobHandle _handle;translator.Get(L, 2, out _handle); - UnityEngine.U2D.SpriteShapeParameters _shapeParams;translator.Get(L, 3, out _shapeParams); - UnityEngine.Sprite[] _sprites = (UnityEngine.Sprite[])translator.GetObject(L, 4, typeof(UnityEngine.Sprite[])); - - gen_to_be_invoked.Prepare( _handle, _shapeParams, _sprites ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetBounds(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.U2D.SpriteShapeRenderer gen_to_be_invoked = (UnityEngine.U2D.SpriteShapeRenderer)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.GetBounds( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetSegments(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.U2D.SpriteShapeRenderer gen_to_be_invoked = (UnityEngine.U2D.SpriteShapeRenderer)translator.FastGetCSObj(L, 1); - - - - { - int _dataSize = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.GetSegments( _dataSize ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetChannels(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.U2D.SpriteShapeRenderer gen_to_be_invoked = (UnityEngine.U2D.SpriteShapeRenderer)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - int _dataSize = LuaAPI.xlua_tointeger(L, 2); - Unity.Collections.NativeArray _indices; - Unity.Collections.NativeSlice _vertices; - Unity.Collections.NativeSlice _texcoords; - - gen_to_be_invoked.GetChannels( _dataSize, out _indices, out _vertices, out _texcoords ); - translator.Push(L, _indices); - - translator.Push(L, _vertices); - - translator.Push(L, _texcoords); - - - - - return 3; - } - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - int _dataSize = LuaAPI.xlua_tointeger(L, 2); - Unity.Collections.NativeArray _indices; - Unity.Collections.NativeSlice _vertices; - Unity.Collections.NativeSlice _texcoords; - Unity.Collections.NativeSlice _tangents; - - gen_to_be_invoked.GetChannels( _dataSize, out _indices, out _vertices, out _texcoords, out _tangents ); - translator.Push(L, _indices); - - translator.Push(L, _vertices); - - translator.Push(L, _texcoords); - - translator.Push(L, _tangents); - - - - - return 4; - } - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - int _dataSize = LuaAPI.xlua_tointeger(L, 2); - Unity.Collections.NativeArray _indices; - Unity.Collections.NativeSlice _vertices; - Unity.Collections.NativeSlice _texcoords; - Unity.Collections.NativeSlice _tangents; - Unity.Collections.NativeSlice _normals; - - gen_to_be_invoked.GetChannels( _dataSize, out _indices, out _vertices, out _texcoords, out _tangents, out _normals ); - translator.Push(L, _indices); - - translator.Push(L, _vertices); - - translator.Push(L, _texcoords); - - translator.Push(L, _tangents); - - translator.Push(L, _normals); - - - - - return 5; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.U2D.SpriteShapeRenderer.GetChannels!"); - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_color(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.U2D.SpriteShapeRenderer gen_to_be_invoked = (UnityEngine.U2D.SpriteShapeRenderer)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineColor(L, gen_to_be_invoked.color); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_maskInteraction(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.U2D.SpriteShapeRenderer gen_to_be_invoked = (UnityEngine.U2D.SpriteShapeRenderer)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.maskInteraction); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_color(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.U2D.SpriteShapeRenderer gen_to_be_invoked = (UnityEngine.U2D.SpriteShapeRenderer)translator.FastGetCSObj(L, 1); - UnityEngine.Color gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.color = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_maskInteraction(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.U2D.SpriteShapeRenderer gen_to_be_invoked = (UnityEngine.U2D.SpriteShapeRenderer)translator.FastGetCSObj(L, 1); - UnityEngine.SpriteMaskInteraction gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.maskInteraction = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_U2D_SpriteShapeSegmentWrap.cs b/Assets/XLua/Gen/UnityEngine_U2D_SpriteShapeSegmentWrap.cs deleted file mode 100644 index 67bb29d80..000000000 --- a/Assets/XLua/Gen/UnityEngine_U2D_SpriteShapeSegmentWrap.cs +++ /dev/null @@ -1,214 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineU2DSpriteShapeSegmentWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.U2D.SpriteShapeSegment); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 4, 4); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "geomIndex", _g_get_geomIndex); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "indexCount", _g_get_indexCount); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "vertexCount", _g_get_vertexCount); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "spriteIndex", _g_get_spriteIndex); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "geomIndex", _s_set_geomIndex); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "indexCount", _s_set_indexCount); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "vertexCount", _s_set_vertexCount); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "spriteIndex", _s_set_spriteIndex); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(UnityEngine.U2D.SpriteShapeSegment)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.U2D.SpriteShapeSegment constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_geomIndex(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.U2D.SpriteShapeSegment gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.geomIndex); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_indexCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.U2D.SpriteShapeSegment gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.indexCount); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_vertexCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.U2D.SpriteShapeSegment gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.vertexCount); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_spriteIndex(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.U2D.SpriteShapeSegment gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.spriteIndex); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_geomIndex(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.U2D.SpriteShapeSegment gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.geomIndex = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_indexCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.U2D.SpriteShapeSegment gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.indexCount = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_vertexCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.U2D.SpriteShapeSegment gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.vertexCount = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_spriteIndex(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.U2D.SpriteShapeSegment gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.spriteIndex = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_U2D_SpriteShapeUtilityWrap.cs b/Assets/XLua/Gen/UnityEngine_U2D_SpriteShapeUtilityWrap.cs deleted file mode 100644 index d6d6e3b61..000000000 --- a/Assets/XLua/Gen/UnityEngine_U2D_SpriteShapeUtilityWrap.cs +++ /dev/null @@ -1,151 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineU2DSpriteShapeUtilityWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.U2D.SpriteShapeUtility); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 3, 0, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Generate", _m_Generate_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GenerateSpriteShape", _m_GenerateSpriteShape_xlua_st_); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.U2D.SpriteShapeUtility(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.U2D.SpriteShapeUtility constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Generate_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Mesh _mesh = (UnityEngine.Mesh)translator.GetObject(L, 1, typeof(UnityEngine.Mesh)); - UnityEngine.U2D.SpriteShapeParameters _shapeParams;translator.Get(L, 2, out _shapeParams); - UnityEngine.U2D.ShapeControlPoint[] _points = (UnityEngine.U2D.ShapeControlPoint[])translator.GetObject(L, 3, typeof(UnityEngine.U2D.ShapeControlPoint[])); - UnityEngine.U2D.SpriteShapeMetaData[] _metaData = (UnityEngine.U2D.SpriteShapeMetaData[])translator.GetObject(L, 4, typeof(UnityEngine.U2D.SpriteShapeMetaData[])); - UnityEngine.U2D.AngleRangeInfo[] _angleRange = (UnityEngine.U2D.AngleRangeInfo[])translator.GetObject(L, 5, typeof(UnityEngine.U2D.AngleRangeInfo[])); - UnityEngine.Sprite[] _sprites = (UnityEngine.Sprite[])translator.GetObject(L, 6, typeof(UnityEngine.Sprite[])); - UnityEngine.Sprite[] _corners = (UnityEngine.Sprite[])translator.GetObject(L, 7, typeof(UnityEngine.Sprite[])); - - var gen_ret = UnityEngine.U2D.SpriteShapeUtility.Generate( _mesh, _shapeParams, _points, _metaData, _angleRange, _sprites, _corners ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GenerateSpriteShape_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.U2D.SpriteShapeRenderer _renderer = (UnityEngine.U2D.SpriteShapeRenderer)translator.GetObject(L, 1, typeof(UnityEngine.U2D.SpriteShapeRenderer)); - UnityEngine.U2D.SpriteShapeParameters _shapeParams;translator.Get(L, 2, out _shapeParams); - UnityEngine.U2D.ShapeControlPoint[] _points = (UnityEngine.U2D.ShapeControlPoint[])translator.GetObject(L, 3, typeof(UnityEngine.U2D.ShapeControlPoint[])); - UnityEngine.U2D.SpriteShapeMetaData[] _metaData = (UnityEngine.U2D.SpriteShapeMetaData[])translator.GetObject(L, 4, typeof(UnityEngine.U2D.SpriteShapeMetaData[])); - UnityEngine.U2D.AngleRangeInfo[] _angleRange = (UnityEngine.U2D.AngleRangeInfo[])translator.GetObject(L, 5, typeof(UnityEngine.U2D.AngleRangeInfo[])); - UnityEngine.Sprite[] _sprites = (UnityEngine.Sprite[])translator.GetObject(L, 6, typeof(UnityEngine.Sprite[])); - UnityEngine.Sprite[] _corners = (UnityEngine.Sprite[])translator.GetObject(L, 7, typeof(UnityEngine.Sprite[])); - - UnityEngine.U2D.SpriteShapeUtility.GenerateSpriteShape( _renderer, _shapeParams, _points, _metaData, _angleRange, _sprites, _corners ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_UICharInfoWrap.cs b/Assets/XLua/Gen/UnityEngine_UICharInfoWrap.cs deleted file mode 100644 index eb70926a0..000000000 --- a/Assets/XLua/Gen/UnityEngine_UICharInfoWrap.cs +++ /dev/null @@ -1,149 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineUICharInfoWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.UICharInfo); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 2, 2); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "cursorPos", _g_get_cursorPos); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "charWidth", _g_get_charWidth); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "cursorPos", _s_set_cursorPos); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "charWidth", _s_set_charWidth); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(UnityEngine.UICharInfo)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.UICharInfo constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_cursorPos(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UICharInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineVector2(L, gen_to_be_invoked.cursorPos); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_charWidth(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UICharInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.charWidth); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_cursorPos(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UICharInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Vector2 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.cursorPos = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_charWidth(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UICharInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.charWidth = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_UILineInfoWrap.cs b/Assets/XLua/Gen/UnityEngine_UILineInfoWrap.cs deleted file mode 100644 index 998899d94..000000000 --- a/Assets/XLua/Gen/UnityEngine_UILineInfoWrap.cs +++ /dev/null @@ -1,214 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineUILineInfoWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.UILineInfo); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 4, 4); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "startCharIdx", _g_get_startCharIdx); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "height", _g_get_height); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "topY", _g_get_topY); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "leading", _g_get_leading); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "startCharIdx", _s_set_startCharIdx); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "height", _s_set_height); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "topY", _s_set_topY); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "leading", _s_set_leading); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(UnityEngine.UILineInfo)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.UILineInfo constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_startCharIdx(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UILineInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.startCharIdx); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_height(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UILineInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.height); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_topY(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UILineInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.topY); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_leading(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UILineInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.leading); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_startCharIdx(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UILineInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.startCharIdx = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_height(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UILineInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.height = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_topY(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UILineInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.topY = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_leading(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UILineInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.leading = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_UISystemProfilerApiWrap.cs b/Assets/XLua/Gen/UnityEngine_UISystemProfilerApiWrap.cs deleted file mode 100644 index 86361ffff..000000000 --- a/Assets/XLua/Gen/UnityEngine_UISystemProfilerApiWrap.cs +++ /dev/null @@ -1,149 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineUISystemProfilerApiWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.UISystemProfilerApi); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 4, 0, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "BeginSample", _m_BeginSample_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "EndSample", _m_EndSample_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "AddMarker", _m_AddMarker_xlua_st_); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "UnityEngine.UISystemProfilerApi does not have a constructor!"); - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_BeginSample_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.UISystemProfilerApi.SampleType _type;translator.Get(L, 1, out _type); - - UnityEngine.UISystemProfilerApi.BeginSample( _type ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_EndSample_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.UISystemProfilerApi.SampleType _type;translator.Get(L, 1, out _type); - - UnityEngine.UISystemProfilerApi.EndSample( _type ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AddMarker_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - string _name = LuaAPI.lua_tostring(L, 1); - UnityEngine.Object _obj = (UnityEngine.Object)translator.GetObject(L, 2, typeof(UnityEngine.Object)); - - UnityEngine.UISystemProfilerApi.AddMarker( _name, _obj ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_UIVertexWrap.cs b/Assets/XLua/Gen/UnityEngine_UIVertexWrap.cs deleted file mode 100644 index a85dd7c47..000000000 --- a/Assets/XLua/Gen/UnityEngine_UIVertexWrap.cs +++ /dev/null @@ -1,382 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineUIVertexWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.UIVertex); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 8, 8); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "position", _g_get_position); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "normal", _g_get_normal); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "tangent", _g_get_tangent); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "color", _g_get_color); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "uv0", _g_get_uv0); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "uv1", _g_get_uv1); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "uv2", _g_get_uv2); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "uv3", _g_get_uv3); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "position", _s_set_position); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "normal", _s_set_normal); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "tangent", _s_set_tangent); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "color", _s_set_color); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "uv0", _s_set_uv0); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "uv1", _s_set_uv1); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "uv2", _s_set_uv2); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "uv3", _s_set_uv3); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 1, 1); - - - - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "simpleVert", _g_get_simpleVert); - - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "simpleVert", _s_set_simpleVert); - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(UnityEngine.UIVertex)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.UIVertex constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_position(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UIVertex gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.position); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_normal(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UIVertex gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.normal); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_tangent(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UIVertex gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineVector4(L, gen_to_be_invoked.tangent); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_color(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UIVertex gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.color); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_uv0(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UIVertex gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineVector4(L, gen_to_be_invoked.uv0); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_uv1(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UIVertex gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineVector4(L, gen_to_be_invoked.uv1); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_uv2(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UIVertex gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineVector4(L, gen_to_be_invoked.uv2); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_uv3(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UIVertex gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineVector4(L, gen_to_be_invoked.uv3); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_simpleVert(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, UnityEngine.UIVertex.simpleVert); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_position(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UIVertex gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Vector3 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.position = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_normal(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UIVertex gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Vector3 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.normal = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_tangent(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UIVertex gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Vector4 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.tangent = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_color(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UIVertex gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Color32 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.color = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_uv0(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UIVertex gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Vector4 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.uv0 = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_uv1(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UIVertex gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Vector4 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.uv1 = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_uv2(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UIVertex gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Vector4 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.uv2 = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_uv3(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UIVertex gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Vector4 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.uv3 = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_simpleVert(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - UnityEngine.UIVertex gen_value;translator.Get(L, 1, out gen_value); - UnityEngine.UIVertex.simpleVert = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_UI_AnimationTriggersWrap.cs b/Assets/XLua/Gen/UnityEngine_UI_AnimationTriggersWrap.cs deleted file mode 100644 index fc428d80a..000000000 --- a/Assets/XLua/Gen/UnityEngine_UI_AnimationTriggersWrap.cs +++ /dev/null @@ -1,239 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineUIAnimationTriggersWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.UI.AnimationTriggers); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 5, 5); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "normalTrigger", _g_get_normalTrigger); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "highlightedTrigger", _g_get_highlightedTrigger); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "pressedTrigger", _g_get_pressedTrigger); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "selectedTrigger", _g_get_selectedTrigger); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "disabledTrigger", _g_get_disabledTrigger); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "normalTrigger", _s_set_normalTrigger); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "highlightedTrigger", _s_set_highlightedTrigger); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "pressedTrigger", _s_set_pressedTrigger); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "selectedTrigger", _s_set_selectedTrigger); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "disabledTrigger", _s_set_disabledTrigger); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.UI.AnimationTriggers(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.UI.AnimationTriggers constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_normalTrigger(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.AnimationTriggers gen_to_be_invoked = (UnityEngine.UI.AnimationTriggers)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.normalTrigger); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_highlightedTrigger(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.AnimationTriggers gen_to_be_invoked = (UnityEngine.UI.AnimationTriggers)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.highlightedTrigger); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_pressedTrigger(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.AnimationTriggers gen_to_be_invoked = (UnityEngine.UI.AnimationTriggers)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.pressedTrigger); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_selectedTrigger(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.AnimationTriggers gen_to_be_invoked = (UnityEngine.UI.AnimationTriggers)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.selectedTrigger); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_disabledTrigger(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.AnimationTriggers gen_to_be_invoked = (UnityEngine.UI.AnimationTriggers)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.disabledTrigger); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_normalTrigger(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.AnimationTriggers gen_to_be_invoked = (UnityEngine.UI.AnimationTriggers)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.normalTrigger = LuaAPI.lua_tostring(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_highlightedTrigger(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.AnimationTriggers gen_to_be_invoked = (UnityEngine.UI.AnimationTriggers)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.highlightedTrigger = LuaAPI.lua_tostring(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_pressedTrigger(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.AnimationTriggers gen_to_be_invoked = (UnityEngine.UI.AnimationTriggers)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.pressedTrigger = LuaAPI.lua_tostring(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_selectedTrigger(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.AnimationTriggers gen_to_be_invoked = (UnityEngine.UI.AnimationTriggers)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.selectedTrigger = LuaAPI.lua_tostring(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_disabledTrigger(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.AnimationTriggers gen_to_be_invoked = (UnityEngine.UI.AnimationTriggers)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.disabledTrigger = LuaAPI.lua_tostring(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_UI_AspectRatioFitterWrap.cs b/Assets/XLua/Gen/UnityEngine_UI_AspectRatioFitterWrap.cs deleted file mode 100644 index 60110a61b..000000000 --- a/Assets/XLua/Gen/UnityEngine_UI_AspectRatioFitterWrap.cs +++ /dev/null @@ -1,244 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineUIAspectRatioFitterWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.UI.AspectRatioFitter); - Utils.BeginObjectRegister(type, L, translator, 0, 4, 2, 2); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetLayoutHorizontal", _m_SetLayoutHorizontal); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetLayoutVertical", _m_SetLayoutVertical); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsComponentValidOnObject", _m_IsComponentValidOnObject); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsAspectModeValid", _m_IsAspectModeValid); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "aspectMode", _g_get_aspectMode); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "aspectRatio", _g_get_aspectRatio); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "aspectMode", _s_set_aspectMode); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "aspectRatio", _s_set_aspectRatio); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "UnityEngine.UI.AspectRatioFitter does not have a constructor!"); - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetLayoutHorizontal(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.AspectRatioFitter gen_to_be_invoked = (UnityEngine.UI.AspectRatioFitter)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.SetLayoutHorizontal( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetLayoutVertical(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.AspectRatioFitter gen_to_be_invoked = (UnityEngine.UI.AspectRatioFitter)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.SetLayoutVertical( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_IsComponentValidOnObject(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.AspectRatioFitter gen_to_be_invoked = (UnityEngine.UI.AspectRatioFitter)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.IsComponentValidOnObject( ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_IsAspectModeValid(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.AspectRatioFitter gen_to_be_invoked = (UnityEngine.UI.AspectRatioFitter)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.IsAspectModeValid( ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_aspectMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.AspectRatioFitter gen_to_be_invoked = (UnityEngine.UI.AspectRatioFitter)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.aspectMode); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_aspectRatio(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.AspectRatioFitter gen_to_be_invoked = (UnityEngine.UI.AspectRatioFitter)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.aspectRatio); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_aspectMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.AspectRatioFitter gen_to_be_invoked = (UnityEngine.UI.AspectRatioFitter)translator.FastGetCSObj(L, 1); - UnityEngine.UI.AspectRatioFitter.AspectMode gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.aspectMode = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_aspectRatio(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.AspectRatioFitter gen_to_be_invoked = (UnityEngine.UI.AspectRatioFitter)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.aspectRatio = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_UI_BaseMeshEffectWrap.cs b/Assets/XLua/Gen/UnityEngine_UI_BaseMeshEffectWrap.cs deleted file mode 100644 index 85543e5c1..000000000 --- a/Assets/XLua/Gen/UnityEngine_UI_BaseMeshEffectWrap.cs +++ /dev/null @@ -1,110 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineUIBaseMeshEffectWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.UI.BaseMeshEffect); - Utils.BeginObjectRegister(type, L, translator, 0, 1, 0, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ModifyMesh", _m_ModifyMesh); - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "UnityEngine.UI.BaseMeshEffect does not have a constructor!"); - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ModifyMesh(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.BaseMeshEffect gen_to_be_invoked = (UnityEngine.UI.BaseMeshEffect)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.Mesh _mesh = (UnityEngine.Mesh)translator.GetObject(L, 2, typeof(UnityEngine.Mesh)); - - gen_to_be_invoked.ModifyMesh( _mesh ); - - - - return 0; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.UI.VertexHelper _vh = (UnityEngine.UI.VertexHelper)translator.GetObject(L, 2, typeof(UnityEngine.UI.VertexHelper)); - - gen_to_be_invoked.ModifyMesh( _vh ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.UI.BaseMeshEffect.ModifyMesh!"); - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_UI_CanvasUpdateRegistryWrap.cs b/Assets/XLua/Gen/UnityEngine_UI_CanvasUpdateRegistryWrap.cs deleted file mode 100644 index 1bde51fad..000000000 --- a/Assets/XLua/Gen/UnityEngine_UI_CanvasUpdateRegistryWrap.cs +++ /dev/null @@ -1,267 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineUICanvasUpdateRegistryWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.UI.CanvasUpdateRegistry); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 8, 1, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "RegisterCanvasElementForLayoutRebuild", _m_RegisterCanvasElementForLayoutRebuild_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "TryRegisterCanvasElementForLayoutRebuild", _m_TryRegisterCanvasElementForLayoutRebuild_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "RegisterCanvasElementForGraphicRebuild", _m_RegisterCanvasElementForGraphicRebuild_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "TryRegisterCanvasElementForGraphicRebuild", _m_TryRegisterCanvasElementForGraphicRebuild_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "UnRegisterCanvasElementForRebuild", _m_UnRegisterCanvasElementForRebuild_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "IsRebuildingLayout", _m_IsRebuildingLayout_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "IsRebuildingGraphics", _m_IsRebuildingGraphics_xlua_st_); - - - - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "instance", _g_get_instance); - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "UnityEngine.UI.CanvasUpdateRegistry does not have a constructor!"); - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RegisterCanvasElementForLayoutRebuild_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.UI.ICanvasElement _element = (UnityEngine.UI.ICanvasElement)translator.GetObject(L, 1, typeof(UnityEngine.UI.ICanvasElement)); - - UnityEngine.UI.CanvasUpdateRegistry.RegisterCanvasElementForLayoutRebuild( _element ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_TryRegisterCanvasElementForLayoutRebuild_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.UI.ICanvasElement _element = (UnityEngine.UI.ICanvasElement)translator.GetObject(L, 1, typeof(UnityEngine.UI.ICanvasElement)); - - var gen_ret = UnityEngine.UI.CanvasUpdateRegistry.TryRegisterCanvasElementForLayoutRebuild( _element ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RegisterCanvasElementForGraphicRebuild_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.UI.ICanvasElement _element = (UnityEngine.UI.ICanvasElement)translator.GetObject(L, 1, typeof(UnityEngine.UI.ICanvasElement)); - - UnityEngine.UI.CanvasUpdateRegistry.RegisterCanvasElementForGraphicRebuild( _element ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_TryRegisterCanvasElementForGraphicRebuild_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.UI.ICanvasElement _element = (UnityEngine.UI.ICanvasElement)translator.GetObject(L, 1, typeof(UnityEngine.UI.ICanvasElement)); - - var gen_ret = UnityEngine.UI.CanvasUpdateRegistry.TryRegisterCanvasElementForGraphicRebuild( _element ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_UnRegisterCanvasElementForRebuild_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.UI.ICanvasElement _element = (UnityEngine.UI.ICanvasElement)translator.GetObject(L, 1, typeof(UnityEngine.UI.ICanvasElement)); - - UnityEngine.UI.CanvasUpdateRegistry.UnRegisterCanvasElementForRebuild( _element ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_IsRebuildingLayout_xlua_st_(RealStatePtr L) - { - try { - - - - - { - - var gen_ret = UnityEngine.UI.CanvasUpdateRegistry.IsRebuildingLayout( ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_IsRebuildingGraphics_xlua_st_(RealStatePtr L) - { - try { - - - - - { - - var gen_ret = UnityEngine.UI.CanvasUpdateRegistry.IsRebuildingGraphics( ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_instance(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, UnityEngine.UI.CanvasUpdateRegistry.instance); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_UI_ClipperRegistryWrap.cs b/Assets/XLua/Gen/UnityEngine_UI_ClipperRegistryWrap.cs deleted file mode 100644 index aad3742dc..000000000 --- a/Assets/XLua/Gen/UnityEngine_UI_ClipperRegistryWrap.cs +++ /dev/null @@ -1,162 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineUIClipperRegistryWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.UI.ClipperRegistry); - Utils.BeginObjectRegister(type, L, translator, 0, 1, 0, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Cull", _m_Cull); - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 3, 1, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Register", _m_Register_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Unregister", _m_Unregister_xlua_st_); - - - - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "instance", _g_get_instance); - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "UnityEngine.UI.ClipperRegistry does not have a constructor!"); - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Cull(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.ClipperRegistry gen_to_be_invoked = (UnityEngine.UI.ClipperRegistry)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Cull( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Register_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.UI.IClipper _c = (UnityEngine.UI.IClipper)translator.GetObject(L, 1, typeof(UnityEngine.UI.IClipper)); - - UnityEngine.UI.ClipperRegistry.Register( _c ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Unregister_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.UI.IClipper _c = (UnityEngine.UI.IClipper)translator.GetObject(L, 1, typeof(UnityEngine.UI.IClipper)); - - UnityEngine.UI.ClipperRegistry.Unregister( _c ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_instance(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, UnityEngine.UI.ClipperRegistry.instance); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_UI_ClippingWrap.cs b/Assets/XLua/Gen/UnityEngine_UI_ClippingWrap.cs deleted file mode 100644 index 68bb471f2..000000000 --- a/Assets/XLua/Gen/UnityEngine_UI_ClippingWrap.cs +++ /dev/null @@ -1,98 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineUIClippingWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.UI.Clipping); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 2, 0, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "FindCullAndClipWorldRect", _m_FindCullAndClipWorldRect_xlua_st_); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "UnityEngine.UI.Clipping does not have a constructor!"); - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_FindCullAndClipWorldRect_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - System.Collections.Generic.List _rectMaskParents = (System.Collections.Generic.List)translator.GetObject(L, 1, typeof(System.Collections.Generic.List)); - bool _validRect; - - var gen_ret = UnityEngine.UI.Clipping.FindCullAndClipWorldRect( _rectMaskParents, out _validRect ); - translator.Push(L, gen_ret); - LuaAPI.lua_pushboolean(L, _validRect); - - - - - return 2; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_UI_ColorBlockWrap.cs b/Assets/XLua/Gen/UnityEngine_UI_ColorBlockWrap.cs deleted file mode 100644 index 071d54e89..000000000 --- a/Assets/XLua/Gen/UnityEngine_UI_ColorBlockWrap.cs +++ /dev/null @@ -1,453 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineUIColorBlockWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.UI.ColorBlock); - Utils.BeginObjectRegister(type, L, translator, 1, 2, 7, 7); - Utils.RegisterFunc(L, Utils.OBJ_META_IDX, "__eq", __EqMeta); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Equals", _m_Equals); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetHashCode", _m_GetHashCode); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "normalColor", _g_get_normalColor); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "highlightedColor", _g_get_highlightedColor); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "pressedColor", _g_get_pressedColor); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "selectedColor", _g_get_selectedColor); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "disabledColor", _g_get_disabledColor); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "colorMultiplier", _g_get_colorMultiplier); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "fadeDuration", _g_get_fadeDuration); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "normalColor", _s_set_normalColor); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "highlightedColor", _s_set_highlightedColor); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "pressedColor", _s_set_pressedColor); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "selectedColor", _s_set_selectedColor); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "disabledColor", _s_set_disabledColor); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "colorMultiplier", _s_set_colorMultiplier); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "fadeDuration", _s_set_fadeDuration); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 1, 1); - - - - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "defaultColorBlock", _g_get_defaultColorBlock); - - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "defaultColorBlock", _s_set_defaultColorBlock); - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(UnityEngine.UI.ColorBlock)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.UI.ColorBlock constructor!"); - - } - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __EqMeta(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - if (translator.Assignable(L, 1) && translator.Assignable(L, 2)) - { - UnityEngine.UI.ColorBlock leftside;translator.Get(L, 1, out leftside); - UnityEngine.UI.ColorBlock rightside;translator.Get(L, 2, out rightside); - - LuaAPI.lua_pushboolean(L, leftside == rightside); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to right hand of == operator, need UnityEngine.UI.ColorBlock!"); - - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Equals(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.ColorBlock gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - object _obj = translator.GetObject(L, 2, typeof(object)); - - var gen_ret = gen_to_be_invoked.Equals( _obj ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.UI.ColorBlock _other;translator.Get(L, 2, out _other); - - var gen_ret = gen_to_be_invoked.Equals( _other ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.UI.ColorBlock.Equals!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetHashCode(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.ColorBlock gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - - var gen_ret = gen_to_be_invoked.GetHashCode( ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_normalColor(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.ColorBlock gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineColor(L, gen_to_be_invoked.normalColor); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_highlightedColor(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.ColorBlock gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineColor(L, gen_to_be_invoked.highlightedColor); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_pressedColor(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.ColorBlock gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineColor(L, gen_to_be_invoked.pressedColor); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_selectedColor(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.ColorBlock gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineColor(L, gen_to_be_invoked.selectedColor); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_disabledColor(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.ColorBlock gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineColor(L, gen_to_be_invoked.disabledColor); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_colorMultiplier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.ColorBlock gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.colorMultiplier); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_fadeDuration(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.ColorBlock gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.fadeDuration); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_defaultColorBlock(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, UnityEngine.UI.ColorBlock.defaultColorBlock); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_normalColor(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.ColorBlock gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Color gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.normalColor = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_highlightedColor(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.ColorBlock gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Color gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.highlightedColor = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_pressedColor(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.ColorBlock gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Color gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.pressedColor = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_selectedColor(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.ColorBlock gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Color gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.selectedColor = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_disabledColor(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.ColorBlock gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Color gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.disabledColor = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_colorMultiplier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.ColorBlock gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.colorMultiplier = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_fadeDuration(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.ColorBlock gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.fadeDuration = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_defaultColorBlock(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - UnityEngine.UI.ColorBlock gen_value;translator.Get(L, 1, out gen_value); - UnityEngine.UI.ColorBlock.defaultColorBlock = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_UI_ContentSizeFitterWrap.cs b/Assets/XLua/Gen/UnityEngine_UI_ContentSizeFitterWrap.cs deleted file mode 100644 index 9ccb67518..000000000 --- a/Assets/XLua/Gen/UnityEngine_UI_ContentSizeFitterWrap.cs +++ /dev/null @@ -1,187 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineUIContentSizeFitterWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.UI.ContentSizeFitter); - Utils.BeginObjectRegister(type, L, translator, 0, 2, 2, 2); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetLayoutHorizontal", _m_SetLayoutHorizontal); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetLayoutVertical", _m_SetLayoutVertical); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "horizontalFit", _g_get_horizontalFit); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "verticalFit", _g_get_verticalFit); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "horizontalFit", _s_set_horizontalFit); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "verticalFit", _s_set_verticalFit); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "UnityEngine.UI.ContentSizeFitter does not have a constructor!"); - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetLayoutHorizontal(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.ContentSizeFitter gen_to_be_invoked = (UnityEngine.UI.ContentSizeFitter)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.SetLayoutHorizontal( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetLayoutVertical(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.ContentSizeFitter gen_to_be_invoked = (UnityEngine.UI.ContentSizeFitter)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.SetLayoutVertical( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_horizontalFit(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.ContentSizeFitter gen_to_be_invoked = (UnityEngine.UI.ContentSizeFitter)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.horizontalFit); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_verticalFit(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.ContentSizeFitter gen_to_be_invoked = (UnityEngine.UI.ContentSizeFitter)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.verticalFit); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_horizontalFit(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.ContentSizeFitter gen_to_be_invoked = (UnityEngine.UI.ContentSizeFitter)translator.FastGetCSObj(L, 1); - UnityEngine.UI.ContentSizeFitter.FitMode gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.horizontalFit = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_verticalFit(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.ContentSizeFitter gen_to_be_invoked = (UnityEngine.UI.ContentSizeFitter)translator.FastGetCSObj(L, 1); - UnityEngine.UI.ContentSizeFitter.FitMode gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.verticalFit = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_UI_FontDataWrap.cs b/Assets/XLua/Gen/UnityEngine_UI_FontDataWrap.cs deleted file mode 100644 index 808b63484..000000000 --- a/Assets/XLua/Gen/UnityEngine_UI_FontDataWrap.cs +++ /dev/null @@ -1,473 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineUIFontDataWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.UI.FontData); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 12, 12); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "font", _g_get_font); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "fontSize", _g_get_fontSize); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "fontStyle", _g_get_fontStyle); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "bestFit", _g_get_bestFit); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "minSize", _g_get_minSize); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "maxSize", _g_get_maxSize); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "alignment", _g_get_alignment); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "alignByGeometry", _g_get_alignByGeometry); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "richText", _g_get_richText); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "horizontalOverflow", _g_get_horizontalOverflow); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "verticalOverflow", _g_get_verticalOverflow); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "lineSpacing", _g_get_lineSpacing); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "font", _s_set_font); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "fontSize", _s_set_fontSize); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "fontStyle", _s_set_fontStyle); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "bestFit", _s_set_bestFit); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "minSize", _s_set_minSize); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "maxSize", _s_set_maxSize); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "alignment", _s_set_alignment); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "alignByGeometry", _s_set_alignByGeometry); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "richText", _s_set_richText); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "horizontalOverflow", _s_set_horizontalOverflow); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "verticalOverflow", _s_set_verticalOverflow); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "lineSpacing", _s_set_lineSpacing); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 1, 0); - - - - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "defaultFontData", _g_get_defaultFontData); - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.UI.FontData(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.UI.FontData constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_defaultFontData(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, UnityEngine.UI.FontData.defaultFontData); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_font(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.FontData gen_to_be_invoked = (UnityEngine.UI.FontData)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.font); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_fontSize(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.FontData gen_to_be_invoked = (UnityEngine.UI.FontData)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.fontSize); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_fontStyle(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.FontData gen_to_be_invoked = (UnityEngine.UI.FontData)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.fontStyle); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_bestFit(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.FontData gen_to_be_invoked = (UnityEngine.UI.FontData)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.bestFit); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_minSize(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.FontData gen_to_be_invoked = (UnityEngine.UI.FontData)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.minSize); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_maxSize(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.FontData gen_to_be_invoked = (UnityEngine.UI.FontData)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.maxSize); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_alignment(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.FontData gen_to_be_invoked = (UnityEngine.UI.FontData)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineTextAnchor(L, gen_to_be_invoked.alignment); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_alignByGeometry(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.FontData gen_to_be_invoked = (UnityEngine.UI.FontData)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.alignByGeometry); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_richText(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.FontData gen_to_be_invoked = (UnityEngine.UI.FontData)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.richText); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_horizontalOverflow(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.FontData gen_to_be_invoked = (UnityEngine.UI.FontData)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.horizontalOverflow); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_verticalOverflow(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.FontData gen_to_be_invoked = (UnityEngine.UI.FontData)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.verticalOverflow); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_lineSpacing(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.FontData gen_to_be_invoked = (UnityEngine.UI.FontData)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.lineSpacing); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_font(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.FontData gen_to_be_invoked = (UnityEngine.UI.FontData)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.font = (UnityEngine.Font)translator.GetObject(L, 2, typeof(UnityEngine.Font)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_fontSize(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.FontData gen_to_be_invoked = (UnityEngine.UI.FontData)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.fontSize = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_fontStyle(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.FontData gen_to_be_invoked = (UnityEngine.UI.FontData)translator.FastGetCSObj(L, 1); - UnityEngine.FontStyle gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.fontStyle = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_bestFit(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.FontData gen_to_be_invoked = (UnityEngine.UI.FontData)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.bestFit = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_minSize(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.FontData gen_to_be_invoked = (UnityEngine.UI.FontData)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.minSize = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_maxSize(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.FontData gen_to_be_invoked = (UnityEngine.UI.FontData)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.maxSize = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_alignment(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.FontData gen_to_be_invoked = (UnityEngine.UI.FontData)translator.FastGetCSObj(L, 1); - UnityEngine.TextAnchor gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.alignment = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_alignByGeometry(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.FontData gen_to_be_invoked = (UnityEngine.UI.FontData)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.alignByGeometry = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_richText(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.FontData gen_to_be_invoked = (UnityEngine.UI.FontData)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.richText = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_horizontalOverflow(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.FontData gen_to_be_invoked = (UnityEngine.UI.FontData)translator.FastGetCSObj(L, 1); - UnityEngine.HorizontalWrapMode gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.horizontalOverflow = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_verticalOverflow(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.FontData gen_to_be_invoked = (UnityEngine.UI.FontData)translator.FastGetCSObj(L, 1); - UnityEngine.VerticalWrapMode gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.verticalOverflow = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_lineSpacing(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.FontData gen_to_be_invoked = (UnityEngine.UI.FontData)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.lineSpacing = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_UI_FontUpdateTrackerWrap.cs b/Assets/XLua/Gen/UnityEngine_UI_FontUpdateTrackerWrap.cs deleted file mode 100644 index f3eaf1ebe..000000000 --- a/Assets/XLua/Gen/UnityEngine_UI_FontUpdateTrackerWrap.cs +++ /dev/null @@ -1,121 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineUIFontUpdateTrackerWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.UI.FontUpdateTracker); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 3, 0, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "TrackText", _m_TrackText_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "UntrackText", _m_UntrackText_xlua_st_); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "UnityEngine.UI.FontUpdateTracker does not have a constructor!"); - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_TrackText_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.UI.Text _t = (UnityEngine.UI.Text)translator.GetObject(L, 1, typeof(UnityEngine.UI.Text)); - - UnityEngine.UI.FontUpdateTracker.TrackText( _t ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_UntrackText_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.UI.Text _t = (UnityEngine.UI.Text)translator.GetObject(L, 1, typeof(UnityEngine.UI.Text)); - - UnityEngine.UI.FontUpdateTracker.UntrackText( _t ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_UI_GraphicRegistryWrap.cs b/Assets/XLua/Gen/UnityEngine_UI_GraphicRegistryWrap.cs deleted file mode 100644 index e6ee2ac10..000000000 --- a/Assets/XLua/Gen/UnityEngine_UI_GraphicRegistryWrap.cs +++ /dev/null @@ -1,248 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineUIGraphicRegistryWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.UI.GraphicRegistry); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 7, 1, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "RegisterGraphicForCanvas", _m_RegisterGraphicForCanvas_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "RegisterRaycastGraphicForCanvas", _m_RegisterRaycastGraphicForCanvas_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "UnregisterGraphicForCanvas", _m_UnregisterGraphicForCanvas_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "UnregisterRaycastGraphicForCanvas", _m_UnregisterRaycastGraphicForCanvas_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetGraphicsForCanvas", _m_GetGraphicsForCanvas_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetRaycastableGraphicsForCanvas", _m_GetRaycastableGraphicsForCanvas_xlua_st_); - - - - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "instance", _g_get_instance); - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "UnityEngine.UI.GraphicRegistry does not have a constructor!"); - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RegisterGraphicForCanvas_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Canvas _c = (UnityEngine.Canvas)translator.GetObject(L, 1, typeof(UnityEngine.Canvas)); - UnityEngine.UI.Graphic _graphic = (UnityEngine.UI.Graphic)translator.GetObject(L, 2, typeof(UnityEngine.UI.Graphic)); - - UnityEngine.UI.GraphicRegistry.RegisterGraphicForCanvas( _c, _graphic ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RegisterRaycastGraphicForCanvas_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Canvas _c = (UnityEngine.Canvas)translator.GetObject(L, 1, typeof(UnityEngine.Canvas)); - UnityEngine.UI.Graphic _graphic = (UnityEngine.UI.Graphic)translator.GetObject(L, 2, typeof(UnityEngine.UI.Graphic)); - - UnityEngine.UI.GraphicRegistry.RegisterRaycastGraphicForCanvas( _c, _graphic ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_UnregisterGraphicForCanvas_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Canvas _c = (UnityEngine.Canvas)translator.GetObject(L, 1, typeof(UnityEngine.Canvas)); - UnityEngine.UI.Graphic _graphic = (UnityEngine.UI.Graphic)translator.GetObject(L, 2, typeof(UnityEngine.UI.Graphic)); - - UnityEngine.UI.GraphicRegistry.UnregisterGraphicForCanvas( _c, _graphic ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_UnregisterRaycastGraphicForCanvas_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Canvas _c = (UnityEngine.Canvas)translator.GetObject(L, 1, typeof(UnityEngine.Canvas)); - UnityEngine.UI.Graphic _graphic = (UnityEngine.UI.Graphic)translator.GetObject(L, 2, typeof(UnityEngine.UI.Graphic)); - - UnityEngine.UI.GraphicRegistry.UnregisterRaycastGraphicForCanvas( _c, _graphic ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetGraphicsForCanvas_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Canvas _canvas = (UnityEngine.Canvas)translator.GetObject(L, 1, typeof(UnityEngine.Canvas)); - - var gen_ret = UnityEngine.UI.GraphicRegistry.GetGraphicsForCanvas( _canvas ); - translator.PushAny(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetRaycastableGraphicsForCanvas_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Canvas _canvas = (UnityEngine.Canvas)translator.GetObject(L, 1, typeof(UnityEngine.Canvas)); - - var gen_ret = UnityEngine.UI.GraphicRegistry.GetRaycastableGraphicsForCanvas( _canvas ); - translator.PushAny(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_instance(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, UnityEngine.UI.GraphicRegistry.instance); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_UI_HorizontalLayoutGroupWrap.cs b/Assets/XLua/Gen/UnityEngine_UI_HorizontalLayoutGroupWrap.cs deleted file mode 100644 index 326c0b07c..000000000 --- a/Assets/XLua/Gen/UnityEngine_UI_HorizontalLayoutGroupWrap.cs +++ /dev/null @@ -1,179 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineUIHorizontalLayoutGroupWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.UI.HorizontalLayoutGroup); - Utils.BeginObjectRegister(type, L, translator, 0, 4, 0, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "CalculateLayoutInputHorizontal", _m_CalculateLayoutInputHorizontal); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "CalculateLayoutInputVertical", _m_CalculateLayoutInputVertical); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetLayoutHorizontal", _m_SetLayoutHorizontal); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetLayoutVertical", _m_SetLayoutVertical); - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "UnityEngine.UI.HorizontalLayoutGroup does not have a constructor!"); - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CalculateLayoutInputHorizontal(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.HorizontalLayoutGroup gen_to_be_invoked = (UnityEngine.UI.HorizontalLayoutGroup)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.CalculateLayoutInputHorizontal( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CalculateLayoutInputVertical(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.HorizontalLayoutGroup gen_to_be_invoked = (UnityEngine.UI.HorizontalLayoutGroup)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.CalculateLayoutInputVertical( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetLayoutHorizontal(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.HorizontalLayoutGroup gen_to_be_invoked = (UnityEngine.UI.HorizontalLayoutGroup)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.SetLayoutHorizontal( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetLayoutVertical(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.HorizontalLayoutGroup gen_to_be_invoked = (UnityEngine.UI.HorizontalLayoutGroup)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.SetLayoutVertical( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_UI_HorizontalOrVerticalLayoutGroupWrap.cs b/Assets/XLua/Gen/UnityEngine_UI_HorizontalOrVerticalLayoutGroupWrap.cs deleted file mode 100644 index b39654650..000000000 --- a/Assets/XLua/Gen/UnityEngine_UI_HorizontalOrVerticalLayoutGroupWrap.cs +++ /dev/null @@ -1,315 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineUIHorizontalOrVerticalLayoutGroupWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.UI.HorizontalOrVerticalLayoutGroup); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 8, 8); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "spacing", _g_get_spacing); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "childForceExpandWidth", _g_get_childForceExpandWidth); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "childForceExpandHeight", _g_get_childForceExpandHeight); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "childControlWidth", _g_get_childControlWidth); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "childControlHeight", _g_get_childControlHeight); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "childScaleWidth", _g_get_childScaleWidth); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "childScaleHeight", _g_get_childScaleHeight); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "reverseArrangement", _g_get_reverseArrangement); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "spacing", _s_set_spacing); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "childForceExpandWidth", _s_set_childForceExpandWidth); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "childForceExpandHeight", _s_set_childForceExpandHeight); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "childControlWidth", _s_set_childControlWidth); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "childControlHeight", _s_set_childControlHeight); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "childScaleWidth", _s_set_childScaleWidth); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "childScaleHeight", _s_set_childScaleHeight); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "reverseArrangement", _s_set_reverseArrangement); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "UnityEngine.UI.HorizontalOrVerticalLayoutGroup does not have a constructor!"); - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_spacing(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.HorizontalOrVerticalLayoutGroup gen_to_be_invoked = (UnityEngine.UI.HorizontalOrVerticalLayoutGroup)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.spacing); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_childForceExpandWidth(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.HorizontalOrVerticalLayoutGroup gen_to_be_invoked = (UnityEngine.UI.HorizontalOrVerticalLayoutGroup)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.childForceExpandWidth); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_childForceExpandHeight(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.HorizontalOrVerticalLayoutGroup gen_to_be_invoked = (UnityEngine.UI.HorizontalOrVerticalLayoutGroup)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.childForceExpandHeight); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_childControlWidth(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.HorizontalOrVerticalLayoutGroup gen_to_be_invoked = (UnityEngine.UI.HorizontalOrVerticalLayoutGroup)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.childControlWidth); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_childControlHeight(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.HorizontalOrVerticalLayoutGroup gen_to_be_invoked = (UnityEngine.UI.HorizontalOrVerticalLayoutGroup)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.childControlHeight); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_childScaleWidth(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.HorizontalOrVerticalLayoutGroup gen_to_be_invoked = (UnityEngine.UI.HorizontalOrVerticalLayoutGroup)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.childScaleWidth); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_childScaleHeight(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.HorizontalOrVerticalLayoutGroup gen_to_be_invoked = (UnityEngine.UI.HorizontalOrVerticalLayoutGroup)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.childScaleHeight); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_reverseArrangement(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.HorizontalOrVerticalLayoutGroup gen_to_be_invoked = (UnityEngine.UI.HorizontalOrVerticalLayoutGroup)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.reverseArrangement); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_spacing(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.HorizontalOrVerticalLayoutGroup gen_to_be_invoked = (UnityEngine.UI.HorizontalOrVerticalLayoutGroup)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.spacing = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_childForceExpandWidth(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.HorizontalOrVerticalLayoutGroup gen_to_be_invoked = (UnityEngine.UI.HorizontalOrVerticalLayoutGroup)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.childForceExpandWidth = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_childForceExpandHeight(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.HorizontalOrVerticalLayoutGroup gen_to_be_invoked = (UnityEngine.UI.HorizontalOrVerticalLayoutGroup)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.childForceExpandHeight = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_childControlWidth(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.HorizontalOrVerticalLayoutGroup gen_to_be_invoked = (UnityEngine.UI.HorizontalOrVerticalLayoutGroup)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.childControlWidth = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_childControlHeight(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.HorizontalOrVerticalLayoutGroup gen_to_be_invoked = (UnityEngine.UI.HorizontalOrVerticalLayoutGroup)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.childControlHeight = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_childScaleWidth(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.HorizontalOrVerticalLayoutGroup gen_to_be_invoked = (UnityEngine.UI.HorizontalOrVerticalLayoutGroup)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.childScaleWidth = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_childScaleHeight(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.HorizontalOrVerticalLayoutGroup gen_to_be_invoked = (UnityEngine.UI.HorizontalOrVerticalLayoutGroup)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.childScaleHeight = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_reverseArrangement(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.HorizontalOrVerticalLayoutGroup gen_to_be_invoked = (UnityEngine.UI.HorizontalOrVerticalLayoutGroup)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.reverseArrangement = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_UI_LayoutRebuilderWrap.cs b/Assets/XLua/Gen/UnityEngine_UI_LayoutRebuilderWrap.cs deleted file mode 100644 index c6924a0c0..000000000 --- a/Assets/XLua/Gen/UnityEngine_UI_LayoutRebuilderWrap.cs +++ /dev/null @@ -1,355 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineUILayoutRebuilderWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.UI.LayoutRebuilder); - Utils.BeginObjectRegister(type, L, translator, 0, 7, 1, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsDestroyed", _m_IsDestroyed); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Rebuild", _m_Rebuild); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "LayoutComplete", _m_LayoutComplete); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GraphicUpdateComplete", _m_GraphicUpdateComplete); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetHashCode", _m_GetHashCode); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Equals", _m_Equals); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ToString", _m_ToString); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "transform", _g_get_transform); - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 3, 0, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "ForceRebuildLayoutImmediate", _m_ForceRebuildLayoutImmediate_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "MarkLayoutForRebuild", _m_MarkLayoutForRebuild_xlua_st_); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.UI.LayoutRebuilder(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.UI.LayoutRebuilder constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_IsDestroyed(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.LayoutRebuilder gen_to_be_invoked = (UnityEngine.UI.LayoutRebuilder)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.IsDestroyed( ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ForceRebuildLayoutImmediate_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.RectTransform _layoutRoot = (UnityEngine.RectTransform)translator.GetObject(L, 1, typeof(UnityEngine.RectTransform)); - - UnityEngine.UI.LayoutRebuilder.ForceRebuildLayoutImmediate( _layoutRoot ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Rebuild(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.LayoutRebuilder gen_to_be_invoked = (UnityEngine.UI.LayoutRebuilder)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.UI.CanvasUpdate _executing;translator.Get(L, 2, out _executing); - - gen_to_be_invoked.Rebuild( _executing ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_MarkLayoutForRebuild_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.RectTransform _rect = (UnityEngine.RectTransform)translator.GetObject(L, 1, typeof(UnityEngine.RectTransform)); - - UnityEngine.UI.LayoutRebuilder.MarkLayoutForRebuild( _rect ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_LayoutComplete(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.LayoutRebuilder gen_to_be_invoked = (UnityEngine.UI.LayoutRebuilder)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.LayoutComplete( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GraphicUpdateComplete(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.LayoutRebuilder gen_to_be_invoked = (UnityEngine.UI.LayoutRebuilder)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.GraphicUpdateComplete( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetHashCode(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.LayoutRebuilder gen_to_be_invoked = (UnityEngine.UI.LayoutRebuilder)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.GetHashCode( ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Equals(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.LayoutRebuilder gen_to_be_invoked = (UnityEngine.UI.LayoutRebuilder)translator.FastGetCSObj(L, 1); - - - - { - object _obj = translator.GetObject(L, 2, typeof(object)); - - var gen_ret = gen_to_be_invoked.Equals( _obj ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ToString(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.LayoutRebuilder gen_to_be_invoked = (UnityEngine.UI.LayoutRebuilder)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.ToString( ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_transform(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.LayoutRebuilder gen_to_be_invoked = (UnityEngine.UI.LayoutRebuilder)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.transform); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_UI_LayoutUtilityWrap.cs b/Assets/XLua/Gen/UnityEngine_UI_LayoutUtilityWrap.cs deleted file mode 100644 index f4dd8eca2..000000000 --- a/Assets/XLua/Gen/UnityEngine_UI_LayoutUtilityWrap.cs +++ /dev/null @@ -1,372 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineUILayoutUtilityWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.UI.LayoutUtility); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 11, 0, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetMinSize", _m_GetMinSize_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetPreferredSize", _m_GetPreferredSize_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetFlexibleSize", _m_GetFlexibleSize_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetMinWidth", _m_GetMinWidth_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetPreferredWidth", _m_GetPreferredWidth_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetFlexibleWidth", _m_GetFlexibleWidth_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetMinHeight", _m_GetMinHeight_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetPreferredHeight", _m_GetPreferredHeight_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetFlexibleHeight", _m_GetFlexibleHeight_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetLayoutProperty", _m_GetLayoutProperty_xlua_st_); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "UnityEngine.UI.LayoutUtility does not have a constructor!"); - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetMinSize_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.RectTransform _rect = (UnityEngine.RectTransform)translator.GetObject(L, 1, typeof(UnityEngine.RectTransform)); - int _axis = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = UnityEngine.UI.LayoutUtility.GetMinSize( _rect, _axis ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetPreferredSize_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.RectTransform _rect = (UnityEngine.RectTransform)translator.GetObject(L, 1, typeof(UnityEngine.RectTransform)); - int _axis = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = UnityEngine.UI.LayoutUtility.GetPreferredSize( _rect, _axis ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetFlexibleSize_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.RectTransform _rect = (UnityEngine.RectTransform)translator.GetObject(L, 1, typeof(UnityEngine.RectTransform)); - int _axis = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = UnityEngine.UI.LayoutUtility.GetFlexibleSize( _rect, _axis ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetMinWidth_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.RectTransform _rect = (UnityEngine.RectTransform)translator.GetObject(L, 1, typeof(UnityEngine.RectTransform)); - - var gen_ret = UnityEngine.UI.LayoutUtility.GetMinWidth( _rect ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetPreferredWidth_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.RectTransform _rect = (UnityEngine.RectTransform)translator.GetObject(L, 1, typeof(UnityEngine.RectTransform)); - - var gen_ret = UnityEngine.UI.LayoutUtility.GetPreferredWidth( _rect ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetFlexibleWidth_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.RectTransform _rect = (UnityEngine.RectTransform)translator.GetObject(L, 1, typeof(UnityEngine.RectTransform)); - - var gen_ret = UnityEngine.UI.LayoutUtility.GetFlexibleWidth( _rect ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetMinHeight_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.RectTransform _rect = (UnityEngine.RectTransform)translator.GetObject(L, 1, typeof(UnityEngine.RectTransform)); - - var gen_ret = UnityEngine.UI.LayoutUtility.GetMinHeight( _rect ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetPreferredHeight_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.RectTransform _rect = (UnityEngine.RectTransform)translator.GetObject(L, 1, typeof(UnityEngine.RectTransform)); - - var gen_ret = UnityEngine.UI.LayoutUtility.GetPreferredHeight( _rect ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetFlexibleHeight_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.RectTransform _rect = (UnityEngine.RectTransform)translator.GetObject(L, 1, typeof(UnityEngine.RectTransform)); - - var gen_ret = UnityEngine.UI.LayoutUtility.GetFlexibleHeight( _rect ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetLayoutProperty_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& translator.Assignable(L, 1)&& translator.Assignable>(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - UnityEngine.RectTransform _rect = (UnityEngine.RectTransform)translator.GetObject(L, 1, typeof(UnityEngine.RectTransform)); - System.Func _property = translator.GetDelegate>(L, 2); - float _defaultValue = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = UnityEngine.UI.LayoutUtility.GetLayoutProperty( _rect, _property, _defaultValue ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 1)&& translator.Assignable>(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - UnityEngine.RectTransform _rect = (UnityEngine.RectTransform)translator.GetObject(L, 1, typeof(UnityEngine.RectTransform)); - System.Func _property = translator.GetDelegate>(L, 2); - float _defaultValue = (float)LuaAPI.lua_tonumber(L, 3); - UnityEngine.UI.ILayoutElement _source; - - var gen_ret = UnityEngine.UI.LayoutUtility.GetLayoutProperty( _rect, _property, _defaultValue, out _source ); - LuaAPI.lua_pushnumber(L, gen_ret); - translator.PushAny(L, _source); - - - - - return 2; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.UI.LayoutUtility.GetLayoutProperty!"); - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_UI_NavigationWrap.cs b/Assets/XLua/Gen/UnityEngine_UI_NavigationWrap.cs deleted file mode 100644 index 1ae2767ac..000000000 --- a/Assets/XLua/Gen/UnityEngine_UI_NavigationWrap.cs +++ /dev/null @@ -1,326 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineUINavigationWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.UI.Navigation); - Utils.BeginObjectRegister(type, L, translator, 0, 1, 6, 6); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Equals", _m_Equals); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "mode", _g_get_mode); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "wrapAround", _g_get_wrapAround); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "selectOnUp", _g_get_selectOnUp); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "selectOnDown", _g_get_selectOnDown); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "selectOnLeft", _g_get_selectOnLeft); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "selectOnRight", _g_get_selectOnRight); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "mode", _s_set_mode); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "wrapAround", _s_set_wrapAround); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "selectOnUp", _s_set_selectOnUp); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "selectOnDown", _s_set_selectOnDown); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "selectOnLeft", _s_set_selectOnLeft); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "selectOnRight", _s_set_selectOnRight); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 1, 0); - - - - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "defaultNavigation", _g_get_defaultNavigation); - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(UnityEngine.UI.Navigation)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.UI.Navigation constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Equals(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.Navigation gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - UnityEngine.UI.Navigation _other;translator.Get(L, 2, out _other); - - var gen_ret = gen_to_be_invoked.Equals( _other ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_mode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Navigation gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.mode); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_wrapAround(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Navigation gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.wrapAround); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_selectOnUp(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Navigation gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.selectOnUp); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_selectOnDown(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Navigation gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.selectOnDown); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_selectOnLeft(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Navigation gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.selectOnLeft); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_selectOnRight(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Navigation gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.selectOnRight); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_defaultNavigation(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, UnityEngine.UI.Navigation.defaultNavigation); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_mode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Navigation gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.UI.Navigation.Mode gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.mode = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_wrapAround(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Navigation gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.wrapAround = LuaAPI.lua_toboolean(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_selectOnUp(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Navigation gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.selectOnUp = (UnityEngine.UI.Selectable)translator.GetObject(L, 2, typeof(UnityEngine.UI.Selectable)); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_selectOnDown(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Navigation gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.selectOnDown = (UnityEngine.UI.Selectable)translator.GetObject(L, 2, typeof(UnityEngine.UI.Selectable)); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_selectOnLeft(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Navigation gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.selectOnLeft = (UnityEngine.UI.Selectable)translator.GetObject(L, 2, typeof(UnityEngine.UI.Selectable)); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_selectOnRight(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Navigation gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.selectOnRight = (UnityEngine.UI.Selectable)translator.GetObject(L, 2, typeof(UnityEngine.UI.Selectable)); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_UI_OutlineWrap.cs b/Assets/XLua/Gen/UnityEngine_UI_OutlineWrap.cs deleted file mode 100644 index a85b5edf4..000000000 --- a/Assets/XLua/Gen/UnityEngine_UI_OutlineWrap.cs +++ /dev/null @@ -1,189 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; -using DG.Tweening; - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineUIOutlineWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.UI.Outline); - Utils.BeginObjectRegister(type, L, translator, 0, 4, 0, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ModifyMesh", _m_ModifyMesh); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "DOColor", _m_DOColor); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "DOFade", _m_DOFade); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "DOScale", _m_DOScale); - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "UnityEngine.UI.Outline does not have a constructor!"); - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ModifyMesh(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.Outline gen_to_be_invoked = (UnityEngine.UI.Outline)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.UI.VertexHelper _vh = (UnityEngine.UI.VertexHelper)translator.GetObject(L, 2, typeof(UnityEngine.UI.VertexHelper)); - - gen_to_be_invoked.ModifyMesh( _vh ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DOColor(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.Outline gen_to_be_invoked = (UnityEngine.UI.Outline)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Color _endValue;translator.Get(L, 2, out _endValue); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = gen_to_be_invoked.DOColor( _endValue, _duration ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DOFade(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.Outline gen_to_be_invoked = (UnityEngine.UI.Outline)translator.FastGetCSObj(L, 1); - - - - { - float _endValue = (float)LuaAPI.lua_tonumber(L, 2); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = gen_to_be_invoked.DOFade( _endValue, _duration ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DOScale(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.Outline gen_to_be_invoked = (UnityEngine.UI.Outline)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Vector2 _endValue;translator.Get(L, 2, out _endValue); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = gen_to_be_invoked.DOScale( _endValue, _duration ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_UI_PositionAsUV1Wrap.cs b/Assets/XLua/Gen/UnityEngine_UI_PositionAsUV1Wrap.cs deleted file mode 100644 index 7b121b012..000000000 --- a/Assets/XLua/Gen/UnityEngine_UI_PositionAsUV1Wrap.cs +++ /dev/null @@ -1,96 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineUIPositionAsUV1Wrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.UI.PositionAsUV1); - Utils.BeginObjectRegister(type, L, translator, 0, 1, 0, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ModifyMesh", _m_ModifyMesh); - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "UnityEngine.UI.PositionAsUV1 does not have a constructor!"); - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ModifyMesh(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.PositionAsUV1 gen_to_be_invoked = (UnityEngine.UI.PositionAsUV1)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.UI.VertexHelper _vh = (UnityEngine.UI.VertexHelper)translator.GetObject(L, 2, typeof(UnityEngine.UI.VertexHelper)); - - gen_to_be_invoked.ModifyMesh( _vh ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_UI_Scrollbar_ScrollEventWrap.cs b/Assets/XLua/Gen/UnityEngine_UI_Scrollbar_ScrollEventWrap.cs deleted file mode 100644 index d39331d3b..000000000 --- a/Assets/XLua/Gen/UnityEngine_UI_Scrollbar_ScrollEventWrap.cs +++ /dev/null @@ -1,84 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineUIScrollbarScrollEventWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.UI.Scrollbar.ScrollEvent); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.UI.Scrollbar.ScrollEvent(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.UI.Scrollbar.ScrollEvent constructor!"); - - } - - - - - - - - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_UI_ShadowWrap.cs b/Assets/XLua/Gen/UnityEngine_UI_ShadowWrap.cs deleted file mode 100644 index d9d36b090..000000000 --- a/Assets/XLua/Gen/UnityEngine_UI_ShadowWrap.cs +++ /dev/null @@ -1,191 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineUIShadowWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.UI.Shadow); - Utils.BeginObjectRegister(type, L, translator, 0, 1, 3, 3); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ModifyMesh", _m_ModifyMesh); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "effectColor", _g_get_effectColor); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "effectDistance", _g_get_effectDistance); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "useGraphicAlpha", _g_get_useGraphicAlpha); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "effectColor", _s_set_effectColor); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "effectDistance", _s_set_effectDistance); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "useGraphicAlpha", _s_set_useGraphicAlpha); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "UnityEngine.UI.Shadow does not have a constructor!"); - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ModifyMesh(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.Shadow gen_to_be_invoked = (UnityEngine.UI.Shadow)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.UI.VertexHelper _vh = (UnityEngine.UI.VertexHelper)translator.GetObject(L, 2, typeof(UnityEngine.UI.VertexHelper)); - - gen_to_be_invoked.ModifyMesh( _vh ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_effectColor(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Shadow gen_to_be_invoked = (UnityEngine.UI.Shadow)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineColor(L, gen_to_be_invoked.effectColor); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_effectDistance(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Shadow gen_to_be_invoked = (UnityEngine.UI.Shadow)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector2(L, gen_to_be_invoked.effectDistance); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_useGraphicAlpha(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Shadow gen_to_be_invoked = (UnityEngine.UI.Shadow)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.useGraphicAlpha); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_effectColor(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Shadow gen_to_be_invoked = (UnityEngine.UI.Shadow)translator.FastGetCSObj(L, 1); - UnityEngine.Color gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.effectColor = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_effectDistance(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Shadow gen_to_be_invoked = (UnityEngine.UI.Shadow)translator.FastGetCSObj(L, 1); - UnityEngine.Vector2 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.effectDistance = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_useGraphicAlpha(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Shadow gen_to_be_invoked = (UnityEngine.UI.Shadow)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.useGraphicAlpha = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_UI_SpriteStateWrap.cs b/Assets/XLua/Gen/UnityEngine_UI_SpriteStateWrap.cs deleted file mode 100644 index dbe82dbf1..000000000 --- a/Assets/XLua/Gen/UnityEngine_UI_SpriteStateWrap.cs +++ /dev/null @@ -1,246 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineUISpriteStateWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.UI.SpriteState); - Utils.BeginObjectRegister(type, L, translator, 0, 1, 4, 4); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Equals", _m_Equals); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "highlightedSprite", _g_get_highlightedSprite); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "pressedSprite", _g_get_pressedSprite); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "selectedSprite", _g_get_selectedSprite); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "disabledSprite", _g_get_disabledSprite); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "highlightedSprite", _s_set_highlightedSprite); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "pressedSprite", _s_set_pressedSprite); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "selectedSprite", _s_set_selectedSprite); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "disabledSprite", _s_set_disabledSprite); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(UnityEngine.UI.SpriteState)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.UI.SpriteState constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Equals(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.SpriteState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - UnityEngine.UI.SpriteState _other;translator.Get(L, 2, out _other); - - var gen_ret = gen_to_be_invoked.Equals( _other ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_highlightedSprite(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.SpriteState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.highlightedSprite); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_pressedSprite(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.SpriteState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.pressedSprite); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_selectedSprite(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.SpriteState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.selectedSprite); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_disabledSprite(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.SpriteState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.disabledSprite); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_highlightedSprite(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.SpriteState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.highlightedSprite = (UnityEngine.Sprite)translator.GetObject(L, 2, typeof(UnityEngine.Sprite)); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_pressedSprite(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.SpriteState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.pressedSprite = (UnityEngine.Sprite)translator.GetObject(L, 2, typeof(UnityEngine.Sprite)); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_selectedSprite(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.SpriteState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.selectedSprite = (UnityEngine.Sprite)translator.GetObject(L, 2, typeof(UnityEngine.Sprite)); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_disabledSprite(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.SpriteState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.disabledSprite = (UnityEngine.Sprite)translator.GetObject(L, 2, typeof(UnityEngine.Sprite)); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_UI_StencilMaterialWrap.cs b/Assets/XLua/Gen/UnityEngine_UI_StencilMaterialWrap.cs deleted file mode 100644 index ce9e53704..000000000 --- a/Assets/XLua/Gen/UnityEngine_UI_StencilMaterialWrap.cs +++ /dev/null @@ -1,171 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineUIStencilMaterialWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.UI.StencilMaterial); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 4, 0, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Add", _m_Add_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Remove", _m_Remove_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "ClearAll", _m_ClearAll_xlua_st_); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "UnityEngine.UI.StencilMaterial does not have a constructor!"); - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Add_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 5&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)&& translator.Assignable(L, 5)) - { - UnityEngine.Material _baseMat = (UnityEngine.Material)translator.GetObject(L, 1, typeof(UnityEngine.Material)); - int _stencilID = LuaAPI.xlua_tointeger(L, 2); - UnityEngine.Rendering.StencilOp _operation;translator.Get(L, 3, out _operation); - UnityEngine.Rendering.CompareFunction _compareFunction;translator.Get(L, 4, out _compareFunction); - UnityEngine.Rendering.ColorWriteMask _colorWriteMask;translator.Get(L, 5, out _colorWriteMask); - - var gen_ret = UnityEngine.UI.StencilMaterial.Add( _baseMat, _stencilID, _operation, _compareFunction, _colorWriteMask ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 7&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)&& translator.Assignable(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 7)) - { - UnityEngine.Material _baseMat = (UnityEngine.Material)translator.GetObject(L, 1, typeof(UnityEngine.Material)); - int _stencilID = LuaAPI.xlua_tointeger(L, 2); - UnityEngine.Rendering.StencilOp _operation;translator.Get(L, 3, out _operation); - UnityEngine.Rendering.CompareFunction _compareFunction;translator.Get(L, 4, out _compareFunction); - UnityEngine.Rendering.ColorWriteMask _colorWriteMask;translator.Get(L, 5, out _colorWriteMask); - int _readMask = LuaAPI.xlua_tointeger(L, 6); - int _writeMask = LuaAPI.xlua_tointeger(L, 7); - - var gen_ret = UnityEngine.UI.StencilMaterial.Add( _baseMat, _stencilID, _operation, _compareFunction, _colorWriteMask, _readMask, _writeMask ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.UI.StencilMaterial.Add!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Remove_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Material _customMat = (UnityEngine.Material)translator.GetObject(L, 1, typeof(UnityEngine.Material)); - - UnityEngine.UI.StencilMaterial.Remove( _customMat ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ClearAll_xlua_st_(RealStatePtr L) - { - try { - - - - - { - - UnityEngine.UI.StencilMaterial.ClearAll( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_UI_VertexHelperWrap.cs b/Assets/XLua/Gen/UnityEngine_UI_VertexHelperWrap.cs deleted file mode 100644 index 92784687b..000000000 --- a/Assets/XLua/Gen/UnityEngine_UI_VertexHelperWrap.cs +++ /dev/null @@ -1,496 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineUIVertexHelperWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.UI.VertexHelper); - Utils.BeginObjectRegister(type, L, translator, 0, 11, 2, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Dispose", _m_Dispose); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Clear", _m_Clear); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "PopulateUIVertex", _m_PopulateUIVertex); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetUIVertex", _m_SetUIVertex); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "FillMesh", _m_FillMesh); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddVert", _m_AddVert); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddTriangle", _m_AddTriangle); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddUIVertexQuad", _m_AddUIVertexQuad); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddUIVertexStream", _m_AddUIVertexStream); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddUIVertexTriangleStream", _m_AddUIVertexTriangleStream); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetUIVertexStream", _m_GetUIVertexStream); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "currentVertCount", _g_get_currentVertCount); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "currentIndexCount", _g_get_currentIndexCount); - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.UI.VertexHelper(); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 2 && translator.Assignable(L, 2)) - { - UnityEngine.Mesh _m = (UnityEngine.Mesh)translator.GetObject(L, 2, typeof(UnityEngine.Mesh)); - - var gen_ret = new UnityEngine.UI.VertexHelper(_m); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.UI.VertexHelper constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Dispose(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.VertexHelper gen_to_be_invoked = (UnityEngine.UI.VertexHelper)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Dispose( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Clear(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.VertexHelper gen_to_be_invoked = (UnityEngine.UI.VertexHelper)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Clear( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_PopulateUIVertex(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.VertexHelper gen_to_be_invoked = (UnityEngine.UI.VertexHelper)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.UIVertex _vertex;translator.Get(L, 2, out _vertex); - int _i = LuaAPI.xlua_tointeger(L, 3); - - gen_to_be_invoked.PopulateUIVertex( ref _vertex, _i ); - translator.Push(L, _vertex); - translator.Update(L, 2, _vertex); - - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetUIVertex(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.VertexHelper gen_to_be_invoked = (UnityEngine.UI.VertexHelper)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.UIVertex _vertex;translator.Get(L, 2, out _vertex); - int _i = LuaAPI.xlua_tointeger(L, 3); - - gen_to_be_invoked.SetUIVertex( _vertex, _i ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_FillMesh(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.VertexHelper gen_to_be_invoked = (UnityEngine.UI.VertexHelper)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Mesh _mesh = (UnityEngine.Mesh)translator.GetObject(L, 2, typeof(UnityEngine.Mesh)); - - gen_to_be_invoked.FillMesh( _mesh ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AddVert(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.VertexHelper gen_to_be_invoked = (UnityEngine.UI.VertexHelper)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.UIVertex _v;translator.Get(L, 2, out _v); - - gen_to_be_invoked.AddVert( _v ); - - - - return 0; - } - if(gen_param_count == 4&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)) - { - UnityEngine.Vector3 _position;translator.Get(L, 2, out _position); - UnityEngine.Color32 _color;translator.Get(L, 3, out _color); - UnityEngine.Vector4 _uv0;translator.Get(L, 4, out _uv0); - - gen_to_be_invoked.AddVert( _position, _color, _uv0 ); - - - - return 0; - } - if(gen_param_count == 7&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)&& translator.Assignable(L, 5)&& translator.Assignable(L, 6)&& translator.Assignable(L, 7)) - { - UnityEngine.Vector3 _position;translator.Get(L, 2, out _position); - UnityEngine.Color32 _color;translator.Get(L, 3, out _color); - UnityEngine.Vector4 _uv0;translator.Get(L, 4, out _uv0); - UnityEngine.Vector4 _uv1;translator.Get(L, 5, out _uv1); - UnityEngine.Vector3 _normal;translator.Get(L, 6, out _normal); - UnityEngine.Vector4 _tangent;translator.Get(L, 7, out _tangent); - - gen_to_be_invoked.AddVert( _position, _color, _uv0, _uv1, _normal, _tangent ); - - - - return 0; - } - if(gen_param_count == 9&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)&& translator.Assignable(L, 5)&& translator.Assignable(L, 6)&& translator.Assignable(L, 7)&& translator.Assignable(L, 8)&& translator.Assignable(L, 9)) - { - UnityEngine.Vector3 _position;translator.Get(L, 2, out _position); - UnityEngine.Color32 _color;translator.Get(L, 3, out _color); - UnityEngine.Vector4 _uv0;translator.Get(L, 4, out _uv0); - UnityEngine.Vector4 _uv1;translator.Get(L, 5, out _uv1); - UnityEngine.Vector4 _uv2;translator.Get(L, 6, out _uv2); - UnityEngine.Vector4 _uv3;translator.Get(L, 7, out _uv3); - UnityEngine.Vector3 _normal;translator.Get(L, 8, out _normal); - UnityEngine.Vector4 _tangent;translator.Get(L, 9, out _tangent); - - gen_to_be_invoked.AddVert( _position, _color, _uv0, _uv1, _uv2, _uv3, _normal, _tangent ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.UI.VertexHelper.AddVert!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AddTriangle(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.VertexHelper gen_to_be_invoked = (UnityEngine.UI.VertexHelper)translator.FastGetCSObj(L, 1); - - - - { - int _idx0 = LuaAPI.xlua_tointeger(L, 2); - int _idx1 = LuaAPI.xlua_tointeger(L, 3); - int _idx2 = LuaAPI.xlua_tointeger(L, 4); - - gen_to_be_invoked.AddTriangle( _idx0, _idx1, _idx2 ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AddUIVertexQuad(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.VertexHelper gen_to_be_invoked = (UnityEngine.UI.VertexHelper)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.UIVertex[] _verts = (UnityEngine.UIVertex[])translator.GetObject(L, 2, typeof(UnityEngine.UIVertex[])); - - gen_to_be_invoked.AddUIVertexQuad( _verts ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AddUIVertexStream(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.VertexHelper gen_to_be_invoked = (UnityEngine.UI.VertexHelper)translator.FastGetCSObj(L, 1); - - - - { - System.Collections.Generic.List _verts = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - System.Collections.Generic.List _indices = (System.Collections.Generic.List)translator.GetObject(L, 3, typeof(System.Collections.Generic.List)); - - gen_to_be_invoked.AddUIVertexStream( _verts, _indices ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AddUIVertexTriangleStream(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.VertexHelper gen_to_be_invoked = (UnityEngine.UI.VertexHelper)translator.FastGetCSObj(L, 1); - - - - { - System.Collections.Generic.List _verts = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - - gen_to_be_invoked.AddUIVertexTriangleStream( _verts ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetUIVertexStream(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.VertexHelper gen_to_be_invoked = (UnityEngine.UI.VertexHelper)translator.FastGetCSObj(L, 1); - - - - { - System.Collections.Generic.List _stream = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - - gen_to_be_invoked.GetUIVertexStream( _stream ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_currentVertCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.VertexHelper gen_to_be_invoked = (UnityEngine.UI.VertexHelper)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.currentVertCount); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_currentIndexCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.VertexHelper gen_to_be_invoked = (UnityEngine.UI.VertexHelper)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.currentIndexCount); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_UnassignedReferenceExceptionWrap.cs b/Assets/XLua/Gen/UnityEngine_UnassignedReferenceExceptionWrap.cs deleted file mode 100644 index 606d4ac52..000000000 --- a/Assets/XLua/Gen/UnityEngine_UnassignedReferenceExceptionWrap.cs +++ /dev/null @@ -1,103 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineUnassignedReferenceExceptionWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.UnassignedReferenceException); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.UnassignedReferenceException(); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 2 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _message = LuaAPI.lua_tostring(L, 2); - - var gen_ret = new UnityEngine.UnassignedReferenceException(_message); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 3 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING) && translator.Assignable(L, 3)) - { - string _message = LuaAPI.lua_tostring(L, 2); - System.Exception _innerException = (System.Exception)translator.GetObject(L, 3, typeof(System.Exception)); - - var gen_ret = new UnityEngine.UnassignedReferenceException(_message, _innerException); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.UnassignedReferenceException constructor!"); - - } - - - - - - - - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_UnityEventQueueSystemWrap.cs b/Assets/XLua/Gen/UnityEngine_UnityEventQueueSystemWrap.cs deleted file mode 100644 index ee652b211..000000000 --- a/Assets/XLua/Gen/UnityEngine_UnityEventQueueSystemWrap.cs +++ /dev/null @@ -1,135 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineUnityEventQueueSystemWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.UnityEventQueueSystem); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 3, 0, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GenerateEventIdForPayload", _m_GenerateEventIdForPayload_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetGlobalEventQueue", _m_GetGlobalEventQueue_xlua_st_); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.UnityEventQueueSystem(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.UnityEventQueueSystem constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GenerateEventIdForPayload_xlua_st_(RealStatePtr L) - { - try { - - - - - { - string _eventPayloadName = LuaAPI.lua_tostring(L, 1); - - var gen_ret = UnityEngine.UnityEventQueueSystem.GenerateEventIdForPayload( _eventPayloadName ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetGlobalEventQueue_xlua_st_(RealStatePtr L) - { - try { - - - - - { - - var gen_ret = UnityEngine.UnityEventQueueSystem.GetGlobalEventQueue( ); - LuaAPI.lua_pushlightuserdata(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_UnityExceptionWrap.cs b/Assets/XLua/Gen/UnityEngine_UnityExceptionWrap.cs deleted file mode 100644 index 3c8ab7978..000000000 --- a/Assets/XLua/Gen/UnityEngine_UnityExceptionWrap.cs +++ /dev/null @@ -1,103 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineUnityExceptionWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.UnityException); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.UnityException(); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 2 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _message = LuaAPI.lua_tostring(L, 2); - - var gen_ret = new UnityEngine.UnityException(_message); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 3 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING) && translator.Assignable(L, 3)) - { - string _message = LuaAPI.lua_tostring(L, 2); - System.Exception _innerException = (System.Exception)translator.GetObject(L, 3, typeof(System.Exception)); - - var gen_ret = new UnityEngine.UnityException(_message, _innerException); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.UnityException constructor!"); - - } - - - - - - - - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_Vector2IntWrap.cs b/Assets/XLua/Gen/UnityEngine_Vector2IntWrap.cs deleted file mode 100644 index 6def31b7d..000000000 --- a/Assets/XLua/Gen/UnityEngine_Vector2IntWrap.cs +++ /dev/null @@ -1,927 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineVector2IntWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.Vector2Int); - Utils.BeginObjectRegister(type, L, translator, 6, 6, 4, 2); - Utils.RegisterFunc(L, Utils.OBJ_META_IDX, "__unm", __UnmMeta); - Utils.RegisterFunc(L, Utils.OBJ_META_IDX, "__add", __AddMeta); - Utils.RegisterFunc(L, Utils.OBJ_META_IDX, "__sub", __SubMeta); - Utils.RegisterFunc(L, Utils.OBJ_META_IDX, "__mul", __MulMeta); - Utils.RegisterFunc(L, Utils.OBJ_META_IDX, "__div", __DivMeta); - Utils.RegisterFunc(L, Utils.OBJ_META_IDX, "__eq", __EqMeta); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Set", _m_Set); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Scale", _m_Scale); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Clamp", _m_Clamp); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Equals", _m_Equals); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetHashCode", _m_GetHashCode); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ToString", _m_ToString); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "x", _g_get_x); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "y", _g_get_y); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "magnitude", _g_get_magnitude); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "sqrMagnitude", _g_get_sqrMagnitude); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "x", _s_set_x); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "y", _s_set_y); - - - Utils.EndObjectRegister(type, L, translator, __CSIndexer, __NewIndexer, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 8, 6, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Distance", _m_Distance_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Min", _m_Min_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Max", _m_Max_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Scale", _m_Scale_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "FloorToInt", _m_FloorToInt_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "CeilToInt", _m_CeilToInt_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "RoundToInt", _m_RoundToInt_xlua_st_); - - - - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "zero", _g_get_zero); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "one", _g_get_one); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "up", _g_get_up); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "down", _g_get_down); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "left", _g_get_left); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "right", _g_get_right); - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 3 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - int _x = LuaAPI.xlua_tointeger(L, 2); - int _y = LuaAPI.xlua_tointeger(L, 3); - - var gen_ret = new UnityEngine.Vector2Int(_x, _y); - translator.Push(L, gen_ret); - - return 1; - } - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(UnityEngine.Vector2Int)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Vector2Int constructor!"); - - } - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - public static int __CSIndexer(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - if (translator.Assignable(L, 1) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - - UnityEngine.Vector2Int gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - int index = LuaAPI.xlua_tointeger(L, 2); - LuaAPI.lua_pushboolean(L, true); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked[index]); - return 2; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - LuaAPI.lua_pushboolean(L, false); - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - public static int __NewIndexer(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - try { - - if (translator.Assignable(L, 1) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - - UnityEngine.Vector2Int gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - int key = LuaAPI.xlua_tointeger(L, 2); - gen_to_be_invoked[key] = LuaAPI.xlua_tointeger(L, 3); - LuaAPI.lua_pushboolean(L, true); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - LuaAPI.lua_pushboolean(L, false); - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __UnmMeta(RealStatePtr L) - { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - try { - UnityEngine.Vector2Int rightside;translator.Get(L, 1, out rightside); - translator.Push(L, - rightside); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __AddMeta(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - if (translator.Assignable(L, 1) && translator.Assignable(L, 2)) - { - UnityEngine.Vector2Int leftside;translator.Get(L, 1, out leftside); - UnityEngine.Vector2Int rightside;translator.Get(L, 2, out rightside); - - translator.Push(L, leftside + rightside); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to right hand of + operator, need UnityEngine.Vector2Int!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __SubMeta(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - if (translator.Assignable(L, 1) && translator.Assignable(L, 2)) - { - UnityEngine.Vector2Int leftside;translator.Get(L, 1, out leftside); - UnityEngine.Vector2Int rightside;translator.Get(L, 2, out rightside); - - translator.Push(L, leftside - rightside); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to right hand of - operator, need UnityEngine.Vector2Int!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __MulMeta(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - if (translator.Assignable(L, 1) && translator.Assignable(L, 2)) - { - UnityEngine.Vector2Int leftside;translator.Get(L, 1, out leftside); - UnityEngine.Vector2Int rightside;translator.Get(L, 2, out rightside); - - translator.Push(L, leftside * rightside); - - return 1; - } - - - if (LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1) && translator.Assignable(L, 2)) - { - int leftside = LuaAPI.xlua_tointeger(L, 1); - UnityEngine.Vector2Int rightside;translator.Get(L, 2, out rightside); - - translator.Push(L, leftside * rightside); - - return 1; - } - - - if (translator.Assignable(L, 1) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - UnityEngine.Vector2Int leftside;translator.Get(L, 1, out leftside); - int rightside = LuaAPI.xlua_tointeger(L, 2); - - translator.Push(L, leftside * rightside); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to right hand of * operator, need UnityEngine.Vector2Int!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __DivMeta(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - if (translator.Assignable(L, 1) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - UnityEngine.Vector2Int leftside;translator.Get(L, 1, out leftside); - int rightside = LuaAPI.xlua_tointeger(L, 2); - - translator.Push(L, leftside / rightside); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to right hand of / operator, need UnityEngine.Vector2Int!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __EqMeta(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - if (translator.Assignable(L, 1) && translator.Assignable(L, 2)) - { - UnityEngine.Vector2Int leftside;translator.Get(L, 1, out leftside); - UnityEngine.Vector2Int rightside;translator.Get(L, 2, out rightside); - - LuaAPI.lua_pushboolean(L, leftside == rightside); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to right hand of == operator, need UnityEngine.Vector2Int!"); - - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Set(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Vector2Int gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - int _x = LuaAPI.xlua_tointeger(L, 2); - int _y = LuaAPI.xlua_tointeger(L, 3); - - gen_to_be_invoked.Set( _x, _y ); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Distance_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Vector2Int _a;translator.Get(L, 1, out _a); - UnityEngine.Vector2Int _b;translator.Get(L, 2, out _b); - - var gen_ret = UnityEngine.Vector2Int.Distance( _a, _b ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Min_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Vector2Int _lhs;translator.Get(L, 1, out _lhs); - UnityEngine.Vector2Int _rhs;translator.Get(L, 2, out _rhs); - - var gen_ret = UnityEngine.Vector2Int.Min( _lhs, _rhs ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Max_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Vector2Int _lhs;translator.Get(L, 1, out _lhs); - UnityEngine.Vector2Int _rhs;translator.Get(L, 2, out _rhs); - - var gen_ret = UnityEngine.Vector2Int.Max( _lhs, _rhs ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Scale_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Vector2Int _a;translator.Get(L, 1, out _a); - UnityEngine.Vector2Int _b;translator.Get(L, 2, out _b); - - var gen_ret = UnityEngine.Vector2Int.Scale( _a, _b ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Scale(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Vector2Int gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - UnityEngine.Vector2Int _scale;translator.Get(L, 2, out _scale); - - gen_to_be_invoked.Scale( _scale ); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Clamp(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Vector2Int gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - UnityEngine.Vector2Int _min;translator.Get(L, 2, out _min); - UnityEngine.Vector2Int _max;translator.Get(L, 3, out _max); - - gen_to_be_invoked.Clamp( _min, _max ); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_FloorToInt_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Vector2 _v;translator.Get(L, 1, out _v); - - var gen_ret = UnityEngine.Vector2Int.FloorToInt( _v ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CeilToInt_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Vector2 _v;translator.Get(L, 1, out _v); - - var gen_ret = UnityEngine.Vector2Int.CeilToInt( _v ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RoundToInt_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Vector2 _v;translator.Get(L, 1, out _v); - - var gen_ret = UnityEngine.Vector2Int.RoundToInt( _v ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Equals(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Vector2Int gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - object _other = translator.GetObject(L, 2, typeof(object)); - - var gen_ret = gen_to_be_invoked.Equals( _other ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.Vector2Int _other;translator.Get(L, 2, out _other); - - var gen_ret = gen_to_be_invoked.Equals( _other ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Vector2Int.Equals!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetHashCode(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Vector2Int gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - - var gen_ret = gen_to_be_invoked.GetHashCode( ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ToString(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Vector2Int gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - var gen_ret = gen_to_be_invoked.ToString( ); - LuaAPI.lua_pushstring(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _format = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.ToString( _format ); - LuaAPI.lua_pushstring(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 3)) - { - string _format = LuaAPI.lua_tostring(L, 2); - System.IFormatProvider _formatProvider = (System.IFormatProvider)translator.GetObject(L, 3, typeof(System.IFormatProvider)); - - var gen_ret = gen_to_be_invoked.ToString( _format, _formatProvider ); - LuaAPI.lua_pushstring(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Vector2Int.ToString!"); - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_x(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Vector2Int gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.x); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_y(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Vector2Int gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.y); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_magnitude(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Vector2Int gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.magnitude); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_sqrMagnitude(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Vector2Int gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.sqrMagnitude); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_zero(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, UnityEngine.Vector2Int.zero); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_one(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, UnityEngine.Vector2Int.one); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_up(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, UnityEngine.Vector2Int.up); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_down(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, UnityEngine.Vector2Int.down); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_left(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, UnityEngine.Vector2Int.left); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_right(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, UnityEngine.Vector2Int.right); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_x(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Vector2Int gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.x = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_y(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Vector2Int gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.y = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_Vector3IntWrap.cs b/Assets/XLua/Gen/UnityEngine_Vector3IntWrap.cs deleted file mode 100644 index f05be1af2..000000000 --- a/Assets/XLua/Gen/UnityEngine_Vector3IntWrap.cs +++ /dev/null @@ -1,988 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineVector3IntWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.Vector3Int); - Utils.BeginObjectRegister(type, L, translator, 6, 6, 5, 3); - Utils.RegisterFunc(L, Utils.OBJ_META_IDX, "__add", __AddMeta); - Utils.RegisterFunc(L, Utils.OBJ_META_IDX, "__sub", __SubMeta); - Utils.RegisterFunc(L, Utils.OBJ_META_IDX, "__mul", __MulMeta); - Utils.RegisterFunc(L, Utils.OBJ_META_IDX, "__unm", __UnmMeta); - Utils.RegisterFunc(L, Utils.OBJ_META_IDX, "__div", __DivMeta); - Utils.RegisterFunc(L, Utils.OBJ_META_IDX, "__eq", __EqMeta); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Set", _m_Set); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Scale", _m_Scale); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Clamp", _m_Clamp); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Equals", _m_Equals); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetHashCode", _m_GetHashCode); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ToString", _m_ToString); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "x", _g_get_x); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "y", _g_get_y); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "z", _g_get_z); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "magnitude", _g_get_magnitude); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "sqrMagnitude", _g_get_sqrMagnitude); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "x", _s_set_x); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "y", _s_set_y); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "z", _s_set_z); - - - Utils.EndObjectRegister(type, L, translator, __CSIndexer, __NewIndexer, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 8, 8, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Distance", _m_Distance_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Min", _m_Min_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Max", _m_Max_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Scale", _m_Scale_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "FloorToInt", _m_FloorToInt_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "CeilToInt", _m_CeilToInt_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "RoundToInt", _m_RoundToInt_xlua_st_); - - - - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "zero", _g_get_zero); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "one", _g_get_one); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "up", _g_get_up); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "down", _g_get_down); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "left", _g_get_left); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "right", _g_get_right); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "forward", _g_get_forward); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "back", _g_get_back); - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 4 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - int _x = LuaAPI.xlua_tointeger(L, 2); - int _y = LuaAPI.xlua_tointeger(L, 3); - int _z = LuaAPI.xlua_tointeger(L, 4); - - var gen_ret = new UnityEngine.Vector3Int(_x, _y, _z); - translator.Push(L, gen_ret); - - return 1; - } - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(UnityEngine.Vector3Int)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Vector3Int constructor!"); - - } - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - public static int __CSIndexer(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - if (translator.Assignable(L, 1) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - - UnityEngine.Vector3Int gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - int index = LuaAPI.xlua_tointeger(L, 2); - LuaAPI.lua_pushboolean(L, true); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked[index]); - return 2; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - LuaAPI.lua_pushboolean(L, false); - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - public static int __NewIndexer(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - try { - - if (translator.Assignable(L, 1) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - - UnityEngine.Vector3Int gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - int key = LuaAPI.xlua_tointeger(L, 2); - gen_to_be_invoked[key] = LuaAPI.xlua_tointeger(L, 3); - LuaAPI.lua_pushboolean(L, true); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - LuaAPI.lua_pushboolean(L, false); - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __AddMeta(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - if (translator.Assignable(L, 1) && translator.Assignable(L, 2)) - { - UnityEngine.Vector3Int leftside;translator.Get(L, 1, out leftside); - UnityEngine.Vector3Int rightside;translator.Get(L, 2, out rightside); - - translator.Push(L, leftside + rightside); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to right hand of + operator, need UnityEngine.Vector3Int!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __SubMeta(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - if (translator.Assignable(L, 1) && translator.Assignable(L, 2)) - { - UnityEngine.Vector3Int leftside;translator.Get(L, 1, out leftside); - UnityEngine.Vector3Int rightside;translator.Get(L, 2, out rightside); - - translator.Push(L, leftside - rightside); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to right hand of - operator, need UnityEngine.Vector3Int!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __MulMeta(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - if (translator.Assignable(L, 1) && translator.Assignable(L, 2)) - { - UnityEngine.Vector3Int leftside;translator.Get(L, 1, out leftside); - UnityEngine.Vector3Int rightside;translator.Get(L, 2, out rightside); - - translator.Push(L, leftside * rightside); - - return 1; - } - - - if (translator.Assignable(L, 1) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - UnityEngine.Vector3Int leftside;translator.Get(L, 1, out leftside); - int rightside = LuaAPI.xlua_tointeger(L, 2); - - translator.Push(L, leftside * rightside); - - return 1; - } - - - if (LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1) && translator.Assignable(L, 2)) - { - int leftside = LuaAPI.xlua_tointeger(L, 1); - UnityEngine.Vector3Int rightside;translator.Get(L, 2, out rightside); - - translator.Push(L, leftside * rightside); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to right hand of * operator, need UnityEngine.Vector3Int!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __UnmMeta(RealStatePtr L) - { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - try { - UnityEngine.Vector3Int rightside;translator.Get(L, 1, out rightside); - translator.Push(L, - rightside); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __DivMeta(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - if (translator.Assignable(L, 1) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - UnityEngine.Vector3Int leftside;translator.Get(L, 1, out leftside); - int rightside = LuaAPI.xlua_tointeger(L, 2); - - translator.Push(L, leftside / rightside); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to right hand of / operator, need UnityEngine.Vector3Int!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __EqMeta(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - if (translator.Assignable(L, 1) && translator.Assignable(L, 2)) - { - UnityEngine.Vector3Int leftside;translator.Get(L, 1, out leftside); - UnityEngine.Vector3Int rightside;translator.Get(L, 2, out rightside); - - LuaAPI.lua_pushboolean(L, leftside == rightside); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to right hand of == operator, need UnityEngine.Vector3Int!"); - - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Set(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Vector3Int gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - int _x = LuaAPI.xlua_tointeger(L, 2); - int _y = LuaAPI.xlua_tointeger(L, 3); - int _z = LuaAPI.xlua_tointeger(L, 4); - - gen_to_be_invoked.Set( _x, _y, _z ); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Distance_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Vector3Int _a;translator.Get(L, 1, out _a); - UnityEngine.Vector3Int _b;translator.Get(L, 2, out _b); - - var gen_ret = UnityEngine.Vector3Int.Distance( _a, _b ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Min_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Vector3Int _lhs;translator.Get(L, 1, out _lhs); - UnityEngine.Vector3Int _rhs;translator.Get(L, 2, out _rhs); - - var gen_ret = UnityEngine.Vector3Int.Min( _lhs, _rhs ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Max_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Vector3Int _lhs;translator.Get(L, 1, out _lhs); - UnityEngine.Vector3Int _rhs;translator.Get(L, 2, out _rhs); - - var gen_ret = UnityEngine.Vector3Int.Max( _lhs, _rhs ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Scale_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Vector3Int _a;translator.Get(L, 1, out _a); - UnityEngine.Vector3Int _b;translator.Get(L, 2, out _b); - - var gen_ret = UnityEngine.Vector3Int.Scale( _a, _b ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Scale(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Vector3Int gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - UnityEngine.Vector3Int _scale;translator.Get(L, 2, out _scale); - - gen_to_be_invoked.Scale( _scale ); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Clamp(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Vector3Int gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - UnityEngine.Vector3Int _min;translator.Get(L, 2, out _min); - UnityEngine.Vector3Int _max;translator.Get(L, 3, out _max); - - gen_to_be_invoked.Clamp( _min, _max ); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_FloorToInt_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Vector3 _v;translator.Get(L, 1, out _v); - - var gen_ret = UnityEngine.Vector3Int.FloorToInt( _v ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CeilToInt_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Vector3 _v;translator.Get(L, 1, out _v); - - var gen_ret = UnityEngine.Vector3Int.CeilToInt( _v ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RoundToInt_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Vector3 _v;translator.Get(L, 1, out _v); - - var gen_ret = UnityEngine.Vector3Int.RoundToInt( _v ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Equals(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Vector3Int gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - object _other = translator.GetObject(L, 2, typeof(object)); - - var gen_ret = gen_to_be_invoked.Equals( _other ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.Vector3Int _other;translator.Get(L, 2, out _other); - - var gen_ret = gen_to_be_invoked.Equals( _other ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Vector3Int.Equals!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetHashCode(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Vector3Int gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - - var gen_ret = gen_to_be_invoked.GetHashCode( ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ToString(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Vector3Int gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - var gen_ret = gen_to_be_invoked.ToString( ); - LuaAPI.lua_pushstring(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _format = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.ToString( _format ); - LuaAPI.lua_pushstring(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 3)) - { - string _format = LuaAPI.lua_tostring(L, 2); - System.IFormatProvider _formatProvider = (System.IFormatProvider)translator.GetObject(L, 3, typeof(System.IFormatProvider)); - - var gen_ret = gen_to_be_invoked.ToString( _format, _formatProvider ); - LuaAPI.lua_pushstring(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Vector3Int.ToString!"); - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_x(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Vector3Int gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.x); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_y(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Vector3Int gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.y); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_z(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Vector3Int gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.z); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_magnitude(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Vector3Int gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.magnitude); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_sqrMagnitude(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Vector3Int gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.sqrMagnitude); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_zero(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, UnityEngine.Vector3Int.zero); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_one(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, UnityEngine.Vector3Int.one); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_up(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, UnityEngine.Vector3Int.up); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_down(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, UnityEngine.Vector3Int.down); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_left(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, UnityEngine.Vector3Int.left); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_right(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, UnityEngine.Vector3Int.right); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_forward(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, UnityEngine.Vector3Int.forward); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_back(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, UnityEngine.Vector3Int.back); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_x(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Vector3Int gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.x = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_y(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Vector3Int gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.y = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_z(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Vector3Int gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.z = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_WWWFormWrap.cs b/Assets/XLua/Gen/UnityEngine_WWWFormWrap.cs deleted file mode 100644 index 7df44bb54..000000000 --- a/Assets/XLua/Gen/UnityEngine_WWWFormWrap.cs +++ /dev/null @@ -1,230 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineWWWFormWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.WWWForm); - Utils.BeginObjectRegister(type, L, translator, 0, 2, 2, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddField", _m_AddField); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddBinaryData", _m_AddBinaryData); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "headers", _g_get_headers); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "data", _g_get_data); - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.WWWForm(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.WWWForm constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AddField(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.WWWForm gen_to_be_invoked = (UnityEngine.WWWForm)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - string _fieldName = LuaAPI.lua_tostring(L, 2); - int _i = LuaAPI.xlua_tointeger(L, 3); - - gen_to_be_invoked.AddField( _fieldName, _i ); - - - - return 0; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING)) - { - string _fieldName = LuaAPI.lua_tostring(L, 2); - string _value = LuaAPI.lua_tostring(L, 3); - - gen_to_be_invoked.AddField( _fieldName, _value ); - - - - return 0; - } - if(gen_param_count == 4&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 4)) - { - string _fieldName = LuaAPI.lua_tostring(L, 2); - string _value = LuaAPI.lua_tostring(L, 3); - System.Text.Encoding _e = (System.Text.Encoding)translator.GetObject(L, 4, typeof(System.Text.Encoding)); - - gen_to_be_invoked.AddField( _fieldName, _value, _e ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.WWWForm.AddField!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AddBinaryData(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.WWWForm gen_to_be_invoked = (UnityEngine.WWWForm)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING)) - { - string _fieldName = LuaAPI.lua_tostring(L, 2); - byte[] _contents = LuaAPI.lua_tobytes(L, 3); - - gen_to_be_invoked.AddBinaryData( _fieldName, _contents ); - - - - return 0; - } - if(gen_param_count == 4&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 4) || LuaAPI.lua_type(L, 4) == LuaTypes.LUA_TSTRING)) - { - string _fieldName = LuaAPI.lua_tostring(L, 2); - byte[] _contents = LuaAPI.lua_tobytes(L, 3); - string _fileName = LuaAPI.lua_tostring(L, 4); - - gen_to_be_invoked.AddBinaryData( _fieldName, _contents, _fileName ); - - - - return 0; - } - if(gen_param_count == 5&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 4) || LuaAPI.lua_type(L, 4) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 5) || LuaAPI.lua_type(L, 5) == LuaTypes.LUA_TSTRING)) - { - string _fieldName = LuaAPI.lua_tostring(L, 2); - byte[] _contents = LuaAPI.lua_tobytes(L, 3); - string _fileName = LuaAPI.lua_tostring(L, 4); - string _mimeType = LuaAPI.lua_tostring(L, 5); - - gen_to_be_invoked.AddBinaryData( _fieldName, _contents, _fileName, _mimeType ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.WWWForm.AddBinaryData!"); - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_headers(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.WWWForm gen_to_be_invoked = (UnityEngine.WWWForm)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.headers); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_data(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.WWWForm gen_to_be_invoked = (UnityEngine.WWWForm)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.data); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_WaitForEndOfFrameWrap.cs b/Assets/XLua/Gen/UnityEngine_WaitForEndOfFrameWrap.cs deleted file mode 100644 index ba6c6d373..000000000 --- a/Assets/XLua/Gen/UnityEngine_WaitForEndOfFrameWrap.cs +++ /dev/null @@ -1,84 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineWaitForEndOfFrameWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.WaitForEndOfFrame); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.WaitForEndOfFrame(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.WaitForEndOfFrame constructor!"); - - } - - - - - - - - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_WaitForFixedUpdateWrap.cs b/Assets/XLua/Gen/UnityEngine_WaitForFixedUpdateWrap.cs deleted file mode 100644 index 8f3c1bef4..000000000 --- a/Assets/XLua/Gen/UnityEngine_WaitForFixedUpdateWrap.cs +++ /dev/null @@ -1,84 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineWaitForFixedUpdateWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.WaitForFixedUpdate); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.WaitForFixedUpdate(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.WaitForFixedUpdate constructor!"); - - } - - - - - - - - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_WaitForSecondsRealtimeWrap.cs b/Assets/XLua/Gen/UnityEngine_WaitForSecondsRealtimeWrap.cs deleted file mode 100644 index 7235315e6..000000000 --- a/Assets/XLua/Gen/UnityEngine_WaitForSecondsRealtimeWrap.cs +++ /dev/null @@ -1,159 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineWaitForSecondsRealtimeWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.WaitForSecondsRealtime); - Utils.BeginObjectRegister(type, L, translator, 0, 1, 2, 1); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Reset", _m_Reset); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "waitTime", _g_get_waitTime); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "keepWaiting", _g_get_keepWaiting); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "waitTime", _s_set_waitTime); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 2 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - float _time = (float)LuaAPI.lua_tonumber(L, 2); - - var gen_ret = new UnityEngine.WaitForSecondsRealtime(_time); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.WaitForSecondsRealtime constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Reset(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.WaitForSecondsRealtime gen_to_be_invoked = (UnityEngine.WaitForSecondsRealtime)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Reset( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_waitTime(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.WaitForSecondsRealtime gen_to_be_invoked = (UnityEngine.WaitForSecondsRealtime)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.waitTime); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_keepWaiting(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.WaitForSecondsRealtime gen_to_be_invoked = (UnityEngine.WaitForSecondsRealtime)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.keepWaiting); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_waitTime(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.WaitForSecondsRealtime gen_to_be_invoked = (UnityEngine.WaitForSecondsRealtime)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.waitTime = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_WaitForSecondsWrap.cs b/Assets/XLua/Gen/UnityEngine_WaitForSecondsWrap.cs deleted file mode 100644 index 64b4ce106..000000000 --- a/Assets/XLua/Gen/UnityEngine_WaitForSecondsWrap.cs +++ /dev/null @@ -1,85 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineWaitForSecondsWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.WaitForSeconds); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 2 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - float _seconds = (float)LuaAPI.lua_tonumber(L, 2); - - var gen_ret = new UnityEngine.WaitForSeconds(_seconds); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.WaitForSeconds constructor!"); - - } - - - - - - - - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_WaitUntilWrap.cs b/Assets/XLua/Gen/UnityEngine_WaitUntilWrap.cs deleted file mode 100644 index 232201298..000000000 --- a/Assets/XLua/Gen/UnityEngine_WaitUntilWrap.cs +++ /dev/null @@ -1,100 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineWaitUntilWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.WaitUntil); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 1, 0); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "keepWaiting", _g_get_keepWaiting); - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 2 && translator.Assignable>(L, 2)) - { - System.Func _predicate = translator.GetDelegate>(L, 2); - - var gen_ret = new UnityEngine.WaitUntil(_predicate); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.WaitUntil constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_keepWaiting(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.WaitUntil gen_to_be_invoked = (UnityEngine.WaitUntil)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.keepWaiting); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_WaitWhileWrap.cs b/Assets/XLua/Gen/UnityEngine_WaitWhileWrap.cs deleted file mode 100644 index 3d609f082..000000000 --- a/Assets/XLua/Gen/UnityEngine_WaitWhileWrap.cs +++ /dev/null @@ -1,100 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineWaitWhileWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.WaitWhile); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 1, 0); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "keepWaiting", _g_get_keepWaiting); - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 2 && translator.Assignable>(L, 2)) - { - System.Func _predicate = translator.GetDelegate>(L, 2); - - var gen_ret = new UnityEngine.WaitWhile(_predicate); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.WaitWhile constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_keepWaiting(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.WaitWhile gen_to_be_invoked = (UnityEngine.WaitWhile)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.keepWaiting); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_WebCamDeviceWrap.cs b/Assets/XLua/Gen/UnityEngine_WebCamDeviceWrap.cs deleted file mode 100644 index 960258707..000000000 --- a/Assets/XLua/Gen/UnityEngine_WebCamDeviceWrap.cs +++ /dev/null @@ -1,172 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineWebCamDeviceWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.WebCamDevice); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 6, 0); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "name", _g_get_name); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "isFrontFacing", _g_get_isFrontFacing); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "kind", _g_get_kind); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "depthCameraName", _g_get_depthCameraName); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "isAutoFocusPointSupported", _g_get_isAutoFocusPointSupported); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "availableResolutions", _g_get_availableResolutions); - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(UnityEngine.WebCamDevice)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.WebCamDevice constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_name(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.WebCamDevice gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.name); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_isFrontFacing(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.WebCamDevice gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.isFrontFacing); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_kind(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.WebCamDevice gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.kind); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_depthCameraName(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.WebCamDevice gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.depthCameraName); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_isAutoFocusPointSupported(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.WebCamDevice gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.isAutoFocusPointSupported); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_availableResolutions(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.WebCamDevice gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.availableResolutions); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_WebCamTextureWrap.cs b/Assets/XLua/Gen/UnityEngine_WebCamTextureWrap.cs deleted file mode 100644 index 487c106ed..000000000 --- a/Assets/XLua/Gen/UnityEngine_WebCamTextureWrap.cs +++ /dev/null @@ -1,587 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineWebCamTextureWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.WebCamTexture); - Utils.BeginObjectRegister(type, L, translator, 0, 6, 10, 5); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Play", _m_Play); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Pause", _m_Pause); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Stop", _m_Stop); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetPixel", _m_GetPixel); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetPixels", _m_GetPixels); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetPixels32", _m_GetPixels32); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "isPlaying", _g_get_isPlaying); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "deviceName", _g_get_deviceName); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "requestedFPS", _g_get_requestedFPS); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "requestedWidth", _g_get_requestedWidth); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "requestedHeight", _g_get_requestedHeight); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "videoRotationAngle", _g_get_videoRotationAngle); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "videoVerticallyMirrored", _g_get_videoVerticallyMirrored); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "didUpdateThisFrame", _g_get_didUpdateThisFrame); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "autoFocusPoint", _g_get_autoFocusPoint); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "isDepth", _g_get_isDepth); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "deviceName", _s_set_deviceName); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "requestedFPS", _s_set_requestedFPS); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "requestedWidth", _s_set_requestedWidth); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "requestedHeight", _s_set_requestedHeight); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "autoFocusPoint", _s_set_autoFocusPoint); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 1, 0); - - - - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "devices", _g_get_devices); - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 5 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - string _deviceName = LuaAPI.lua_tostring(L, 2); - int _requestedWidth = LuaAPI.xlua_tointeger(L, 3); - int _requestedHeight = LuaAPI.xlua_tointeger(L, 4); - int _requestedFPS = LuaAPI.xlua_tointeger(L, 5); - - var gen_ret = new UnityEngine.WebCamTexture(_deviceName, _requestedWidth, _requestedHeight, _requestedFPS); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 4 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - string _deviceName = LuaAPI.lua_tostring(L, 2); - int _requestedWidth = LuaAPI.xlua_tointeger(L, 3); - int _requestedHeight = LuaAPI.xlua_tointeger(L, 4); - - var gen_ret = new UnityEngine.WebCamTexture(_deviceName, _requestedWidth, _requestedHeight); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 2 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _deviceName = LuaAPI.lua_tostring(L, 2); - - var gen_ret = new UnityEngine.WebCamTexture(_deviceName); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 4 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - int _requestedWidth = LuaAPI.xlua_tointeger(L, 2); - int _requestedHeight = LuaAPI.xlua_tointeger(L, 3); - int _requestedFPS = LuaAPI.xlua_tointeger(L, 4); - - var gen_ret = new UnityEngine.WebCamTexture(_requestedWidth, _requestedHeight, _requestedFPS); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 3 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - int _requestedWidth = LuaAPI.xlua_tointeger(L, 2); - int _requestedHeight = LuaAPI.xlua_tointeger(L, 3); - - var gen_ret = new UnityEngine.WebCamTexture(_requestedWidth, _requestedHeight); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.WebCamTexture(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.WebCamTexture constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Play(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.WebCamTexture gen_to_be_invoked = (UnityEngine.WebCamTexture)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Play( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Pause(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.WebCamTexture gen_to_be_invoked = (UnityEngine.WebCamTexture)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Pause( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Stop(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.WebCamTexture gen_to_be_invoked = (UnityEngine.WebCamTexture)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Stop( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetPixel(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.WebCamTexture gen_to_be_invoked = (UnityEngine.WebCamTexture)translator.FastGetCSObj(L, 1); - - - - { - int _x = LuaAPI.xlua_tointeger(L, 2); - int _y = LuaAPI.xlua_tointeger(L, 3); - - var gen_ret = gen_to_be_invoked.GetPixel( _x, _y ); - translator.PushUnityEngineColor(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetPixels(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.WebCamTexture gen_to_be_invoked = (UnityEngine.WebCamTexture)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - var gen_ret = gen_to_be_invoked.GetPixels( ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 5&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - int _x = LuaAPI.xlua_tointeger(L, 2); - int _y = LuaAPI.xlua_tointeger(L, 3); - int _blockWidth = LuaAPI.xlua_tointeger(L, 4); - int _blockHeight = LuaAPI.xlua_tointeger(L, 5); - - var gen_ret = gen_to_be_invoked.GetPixels( _x, _y, _blockWidth, _blockHeight ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.WebCamTexture.GetPixels!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetPixels32(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.WebCamTexture gen_to_be_invoked = (UnityEngine.WebCamTexture)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - var gen_ret = gen_to_be_invoked.GetPixels32( ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.Color32[] _colors = (UnityEngine.Color32[])translator.GetObject(L, 2, typeof(UnityEngine.Color32[])); - - var gen_ret = gen_to_be_invoked.GetPixels32( _colors ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.WebCamTexture.GetPixels32!"); - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_devices(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, UnityEngine.WebCamTexture.devices); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_isPlaying(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.WebCamTexture gen_to_be_invoked = (UnityEngine.WebCamTexture)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.isPlaying); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_deviceName(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.WebCamTexture gen_to_be_invoked = (UnityEngine.WebCamTexture)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.deviceName); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_requestedFPS(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.WebCamTexture gen_to_be_invoked = (UnityEngine.WebCamTexture)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.requestedFPS); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_requestedWidth(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.WebCamTexture gen_to_be_invoked = (UnityEngine.WebCamTexture)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.requestedWidth); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_requestedHeight(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.WebCamTexture gen_to_be_invoked = (UnityEngine.WebCamTexture)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.requestedHeight); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_videoRotationAngle(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.WebCamTexture gen_to_be_invoked = (UnityEngine.WebCamTexture)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.videoRotationAngle); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_videoVerticallyMirrored(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.WebCamTexture gen_to_be_invoked = (UnityEngine.WebCamTexture)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.videoVerticallyMirrored); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_didUpdateThisFrame(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.WebCamTexture gen_to_be_invoked = (UnityEngine.WebCamTexture)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.didUpdateThisFrame); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_autoFocusPoint(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.WebCamTexture gen_to_be_invoked = (UnityEngine.WebCamTexture)translator.FastGetCSObj(L, 1); - translator.PushAny(L, gen_to_be_invoked.autoFocusPoint); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_isDepth(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.WebCamTexture gen_to_be_invoked = (UnityEngine.WebCamTexture)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.isDepth); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_deviceName(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.WebCamTexture gen_to_be_invoked = (UnityEngine.WebCamTexture)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.deviceName = LuaAPI.lua_tostring(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_requestedFPS(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.WebCamTexture gen_to_be_invoked = (UnityEngine.WebCamTexture)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.requestedFPS = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_requestedWidth(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.WebCamTexture gen_to_be_invoked = (UnityEngine.WebCamTexture)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.requestedWidth = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_requestedHeight(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.WebCamTexture gen_to_be_invoked = (UnityEngine.WebCamTexture)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.requestedHeight = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_autoFocusPoint(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.WebCamTexture gen_to_be_invoked = (UnityEngine.WebCamTexture)translator.FastGetCSObj(L, 1); - System.Nullable gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.autoFocusPoint = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_WheelColliderWrap.cs b/Assets/XLua/Gen/UnityEngine_WheelColliderWrap.cs deleted file mode 100644 index 7cda3db2d..000000000 --- a/Assets/XLua/Gen/UnityEngine_WheelColliderWrap.cs +++ /dev/null @@ -1,677 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineWheelColliderWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.WheelCollider); - Utils.BeginObjectRegister(type, L, translator, 0, 4, 16, 14); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ResetSprungMasses", _m_ResetSprungMasses); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ConfigureVehicleSubsteps", _m_ConfigureVehicleSubsteps); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetWorldPose", _m_GetWorldPose); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetGroundHit", _m_GetGroundHit); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "center", _g_get_center); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "radius", _g_get_radius); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "suspensionDistance", _g_get_suspensionDistance); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "suspensionSpring", _g_get_suspensionSpring); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "suspensionExpansionLimited", _g_get_suspensionExpansionLimited); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "forceAppPointDistance", _g_get_forceAppPointDistance); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "mass", _g_get_mass); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "wheelDampingRate", _g_get_wheelDampingRate); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "forwardFriction", _g_get_forwardFriction); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "sidewaysFriction", _g_get_sidewaysFriction); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "motorTorque", _g_get_motorTorque); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "brakeTorque", _g_get_brakeTorque); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "steerAngle", _g_get_steerAngle); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "isGrounded", _g_get_isGrounded); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "rpm", _g_get_rpm); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "sprungMass", _g_get_sprungMass); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "center", _s_set_center); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "radius", _s_set_radius); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "suspensionDistance", _s_set_suspensionDistance); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "suspensionSpring", _s_set_suspensionSpring); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "suspensionExpansionLimited", _s_set_suspensionExpansionLimited); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "forceAppPointDistance", _s_set_forceAppPointDistance); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "mass", _s_set_mass); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "wheelDampingRate", _s_set_wheelDampingRate); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "forwardFriction", _s_set_forwardFriction); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "sidewaysFriction", _s_set_sidewaysFriction); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "motorTorque", _s_set_motorTorque); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "brakeTorque", _s_set_brakeTorque); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "steerAngle", _s_set_steerAngle); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "sprungMass", _s_set_sprungMass); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.WheelCollider(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.WheelCollider constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ResetSprungMasses(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.WheelCollider gen_to_be_invoked = (UnityEngine.WheelCollider)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.ResetSprungMasses( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ConfigureVehicleSubsteps(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.WheelCollider gen_to_be_invoked = (UnityEngine.WheelCollider)translator.FastGetCSObj(L, 1); - - - - { - float _speedThreshold = (float)LuaAPI.lua_tonumber(L, 2); - int _stepsBelowThreshold = LuaAPI.xlua_tointeger(L, 3); - int _stepsAboveThreshold = LuaAPI.xlua_tointeger(L, 4); - - gen_to_be_invoked.ConfigureVehicleSubsteps( _speedThreshold, _stepsBelowThreshold, _stepsAboveThreshold ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetWorldPose(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.WheelCollider gen_to_be_invoked = (UnityEngine.WheelCollider)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Vector3 _pos; - UnityEngine.Quaternion _quat; - - gen_to_be_invoked.GetWorldPose( out _pos, out _quat ); - translator.PushUnityEngineVector3(L, _pos); - - translator.PushUnityEngineQuaternion(L, _quat); - - - - - return 2; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetGroundHit(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.WheelCollider gen_to_be_invoked = (UnityEngine.WheelCollider)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.WheelHit _hit; - - var gen_ret = gen_to_be_invoked.GetGroundHit( out _hit ); - LuaAPI.lua_pushboolean(L, gen_ret); - translator.Push(L, _hit); - - - - - return 2; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_center(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.WheelCollider gen_to_be_invoked = (UnityEngine.WheelCollider)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.center); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_radius(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.WheelCollider gen_to_be_invoked = (UnityEngine.WheelCollider)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.radius); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_suspensionDistance(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.WheelCollider gen_to_be_invoked = (UnityEngine.WheelCollider)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.suspensionDistance); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_suspensionSpring(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.WheelCollider gen_to_be_invoked = (UnityEngine.WheelCollider)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.suspensionSpring); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_suspensionExpansionLimited(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.WheelCollider gen_to_be_invoked = (UnityEngine.WheelCollider)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.suspensionExpansionLimited); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_forceAppPointDistance(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.WheelCollider gen_to_be_invoked = (UnityEngine.WheelCollider)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.forceAppPointDistance); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_mass(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.WheelCollider gen_to_be_invoked = (UnityEngine.WheelCollider)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.mass); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_wheelDampingRate(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.WheelCollider gen_to_be_invoked = (UnityEngine.WheelCollider)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.wheelDampingRate); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_forwardFriction(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.WheelCollider gen_to_be_invoked = (UnityEngine.WheelCollider)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.forwardFriction); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_sidewaysFriction(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.WheelCollider gen_to_be_invoked = (UnityEngine.WheelCollider)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.sidewaysFriction); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_motorTorque(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.WheelCollider gen_to_be_invoked = (UnityEngine.WheelCollider)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.motorTorque); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_brakeTorque(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.WheelCollider gen_to_be_invoked = (UnityEngine.WheelCollider)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.brakeTorque); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_steerAngle(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.WheelCollider gen_to_be_invoked = (UnityEngine.WheelCollider)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.steerAngle); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_isGrounded(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.WheelCollider gen_to_be_invoked = (UnityEngine.WheelCollider)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.isGrounded); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_rpm(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.WheelCollider gen_to_be_invoked = (UnityEngine.WheelCollider)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.rpm); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_sprungMass(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.WheelCollider gen_to_be_invoked = (UnityEngine.WheelCollider)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.sprungMass); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_center(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.WheelCollider gen_to_be_invoked = (UnityEngine.WheelCollider)translator.FastGetCSObj(L, 1); - UnityEngine.Vector3 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.center = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_radius(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.WheelCollider gen_to_be_invoked = (UnityEngine.WheelCollider)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.radius = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_suspensionDistance(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.WheelCollider gen_to_be_invoked = (UnityEngine.WheelCollider)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.suspensionDistance = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_suspensionSpring(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.WheelCollider gen_to_be_invoked = (UnityEngine.WheelCollider)translator.FastGetCSObj(L, 1); - UnityEngine.JointSpring gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.suspensionSpring = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_suspensionExpansionLimited(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.WheelCollider gen_to_be_invoked = (UnityEngine.WheelCollider)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.suspensionExpansionLimited = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_forceAppPointDistance(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.WheelCollider gen_to_be_invoked = (UnityEngine.WheelCollider)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.forceAppPointDistance = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_mass(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.WheelCollider gen_to_be_invoked = (UnityEngine.WheelCollider)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.mass = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_wheelDampingRate(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.WheelCollider gen_to_be_invoked = (UnityEngine.WheelCollider)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.wheelDampingRate = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_forwardFriction(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.WheelCollider gen_to_be_invoked = (UnityEngine.WheelCollider)translator.FastGetCSObj(L, 1); - UnityEngine.WheelFrictionCurve gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.forwardFriction = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_sidewaysFriction(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.WheelCollider gen_to_be_invoked = (UnityEngine.WheelCollider)translator.FastGetCSObj(L, 1); - UnityEngine.WheelFrictionCurve gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.sidewaysFriction = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_motorTorque(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.WheelCollider gen_to_be_invoked = (UnityEngine.WheelCollider)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.motorTorque = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_brakeTorque(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.WheelCollider gen_to_be_invoked = (UnityEngine.WheelCollider)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.brakeTorque = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_steerAngle(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.WheelCollider gen_to_be_invoked = (UnityEngine.WheelCollider)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.steerAngle = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_sprungMass(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.WheelCollider gen_to_be_invoked = (UnityEngine.WheelCollider)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.sprungMass = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_WheelFrictionCurveWrap.cs b/Assets/XLua/Gen/UnityEngine_WheelFrictionCurveWrap.cs deleted file mode 100644 index cb1a9be28..000000000 --- a/Assets/XLua/Gen/UnityEngine_WheelFrictionCurveWrap.cs +++ /dev/null @@ -1,247 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineWheelFrictionCurveWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.WheelFrictionCurve); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 5, 5); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "extremumSlip", _g_get_extremumSlip); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "extremumValue", _g_get_extremumValue); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "asymptoteSlip", _g_get_asymptoteSlip); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "asymptoteValue", _g_get_asymptoteValue); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "stiffness", _g_get_stiffness); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "extremumSlip", _s_set_extremumSlip); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "extremumValue", _s_set_extremumValue); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "asymptoteSlip", _s_set_asymptoteSlip); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "asymptoteValue", _s_set_asymptoteValue); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "stiffness", _s_set_stiffness); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(UnityEngine.WheelFrictionCurve)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.WheelFrictionCurve constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_extremumSlip(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.WheelFrictionCurve gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.extremumSlip); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_extremumValue(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.WheelFrictionCurve gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.extremumValue); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_asymptoteSlip(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.WheelFrictionCurve gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.asymptoteSlip); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_asymptoteValue(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.WheelFrictionCurve gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.asymptoteValue); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_stiffness(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.WheelFrictionCurve gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.stiffness); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_extremumSlip(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.WheelFrictionCurve gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.extremumSlip = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_extremumValue(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.WheelFrictionCurve gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.extremumValue = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_asymptoteSlip(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.WheelFrictionCurve gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.asymptoteSlip = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_asymptoteValue(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.WheelFrictionCurve gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.asymptoteValue = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_stiffness(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.WheelFrictionCurve gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.stiffness = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_WheelHitWrap.cs b/Assets/XLua/Gen/UnityEngine_WheelHitWrap.cs deleted file mode 100644 index d2287547c..000000000 --- a/Assets/XLua/Gen/UnityEngine_WheelHitWrap.cs +++ /dev/null @@ -1,350 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineWheelHitWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.WheelHit); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 8, 8); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "collider", _g_get_collider); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "point", _g_get_point); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "normal", _g_get_normal); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "forwardDir", _g_get_forwardDir); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "sidewaysDir", _g_get_sidewaysDir); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "force", _g_get_force); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "forwardSlip", _g_get_forwardSlip); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "sidewaysSlip", _g_get_sidewaysSlip); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "collider", _s_set_collider); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "point", _s_set_point); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "normal", _s_set_normal); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "forwardDir", _s_set_forwardDir); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "sidewaysDir", _s_set_sidewaysDir); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "force", _s_set_force); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "forwardSlip", _s_set_forwardSlip); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "sidewaysSlip", _s_set_sidewaysSlip); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(UnityEngine.WheelHit)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.WheelHit constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_collider(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.WheelHit gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.collider); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_point(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.WheelHit gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.point); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_normal(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.WheelHit gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.normal); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_forwardDir(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.WheelHit gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.forwardDir); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_sidewaysDir(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.WheelHit gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.sidewaysDir); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_force(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.WheelHit gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.force); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_forwardSlip(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.WheelHit gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.forwardSlip); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_sidewaysSlip(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.WheelHit gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.sidewaysSlip); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_collider(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.WheelHit gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.collider = (UnityEngine.Collider)translator.GetObject(L, 2, typeof(UnityEngine.Collider)); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_point(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.WheelHit gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Vector3 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.point = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_normal(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.WheelHit gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Vector3 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.normal = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_forwardDir(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.WheelHit gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Vector3 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.forwardDir = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_sidewaysDir(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.WheelHit gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Vector3 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.sidewaysDir = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_force(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.WheelHit gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.force = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_forwardSlip(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.WheelHit gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.forwardSlip = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_sidewaysSlip(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.WheelHit gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.sidewaysSlip = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_WheelJoint2DWrap.cs b/Assets/XLua/Gen/UnityEngine_WheelJoint2DWrap.cs deleted file mode 100644 index de8f23e59..000000000 --- a/Assets/XLua/Gen/UnityEngine_WheelJoint2DWrap.cs +++ /dev/null @@ -1,269 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineWheelJoint2DWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.WheelJoint2D); - Utils.BeginObjectRegister(type, L, translator, 0, 1, 7, 3); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetMotorTorque", _m_GetMotorTorque); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "suspension", _g_get_suspension); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "useMotor", _g_get_useMotor); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "motor", _g_get_motor); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "jointTranslation", _g_get_jointTranslation); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "jointLinearSpeed", _g_get_jointLinearSpeed); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "jointSpeed", _g_get_jointSpeed); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "jointAngle", _g_get_jointAngle); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "suspension", _s_set_suspension); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "useMotor", _s_set_useMotor); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "motor", _s_set_motor); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.WheelJoint2D(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.WheelJoint2D constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetMotorTorque(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.WheelJoint2D gen_to_be_invoked = (UnityEngine.WheelJoint2D)translator.FastGetCSObj(L, 1); - - - - { - float _timeStep = (float)LuaAPI.lua_tonumber(L, 2); - - var gen_ret = gen_to_be_invoked.GetMotorTorque( _timeStep ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_suspension(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.WheelJoint2D gen_to_be_invoked = (UnityEngine.WheelJoint2D)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.suspension); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_useMotor(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.WheelJoint2D gen_to_be_invoked = (UnityEngine.WheelJoint2D)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.useMotor); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_motor(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.WheelJoint2D gen_to_be_invoked = (UnityEngine.WheelJoint2D)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.motor); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_jointTranslation(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.WheelJoint2D gen_to_be_invoked = (UnityEngine.WheelJoint2D)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.jointTranslation); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_jointLinearSpeed(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.WheelJoint2D gen_to_be_invoked = (UnityEngine.WheelJoint2D)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.jointLinearSpeed); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_jointSpeed(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.WheelJoint2D gen_to_be_invoked = (UnityEngine.WheelJoint2D)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.jointSpeed); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_jointAngle(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.WheelJoint2D gen_to_be_invoked = (UnityEngine.WheelJoint2D)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.jointAngle); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_suspension(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.WheelJoint2D gen_to_be_invoked = (UnityEngine.WheelJoint2D)translator.FastGetCSObj(L, 1); - UnityEngine.JointSuspension2D gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.suspension = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_useMotor(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.WheelJoint2D gen_to_be_invoked = (UnityEngine.WheelJoint2D)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.useMotor = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_motor(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.WheelJoint2D gen_to_be_invoked = (UnityEngine.WheelJoint2D)translator.FastGetCSObj(L, 1); - UnityEngine.JointMotor2D gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.motor = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_WindZoneWrap.cs b/Assets/XLua/Gen/UnityEngine_WindZoneWrap.cs deleted file mode 100644 index 0b8b1ef85..000000000 --- a/Assets/XLua/Gen/UnityEngine_WindZoneWrap.cs +++ /dev/null @@ -1,271 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineWindZoneWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.WindZone); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 6, 6); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "mode", _g_get_mode); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "radius", _g_get_radius); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "windMain", _g_get_windMain); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "windTurbulence", _g_get_windTurbulence); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "windPulseMagnitude", _g_get_windPulseMagnitude); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "windPulseFrequency", _g_get_windPulseFrequency); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "mode", _s_set_mode); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "radius", _s_set_radius); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "windMain", _s_set_windMain); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "windTurbulence", _s_set_windTurbulence); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "windPulseMagnitude", _s_set_windPulseMagnitude); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "windPulseFrequency", _s_set_windPulseFrequency); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.WindZone(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.WindZone constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_mode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.WindZone gen_to_be_invoked = (UnityEngine.WindZone)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.mode); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_radius(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.WindZone gen_to_be_invoked = (UnityEngine.WindZone)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.radius); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_windMain(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.WindZone gen_to_be_invoked = (UnityEngine.WindZone)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.windMain); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_windTurbulence(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.WindZone gen_to_be_invoked = (UnityEngine.WindZone)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.windTurbulence); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_windPulseMagnitude(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.WindZone gen_to_be_invoked = (UnityEngine.WindZone)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.windPulseMagnitude); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_windPulseFrequency(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.WindZone gen_to_be_invoked = (UnityEngine.WindZone)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.windPulseFrequency); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_mode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.WindZone gen_to_be_invoked = (UnityEngine.WindZone)translator.FastGetCSObj(L, 1); - UnityEngine.WindZoneMode gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.mode = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_radius(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.WindZone gen_to_be_invoked = (UnityEngine.WindZone)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.radius = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_windMain(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.WindZone gen_to_be_invoked = (UnityEngine.WindZone)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.windMain = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_windTurbulence(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.WindZone gen_to_be_invoked = (UnityEngine.WindZone)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.windTurbulence = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_windPulseMagnitude(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.WindZone gen_to_be_invoked = (UnityEngine.WindZone)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.windPulseMagnitude = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_windPulseFrequency(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.WindZone gen_to_be_invoked = (UnityEngine.WindZone)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.windPulseFrequency = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_YieldInstructionWrap.cs b/Assets/XLua/Gen/UnityEngine_YieldInstructionWrap.cs deleted file mode 100644 index 2329e66c3..000000000 --- a/Assets/XLua/Gen/UnityEngine_YieldInstructionWrap.cs +++ /dev/null @@ -1,84 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineYieldInstructionWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.YieldInstruction); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.YieldInstruction(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.YieldInstruction constructor!"); - - } - - - - - - - - - - - - - - - - - - } -} diff --git a/Assets/arts/spines/ui/ui_loading.meta b/Assets/arts/spines/ui/ui_loading.meta new file mode 100644 index 000000000..7b20b3f50 --- /dev/null +++ b/Assets/arts/spines/ui/ui_loading.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 4af187f2a1856974e9706adaef3113f8 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/arts/spines/ui/ui_loading/ui_loading.atlas.txt b/Assets/arts/spines/ui/ui_loading/ui_loading.atlas.txt new file mode 100644 index 000000000..95d039451 --- /dev/null +++ b/Assets/arts/spines/ui/ui_loading/ui_loading.atlas.txt @@ -0,0 +1,52 @@ +ui_loading.png +size:2048,2048 +filter:Linear,Linear +bj +bounds:1134,606,320,450 +di +bounds:1,1351,1413,680 +dian +bounds:1456,846,307,225 +offsets:0,0,307,226 +emo +bounds:605,568,488,527 +rotate:90 +ln_1 +bounds:1246,1214,105,135 +offsets:0,1,105,136 +ln_2 +bounds:1041,83,271,187 +qi_1 +bounds:1041,272,294,179 +rotate:90 +qi_2 +bounds:1416,1469,615,562 +qi_3 +bounds:1416,1073,394,462 +rotate:90 +qi_4 +bounds:1,581,602,475 +qi_5 +bounds:1,24,507,555 +xx1 +bounds:1246,1109,87,103 +offsets:1,1,89,105 +xx2 +bounds:510,95,529,471 +xy_1 +bounds:1880,1250,92,217 +xy_2 +bounds:1456,598,246,286 +rotate:90 +xy_3 +bounds:1222,336,268,217 +rotate:90 +yan +bounds:1765,946,125,115 +offsets:1,1,127,117 +rotate:90 +yazi +bounds:1441,339,250,257 +offsets:0,0,251,257 +zhuang +bounds:1,1058,1243,291 diff --git a/Assets/arts/spines/ui/ui_loading/ui_loading.atlas.txt.meta b/Assets/arts/spines/ui/ui_loading/ui_loading.atlas.txt.meta new file mode 100644 index 000000000..49f2ee94b --- /dev/null +++ b/Assets/arts/spines/ui/ui_loading/ui_loading.atlas.txt.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: c150f784b0706b84b9d679f4cffbe214 +TextScriptImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/arts/spines/ui/ui_loading/ui_loading.png b/Assets/arts/spines/ui/ui_loading/ui_loading.png new file mode 100644 index 000000000..5f17f14ec Binary files /dev/null and b/Assets/arts/spines/ui/ui_loading/ui_loading.png differ diff --git a/Assets/arts/spines/ui/ui_loading/ui_loading.png.meta b/Assets/arts/spines/ui/ui_loading/ui_loading.png.meta new file mode 100644 index 000000000..6cba4be27 --- /dev/null +++ b/Assets/arts/spines/ui/ui_loading/ui_loading.png.meta @@ -0,0 +1,147 @@ +fileFormatVersion: 2 +guid: 9160465dd27f17f4cafab3b260dba29e +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 12 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMasterTextureLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 0 + wrapV: 0 + wrapW: 0 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 0 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + cookieLightType: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 0 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 1 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 0 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 1 + - serializedVersion: 3 + buildTarget: iPhone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: 50 + textureCompression: 0 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 1 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Android + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: 47 + textureCompression: 0 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 1 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Server + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 0 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 1 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + spritePackingTag: + pSDRemoveMatte: 0 + pSDShowRemoveMatteOption: 0 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/arts/spines/ui/ui_loading/ui_loading.skel.bytes b/Assets/arts/spines/ui/ui_loading/ui_loading.skel.bytes new file mode 100644 index 000000000..98d2b197c Binary files /dev/null and b/Assets/arts/spines/ui/ui_loading/ui_loading.skel.bytes differ diff --git a/Assets/arts/spines/ui/ui_loading/ui_loading.skel.bytes.meta b/Assets/arts/spines/ui/ui_loading/ui_loading.skel.bytes.meta new file mode 100644 index 000000000..59e75aa17 --- /dev/null +++ b/Assets/arts/spines/ui/ui_loading/ui_loading.skel.bytes.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 09659d502ec01f74fa8de3c97c1782c8 +TextScriptImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/arts/spines/ui/ui_loading/ui_loading_atlas.asset b/Assets/arts/spines/ui/ui_loading/ui_loading_atlas.asset new file mode 100644 index 000000000..833600418 --- /dev/null +++ b/Assets/arts/spines/ui/ui_loading/ui_loading_atlas.asset @@ -0,0 +1,19 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!114 &11400000 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: a6b194f808b1af6499c93410e504af42, type: 3} + m_Name: ui_loading_atlas + m_EditorClassIdentifier: + textureLoadingMode: 0 + onDemandTextureLoader: {fileID: 0} + atlasFile: {fileID: 4900000, guid: c150f784b0706b84b9d679f4cffbe214, type: 3} + materials: + - {fileID: 2100000, guid: 1365e95dd1c720e46b36ac104d244c73, type: 2} diff --git a/Assets/arts/spines/ui/ui_loading/ui_loading_atlas.asset.meta b/Assets/arts/spines/ui/ui_loading/ui_loading_atlas.asset.meta new file mode 100644 index 000000000..3e2021455 --- /dev/null +++ b/Assets/arts/spines/ui/ui_loading/ui_loading_atlas.asset.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: fa2fc7558754c0342971841fe4ca77d8 +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 11400000 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/arts/spines/ui/ui_loading/ui_loading_material.mat b/Assets/arts/spines/ui/ui_loading/ui_loading_material.mat new file mode 100644 index 000000000..e5ff42fde --- /dev/null +++ b/Assets/arts/spines/ui/ui_loading/ui_loading_material.mat @@ -0,0 +1,44 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!21 &2100000 +Material: + serializedVersion: 8 + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: ui_loading_material + m_Shader: {fileID: 4800000, guid: b2f91ac81daca8e4392188a2ba68c1e3, type: 3} + m_ValidKeywords: [] + m_InvalidKeywords: + - _USE8NEIGHBOURHOOD_ON + m_LightmapFlags: 4 + m_EnableInstancingVariants: 0 + m_DoubleSidedGI: 0 + m_CustomRenderQueue: -1 + stringTagMap: {} + disabledShaderPasses: [] + m_SavedProperties: + serializedVersion: 3 + m_TexEnvs: + - _MainTex: + m_Texture: {fileID: 2800000, guid: 9160465dd27f17f4cafab3b260dba29e, type: 3} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + m_Ints: [] + m_Floats: + - _Cutoff: 0.1 + - _OutlineMipLevel: 0 + - _OutlineOpaqueAlpha: 1 + - _OutlineReferenceTexWidth: 1024 + - _OutlineSmoothness: 1 + - _OutlineWidth: 3 + - _StencilComp: 8 + - _StencilRef: 1 + - _StraightAlphaInput: 0 + - _ThresholdEnd: 0.25 + - _Use8Neighbourhood: 1 + m_Colors: + - _OutlineColor: {r: 1, g: 1, b: 0, a: 1} + - _glow_color: {r: 0, g: 0, b: 0, a: 1} + m_BuildTextureStacks: [] diff --git a/Assets/arts/spines/ui/ui_loading/ui_loading_material.mat.meta b/Assets/arts/spines/ui/ui_loading/ui_loading_material.mat.meta new file mode 100644 index 000000000..7b0370dd4 --- /dev/null +++ b/Assets/arts/spines/ui/ui_loading/ui_loading_material.mat.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 1365e95dd1c720e46b36ac104d244c73 +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 2100000 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/arts/spines/ui/ui_loading/ui_loading_skeletondata.asset b/Assets/arts/spines/ui/ui_loading/ui_loading_skeletondata.asset new file mode 100644 index 000000000..c3f50d3e4 --- /dev/null +++ b/Assets/arts/spines/ui/ui_loading/ui_loading_skeletondata.asset @@ -0,0 +1,31 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!114 &11400000 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: f1b3b4b945939a54ea0b23d3396115fb, type: 3} + m_Name: ui_loading_skeletondata + m_EditorClassIdentifier: + atlasAssets: + - {fileID: 11400000, guid: fa2fc7558754c0342971841fe4ca77d8, type: 2} + scale: 0.01 + skeletonJSON: {fileID: 4900000, guid: 09659d502ec01f74fa8de3c97c1782c8, type: 3} + isUpgradingBlendModeMaterials: 0 + blendModeMaterials: + requiresBlendModeMaterials: 0 + applyAdditiveMaterial: 0 + additiveMaterials: [] + multiplyMaterials: [] + screenMaterials: [] + skeletonDataModifiers: [] + fromAnimation: [] + toAnimation: [] + duration: [] + defaultMix: 0.2 + controller: {fileID: 0} diff --git a/Assets/arts/spines/ui/ui_loading/ui_loading_skeletondata.asset.meta b/Assets/arts/spines/ui/ui_loading/ui_loading_skeletondata.asset.meta new file mode 100644 index 000000000..cb98d3bb0 --- /dev/null +++ b/Assets/arts/spines/ui/ui_loading/ui_loading_skeletondata.asset.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 22be4d6ac2b8e0f47bdf1444b9181592 +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 11400000 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/lua/app/module/login/test_login_ui.lua.bytes b/Assets/lua/app/module/login/test_login_ui.lua.bytes index 0236417cf..2f5263d7f 100644 Binary files a/Assets/lua/app/module/login/test_login_ui.lua.bytes and b/Assets/lua/app/module/login/test_login_ui.lua.bytes differ diff --git a/Assets/prefabs/ui/login/test_login_ui.prefab b/Assets/prefabs/ui/login/test_login_ui.prefab index aea00094f..cecf8e088 100644 --- a/Assets/prefabs/ui/login/test_login_ui.prefab +++ b/Assets/prefabs/ui/login/test_login_ui.prefab @@ -28,9 +28,10 @@ RectTransform: m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 4165930251451731960} - m_RootOrder: 1 + m_RootOrder: 2 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0.5, y: 0.8601685} m_AnchorMax: {x: 0.5, y: 0.8601685} @@ -98,6 +99,7 @@ RectTransform: m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 m_Children: - {fileID: 2117609657865266026} m_Father: {fileID: 7717762681446113756} @@ -137,9 +139,10 @@ RectTransform: m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 4165930251451731960} - m_RootOrder: 2 + m_RootOrder: 3 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0.5, y: 0} m_AnchorMax: {x: 0.5, y: 0} @@ -293,9 +296,10 @@ RectTransform: m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 4165930251451731960} - m_RootOrder: 3 + m_RootOrder: 4 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0.5, y: 0} m_AnchorMax: {x: 0.5, y: 0} @@ -448,6 +452,7 @@ RectTransform: m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 7680348409296007432} m_RootOrder: 0 @@ -527,6 +532,7 @@ RectTransform: m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 8457980778864427854} m_RootOrder: 0 @@ -662,6 +668,7 @@ RectTransform: m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 m_Children: - {fileID: 4695801532423405342} m_Father: {fileID: 4778863074454154343} @@ -787,6 +794,7 @@ RectTransform: m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 2117609657865266026} m_RootOrder: 2 @@ -864,12 +872,13 @@ RectTransform: m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 m_Children: - {fileID: 7680348409296007432} - {fileID: 8457980778864427854} - {fileID: 3064541426395101181} m_Father: {fileID: 4165930251451731960} - m_RootOrder: 6 + m_RootOrder: 7 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0.5, y: 0.5} m_AnchorMax: {x: 0.5, y: 0.5} @@ -904,6 +913,7 @@ RectTransform: m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 2117609657865266026} m_RootOrder: 1 @@ -979,9 +989,10 @@ RectTransform: m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 4165930251451731960} - m_RootOrder: 5 + m_RootOrder: 6 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0.5, y: 0.5} m_AnchorMax: {x: 0.5, y: 0.5} @@ -1054,6 +1065,7 @@ RectTransform: m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 2117609657865266026} m_RootOrder: 0 @@ -1130,6 +1142,7 @@ RectTransform: m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 m_Children: - {fileID: 7570826507918870290} m_Father: {fileID: 4778863074454154343} @@ -1219,6 +1232,7 @@ RectTransform: m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 3064541426395101181} m_RootOrder: 1 @@ -1294,6 +1308,7 @@ RectTransform: m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 4695801532423405342} m_RootOrder: 0 @@ -1370,9 +1385,10 @@ RectTransform: m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 4165930251451731960} - m_RootOrder: 4 + m_RootOrder: 5 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0.5, y: 0} m_AnchorMax: {x: 0.5, y: 0} @@ -1517,6 +1533,7 @@ RectTransform: m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 7680348409296007432} m_RootOrder: 1 @@ -1595,6 +1612,7 @@ RectTransform: m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 m_Children: - {fileID: 8826573552173850597} - {fileID: 8168866862779940616} @@ -1684,6 +1702,7 @@ RectTransform: m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 m_Children: - {fileID: 8226711284999312343} m_Father: {fileID: 2453995602300689158} @@ -1773,6 +1792,7 @@ RectTransform: m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 3064541426395101181} m_RootOrder: 0 @@ -1850,6 +1870,7 @@ RectTransform: m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 m_Children: - {fileID: 959119825928931550} m_Father: {fileID: 763308155561133598} @@ -1889,6 +1910,7 @@ RectTransform: m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 m_Children: - {fileID: 7717762681446113756} - {fileID: 763308155561133598} @@ -1985,7 +2007,7 @@ GameObject: m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 - m_IsActive: 1 + m_IsActive: 0 --- !u!224 &2196873022783477550 RectTransform: m_ObjectHideFlags: 0 @@ -1996,9 +2018,10 @@ RectTransform: m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 4165930251451731960} - m_RootOrder: 0 + m_RootOrder: 1 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0.5, y: 0.5} m_AnchorMax: {x: 0.5, y: 0.5} @@ -2069,6 +2092,7 @@ RectTransform: m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 m_Children: - {fileID: 1881818019772661612} - {fileID: 2043936315639406533} @@ -2169,7 +2193,10 @@ MonoBehaviour: m_HideMobileInput: 0 m_CharacterValidation: 0 m_CharacterLimit: 0 - m_OnEndEdit: + m_OnSubmit: + m_PersistentCalls: + m_Calls: [] + m_OnDidEndEdit: m_PersistentCalls: m_Calls: [] m_OnValueChanged: @@ -2211,9 +2238,10 @@ RectTransform: m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 4165930251451731960} - m_RootOrder: 7 + m_RootOrder: 8 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 0} m_AnchorMax: {x: 0, y: 0} @@ -2346,6 +2374,7 @@ RectTransform: m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 2, y: 2, z: 2} + m_ConstrainProportionsScale: 0 m_Children: - {fileID: 3529154694461110274} - {fileID: 5898653137635251498} @@ -2485,7 +2514,9 @@ RectTransform: m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 m_Children: + - {fileID: 2657103838163451028} - {fileID: 2196873022783477550} - {fileID: 8996925862899215262} - {fileID: 1468853806739109718} @@ -2593,6 +2624,10 @@ MonoBehaviour: hashName: 802052393 objectType: 0 gameObject: {fileID: 5159045213605282811} + - name: test_login_ui.ui_spine_obj + hashName: 2293534599 + objectType: 6 + gameObject: {fileID: 1696754668559907442} --- !u!114 &2826841853260108107 MonoBehaviour: m_ObjectHideFlags: 0 @@ -2607,3 +2642,126 @@ MonoBehaviour: m_EditorClassIdentifier: EffectList: [] NotchScreenNodeList: [] +--- !u!1001 &876216254496233226 +PrefabInstance: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Modification: + m_TransformParent: {fileID: 4165930251451731960} + m_Modifications: + - target: {fileID: 1991971382385470840, guid: 4f7cf840d6e73e14781807788b817568, type: 3} + propertyPath: m_Name + value: ui_spine_obj + objectReference: {fileID: 0} + - target: {fileID: 2505651998029909099, guid: 4f7cf840d6e73e14781807788b817568, type: 3} + propertyPath: referenceSize.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 2505651998029909099, guid: 4f7cf840d6e73e14781807788b817568, type: 3} + propertyPath: referenceSize.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 2505651998029909099, guid: 4f7cf840d6e73e14781807788b817568, type: 3} + propertyPath: skeletonDataAsset + value: + objectReference: {fileID: 11400000, guid: 22be4d6ac2b8e0f47bdf1444b9181592, type: 2} + - target: {fileID: 2505651998029909099, guid: 4f7cf840d6e73e14781807788b817568, type: 3} + propertyPath: startingAnimation + value: idle + objectReference: {fileID: 0} + - target: {fileID: 2951863086470196126, guid: 4f7cf840d6e73e14781807788b817568, type: 3} + propertyPath: m_Pivot.x + value: 0.5 + objectReference: {fileID: 0} + - target: {fileID: 2951863086470196126, guid: 4f7cf840d6e73e14781807788b817568, type: 3} + propertyPath: m_Pivot.y + value: 0.5 + objectReference: {fileID: 0} + - target: {fileID: 2951863086470196126, guid: 4f7cf840d6e73e14781807788b817568, type: 3} + propertyPath: m_RootOrder + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 2951863086470196126, guid: 4f7cf840d6e73e14781807788b817568, type: 3} + propertyPath: m_AnchorMax.x + value: 0.5 + objectReference: {fileID: 0} + - target: {fileID: 2951863086470196126, guid: 4f7cf840d6e73e14781807788b817568, type: 3} + propertyPath: m_AnchorMax.y + value: 0.5 + objectReference: {fileID: 0} + - target: {fileID: 2951863086470196126, guid: 4f7cf840d6e73e14781807788b817568, type: 3} + propertyPath: m_AnchorMin.x + value: 0.5 + objectReference: {fileID: 0} + - target: {fileID: 2951863086470196126, guid: 4f7cf840d6e73e14781807788b817568, type: 3} + propertyPath: m_AnchorMin.y + value: 0.5 + objectReference: {fileID: 0} + - target: {fileID: 2951863086470196126, guid: 4f7cf840d6e73e14781807788b817568, type: 3} + propertyPath: m_SizeDelta.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 2951863086470196126, guid: 4f7cf840d6e73e14781807788b817568, type: 3} + propertyPath: m_SizeDelta.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 2951863086470196126, guid: 4f7cf840d6e73e14781807788b817568, type: 3} + propertyPath: m_LocalPosition.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 2951863086470196126, guid: 4f7cf840d6e73e14781807788b817568, type: 3} + propertyPath: m_LocalPosition.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 2951863086470196126, guid: 4f7cf840d6e73e14781807788b817568, type: 3} + propertyPath: m_LocalPosition.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 2951863086470196126, guid: 4f7cf840d6e73e14781807788b817568, type: 3} + propertyPath: m_LocalRotation.w + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 2951863086470196126, guid: 4f7cf840d6e73e14781807788b817568, type: 3} + propertyPath: m_LocalRotation.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 2951863086470196126, guid: 4f7cf840d6e73e14781807788b817568, type: 3} + propertyPath: m_LocalRotation.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 2951863086470196126, guid: 4f7cf840d6e73e14781807788b817568, type: 3} + propertyPath: m_LocalRotation.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 2951863086470196126, guid: 4f7cf840d6e73e14781807788b817568, type: 3} + propertyPath: m_AnchoredPosition.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 2951863086470196126, guid: 4f7cf840d6e73e14781807788b817568, type: 3} + propertyPath: m_AnchoredPosition.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 2951863086470196126, guid: 4f7cf840d6e73e14781807788b817568, type: 3} + propertyPath: m_LocalEulerAnglesHint.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 2951863086470196126, guid: 4f7cf840d6e73e14781807788b817568, type: 3} + propertyPath: m_LocalEulerAnglesHint.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 2951863086470196126, guid: 4f7cf840d6e73e14781807788b817568, type: 3} + propertyPath: m_LocalEulerAnglesHint.z + value: 0 + objectReference: {fileID: 0} + m_RemovedComponents: [] + m_SourcePrefab: {fileID: 100100000, guid: 4f7cf840d6e73e14781807788b817568, type: 3} +--- !u!1 &1696754668559907442 stripped +GameObject: + m_CorrespondingSourceObject: {fileID: 1991971382385470840, guid: 4f7cf840d6e73e14781807788b817568, type: 3} + m_PrefabInstance: {fileID: 876216254496233226} + m_PrefabAsset: {fileID: 0} +--- !u!224 &2657103838163451028 stripped +RectTransform: + m_CorrespondingSourceObject: {fileID: 2951863086470196126, guid: 4f7cf840d6e73e14781807788b817568, type: 3} + m_PrefabInstance: {fileID: 876216254496233226} + m_PrefabAsset: {fileID: 0}